Question: For Star Trek: The Next Generation (the one that has LeVar Burton as a cast member), what is the series ordinal for the part of The Host (the one whose duration is 45 minute)?
Choices:
97
129
42
26
33
19
40
37
16
95
Answer: 97
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Host" . ?e_1 <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> "45"^^xsd:double . ?e_2 <pred:name> "Star Trek: The Next Generation" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "LeVar Burton" . ?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: The Host
function: FilterNum
dependencies: 0
inputs: duration
45 minute
=
function: Find
inputs: LeVar Burton
function: Relate
dependencies: 2
inputs: cast member
backward
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