Question: What number of rock bands for the performer of Yellow submarine its duration is 2412 seconds or that is famous for garage rock?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Yellow Submarine
function: FilterNum
dependencies: 0
inputs: duration
2412 second
=
function: Relate
dependencies: 1
inputs: performer
forward
function: FilterConcept
dependencies: 2
inputs: rock band
function: Find
inputs: garage rock
function: Relate
dependencies: 4
inputs: famous people
forward
function: FilterConcept
dependencies: 5
inputs: rock band
function: Or
dependencies: 3
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "rock band" .  { ?e_1 <performer> ?e . ?e_1 <pred:name> "Yellow Submarine" . ?e_1 <duration> ?pv . ?pv <pred:unit> "second" . ?pv <pred:value> "2412"^^xsd:double .  } UNION { ?e_1 <famous_people> ?e . ?e_1 <pred:name> "garage rock" .  } }
Answer: 5