Question: How many language families include the official language of Montenegro or Herbert Hoover's tongue?
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> "language family" .  { ?e_1 <official_language> ?e . ?e_1 <pred:name> "Montenegro" .  } UNION { ?e_1 <languages_spoken,_written_or_signed> ?e . ?e_1 <pred:name> "Herbert Hoover" .  } }
Program:
function: Find
inputs: Montenegro
function: Relate
dependencies: 0
inputs: official language
forward
function: FilterConcept
dependencies: 1
inputs: language family
function: Find
inputs: Herbert Hoover
function: Relate
dependencies: 3
inputs: languages spoken, written or signed
forward
function: FilterConcept
dependencies: 4
inputs: language family
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2