what planet has the greatest apoapsis?
Entity
m.0c31h
Neptune
class literal
astronomy.planet 0^^http://www.w3.org/2001/XMLSchema#int
astronomy.planet type.float
Planet 0
none argmax
astronomy.orbital_relationship.aoapsis
Apoapsis
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 :astronomy.planet . 
{
SELECT (MAX(?y1) AS ?x1)  WHERE { 
?y0 :type.object.type :astronomy.planet . 
?y0 :astronomy.orbital_relationship.aoapsis ?y1 . 
FILTER ( ?y0 != ?y1  )
}
}
?x0 :astronomy.orbital_relationship.aoapsis ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(ARGMAX astronomy.planet astronomy.orbital_relationship.aoapsis)