What is {member of sports team} of {Allan Border} that is {end time} is {1980-0-0} ?
In 1980 name the last team Allan Border played for?
What was the last team Allan Border belonged to in the year 1980?
SELECT ?t WHERE { ?u property:end_time ?q . FILTER ( CONTAINS ( YEAR ( ?q ) , '1980' ) ) . ?u property:member_of_sports_team ?t . resource:Allan_Border property:member_of_sports_team ?u }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1392194> .
?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> <1980-0-0>
} 

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