Question: How many theatrical genres are the situation-comedy genre or have Betty White as a cast member?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: situation comedy
function: Relate
dependencies: 0
inputs: genre
backward
function: FilterConcept
dependencies: 1
inputs: theatrical genre
function: Find
inputs: Betty White
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: theatrical genre
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "theatrical genre" .  { ?e <genre> ?e_1 . ?e_1 <pred:name> "situation comedy" .  } UNION { ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Betty White" .  } }
Answer: 3