Question: Which TV program is the 5th part of the TV series titled The Wire?
Choices:
variety
Monster House
Cold War
The Wire, season 5
The Wire, season 4
The Larry Sanders Show
Peter Pan
Lost, season 3
The Wire, season 2
The Wire, season 3
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
The Wire
function: FilterConcept
dependencies: 1
inputs: television series
function: Relate
dependencies: 2
inputs: has part
forward
function: QFilterStr
dependencies: 3
inputs: series ordinal
5
function: FilterConcept
dependencies: 4
inputs: television program
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television program" . ?e_1 <has_part> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "television series" . ?e_1 <title> ?pv . ?pv <pred:value> "The Wire" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <has_part> ; <pred:fact_t> ?e ] <series_ordinal> ?qpv . ?qpv <pred:value> "5" .  }
Answer: The Wire, season 5