Question: Does Toy Story (whose publication date is 1995-11-22) or Up (that was nominated for a Satellite Award for Best Animated or Mixed Media Feature) have the higher box office?
Choices:
The Rescuers
Beauty and the Beast
Renaissance
Peter Pan
Shrek 2
Lilo & Stitch
Winnie the Pooh
WALL·E
Up
Toy Story
Program:
function: Find
inputs: Toy Story
function: FilterDate
dependencies: 0
inputs: publication date
1995-11-22
=
function: Find
inputs: Satellite Award for Best Animated or Mixed Media Feature
function: Relate
dependencies: 2
inputs: nominated for
backward
function: Find
inputs: Up
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Toy Story" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1995-11-22"^^xsd:date . } UNION { ?e <pred:name> "Up" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Satellite Award for Best Animated or Mixed Media Feature" . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Up