what disney ride was involved in the accident that caused the most injuries?
Entity Entity
m.040fq5 m.01zx_j
California Screamin' Soarin' Over California
class class literal
amusement_parks.disney_ride amusement_parks.accident 0^^http://www.w3.org/2001/XMLSchema#int
amusement_parks.disney_ride amusement_parks.accident type.int
Disney Ride Amusement Ride Accident 0
none none argmax
amusement_parks.ride.accidents amusement_parks.accident.injuries
Accidents Injuries
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.disney_ride . 
?x1 :type.object.type :amusement_parks.accident . 
{
SELECT (MAX(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :amusement_parks.disney_ride . 
?y1 :type.object.type :amusement_parks.accident . 
?y0 :amusement_parks.ride.accidents ?y1 . 
?y1 :amusement_parks.accident.injuries ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y1 != ?y2  )
}
}
?x0 :amusement_parks.ride.accidents ?x1 . 
?x1 :amusement_parks.accident.injuries ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(ARGMAX amusement_parks.disney_ride (JOIN amusement_parks.ride.accidents amusement_parks.accident.injuries))