Question: Was there a bigger box office in Cinderella (the one that was nominated for Golden Lion) or Lilo & Stitch?
Choices:
The Rescuers
Cars
Aladdin
Beauty and the Beast
Shrek 2
WALL·E
Peter Pan
Cinderella
Lilo & Stitch
Renaissance
Program:
function: Find
inputs: Golden Lion
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Cinderella
function: And
dependencies: 1
2
function: Find
inputs: Lilo & Stitch
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cinderella" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Golden Lion" .   } UNION { ?e <pred:name> "Lilo & Stitch" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lilo & Stitch