What is {twinned administrative body} of {Surabaya} that is {start time} is {2009-5-21} ?
In the year 2009, when did the twinned administrative body of Surabaya start?
When did the twinned administrative body of Surabaya start in the year 2009?
SELECT ?u WHERE { FILTER ( CONTAINS ( YEAR ( ?c ) , '2009' ) ) . ?h property:twinned_administrative_body ?u . ?h property:start_time ?c . resource:Surabaya property:twinned_administrative_body ?h }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11462> .
?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-5-21>
} 

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