Question: What is the series ordinal of  Genesis (the one whose script is wrote by Brannon Braga) which is a part of  Genesis (the one whose script is wrote by Brannon Braga)?
Choices:
45
171
19
14
5
114
33
95
4
90
Answer: 171
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Genesis" . ?e_1 <screenwriter> ?e_3 . ?e_3 <pred:name> "Brannon Braga" . ?e_2 <pred:name> "Star Trek: The Next Generation" . ?e_2 <cast_member> ?e_4 . ?e_4 <pred:name> "Colm Meaney" . ?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: Brannon Braga
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Genesis
function: And
dependencies: 1
2
function: Find
inputs: Colm Meaney
function: Relate
dependencies: 4
inputs: cast member
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