Question: How many towns are located in Solihull (the one whose FIPS 10-4 (countries and regions) is UKM2) or contain St George's Chapel?
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> "town" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Solihull" . ?e_1 <FIPS_10-4_(countries_and_regions)> ?pv . ?pv <pred:value> "UKM2" .  } UNION { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "St George's Chapel" .  } }
Program:
function: Find
inputs: Solihull
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
UKM2
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: town
function: Find
inputs: St George's Chapel
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 5
inputs: town
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2