Question: In the category of movies based on literature, which film has the longest running time?
Choices:
The Parent Trap
The Three Musketeers
Bedknobs and Broomsticks
John Carter
The NeverEnding Story
Mary Poppins
Holes
Harry Potter and the Prisoner of Azkaban
Alice
Fiddler on the Roof
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: FilterConcept
dependencies: 1
inputs: feature film
function: SelectAmong
dependencies: 2
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Fiddler on the Roof