Question: How many former French regions have a country with the form of government whose demonym is francesa (the involved part of this statement is feminine)?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "former French region" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "form of government" . ?e_1 <demonym> ?pv . ?pv <pred:value> "francesa" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv . ?qpv <pred:value> "feminine" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
francesa
function: QFilterStr
dependencies: 1
inputs: applies to part
feminine
function: FilterConcept
dependencies: 2
inputs: form of government
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: former French region
function: Count
dependencies: 5