Question: How many newscasts have a number of seasons greater than 30 or are in the genre newscast?
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> "newscast" .  { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "30"^^xsd:double ) .  } UNION { ?e <genre> ?e_1 . ?e_1 <pred:name> "newscast" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of seasons
30
>
function: FilterConcept
dependencies: 1
inputs: newscast
function: Find
inputs: newscast
function: Relate
dependencies: 3
inputs: genre
backward
function: FilterConcept
dependencies: 4
inputs: newscast
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2