Question: How many studio albums have The Beatles whose CANTIC-ID is a10386555 as a performer or that publishes in the United Kingdom?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "studio album" .  { ?e <performer> ?e_1 . ?e_1 <pred:name> "The Beatles" . ?e_1 <CANTIC-ID> ?pv . ?pv <pred:value> "a10386555" .  } UNION { ?e <place_of_publication> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } }
Program:
function: Find
inputs: The Beatles
function: FilterStr
dependencies: 0
inputs: CANTIC-ID
a10386555
function: Relate
dependencies: 1
inputs: performer
backward
function: FilterConcept
dependencies: 2
inputs: studio album
function: Find
inputs: United Kingdom
function: Relate
dependencies: 4
inputs: place of publication
backward
function: FilterConcept
dependencies: 5
inputs: studio album
function: Or
dependencies: 3
6
function: Count
dependencies: 7