What is {moveable object location} of {Punxsutawney Phil}, that has {is in the town of} is {Pennsylvania} ?
What town in Pennsylvania is Punxsutawney Phil from?
What town in Pennsylvania is Punxsutawney Phil from?
SELECT ?i WHERE { resource:Punxsutawney_Phil property:location ?i . ?i property:located_in_the_administrative_territorial_entity resource:Pennsylvania }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q4483668> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P276>. ?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/P131> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1400> . }
SELECT ?answer WHERE { wd:Q4483668 wdt:P276 ?answer . ?answer wdt:P131 wd:Q1400}