Question: Which movie earned less at the box office, Forrest Gump (the one whose release region is Portugal) or Melancholia (the one that has Udo Kier as a cast member)?
Choices:
The Fifth Element
The Hunchback of Notre Dame
Curse of the Golden Flower
Forrest Gump
Pleasantville
Talk to Her
Melancholia
A Prairie Home Companion
Rebecca
Training Day
Answer: Melancholia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Forrest Gump" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Portugal" .   } UNION { ?e <pred:name> "Melancholia" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Udo Kier" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Portugal
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Forrest Gump
function: And
dependencies: 1
2
function: Find
inputs: Udo Kier
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Melancholia
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
less