what is the {end time} for {Robert Lewandowski} has {member of sports team} as {Poland national under-21 football team} ?
When did Robert Lewandowski quit playing for the Poland National Under-21 Team?
When did Robert Lewandowski stop playing for the Poland National Under-21 Team?
SELECT ?d WHERE { ?t property:end_time ?d . resource:Robert_Lewandowski property:member_of_sports_team ?t . ?t property:member_of_sports_team resource:Poland_national_under-21_football_team }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q151269> .
?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/Q1780231> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q151269 p:P54 ?s . ?s ps:P54 wd:Q1780231 . ?s pq:P582 ?value}