Question: What television program is a part of The Wire that is followed by The Wire, season 5 and has episodes not numbering 620?
Choices:
The Wire, season 1
The Wire, season 2
Peter Pan
The Larry Sanders Show
Lost, season 3
Cold War
variety
Monster House
The Wire, season 4
The Wire, season 5
Answer: The Wire, season 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television program" . ?e <part_of_the_series> ?e_1 . ?e_1 <pred:name> "The Wire" .  [ <pred:fact_h> ?e ; <pred:fact_r> <part_of_the_series> ; <pred:fact_t> ?e_1 ] <followed_by> ?qpv . ?qpv <pred:value> "The Wire, season 5" . ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "620"^^xsd:double ) .  }
Program:
function: Find
inputs: The Wire
function: Relate
dependencies: 0
inputs: part of the series
backward
function: QFilterStr
dependencies: 1
inputs: followed by
The Wire, season 5
function: FilterConcept
dependencies: 2
inputs: television program
function: FindAll
function: FilterNum
dependencies: 4
inputs: number of episodes
620
!=
function: FilterConcept
dependencies: 5
inputs: television program
function: And
dependencies: 3
6
function: What
dependencies: 7