what rating of a tv season that has the highest number of episodes?
Entity
m.030p0gc
TV G
class class literal
tv.tv_rating tv.tv_series_season 0^^http://www.w3.org/2001/XMLSchema#int
tv.tv_rating tv.tv_series_season type.int
TV Rating TV Season 0
none none argmax
tv.tv_series_season.rating tv.tv_series_season.number_of_episodes
Rating Number of episodes
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 :tv.tv_rating . 
?x1 :type.object.type :tv.tv_series_season . 
{
SELECT (MAX(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :tv.tv_rating . 
?y1 :type.object.type :tv.tv_series_season . 
?y1 :tv.tv_series_season.rating ?y0 . 
?y1 :tv.tv_series_season.number_of_episodes ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y1 != ?y2  )
}
}
?x1 :tv.tv_series_season.rating ?x0 . 
?x1 :tv.tv_series_season.number_of_episodes ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(ARGMAX tv.tv_rating (JOIN (R tv.tv_series_season.rating) tv.tv_series_season.number_of_episodes))