Question: How many languages whose IETF language tag is ar or whose writing system is Arabic alphabet?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "language" .  { ?e <IETF_language_tag> ?pv . ?pv <pred:value> "ar" .  } UNION { ?e <writing_system> ?e_1 . ?e_1 <pred:name> "Arabic alphabet" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: IETF language tag
ar
function: FilterConcept
dependencies: 1
inputs: language
function: Find
inputs: Arabic alphabet
function: Relate
dependencies: 3
inputs: writing system
backward
function: FilterConcept
dependencies: 4
inputs: language
function: Or
dependencies: 2
5
function: Count
dependencies: 6