What is {member of sports team} of {Gabriel Batistuta} that is {end time} is {1989-1-1} ?
In 1989, what team did Gabriel Batistuta play for?
what team did Gabriel Batistuta Play for in 1989?
SELECT ?o WHERE { ?y property:member_of_sports_team ?o . FILTER ( CONTAINS ( YEAR ( ?s ) , '1989' ) ) . resource:Gabriel_Batistuta property:member_of_sports_team ?y . ?y property:end_time ?s }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q170376> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P54> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1989-1-1>
} 

SELECT ?obj WHERE { wd:Q170376 p:P54 ?s . ?s ps:P54 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1989')) }