What is the {film trilogy} with the {MAX(box office)} whose {production company} is {New Line Cinema}  ?
Of all New Line Cinema film trilogies, which had the largest box office?
What New Line Cinema film trilogy had the largest box office?
SELECT ?h WHERE { ?h property:production_company resource:New_Line_Cinema . ?h rdf:type ontology:film_trilogy . ?h property:box_office ?b }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q13593818>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2142>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P272> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q79202> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q13593818 . ?ent wdt:P2142 ?obj . ?ent wdt:P272 wd:Q79202 } ORDER BY DESC(?obj)LIMIT 5 
The Lord of the Rings trilogy