Question: What is the series ordinal for The Offspring (the one that has Brent Spiner as a cast member) and is part of Star Trek: The Next Generation (the one that was nominated for Primetime Emmy Award for Outstanding Drama Series)?
Choices:
43
64
10
4
28
38
171
31
97
42
Answer: 64
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Offspring" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Brent Spiner" . ?e_2 <pred:name> "Star Trek: The Next Generation" . ?e_2 <nominated_for> ?e_4 . ?e_4 <pred:name> "Primetime Emmy Award for Outstanding Drama Series" . ?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: Brent Spiner
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Offspring
function: And
dependencies: 1
2
function: Find
inputs: Primetime Emmy Award for Outstanding Drama Series
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Star Trek: The Next Generation
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: part of the series
series ordinal