Question: What is the series ordinal of Precious, which has S. Epatha Merkerson as a cast member and is a part of Law & Order (whose genre is legal drama)?
Choices: 42
35
26
2
25
95
29
1
23
12
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Precious" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "S. Epatha Merkerson" . ?e_2 <pred:name> "Law & Order" . ?e_2 <genre> ?e_4 . ?e_4 <pred:name> "legal drama" . ?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: S. Epatha Merkerson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Precious
function: And
dependencies: 1
2
function: Find
inputs: legal drama
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Law & Order
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: part of the series
series ordinal
Answer: 95