What is {member of sports team} of {Neymar} that is {end time} is {2017-8-3} ?
Who left the Neymar sports crew on 8-3-2017?
Who left the Neymar sports team on 8-3-2017?
SELECT ?v WHERE { resource:Neymar property:member_of_sports_team ?z . ?z property:end_time ?y . FILTER ( CONTAINS ( YEAR ( ?y ) , '2017' ) ) . ?z property:member_of_sports_team ?v }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q142794> .
?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> <2017-8-3>
} 

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