of all the roller coasters, which one was closed last?
Entity
m.0gx6b4
Shockwave
class literal
amusement_parks.roller_coaster 0^^http://www.w3.org/2001/XMLSchema#int
amusement_parks.roller_coaster type.datetime
Roller Coaster 0
none argmax
amusement_parks.ride.closed
Closed
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 :amusement_parks.roller_coaster . 
{
SELECT (MAX(?y1) AS ?x1)  WHERE { 
?y0 :type.object.type :amusement_parks.roller_coaster . 
?y0 :amusement_parks.ride.closed ?y1 . 
FILTER ( ?y0 != ?y1  )
}
}
?x0 :amusement_parks.ride.closed ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(ARGMAX amusement_parks.roller_coaster amusement_parks.ride.closed)