Question: Which movie cost less, Rocky (the one whose box office is 1407000000 United States dollar) or The Fast and the Furious (the one that contains 2 Fast 2 Furious)?
Choices:
Die Hard
Ice Age
The Fast and the Furious
Final Destination
Dumb and Dumber
Rugrats
Rocky
The Smurfs
Carry On
The Mummy
Program:
function: Find
inputs: Rocky
function: FilterNum
dependencies: 0
inputs: box office
1407000000 United States dollar
=
function: Find
inputs: 2 Fast 2 Furious
function: Relate
dependencies: 2
inputs: part of the series
forward
function: Find
inputs: The Fast and the Furious
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rocky" . ?e <box_office> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "1407000000"^^xsd:double . } UNION { ?e <pred:name> "The Fast and the Furious" . ?e_1 <part_of_the_series> ?e . ?e_1 <pred:name> "2 Fast 2 Furious" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rocky