Question: How many former French regions are contained within the democratic country to which Martinique belongs?
Choices:
9
10
11
12
13
14
15
16
17
18
Answer: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "former French region" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "democracy" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Martinique" .   }
Program:
function: Find
inputs: Martinique
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: democracy
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 3
inputs: former French region
function: Count
dependencies: 4