Question: For Cinderella (the one whose publication date is 2015-03-19), what is the series ordinal for Helena Bonham Carter as a cast member?
Choices:
41
28
9
22
17
15
114
4
70
3
Answer: 4
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Cinderella" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "2015-03-19"^^xsd:date . ?e_2 <pred:name> "Helena Bonham Carter" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <series_ordinal> ?qpv .  }
Program:
function: Find
inputs: Cinderella
function: FilterDate
dependencies: 0
inputs: publication date
2015-03-19
=
function: Find
inputs: Helena Bonham Carter
function: QueryRelationQualifier
dependencies: 1
2
inputs: cast member
series ordinal