Question: How many cable channels belong to a sovereign state which is the country of Twister's origin (the one published on 1st Jan 1989) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "cable channel" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country_of_origin> ?e_1 . ?e_2 <pred:name> "Twister" . ?e_2 <publication_date> ?pv . ?pv <pred:date> "1989-01-01"^^xsd:date .   }
Program:
function: Find
inputs: Twister
function: FilterDate
dependencies: 0
inputs: publication date
1989-01-01
=
function: Relate
dependencies: 1
inputs: country of origin
forward
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: cable channel
function: Count
dependencies: 5