Question: Which one has greater attendance, The Incredible Hulk acted by Tim Roth or Iron Man 3?
Choices:
The Incredible Hulk
Pleasantville
Rebecca
The Hunchback of Notre Dame
Iron Man 3
Talk to Her
Curse of the Golden Flower
The Towering Inferno
Training Day
A Prairie Home Companion
Program:
function: Find
inputs: Tim Roth
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Incredible Hulk
function: And
dependencies: 1
2
function: Find
inputs: Iron Man 3
function: SelectBetween
dependencies: 3
4
inputs: attendance
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Incredible Hulk" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tim Roth" .   } UNION { ?e <pred:name> "Iron Man 3" .  } ?e <attendance> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Iron Man 3