Question: How many towns are different from Falkirk (whose GSS code is S12000014 on 2011) or which shares border with Mississauga?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Falkirk
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
S12000014
function: Relate
dependencies: 1
inputs: different from
forward
function: FilterConcept
dependencies: 2
inputs: town
function: Find
inputs: Mississauga
function: Relate
dependencies: 4
inputs: shares border with
backward
function: FilterConcept
dependencies: 5
inputs: town
function: Or
dependencies: 3
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" .  { ?e_1 <different_from> ?e . ?e_1 <pred:name> "Falkirk" . ?e_1 <GSS_code_(2011)> ?pv . ?pv <pred:value> "S12000014" .  } UNION { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Mississauga" .  } }
Answer: 2