What is {birth place} of {William McGonagall}, that has {twin city} is {San Diego} ?
William McGonagall's beginning area has a twin town in San Diego. Which town is it?
William McGonagall's birth place has a twin city in San Diego. Which city is it?
SELECT ?b WHERE { ?b property:twinned_administrative_body resource:San_Diego . resource:William_McGonagall property:place_of_birth ?b }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q981978> . ?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/Q16552> . }
SELECT ?answer WHERE { wd:Q981978 wdt:P19 ?answer . ?answer wdt:P190 wd:Q16552}
Edinburgh