Question: Which is longest of the movies that inspired the adventure film Logan?
Choices:
Pleasantville
Training Day
The Wrestler
Rebecca
Little Miss Sunshine
Curse of the Golden Flower
The Towering Inferno
Shane
The Fifth Element
A Prairie Home Companion
Answer: Shane
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e_1 <inspired_by> ?e . ?e_1 <pred:name> "Logan" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "adventure film" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: adventure film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Logan
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: inspired by
forward
function: FilterConcept
dependencies: 4
inputs: film
function: SelectAmong
dependencies: 5
inputs: duration
largest