Question: What is the series ordinal of Evolution (the one whose date of first performance is 1989-09-25m), which is a part of Star Trek: The Next Generation (the one that is followed by Star Trek: Deep Space Nine)?
Choices: 70
9
32
10
36
23
129
49
47
54
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Evolution" . ?e_1 <date_of_first_performance> ?pv . ?pv <pred:date> "1989-09-25"^^xsd:date . ?e_2 <pred:name> "Star Trek: The Next Generation" . ?e_3 <follows> ?e_2 . ?e_3 <pred:name> "Star Trek: Deep Space Nine" . ?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: Evolution
function: FilterDate
dependencies: 0
inputs: date of first performance
1989-09-25
=
function: Find
inputs: Star Trek: Deep Space Nine
function: Relate
dependencies: 2
inputs: follows
forward
function: Find
inputs: Star Trek: The Next Generation
function: And
dependencies: 3
4
function: QueryRelationQualifier
dependencies: 1
5
inputs: part of the series
series ordinal
Answer: 49