What is {bordered by} of {São Gonçalo}, that has {start date} is {1573-11-22} ?
What borders with Sao Goncalo whose begin date is 11-22-1573?
What borders with Sao Goncalo whose start date is 11-22-1573?
SELECT ?p WHERE { FILTER ( CONTAINS ( YEAR ( ?c ) , '1573' ) ) . ?p property:inception ?c . resource:São_Gonçalo property:shares_border_with ?p }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q83114> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47>. ?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/P571> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <1573-11-22> . }
SELECT ?answer WHERE { wd:Q83114 wdt:P47 ?answer . ?answer wdt:P571 ?x FILTER(contains(YEAR(?x),'1573'))}
Niterói