What is the {3D film} with the {MAX(duration)} whose {country of origin} is {United States of America}  ?
Which US film in 3D has the highest duration?
which  is the 3D film with the highest duration whose country of origin is united states of america?
SELECT ?z WHERE { ?z rdf:type ontology:3D_film . ?z property:duration ?j . ?z property:country_of_origin resource:United_States_of_America }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q229390>.

?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/P2047>.
?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/P495> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q30> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q229390 . ?ent wdt:P2047 ?obj . ?ent wdt:P495 wd:Q30 } ORDER BY DESC(?obj)LIMIT 5 
Pearl Batman v Superman: Dawn of Justice The Hobbit: An Unexpected Journey Transformers: Age of Extinction Blade Runner 2049