Question: How many wars included Brittany, which occupies 34022 square km, or concluded prior to 1924?
Choices: 17
18
19
20
21
22
23
24
25
26
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "war" .  { ?e_1 <part_of> ?e . ?e_1 <pred:name> "Brittany" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "34022"^^xsd:double .  } UNION { ?e <end_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1924 ) .  } }
Program:
function: Find
inputs: Brittany
function: FilterNum
dependencies: 0
inputs: area
34022 square kilometre
=
function: Relate
dependencies: 1
inputs: part of
forward
function: FilterConcept
dependencies: 2
inputs: war
function: FindAll
function: FilterYear
dependencies: 4
inputs: end time
1924
<
function: FilterConcept
dependencies: 5
inputs: war
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 22