Question: What are the number of anime television series that use the language Japanese or whose number of seasons is less than 30 ?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "anime television series" .  { ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "Japanese" .  } UNION { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "30"^^xsd:double ) .  } }
Program:
function: Find
inputs: Japanese
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: FilterConcept
dependencies: 1
inputs: anime television series
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of seasons
30
<
function: FilterConcept
dependencies: 4
inputs: anime television series
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 10