Question: How many forms of government are an ethnic group whose citizens of male gender are the german people?
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> "form of government" . ?e <ethnic_group> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "ethnic group" . ?e_1 <demonym> ?pv . ?pv <pred:value> "german" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <sex_or_gender> ?qpv . ?qpv <pred:value> "masculine" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
german
function: QFilterStr
dependencies: 1
inputs: sex or gender
masculine
function: FilterConcept
dependencies: 2
inputs: ethnic group
function: Relate
dependencies: 3
inputs: ethnic group
backward
function: FilterConcept
dependencies: 4
inputs: form of government
function: Count
dependencies: 5
Answer: 2