Question: How many musicals are popular works by Andrew Lloyd Webber or debuted earlier than 1986?
Choices: 7
8
9
10
11
12
13
14
15
16
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "musical" .  { ?e_1 <notable_work> ?e . ?e_1 <pred:name> "Andrew Lloyd Webber" .  } UNION { ?e <date_of_first_performance> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1986 ) .  } }
Program:
function: Find
inputs: Andrew Lloyd Webber
function: Relate
dependencies: 0
inputs: notable work
forward
function: FilterConcept
dependencies: 1
inputs: musical
function: FindAll
function: FilterYear
dependencies: 3
inputs: date of first performance
1986
<
function: FilterConcept
dependencies: 4
inputs: musical
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 7