Question: Count the natural languages that have the country of Iran and that use the language that is used in Australia (which has a gs1 country code of 931)
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> "natural language" . ?e <country> ?e_1 . ?e_1 <pred:name> "Iran" .  ?e_2 <language_used> ?e . ?e_2 <pred:name> "Australia" . ?e_2 <GS1_country_code> ?pv . ?pv <pred:value> "931" .  }
Program:
function: Find
inputs: Iran
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: natural language
function: Find
inputs: Australia
function: FilterStr
dependencies: 3
inputs: GS1 country code
931
function: Relate
dependencies: 4
inputs: language used
forward
function: FilterConcept
dependencies: 5
inputs: natural language
function: And
dependencies: 2
6
function: Count
dependencies: 7
Answer: 1