What is {twinned administrative body} of {Campinas} that is {start time} is {2009-1-1} ?
Which twinned body of Campinas?
What is the twinned administrative body of Campinas that started at 2009-1-1?
SELECT ?o WHERE { ?y property:start_time ?b . ?y property:twinned_administrative_body ?o . FILTER ( CONTAINS ( YEAR ( ?b ) , '2009' ) ) . resource:Campinas property:twinned_administrative_body ?y }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q171617> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P190> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <2009-1-1>
} 

SELECT ?obj WHERE { wd:Q171617 p:P190 ?s . ?s ps:P190 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'2009')) }