What is {member of sports team} of {Ian Botham} that is {end time} is {1988-0-0} ?
Who left the sports team Ian Botham in 1988
Which member of the sports team Ian Botham left in 1988?
SELECT ?y WHERE { ?j property:end_time ?n . ?j property:member_of_sports_team ?y . FILTER ( CONTAINS ( YEAR ( ?n ) , '1988' ) ) . resource:Ian_Botham property:member_of_sports_team ?j }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q982121> .
?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> <1988-0-0>
} 

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