Question: How many American football teams have their headquarters location in the United States city that is the narrative location of The Happening (which has Faye Dunaway as a cast member)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "American football team" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_3 <narrative_location> ?e_1 . ?e_3 <pred:name> "The Happening" . ?e_3 <cast_member> ?e_4 . ?e_4 <pred:name> "Faye Dunaway" .   }
Program:
function: Find
inputs: Faye Dunaway
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Happening
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: Relate
dependencies: 5
inputs: headquarters location
backward
function: FilterConcept
dependencies: 6
inputs: American football team
function: Count
dependencies: 7