Question: What is the series ordinal of Purple Heart (the one that has LisaGay Hamilton as a cast member) as a part of Law & Order (the one that has Jerry Orbach as a cast member)?
Choices:
151
51
31
171
68
109
22
97
37
20
Answer: 109
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Purple Heart" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "LisaGay Hamilton" . ?e_2 <pred:name> "Law & Order" . ?e_2 <cast_member> ?e_4 . ?e_4 <pred:name> "Jerry Orbach" . ?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: LisaGay Hamilton
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Purple Heart
function: And
dependencies: 1
2
function: Find
inputs: Jerry Orbach
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Law & Order
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: part of the series
series ordinal