Question: How many ethnic groups include the ethnic group KRS-One or are in the country of Kazakhstan?
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 <ethnic_group> ?e . ?e_1 <pred:name> "KRS-One" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Kazakhstan" .  } }
Program:
function: Find
inputs: KRS-One
function: Relate
dependencies: 0
inputs: ethnic group
forward
function: FilterConcept
dependencies: 1
inputs: ethnic group
function: Find
inputs: Kazakhstan
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: ethnic group
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3