Question: What film is a part of X-Men, the one that includes X2 as a part, (the series ordinal of this statement is 3)?
Choices:
X-Men: The Last Stand
The Fifth Element
The Towering Inferno
X-Men Origins: Wolverine
Training Day
Talk to Her
Pleasantville
X2
A Prairie Home Companion
X-Men
Program:
function: Find
inputs: X2
function: Relate
dependencies: 0
inputs: has part
backward
function: Find
inputs: X-Men
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of the series
backward
function: QFilterStr
dependencies: 4
inputs: series ordinal
3
function: FilterConcept
dependencies: 5
inputs: film
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <part_of_the_series> ?e_1 . ?e_1 <pred:name> "X-Men" . ?e_1 <has_part> ?e_2 . ?e_2 <pred:name> "X2" .  [ <pred:fact_h> ?e ; <pred:fact_r> <part_of_the_series> ; <pred:fact_t> ?e_1 ] <series_ordinal> ?qpv . ?qpv <pred:value> "3" .  }
Answer: X-Men: The Last Stand