Question: What is the series ordinal for Rules of Engagement (the one whose duration is 45 minute) which is a part of Star Trek: Deep Space Nine?
Choices:
13
90
23
16
46
171
32
5
77
24
Answer: 90
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Rules of Engagement" . ?e_1 <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> "45"^^xsd:double . ?e_2 <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: Rules of Engagement
function: FilterNum
dependencies: 0
inputs: duration
45 minute
=
function: Find
inputs: Star Trek: Deep Space Nine
function: QueryRelationQualifier
dependencies: 1
2
inputs: part of the series
series ordinal