What is {member of sports team} of {Danie Craven} that is {end time} is {1938-1-1} ?
For what sports team did Danie Craven play for until 1938?
What is the member of sports team of Danie Craven that ended at 1938-1-1?
SELECT ?c WHERE { FILTER ( CONTAINS ( YEAR ( ?w ) , '1938' ) ) . ?h property:member_of_sports_team ?c . ?h property:end_time ?w . resource:Danie_Craven property:member_of_sports_team ?h }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q742873> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1938-1-1>
} 

SELECT ?obj WHERE { wd:Q742873 p:P54 ?s . ?s ps:P54 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1938')) }