Question: How many science fictions are the genre of Ben 10 (whose number of seasons is 4) or have subreddit steampunk?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "science fiction" .  { ?e <subreddit> ?pv . ?pv <pred:value> "steampunk" .  } UNION { ?e_1 <genre> ?e . ?e_1 <pred:name> "Ben 10" . ?e_1 <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "4"^^xsd:double .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: subreddit
steampunk
function: FilterConcept
dependencies: 1
inputs: science fiction
function: Find
inputs: Ben 10
function: FilterNum
dependencies: 3
inputs: number of seasons
4
=
function: Relate
dependencies: 4
inputs: genre
forward
function: FilterConcept
dependencies: 5
inputs: science fiction
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 2