Question: How many regions of France have the INSEE region code 94 and belong to the country of France?
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> "region of France" . ?e <INSEE_region_code> ?pv . ?pv <pred:value> "94" . ?e <country> ?e_1 . ?e_1 <pred:name> "France" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: INSEE region code
94
function: FilterConcept
dependencies: 1
inputs: region of France
function: Find
inputs: France
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: region of France
function: And
dependencies: 2
5
function: Count
dependencies: 6