Question: What is the series ordinal of Genesis (that originates in the United States of America) that is a part of Star Trek: The Next Generation (whose number of episodes is 178)?
Choices:
53
16
171
7
24
109
64
90
119
1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Genesis
function: And
dependencies: 1
2
function: Find
inputs: Star Trek: The Next Generation
function: FilterNum
dependencies: 4
inputs: number of episodes
178
=
function: QueryRelationQualifier
dependencies: 3
5
inputs: part of the series
series ordinal
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Genesis" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "United States of America" . ?e_2 <pred:name> "Star Trek: The Next Generation" . ?e_2 <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "178"^^xsd:double . ?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 .  }
Answer: 171