Question: Which movie is longer, Chicago Fire (the one whose title is Chicago Fire) or Lost in Space (the one whose duration is 48 minute)?
Choices:
Phineas and Ferb
Saturday Night's Main Event
Game of Thrones
Dancing with the Stars
Bleak House
Robot Chicken
Lost in Space
Seinfeld
Six Feet Under
American Horror Story
Answer: Lost in Space
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chicago Fire" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Chicago Fire" . } UNION { ?e <pred:name> "Lost in Space" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "48"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Chicago Fire
function: FilterStr
dependencies: 0
inputs: title
Chicago Fire
function: Find
inputs: Lost in Space
function: FilterNum
dependencies: 2
inputs: duration
48 minute
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater