What is {death place} of {William Magear Tweed}, that has {mayor} is {John Purroy Mitchel} ?
Mayor John Purroy Mitchel is the mayor of what place is William Magear Tweed's deathplace?
Mayor John Purroy Mitchel is the mayor of what place which is also the deathplace of William Magear Tweed?
SELECT ?y WHERE { ?y property:head_of_government resource:John_Purroy_Mitchel . resource:William_Magear_Tweed property:place_of_death ?y }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1353450> . ?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> ?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/Q3182321> . }
SELECT ?answer WHERE { wd:Q1353450 wdt:P20 ?answer . ?answer wdt:P6 wd:Q3182321}