Question: Of films with Warren Beatty as scriptwriter, which is the longest?
Choices:
Heaven Can Wait
Pleasantville
Bulworth
Training Day
Rebecca
Talk to Her
A Prairie Home Companion
Reds
The Fifth Element
Love Affair
Answer: Reds
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Warren Beatty" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Warren Beatty
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: FilterConcept
dependencies: 1
inputs: film
function: SelectAmong
dependencies: 2
inputs: duration
largest