what is the {end time} for {Steve Waugh} has {member of sports team} as {Ireland} ?
On what date did Steve Waugh leave the Ireland team?
When did Steve Waugh stop playing on the team for Ireland?
SELECT ?a WHERE { ?v property:member_of_sports_team resource:Ireland . ?v property:end_time ?a . resource:Steve_Waugh property:member_of_sports_team ?v }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q735048> .
?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/Q22890> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q735048 p:P54 ?s . ?s ps:P54 wd:Q22890 . ?s pq:P582 ?value}