Question: How many comedies have less than 60 seasons or whose subreddit is theGoldenGirls?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "comedy" .  { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "60"^^xsd:double ) .  } UNION { ?e <subreddit> ?pv . ?pv <pred:value> "theGoldenGirls" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of seasons
60
<
function: FilterConcept
dependencies: 1
inputs: comedy
function: FindAll
function: FilterStr
dependencies: 3
inputs: subreddit
theGoldenGirls
function: FilterConcept
dependencies: 4
inputs: comedy
function: Or
dependencies: 2
5
function: Count
dependencies: 6