What is {is in the town of} of {Guernica}, that has {partner city} is {New York City} ?
What town of Guernica has the accomplice city Modern York City?
What town of Guernica has the partner city New York City?
SELECT ?p WHERE { ?p property:twinned_administrative_body resource:New_York_City . resource:Guernica property:located_in_the_administrative_territorial_entity ?p }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q175036> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131>. ?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/Q60> . }
SELECT ?answer WHERE { wd:Q175036 wdt:P131 ?answer . ?answer wdt:P190 wd:Q60}