Question: Which is shorter in duration, Everybody Loves Raymond or Oz, which has 6 seasons?
Choices:
Oz
Game of Thrones
Bleak House
Seinfeld
Phineas and Ferb
American Horror Story
Six Feet Under
Everybody Loves Raymond
Dancing with the Stars
Saturday Night's Main Event
Program:
function: Find
inputs: Everybody Loves Raymond
function: Find
inputs: Oz
function: FilterNum
dependencies: 1
inputs: number of seasons
6
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Everybody Loves Raymond" . } UNION { ?e <pred:name> "Oz" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "6"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Everybody Loves Raymond