what is the {end time} for {Margaret Court} has {member of sports team} as {Australia Fed Cup team} ?
Give the date when Margaret Court resigned from membership of the Australian Fed Cup team?
When did Margaret Court end her team membership with the Australia Fed Cup team?
SELECT ?w WHERE { ?m property:end_time ?w . ?m property:member_of_sports_team resource:Australia_Fed_Cup_team . resource:Margaret_Court property:member_of_sports_team ?m }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q202342> .
?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/Q782909> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q202342 p:P54 ?s . ?s ps:P54 wd:Q782909 . ?s pq:P582 ?value}