Question: How many ethnic groups have a demonym of armeancă or that have diplomatic relations with Iran?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ethnic group" .  { ?e <demonym> ?pv . ?pv <pred:value> "armeancă" .  } UNION { ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Iran" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
armeancă
function: FilterConcept
dependencies: 1
inputs: ethnic group
function: Find
inputs: Iran
function: Relate
dependencies: 3
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 4
inputs: ethnic group
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2