Question: How many television genres have more than 40 seasons or have less than 50 seasons?
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 genre" .  { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "40"^^xsd:double .  } UNION { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "50"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of seasons
40
=
function: FilterConcept
dependencies: 1
inputs: television genre
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of seasons
50
<
function: FilterConcept
dependencies: 4
inputs: television genre
function: Or
dependencies: 2
5
function: Count
dependencies: 6