Question: How many theatrical genres are there whose number of episodes is less than 160 or has Peter Tork as a cast member?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of episodes
160
<
function: FilterConcept
dependencies: 1
inputs: theatrical genre
function: Find
inputs: Peter Tork
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: theatrical genre
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "theatrical genre" .  { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "160"^^xsd:double ) .  } UNION { ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Peter Tork" .  } }
Answer: 2