What is {twinned administrative body} of {Ōsaka Prefecture} that is {start time} is {1987-7-21} ?
Osaka's administrative body was what in July 1987?
who was the administrative body of the of the Osaka Prefecture in July of 1987
SELECT ?i WHERE { ?e property:start_time ?x . resource:Ōsaka_Prefecture property:twinned_administrative_body ?e . ?e property:twinned_administrative_body ?i . FILTER ( CONTAINS ( YEAR ( ?x ) , '1987' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q122723> .
?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> <1987-7-21>
} 

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