Question: How many military branches belong to United Kingdom or are officially named Royal Canadian Air Force ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "military branch" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } UNION { ?e <official_name> ?pv . ?pv <pred:value> "Royal Canadian Air Force" .  } }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: military branch
function: FindAll
function: FilterStr
dependencies: 3
inputs: official name
Royal Canadian Air Force
function: FilterConcept
dependencies: 4
inputs: military branch
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3