Question: What is the number of comedies that has under 0 episodes or that has English as an original language.
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "comedy" .  { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "0"^^xsd:double ) .  } UNION { ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "English" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of episodes
0
<
function: FilterConcept
dependencies: 1
inputs: comedy
function: Find
inputs: English
function: Relate
dependencies: 3
inputs: original language of film or TV show
backward
function: FilterConcept
dependencies: 4
inputs: comedy
function: Or
dependencies: 2
5
function: Count
dependencies: 6