Question: Which film cost more to make: Lincoln with Hal Holbrook or State of Play with Rachel McAdams?
Choices:
Rebecca
The Towering Inferno
Training Day
The Hunchback of Notre Dame
State of Play
Curse of the Golden Flower
Pleasantville
The Fifth Element
Talk to Her
Lincoln
Program:
function: Find
inputs: Hal Holbrook
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Lincoln
function: And
dependencies: 1
2
function: Find
inputs: Rachel McAdams
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: State of Play
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lincoln" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Hal Holbrook" .   } UNION { ?e <pred:name> "State of Play" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Rachel McAdams" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lincoln