Question: Which has less cost, Wallace & Gromit: The Curse of the Were-Rabbit directed by Nick Park or Back to the Future Part III?
Choices:
Back to the Future Part III
Old Dogs
National Treasure: Book of Secrets
Wallace & Gromit: The Curse of the Were-Rabbit
The Flintstones
Holes
The Flintstones in Viva Rock Vegas
John Carter
G-Force
The Muppets
Answer: Wallace & Gromit: The Curse of the Were-Rabbit
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wallace & Gromit: The Curse of the Were-Rabbit" . ?e <director> ?e_1 . ?e_1 <pred:name> "Nick Park" .   } UNION { ?e <pred:name> "Back to the Future Part III" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Nick Park
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Wallace & Gromit: The Curse of the Were-Rabbit
function: And
dependencies: 1
2
function: Find
inputs: Back to the Future Part III
function: SelectBetween
dependencies: 3
4
inputs: cost
less