What is {HQ location} of {teams played for} of {Hamza Gezmiş} ?
Of the teams playing for Hamze Gesmis, what is the HQ location?
WHICH IS THE HQ LOCATION OF TEAMS PLAYED FOR HAMZE GEZMIS?
SELECT ?q WHERE { ?b property:headquarters_location ?q . resource:Hamza_Gezmiş property:member_of_sports_team ?b }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1574055> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P54>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P159> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q1574055 wdt:P54 ?X . ?X wdt:P159 ?answer}
Ordu Istanbul Şanlıurfa Akçaabat Istanbul Adapazarı İzmir