Question: How many film series are a part of Star Wars whose subreddit is StarWars or whose genre is children's film?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film series" .  { ?e_1 <has_part> ?e . ?e_1 <pred:name> "Star Wars" . ?e_1 <subreddit> ?pv . ?pv <pred:value> "StarWars" .  } UNION { ?e <genre> ?e_1 . ?e_1 <pred:name> "children's film" .  } }
Program:
function: Find
inputs: Star Wars
function: FilterStr
dependencies: 0
inputs: subreddit
StarWars
function: Relate
dependencies: 1
inputs: has part
forward
function: FilterConcept
dependencies: 2
inputs: film series
function: Find
inputs: children's film
function: Relate
dependencies: 4
inputs: genre
backward
function: FilterConcept
dependencies: 5
inputs: film series
function: Or
dependencies: 3
6
function: Count
dependencies: 7