Question: What number of states have a diplomatic relation with Norway and use euro as their currency?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Norway
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 1
inputs: state
function: Find
inputs: euro
function: Relate
dependencies: 3
inputs: currency
backward
function: FilterConcept
dependencies: 4
inputs: state
function: And
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Norway" .  ?e <currency> ?e_2 . ?e_2 <pred:name> "euro" .  }
Answer: 3