Question: Tell me the number of albums entitled Dynasty or that has Ramones (which got a Grammy Lifetime Achievement Award) as a performer.
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "album" .  { ?e <title> ?pv . ?pv <pred:value> "Dynasty" .  } UNION { ?e <performer> ?e_1 . ?e_1 <pred:name> "Ramones" . ?e_1 <award_received> ?e_2 . ?e_2 <pred:name> "Grammy Lifetime Achievement Award" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
Dynasty
function: FilterConcept
dependencies: 1
inputs: album
function: Find
inputs: Grammy Lifetime Achievement Award
function: Relate
dependencies: 3
inputs: award received
backward
function: Find
inputs: Ramones
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: performer
backward
function: FilterConcept
dependencies: 7
inputs: album
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2