What is {member of sports team} of {Bernard Thévenet} that is {end time} is {1979-0-0} ?
For what sports team did Bernard Thévenet play for until 1979?
What { sports team member } of { Bernard Thévenet } that is { end time } is { 1979.0 - 0 }?
SELECT ?o WHERE { FILTER ( CONTAINS ( YEAR ( ?x ) , '1979' ) ) . ?i property:member_of_sports_team ?o . ?i property:end_time ?x . resource:Bernard_Thévenet property:member_of_sports_team ?i }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q367064> .
?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> <1979-0-0>
} 

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