Question: Which one, Cinderella (the one that was nominated for Academy Award for Best Original Song) or The Lorax (the one that has Betty White as a voice actor), has less box office?
Choices:
Beauty and the Beast
Winnie the Pooh
Renaissance
Shrek 2
The Lorax
WALL·E
Cinderella
The Rescuers
Lilo & Stitch
Aladdin
Answer: Cinderella
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cinderella" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Original Song" .   } UNION { ?e <pred:name> "The Lorax" . ?e <voice_actor> ?e_2 . ?e_2 <pred:name> "Betty White" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Academy Award for Best Original Song
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Cinderella
function: And
dependencies: 1
2
function: Find
inputs: Betty White
function: Relate
dependencies: 4
inputs: voice actor
backward
function: Find
inputs: The Lorax
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
less