what is the {end time} for {W. G. Grace} has {member of sports team} as {London County Cricket Club} ?
Until what year did W.G. Grace play for London Country Cricket club?
Until when was W.G. Grace a member of sports team in London County Cricket Club?
SELECT ?i WHERE { ?a property:end_time ?i . resource:W._G._Grace property:member_of_sports_team ?a . ?a property:member_of_sports_team resource:London_County_Cricket_Club }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q616068> .
?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/Q6670295> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q616068 p:P54 ?s . ?s ps:P54 wd:Q6670295 . ?s pq:P582 ?value}