Question: How many musicals have David A. Stewart as a cast member or whose date of first performance is not in 1996?
Choices:
6
7
8
9
10
11
12
13
14
15
Program:
function: Find
inputs: David A. Stewart
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: musical
function: FindAll
function: FilterYear
dependencies: 3
inputs: date of first performance
1996
!=
function: FilterConcept
dependencies: 4
inputs: musical
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> "musical" .  { ?e <cast_member> ?e_1 . ?e_1 <pred:name> "David A. Stewart" .  } UNION { ?e <date_of_first_performance> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1996 ) .  } }
Answer: 9