Question: Does Mad About You or Pan Am (the one whose number of episodes is 14) have the greater duration?
Choices: Six Feet Under
Dancing with the Stars
Mad About You
Game of Thrones
Pan Am
Seinfeld
Bleak House
Phineas and Ferb
Saturday Night's Main Event
Robot Chicken
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mad About You" . } UNION { ?e <pred:name> "Pan Am" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "14"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mad About You
function: Find
inputs: Pan Am
function: FilterNum
dependencies: 1
inputs: number of episodes
14
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
Answer: Pan Am