What is {twinned administrative body} of {Ljubljana} that is {start time} is {1997-1-1} ?
Explain and name the twinned administrative body of Ljubljana that started January 1, 1997.
What is the twinned administrative body of Ljubljana that started at 1997-1-1?
SELECT ?y WHERE { FILTER ( CONTAINS ( YEAR ( ?l ) , '1997' ) ) . ?f property:start_time ?l . resource:Ljubljana property:twinned_administrative_body ?f . ?f 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/Q437> .
?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> <1997-1-1>
} 

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