Question: Which one reported greated box office record, The Bridge on the River Kwai or Terminator 3: Rise of the Machines (the one whose genre is action film) ?
Choices:
Training Day
A Prairie Home Companion
The Hunchback of Notre Dame
Terminator 3: Rise of the Machines
Talk to Her
The Bridge on the River Kwai
The Fifth Element
Curse of the Golden Flower
Rebecca
Pleasantville
Program:
function: Find
inputs: The Bridge on the River Kwai
function: Find
inputs: action film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Terminator 3: Rise of the Machines
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Bridge on the River Kwai" .  } UNION { ?e <pred:name> "Terminator 3: Rise of the Machines" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Terminator 3: Rise of the Machines