Question: How many capitals have citizens who are the Tehrani people or are the narrative location of The Longest Day?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" .  { ?e <demonym> ?pv . ?pv <pred:value> "Tehrani" .  } UNION { ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "The Longest Day" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
Tehrani
function: FilterConcept
dependencies: 1
inputs: capital
function: Find
inputs: The Longest Day
function: Relate
dependencies: 3
inputs: narrative location
forward
function: FilterConcept
dependencies: 4
inputs: capital
function: Or
dependencies: 2
5
function: Count
dependencies: 6