Question: How many studio albums are in the folk rock genre or are produced by Rock and Roll Hall of Famer George Martin?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "studio album" .  { ?e <genre> ?e_1 . ?e_1 <pred:name> "folk rock" .  } UNION { ?e <producer> ?e_1 . ?e_1 <pred:name> "George Martin" . ?e_1 <award_received> ?e_2 . ?e_2 <pred:name> "Rock and Roll Hall of Fame" .  } }
Program:
function: Find
inputs: folk rock
function: Relate
dependencies: 0
inputs: genre
backward
function: FilterConcept
dependencies: 1
inputs: studio album
function: Find
inputs: Rock and Roll Hall of Fame
function: Relate
dependencies: 3
inputs: award received
backward
function: Find
inputs: George Martin
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: producer
backward
function: FilterConcept
dependencies: 7
inputs: studio album
function: Or
dependencies: 2
8
function: Count
dependencies: 9