what is the material of the roller coaster with the maximum number of inversions?
Entity
m.02yjlh
Steel
class class literal
amusement_parks.roller_coaster_material amusement_parks.roller_coaster 0^^http://www.w3.org/2001/XMLSchema#int
amusement_parks.roller_coaster_material amusement_parks.roller_coaster type.int
Roller Coaster Material Roller Coaster 0
none none argmax
amusement_parks.roller_coaster.material amusement_parks.ride.inversions
Material Inversions
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_material . 
?x1 :type.object.type :amusement_parks.roller_coaster . 
{
SELECT (MAX(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :amusement_parks.roller_coaster_material . 
?y1 :type.object.type :amusement_parks.roller_coaster . 
?y1 :amusement_parks.roller_coaster.material ?y0 . 
?y1 :amusement_parks.ride.inversions ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y1 != ?y2  )
}
}
?x1 :amusement_parks.roller_coaster.material ?x0 . 
?x1 :amusement_parks.ride.inversions ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(ARGMAX amusement_parks.roller_coaster_material (JOIN (R amusement_parks.roller_coaster.material) amusement_parks.ride.inversions))