Question: How many media franchises are based on the musical The Little Mermaid or whose subreddit is dbz?
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> "media franchise" .  { ?e <based_on> ?e_1 . ?e_1 <pred:name> "The Little Mermaid" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "musical" .  } UNION { ?e <subreddit> ?pv . ?pv <pred:value> "dbz" .  } }
Program:
function: Find
inputs: musical
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Little Mermaid
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
backward
function: FilterConcept
dependencies: 4
inputs: media franchise
function: FindAll
function: FilterStr
dependencies: 6
inputs: subreddit
dbz
function: FilterConcept
dependencies: 7
inputs: media franchise
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2