Question: How many musical compositions are derived from The Sorcerer's Apprentice (the one whose producer is Jerry Bruckheimer) or have the first line Out on the wiley, windy moors?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: Jerry Bruckheimer
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Sorcerer's Apprentice
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: FilterConcept
dependencies: 4
inputs: musical composition
function: FindAll
function: FilterStr
dependencies: 6
inputs: first line
Out on the wiley, windy moors
function: FilterConcept
dependencies: 7
inputs: musical composition
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "musical composition" .  { ?e_1 <based_on> ?e . ?e_1 <pred:name> "The Sorcerer's Apprentice" . ?e_1 <producer> ?e_2 . ?e_2 <pred:name> "Jerry Bruckheimer" .  } UNION { ?e <first_line> ?pv . ?pv <pred:value> "Out on the wiley, windy moors" .  } }
Answer: 2