Question: What is the series ordinal of Johnny Mercer, who is on the Capitol Records record label and composed Robin Hood (which was published on 1973-11-08)?
Choices:
47
32
39
18
4
97
109
6
35
40
Answer: 4
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Robin Hood" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1973-11-08"^^xsd:date . ?e_2 <pred:name> "Johnny Mercer" . ?e_2 <record_label> ?e_3 . ?e_3 <pred:name> "Capitol Records" . ?e_1 <composer> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <composer> ; <pred:fact_t> ?e_2 ] <series_ordinal> ?qpv .  }
Program:
function: Find
inputs: Robin Hood
function: FilterDate
dependencies: 0
inputs: publication date
1973-11-08
=
function: Find
inputs: Capitol Records
function: Relate
dependencies: 2
inputs: record label
backward
function: Find
inputs: Johnny Mercer
function: And
dependencies: 3
4
function: QueryRelationQualifier
dependencies: 1
5
inputs: composer
series ordinal