What is {member of sports team} of {Paul Gascoigne} that is {end time} is {2003-1-1} ?
Paul Gascoigne left which team in 2003?
What team did Paul Gascoigne leave in 2003?
SELECT ?i WHERE { FILTER ( CONTAINS ( YEAR ( ?z ) , '2003' ) ) . ?j property:end_time ?z . resource:Paul_Gascoigne property:member_of_sports_team ?j . ?j property:member_of_sports_team ?i }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q13002> .
?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> <2003-1-1>
} 

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