Question: Which movie cost more to make, Rocky (the one whose box office is 1407000000 United States dollar) or American Pie (the one that contains American Pie 2)?
Choices:
American Pie
Ice Age
Die Hard
Dumb and Dumber
Rocky
Star Wars
Final Destination
Rugrats
The Mummy
The Smurfs
Answer: Rocky
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> "American Pie" . ?e_1 <part_of_the_series> ?e . ?e_1 <pred:name> "American Pie 2" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Rocky
function: FilterNum
dependencies: 0
inputs: box office
1407000000 United States dollar
=
function: Find
inputs: American Pie 2
function: Relate
dependencies: 2
inputs: part of the series
forward
function: Find
inputs: American Pie
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: cost
greater