of the events in fiction, which has the latest fictional end date?
Entity Entity
m.0c0mm3c m.0c9_31y
Massacre of 254 of the Sacred Band of Thebes by Macedon Massacre of the Sacred Band of Thebes
class class literal
fictional_universe.event_in_fiction fictional_universe.fictional_date_time 0^^http://www.w3.org/2001/XMLSchema#int
fictional_universe.event_in_fiction fictional_universe.fictional_date_time type.datetime
Event in fiction Fictional Date/Time 0
none none argmax
fictional_universe.event_in_fiction.end_date fictional_universe.fictional_date_time.date_time
End date Date/Time
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 :fictional_universe.event_in_fiction . 
?x1 :type.object.type :fictional_universe.fictional_date_time . 
{
SELECT (MAX(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :fictional_universe.event_in_fiction . 
?y1 :type.object.type :fictional_universe.fictional_date_time . 
?y0 :fictional_universe.event_in_fiction.end_date ?y1 . 
?y1 :fictional_universe.fictional_date_time.date_time ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y1 != ?y2  )
}
}
?x0 :fictional_universe.event_in_fiction.end_date ?x1 . 
?x1 :fictional_universe.fictional_date_time.date_time ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(ARGMAX fictional_universe.event_in_fiction (JOIN fictional_universe.event_in_fiction.end_date fictional_universe.fictional_date_time.date_time))