Question: Which made more money at the box office, Rocky (the one whose publication date is 1976) or American Pie (the one whose duration is 786 minute)?
Choices:
American Pie
Star Wars
Rocky
The Smurfs
The Fast and the Furious
Rugrats
Ice Age
Dumb and Dumber
Final Destination
The Mummy
Program:
function: Find
inputs: Rocky
function: FilterYear
dependencies: 0
inputs: publication date
1976
=
function: Find
inputs: American Pie
function: FilterNum
dependencies: 2
inputs: duration
786 minute
=
function: SelectBetween
dependencies: 1
3
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rocky" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> 1976 . } UNION { ?e <pred:name> "American Pie" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "786"^^xsd:double . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rocky