Question: What television show is The Wire season 5 a part of (the series ordinal of this statement is 5)?
Choices:
Phineas and Ferb
Robot Chicken
Game of Thrones
Saturday Night's Main Event
Babylon 5
The Wire
Seinfeld
American Horror Story
Dancing with the Stars
Six Feet Under
Answer: The Wire
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <has_part> ?e_1 . ?e_1 <pred:name> "The Wire, season 5" .  [ <pred:fact_h> ?e ; <pred:fact_r> <has_part> ; <pred:fact_t> ?e_1 ] <series_ordinal> ?qpv . ?qpv <pred:value> "5" .  }
Program:
function: Find
inputs: The Wire, season 5
function: Relate
dependencies: 0
inputs: has part
backward
function: QFilterStr
dependencies: 1
inputs: series ordinal
5
function: FilterConcept
dependencies: 2
inputs: television series
function: What
dependencies: 3