Question: How many songs do we know that are the theme music of Intolerable Cruelty , or contain lyrics written by Neil Young (the one that has the record label Atco Records)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "song" .  { ?e_1 <theme_music> ?e . ?e_1 <pred:name> "Intolerable Cruelty" .  } UNION { ?e <lyrics_by> ?e_1 . ?e_1 <pred:name> "Neil Young" . ?e_1 <record_label> ?e_2 . ?e_2 <pred:name> "Atco Records" .  } }
Program:
function: Find
inputs: Intolerable Cruelty
function: Relate
dependencies: 0
inputs: theme music
forward
function: FilterConcept
dependencies: 1
inputs: song
function: Find
inputs: Atco Records
function: Relate
dependencies: 3
inputs: record label
backward
function: Find
inputs: Neil Young
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: lyrics by
backward
function: FilterConcept
dependencies: 7
inputs: song
function: Or
dependencies: 2
8
function: Count
dependencies: 9