Question: Which of the animated feature films that describe the fictional universe of Shrek (the one whose distributor is DreamWorks) has the largest cost?
Choices:
Winnie the Pooh
Puss in Boots
Aladdin
Beauty and the Beast
WALL·E
Shrek 2
Renaissance
Shrek the Third
Shrek Forever After
The Rescuers
Answer: Shrek Forever After
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated feature film" . ?e_1 <fictional_universe_described_in> ?e . ?e_1 <pred:name> "Shrek" . ?e_1 <distributor> ?e_2 . ?e_2 <pred:name> "DreamWorks" .  ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: DreamWorks
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Shrek
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: fictional universe described in
forward
function: FilterConcept
dependencies: 4
inputs: animated feature film
function: SelectAmong
dependencies: 5
inputs: cost
largest