Question: Which cost less, Harry Potter and the Prisoner of Azkaban starring Richard Griffiths or Last Action Hero?
Choices:
The Muppets
Holes
G-Force
Last Action Hero
John Carter
Old Dogs
The Flintstones in Viva Rock Vegas
Harry Potter and the Prisoner of Azkaban
National Treasure: Book of Secrets
Alvin and the Chipmunks: Chipwrecked
Answer: Last Action Hero
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Harry Potter and the Prisoner of Azkaban" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Richard Griffiths" .   } UNION { ?e <pred:name> "Last Action Hero" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Richard Griffiths
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Prisoner of Azkaban
function: And
dependencies: 1
2
function: Find
inputs: Last Action Hero
function: SelectBetween
dependencies: 3
4
inputs: cost
less