Question: How many fictional professions do we know that contain Spider-Man (the one that is developed by Atari) or whose subreddit is batman ?
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> "fictional profession" .  { ?e_1 <part_of_the_series> ?e . ?e_1 <pred:name> "Spider-Man" . ?e_1 <developer> ?e_2 . ?e_2 <pred:name> "Atari" .  } UNION { ?e <subreddit> ?pv . ?pv <pred:value> "batman" .  } }
Program:
function: Find
inputs: Atari
function: Relate
dependencies: 0
inputs: developer
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of the series
forward
function: FilterConcept
dependencies: 4
inputs: fictional profession
function: FindAll
function: FilterStr
dependencies: 6
inputs: subreddit
batman
function: FilterConcept
dependencies: 7
inputs: fictional profession
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2