Question: Does a longer running time belong to Rules of Engagement, originally broadcast on CBS, or Rogue (official website http://www.directv.com/premiums/audience/rogue)?
Choices:
American Horror Story
Phineas and Ferb
Seinfeld
Six Feet Under
Robot Chicken
Rules of Engagement
Saturday Night's Main Event
Bleak House
Dancing with the Stars
Rogue
Answer: Rogue
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rules of Engagement" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "CBS" . } UNION { ?e <pred:name> "Rogue" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.directv.com/premiums/audience/rogue" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: CBS
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Rules of Engagement
function: And
dependencies: 1
2
function: Find
inputs: Rogue
function: FilterStr
dependencies: 4
inputs: official website
http://www.directv.com/premiums/audience/rogue
function: SelectBetween
dependencies: 3
5
inputs: duration
greater