Question: Which film featuring the character John F. Kennedy has the shortest runtime?
Choices:
Forrest Gump
Rebecca
Talk to Her
The Hunchback of Notre Dame
A Prairie Home Companion
Curse of the Golden Flower
The Fifth Element
Pleasantville
Thirteen Days
Training Day
Program:
function: Find
inputs: John F. Kennedy
function: Relate
dependencies: 0
inputs: characters
backward
function: FilterConcept
dependencies: 1
inputs: film
function: SelectAmong
dependencies: 2
inputs: duration
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <characters> ?e_1 . ?e_1 <pred:name> "John F. Kennedy" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Forrest Gump