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