query: SELECT ?property ?propertyLabel ?subjectItem ?subjectItemLabel WHERE {  
      ?property wikibase:propertyType wikibase:ExternalId .
      ?property wdt:P1629 ?subjectItem .
     SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
  }
  