Question: Which movie cost less to make, Shrek Forever After (the one whose composer is Harry Gregson-Williams) or Robin Hood (the one that has John Fiedler as a voice actor)?
Choices:
WALL·E
Peter Pan
Shrek Forever After
Beauty and the Beast
The Rescuers
Renaissance
Winnie the Pooh
Shrek 2
Robin Hood
Lilo & Stitch
Answer: Robin Hood
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shrek Forever After" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Harry Gregson-Williams" .   } UNION { ?e <pred:name> "Robin Hood" . ?e <voice_actor> ?e_2 . ?e_2 <pred:name> "John Fiedler" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Harry Gregson-Williams
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Shrek Forever After
function: And
dependencies: 1
2
function: Find
inputs: John Fiedler
function: Relate
dependencies: 4
inputs: voice actor
backward
function: Find
inputs: Robin Hood
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less