Question: How many unitary states whose ISO 3166-1 alpha-2 code is MT or that border North Macedonia?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "unitary state" .  { ?e <ISO_3166-1_alpha-2_code> ?pv . ?pv <pred:value> "MT" .  } UNION { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "North Macedonia" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISO 3166-1 alpha-2 code
MT
function: FilterConcept
dependencies: 1
inputs: unitary state
function: Find
inputs: North Macedonia
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: unitary state
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 4