Question: How many former French territories are an administrative division of France and share a border with Champagne-Ardenne?
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> "former French region" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "France" .  ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "Champagne-Ardenne" .  }
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: former French region
function: Find
inputs: Champagne-Ardenne
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: former French region
function: And
dependencies: 2
5
function: Count
dependencies: 6