Question: How many anime television series have fewer than 340 episodes or primarily depict Greek mythology?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "anime television series" .  { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "340"^^xsd:double ) .  } UNION { ?e <main_subject> ?e_1 . ?e_1 <pred:name> "Greek mythology" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of episodes
340
<
function: FilterConcept
dependencies: 1
inputs: anime television series
function: Find
inputs: Greek mythology
function: Relate
dependencies: 3
inputs: main subject
backward
function: FilterConcept
dependencies: 4
inputs: anime television series
function: Or
dependencies: 2
5
function: Count
dependencies: 6