Question: How many natural languages have the Glottolog code of thai1261 or have the language used by The Road (the one that uses the language American English)?
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 <Glottolog_code> ?pv . ?pv <pred:value> "thai1261" .  } UNION { ?e_1 <language_of_work_or_name> ?e . ?e_1 <pred:name> "The Road" . ?e_1 <language_of_work_or_name> ?e_2 . ?e_2 <pred:name> "American English" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Glottolog code
thai1261
function: FilterConcept
dependencies: 1
inputs: natural language
function: Find
inputs: American English
function: Relate
dependencies: 3
inputs: language of work or name
backward
function: Find
inputs: The Road
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: language of work or name
forward
function: FilterConcept
dependencies: 7
inputs: natural language
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2