Question: How many punk rock entities share the genre of Hayley Williams or Morrissey?
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> "punk rock" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "Hayley Williams" .  } UNION { ?e_1 <genre> ?e . ?e_1 <pred:name> "Morrissey" .  } }
Program:
function: Find
inputs: Hayley Williams
function: Relate
dependencies: 0
inputs: genre
forward
function: FilterConcept
dependencies: 1
inputs: punk rock
function: Find
inputs: Morrissey
function: Relate
dependencies: 3
inputs: genre
forward
function: FilterConcept
dependencies: 4
inputs: punk rock
function: Or
dependencies: 2
5
function: Count
dependencies: 6