What is {partner city} of {died in} of {John Smith} ?
What is the accomplice city in which John Smith kicked the bucket in?
What is the partner city in which John Smith died in?
SELECT ?r WHERE { ?n property:twinned_administrative_body ?r . resource:John_Smith property:place_of_death ?n }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q228024> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P20>. ?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/P190> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q228024 wdt:P20 ?X . ?X wdt:P190 ?answer}
New York City Berlin Los Angeles Istanbul Sofia Oslo Moscow Amsterdam Beijing New Delhi Mumbai Delhi Zagreb Buenos Aires Tokyo La Paz Phnom Penh Kuala Lumpur Bogotá Algiers Tehran Jakarta Karachi Shanghai Baku Bucharest Podgorica Johannesburg Santo Domingo Arequipa Sylhet