what is the {end time} for {Andrew Johns} has {member of sports team} as {Newcastle Knights} ?
On which day Andrew Johns play for the Newcastle Knights?
When did Andrew Johns play for the Newcastle Knights?
SELECT ?a WHERE { ?v property:member_of_sports_team resource:Newcastle_Knights . ?v property:end_time ?a . resource:Andrew_Johns 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/Q2846645> .
?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/Q3339101> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q2846645 p:P54 ?s . ?s ps:P54 wd:Q3339101 . ?s pq:P582 ?value}