What is {admin HQ} of {Lufthansa}, that has {twin cities} is {Turin} ?
Which is the admin HQ of Lufthansa whose twin cities in Turin?
Which is the admin HQ of Lufthansa whose twin cities in Turin?
SELECT ?i WHERE { resource:Lufthansa property:headquarters_location ?i . ?i property:twinned_administrative_body resource:Turin }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9325> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P159>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P190> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q495> . }
SELECT ?answer WHERE { wd:Q9325 wdt:P159 ?answer . ?answer wdt:P190 wd:Q495}
Cologne