Question: How many states of Germany are an administrative division of the republic whose feminine demonym is alemã?
Choices: 4
5
6
7
8
9
10
11
12
13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of Germany" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "republic" . ?e_1 <demonym> ?pv . ?pv <pred:value> "alemã" . [ <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
alemã
function: QFilterStr
dependencies: 1
inputs: applies to part
feminine
function: FilterConcept
dependencies: 2
inputs: republic
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: state of Germany
function: Count
dependencies: 5
Answer: 12