Question: How many masculine first names are in Dutch, official language of the Union of South Africa, or correspond to Soundex H200?
Choices:
7
8
9
10
11
12
13
14
15
16
Program:
function: Find
inputs: Union of South Africa
function: Relate
dependencies: 0
inputs: official language
forward
function: Find
inputs: Dutch
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: language of work or name
backward
function: FilterConcept
dependencies: 4
inputs: male given name
function: FindAll
function: FilterStr
dependencies: 6
inputs: Soundex
H200
function: FilterConcept
dependencies: 7
inputs: male given name
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "male given name" .  { ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "Dutch" . ?e_2 <official_language> ?e_1 . ?e_2 <pred:name> "Union of South Africa" .  } UNION { ?e <Soundex> ?pv . ?pv <pred:value> "H200" .  } }
Answer: 9