Question: How many London areas have the United Kingdom as a country and an OS grid reference of TQ385755?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "area of London" . ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  ?e <OS_grid_reference> ?pv . ?pv <pred:value> "TQ385755" .  }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: area of London
function: FindAll
function: FilterStr
dependencies: 3
inputs: OS grid reference
TQ385755
function: FilterConcept
dependencies: 4
inputs: area of London
function: And
dependencies: 2
5
function: Count
dependencies: 6