what is the {end time} for {Stanley Matthews} has {member of sports team} as {Blackpool F.C.} ?
Stanley Matthews left the Blackpool F.C. team on what date?
When did Stanley Matthews leave the Blackpool F.C. team?
SELECT ?x WHERE { ?e property:member_of_sports_team resource:Blackpool_F.C. . ?e property:end_time ?x . resource:Stanley_Matthews property:member_of_sports_team ?e }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q216140> .
?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> <http://wikidata.dbpedia.org/resource/Q19449> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q216140 p:P54 ?s . ?s ps:P54 wd:Q19449 . ?s pq:P582 ?value}