Question: Which one is more expensive, The Little Mermaid (the one whose genre is musical) or Hercules (the one that has Gary Rydstrom as a crew member) ?
Choices:
Winnie the Pooh
WALL·E
Shrek 2
Hercules
Aladdin
Lilo & Stitch
The Rescuers
Renaissance
The Little Mermaid
Beauty and the Beast
Program:
function: Find
inputs: musical
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Little Mermaid
function: And
dependencies: 1
2
function: Find
inputs: Gary Rydstrom
function: Relate
dependencies: 4
inputs: film crew member
backward
function: Find
inputs: Hercules
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Little Mermaid" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical" .   } UNION { ?e <pred:name> "Hercules" . ?e <film_crew_member> ?e_2 . ?e_2 <pred:name> "Gary Rydstrom" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hercules