Question: How many male given names use the Dutch language that is the official language of Ghent?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 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> "Ghent" .   }
Program:
function: Find
inputs: Ghent
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: Count
dependencies: 5