what is the {end time} for {Alastair Cook} has {member of sports team} as {Bedfordshire County Cricket Club} ?
What date did the Bedordshire County cricket club kick out Alastair Cook?
When was Alastair Cook was relieved from the sports team Bedfordshire county cricket club?
SELECT ?z WHERE { ?i property:end_time ?z . resource:Alastair_Cook property:member_of_sports_team ?i . ?i property:member_of_sports_team resource:Bedfordshire_County_Cricket_Club }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q500551> .
?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/Q4879239> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q500551 p:P54 ?s . ?s ps:P54 wd:Q4879239 . ?s pq:P582 ?value}