What is {birth location} of {Jack Black}, that has {twin city} is {Shanghai} ?
The delivery area of Jack Black has a twin metropolis in Shanghai. Which town is it?
The birth location of Jack Black has a twin city in Shanghai. Which city is it?
SELECT ?z WHERE { resource:Jack_Black property:place_of_birth ?z . ?z property:twinned_administrative_body resource:Shanghai }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1468473> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P19>. ?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/Q8686> . }
SELECT ?answer WHERE { wd:Q1468473 wdt:P19 ?answer . ?answer wdt:P190 wd:Q8686}
London