Question: What teen film takes place in Nebraska, which shares its border with Iowa?
Choices:
Twilight
Up in the Air
Romeo + Juliet
Almost Famous
Juno
Terms of Endearment
Halloween
Nebraska
Hope Springs
Election
Program:
function: Find
inputs: Iowa
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Nebraska
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: Find
inputs: teen film
function: Relate
dependencies: 6
inputs: genre
backward
function: FilterConcept
dependencies: 7
inputs: visual artwork
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Nebraska" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Iowa" .  ?e <genre> ?e_3 . ?e_3 <pred:name> "teen film" .  }
Answer: Election