What is {sister city} of {Sagamihara}, that has {inhabitants} is {2731571} ?
What was once the sister town of Sagmihara with 2731571 inhabitants?
What was the sister city of Sagmihara with 2731571 inhabitants?
SELECT ?r WHERE { resource:Sagamihara property:twinned_administrative_body ?r . FILTER ( ?r = 2731571 ) . ?r property:population ?r }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q209779> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P190>. ?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/P1082> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <2731571> . }
SELECT ?answer WHERE { wd:Q209779 wdt:P190 ?answer . ?answer wdt:P1082 ?x FILTER(contains(?x , '2731571'))}
Toronto