Question: London, local telephone code 20, is headquarters of how many independent record labels?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent record label" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "London" . ?e_1 <local_dialing_code> ?pv . ?pv <pred:value> "20" .   }
Program:
function: Find
inputs: London
function: FilterStr
dependencies: 0
inputs: local dialing code
20
function: Relate
dependencies: 1
inputs: headquarters location
backward
function: FilterConcept
dependencies: 2
inputs: independent record label
function: Count
dependencies: 3