Question: Which 3D film from the US has the longest runtime?
Choices:
The Smurfs
Avatar
Frankenweenie
Stargate Atlantis
Rory Cochrane
ParaNorman
Delaware County
Oswego
Munhwa Broadcasting Corporation
Piranha 3D
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: FilterConcept
dependencies: 1
inputs: 3D film
function: SelectAmong
dependencies: 2
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "3D film" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Avatar