which olympic athlete has the last career ending date?
Entity
m.028r9s
Ilya Kovalchuk
class literal
olympics.olympic_athlete 0^^http://www.w3.org/2001/XMLSchema#int
olympics.olympic_athlete type.datetime
Olympic athlete 0
none argmax
sports.pro_athlete.career_end
Career End
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :olympics.olympic_athlete . 
{
SELECT (MAX(?y1) AS ?x1)  WHERE { 
?y0 :type.object.type :olympics.olympic_athlete . 
?y0 :sports.pro_athlete.career_end ?y1 . 
FILTER ( ?y0 != ?y1  )
}
}
?x0 :sports.pro_athlete.career_end ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(ARGMAX olympics.olympic_athlete sports.pro_athlete.career_end)