Question: How many ethnic groups have a diplomatic relation with Azerbaijan and use Polish?
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> "ethnic group" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Azerbaijan" .  ?e_2 <used_by> ?e . ?e_2 <pred:name> "Polish" .  }
Program:
function: Find
inputs: Azerbaijan
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 1
inputs: ethnic group
function: Find
inputs: Polish
function: Relate
dependencies: 3
inputs: used by
forward
function: FilterConcept
dependencies: 4
inputs: ethnic group
function: And
dependencies: 2
5
function: Count
dependencies: 6
Answer: 0