Question: How many former French regions share a border with Lorraine, INSEE code of 41?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "former French region" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Lorraine" . ?e_1 <INSEE_region_code> ?pv . ?pv <pred:value> "41" .   }
Program:
function: Find
inputs: Lorraine
function: FilterStr
dependencies: 0
inputs: INSEE region code
41
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: former French region
function: Count
dependencies: 3
Answer: 2