Question: What's the number of albums that follow Kentucky (that has Walter Brennan as a cast member) or that was published after 1979
Choices:
14
15
16
17
18
19
20
21
22
23
Answer: 14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "album" .  { ?e <follows> ?e_1 . ?e_1 <pred:name> "Kentucky" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Walter Brennan" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1979 ) .  } }
Program:
function: Find
inputs: Walter Brennan
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Kentucky
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: follows
backward
function: FilterConcept
dependencies: 4
inputs: album
function: FindAll
function: FilterYear
dependencies: 6
inputs: publication date
1979
>
function: FilterConcept
dependencies: 7
inputs: album
function: Or
dependencies: 5
8
function: Count
dependencies: 9