what is the {end time} for {Sebastian Vettel} has {member of sports team} as {Scuderia Toro Rosso} ?
At what time did Sebastian Vettel belong to Scuderia Toro Rosso?
When was Sebastian Vettel a member of Scuderia Toro Rosso?
SELECT ?y WHERE { resource:Sebastian_Vettel property:member_of_sports_team ?f . ?f property:member_of_sports_team resource:Scuderia_Toro_Rosso . ?f property:end_time ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42311> .
?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/Q141818> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q42311 p:P54 ?s . ?s ps:P54 wd:Q141818 . ?s pq:P582 ?value}