Question: Which has greater duration, Chicago Fire (whose number of episodes is 160) or Batman (whose production company is 20th Century Fox Television)?
Choices:
Game of Thrones
Bleak House
Chicago Fire
Seinfeld
Phineas and Ferb
Six Feet Under
Saturday Night's Main Event
Dancing with the Stars
Robot Chicken
American Horror Story
Program:
function: Find
inputs: Chicago Fire
function: FilterNum
dependencies: 0
inputs: number of episodes
160
=
function: Find
inputs: 20th Century Fox Television
function: Relate
dependencies: 2
inputs: production company
backward
function: Find
inputs: Batman
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chicago Fire" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "160"^^xsd:double . } UNION { ?e <pred:name> "Batman" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "20th Century Fox Television" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chicago Fire