Question: How many capitals have the local area code 10 and use the Canadian dollar as their currency?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" . ?e <local_dialing_code> ?pv . ?pv <pred:value> "10" . ?e <currency> ?e_1 . ?e_1 <pred:name> "Canadian dollar" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
10
function: FilterConcept
dependencies: 1
inputs: capital
function: Find
inputs: Canadian dollar
function: Relate
dependencies: 3
inputs: currency
backward
function: FilterConcept
dependencies: 4
inputs: capital
function: And
dependencies: 2
5
function: Count
dependencies: 6