Question: Which movie made less at the box office, Sleepers or Flight (the one that has Bruce Greenwood as a cast member)?
Choices:
Sleepers
A Prairie Home Companion
Curse of the Golden Flower
Training Day
The Hunchback of Notre Dame
Flight
The Towering Inferno
Talk to Her
Rebecca
The Fifth Element
Program:
function: Find
inputs: Sleepers
function: Find
inputs: Bruce Greenwood
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Flight
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sleepers" .  } UNION { ?e <pred:name> "Flight" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Bruce Greenwood" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Flight