Question: How many record labels either replaced the Alternative Tentacles or are Toby Keith's record label?
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> "record label" .  { ?e_1 <replaced_by> ?e . ?e_1 <pred:name> "Alternative Tentacles" .  } UNION { ?e_1 <record_label> ?e . ?e_1 <pred:name> "Toby Keith" .  } }
Program:
function: Find
inputs: Alternative Tentacles
function: Relate
dependencies: 0
inputs: replaced by
forward
function: FilterConcept
dependencies: 1
inputs: record label
function: Find
inputs: Toby Keith
function: Relate
dependencies: 3
inputs: record label
forward
function: FilterConcept
dependencies: 4
inputs: record label
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1