Question: How many regions of Italy have citizens who are the campani people or are the location of the Second Punic War?
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> "region of Italy" .  { ?e <demonym> ?pv . ?pv <pred:value> "campani" .  } UNION { ?e_1 <location> ?e . ?e_1 <pred:name> "Second Punic War" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
campani
function: FilterConcept
dependencies: 1
inputs: region of Italy
function: Find
inputs: Second Punic War
function: Relate
dependencies: 3
inputs: location
forward
function: FilterConcept
dependencies: 4
inputs: region of Italy
function: Or
dependencies: 2
5
function: Count
dependencies: 6