Question: What is the series number for Atonement that has Benjamin Bratt as a cast member and is a part of Law & Order (whose title is Law & Order)?
Choices:
12
51
42
129
43
19
77
38
36
7
Answer: 129
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Atonement" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Benjamin Bratt" . ?e_2 <pred:name> "Law & Order" . ?e_2 <title> ?pv . ?pv <pred:value> "Law & Order" . ?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: Benjamin Bratt
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Atonement
function: And
dependencies: 1
2
function: Find
inputs: Law & Order
function: FilterStr
dependencies: 4
inputs: title
Law & Order
function: QueryRelationQualifier
dependencies: 3
5
inputs: part of the series
series ordinal