What is {born in} of {George Santayana}, that has {partner city} is {San Juan} ?
"Who is born in { George Santayana } in { San Juan } where the { partner city } is?"
"Who is {born in} of {George Santayana} where the {partner city} is in {San Juan}?"
SELECT ?y WHERE { resource:George_Santayana property:place_of_birth ?y . ?y property:twinned_administrative_body resource:San_Juan }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q237833> . ?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/Q41211> . }
SELECT ?answer WHERE { wd:Q237833 wdt:P19 ?answer . ?answer wdt:P190 wd:Q41211}
Madrid