Question: What is the number of record labels that come from England (the one having a military conflict with Kingdom of Scotland) or that has Germany as the country.
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "record label" .  { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "England" . ?e_2 <military_conflicts> ?e_1 . ?e_2 <pred:name> "Kingdom of Scotland" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Germany" .  } }
Program:
function: Find
inputs: Kingdom of Scotland
function: Relate
dependencies: 0
inputs: military conflicts
forward
function: Find
inputs: England
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country of origin
backward
function: FilterConcept
dependencies: 4
inputs: record label
function: Find
inputs: Germany
function: Relate
dependencies: 6
inputs: country
backward
function: FilterConcept
dependencies: 7
inputs: record label
function: Or
dependencies: 5
8
function: Count
dependencies: 9