Question: Of 3D movies that took in more than 50000000 USD at the box office, which is longest?
Choices:
Michael Connelly
Frankenweenie
ParaNorman
Richard Burton
Piranha 3D
Dave Grohl
Avatar
Susan Sarandon
The Smurfs
Stirling Silliphanta
Answer: Avatar
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "3D film" . ?e <box_office> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 > "50000000"^^xsd:double ) . ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: box office
50000000 United States dollar
>
function: FilterConcept
dependencies: 1
inputs: 3D film
function: SelectAmong
dependencies: 2
inputs: duration
largest