Question: Which one, Lou Grant or Eureka (the one whose official website is http://www.syfy.com/eureka), has greater duration?
Choices:
Dancing with the Stars
Eureka
Bleak House
Robot Chicken
American Horror Story
Seinfeld
Lou Grant
Game of Thrones
Phineas and Ferb
Six Feet Under
Answer: Lou Grant
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lou Grant" . } UNION { ?e <pred:name> "Eureka" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.syfy.com/eureka" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lou Grant
function: Find
inputs: Eureka
function: FilterStr
dependencies: 1
inputs: official website
http://www.syfy.com/eureka
function: SelectBetween
dependencies: 0
2
inputs: duration
greater