Question: Does Troy (that has Julian Glover as a cast member) or Monty Python and the Holy Grail have the lower box office?
Choices:
The Towering Inferno
Troy
Training Day
A Prairie Home Companion
Monty Python and the Holy Grail
Rebecca
Pleasantville
Bram Stoker's Dracula
The Fifth Element
Talk to Her
Program:
function: Find
inputs: Julian Glover
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Troy
function: And
dependencies: 1
2
function: Find
inputs: Monty Python and the Holy Grail
function: SelectBetween
dependencies: 3
4
inputs: box office
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Troy" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Julian Glover" .   } UNION { ?e <pred:name> "Monty Python and the Holy Grail" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Monty Python and the Holy Grail