Question: Among the films with a Brooklyn (the one that is the residence of Paul Giamatti) narrative location, which one has the longest duration?
Choices:
Requiem for a Dream
Radio Days
The French Connection
Once Upon a Time in America
Moonstruck
Shortbus
Carnage
The Squid and the Whale
The Dictator
Brooklyn
Program:
function: Find
inputs: Paul Giamatti
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: Brooklyn
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: SelectAmong
dependencies: 5
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Brooklyn" . ?e_2 <residence> ?e_1 . ?e_2 <pred:name> "Paul Giamatti" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Once Upon a Time in America