Question: Which one has less duration, Hannibal (the one whose number of episodes is 39) or Rome (the one whose title is Rome)?
Choices:
Robot Chicken
Hannibal
Rome
Game of Thrones
Bleak House
Seinfeld
Dancing with the Stars
Saturday Night's Main Event
Six Feet Under
American Horror Story
Program:
function: Find
inputs: Hannibal
function: FilterNum
dependencies: 0
inputs: number of episodes
39
=
function: Find
inputs: Rome
function: FilterStr
dependencies: 2
inputs: title
Rome
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hannibal" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "39"^^xsd:double . } UNION { ?e <pred:name> "Rome" . ?e <title> ?pv_2 . ?pv_2 <pred:value> "Rome" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hannibal