Question: What is the number of historical countries that use French as the official language or claim the region of West Germany?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" .  { ?e <official_language> ?e_1 . ?e_1 <pred:name> "French" .  } UNION { ?e <territory_claimed_by> ?e_1 . ?e_1 <pred:name> "West Germany" .  } }
Program:
function: Find
inputs: French
function: Relate
dependencies: 0
inputs: official language
backward
function: FilterConcept
dependencies: 1
inputs: historical country
function: Find
inputs: West Germany
function: Relate
dependencies: 3
inputs: territory claimed by
backward
function: FilterConcept
dependencies: 4
inputs: historical country
function: Or
dependencies: 2
5
function: Count
dependencies: 6