Question: How many comedies either have Michael Nesmith as a cast member or are titled The Golden Girls?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Michael Nesmith
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: comedy
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
The Golden Girls
function: FilterConcept
dependencies: 4
inputs: comedy
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> "comedy" .  { ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Michael Nesmith" .  } UNION { ?e <title> ?pv . ?pv <pred:value> "The Golden Girls" .  } }
Answer: 2