Question: How many Italian provinces include the administrative division Palermo or have the telephone area code 030?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Italy" .  { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Palermo" .  } UNION { ?e <local_dialing_code> ?pv . ?pv <pred:value> "030" .  } }
Program:
function: Find
inputs: Palermo
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: province of Italy
function: FindAll
function: FilterStr
dependencies: 3
inputs: local dialing code
030
function: FilterConcept
dependencies: 4
inputs: province of Italy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2