Question: What is the series ordinal of Purple Heart (the one whose publication date is 1997-08-08) is a part of Law & Order (the one whose start time is 1990-09-13)?
Choices:
64
8
17
109
151
35
21
32
24
70
Answer: 109
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Purple Heart" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1997-08-08"^^xsd:date . ?e_2 <pred:name> "Law & Order" . ?e_2 <start_time> ?pv_1 . ?pv_1 <pred:date> "1990-09-13"^^xsd:date . ?e_1 <part_of_the_series> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <part_of_the_series> ; <pred:fact_t> ?e_2 ] <series_ordinal> ?qpv .  }
Program:
function: Find
inputs: Purple Heart
function: FilterDate
dependencies: 0
inputs: publication date
1997-08-08
=
function: Find
inputs: Law & Order
function: FilterDate
dependencies: 2
inputs: start time
1990-09-13
=
function: QueryRelationQualifier
dependencies: 1
3
inputs: part of the series
series ordinal