What is {twinned administrative body} of {Tainan} that is {start time} is {1980-8-16} ?
What is the administrative body of Tainan that started in 1980?
what is twinned administrative body of tainan is statrt time is 1980-8-16?
SELECT ?l WHERE { ?k property:twinned_administrative_body ?l . FILTER ( CONTAINS ( YEAR ( ?r ) , '1980' ) ) . ?k property:start_time ?r . resource:Tainan property:twinned_administrative_body ?k }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q140631> .
?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> <1980-8-16>
} 

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