Question: How many comunes of Italy are in the country of the Kingdom of Italy (which is the country of Ravenna) or are the headquarters location of A.C. Cesena?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Ravenna
function: Relate
dependencies: 0
inputs: country
forward
function: Find
inputs: Kingdom of Italy
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: comune of Italy
function: Find
inputs: A.C. Cesena
function: Relate
dependencies: 6
inputs: headquarters location
forward
function: FilterConcept
dependencies: 7
inputs: comune of Italy
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "comune of Italy" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "Kingdom of Italy" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Ravenna" .  } UNION { ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "A.C. Cesena" .  } }
Answer: 2