Question: Of movies scripted by US citizen Peter Berg, which is shortest?
Choices:
The Towering Inferno
Pleasantville
Rebecca
Training Day
Curse of the Golden Flower
Friday Night Lights
Very Bad Things
A Prairie Home Companion
Talk to Her
The Losers
Answer: The Losers
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Peter Berg" . ?e_1 <country_of_citizenship> ?e_2 . ?e_2 <pred:name> "United States of America" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Peter Berg
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: screenwriter
backward
function: FilterConcept
dependencies: 4
inputs: film
function: SelectAmong
dependencies: 5
inputs: duration
smallest