Question: Was E.T. the Extra-Terrestrial or Contact, with Rob Lowe as a cast member, more expensive to make?
Choices:
Talk to Her
Contact
Pleasantville
A Prairie Home Companion
Rebecca
Training Day
The Fifth Element
E.T. the Extra-Terrestrial
The Towering Inferno
Curse of the Golden Flower
Program:
function: Find
inputs: E.T. the Extra-Terrestrial
function: Find
inputs: Rob Lowe
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Contact
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "E.T. the Extra-Terrestrial" .  } UNION { ?e <pred:name> "Contact" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Rob Lowe" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Contact