What is {partner city} of {Cologne}, that has {government headed by} is {Willy Demeyer} ?
Who is the accomplice city of Cologne whose government is headed by Willy Demeyer?
Who is the partner city of Cologne whose government is headed by Willy Demeyer?
SELECT ?t WHERE { ?t property:head_of_government resource:Willy_Demeyer . resource:Cologne property:twinned_administrative_body ?t }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q365> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P190>. ?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/P6> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q2355048> . }
SELECT ?answer WHERE { wd:Q365 wdt:P190 ?answer . ?answer wdt:P6 wd:Q2355048}
Liège