Question: What is the number of television channels that are owned by the BBC or operate in the region called Tuvalu (whose motto is Tuvalu for the Almighty)?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television channel" .  { ?e <owned_by> ?e_1 . ?e_1 <pred:name> "BBC" .  } UNION { ?e <operating_area> ?e_1 . ?e_1 <pred:name> "Tuvalu" . ?e_1 <motto_text> ?pv . ?pv <pred:value> "Tuvalu for the Almighty" .  } }
Program:
function: Find
inputs: BBC
function: Relate
dependencies: 0
inputs: owned by
backward
function: FilterConcept
dependencies: 1
inputs: television channel
function: Find
inputs: Tuvalu
function: FilterStr
dependencies: 3
inputs: motto text
Tuvalu for the Almighty
function: Relate
dependencies: 4
inputs: operating area
backward
function: FilterConcept
dependencies: 5
inputs: television channel
function: Or
dependencies: 2
6
function: Count
dependencies: 7