Question: How many regions of Italy have an ISO 3166-2 code of IT-78 or includes Trieste?
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 <ISO_3166-2_code> ?pv . ?pv <pred:value> "IT-78" .  } UNION { ?e_1 <part_of> ?e . ?e_1 <pred:name> "Trieste" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
IT-78
function: FilterConcept
dependencies: 1
inputs: region of Italy
function: Find
inputs: Trieste
function: Relate
dependencies: 3
inputs: part of
forward
function: FilterConcept
dependencies: 4
inputs: region of Italy
function: Or
dependencies: 2
5
function: Count
dependencies: 6