Question: Which movie is longer, Waterworld (the one whose box office is 264000000 United States dollar) or The Fast and the Furious (the one that has Roger Corman as a cast member)?
Choices:
Waterworld
A Prairie Home Companion
Curse of the Golden Flower
Pleasantville
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
The Fast and the Furious
Training Day
The Fifth Element
Program:
function: Find
inputs: Waterworld
function: FilterNum
dependencies: 0
inputs: box office
264000000 United States dollar
=
function: Find
inputs: Roger Corman
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: The Fast and the Furious
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Waterworld" . ?e <box_office> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "264000000"^^xsd:double . } UNION { ?e <pred:name> "The Fast and the Furious" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Roger Corman" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Waterworld