Question: Savages, which includes David Zayas as a cast member is part of Law & Order, what is the original Law & Order that includes Chris Noth as a cast member?
Choices:
3
1
14
24
41
39
16
109
114
18
Answer: 114
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Savages" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "David Zayas" . ?e_2 <pred:name> "Law & Order" . ?e_2 <cast_member> ?e_4 . ?e_4 <pred:name> "Chris Noth" . ?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: David Zayas
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Savages
function: And
dependencies: 1
2
function: Find
inputs: Chris Noth
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