Question: What is the number of towns that are different from Falkirk (whose FIPS 10-4 (countries and regions) is UKU9) or have the local dialing code 01704?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: Falkirk
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
UKU9
function: Relate
dependencies: 1
inputs: different from
backward
function: FilterConcept
dependencies: 2
inputs: town
function: FindAll
function: FilterStr
dependencies: 4
inputs: local dialing code
01704
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 <different_from> ?e_1 . ?e_1 <pred:name> "Falkirk" . ?e_1 <FIPS_10-4_(countries_and_regions)> ?pv . ?pv <pred:value> "UKU9" .  } UNION { ?e <local_dialing_code> ?pv . ?pv <pred:value> "01704" .  } }
Answer: 2