Question: Which costed more, the action film The Spy Who Loved Me or Forrest Gump (the one that received Academy Award for Best Director)?
Choices: Talk to Her
Curse of the Golden Flower
The Fifth Element
Rebecca
The Towering Inferno
A Prairie Home Companion
Pleasantville
The Hunchback of Notre Dame
Training Day
Forrest Gump
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Spy Who Loved Me" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } UNION { ?e <pred:name> "Forrest Gump" . ?e <award_received> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Director" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: action film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Spy Who Loved Me
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 4
inputs: award received
backward
function: Find
inputs: Forrest Gump
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
greater
Answer: Forrest Gump