Question: Among the feature films whose genre is adventure film,which one has the largest duration ?
Choices:
Back to the Future
Alice
John Carter
Ghostbusters
National Treasure
Robin Hood: Prince of Thieves
The Straight Story
The Sorcerer's Apprentice
Star Wars: Episode I – The Phantom Menace
Around the World in 80 Days
Answer: Robin Hood: Prince of Thieves
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" . ?e <genre> ?e_1 . ?e_1 <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: FilterConcept
dependencies: 1
inputs: feature film
function: SelectAmong
dependencies: 2
inputs: duration
largest