Question: Which movie is shorter, Charlie's Angels (the one whose number of episodes is 8) or Serpico (the one whose number of seasons is 1)?
Choices:
Serpico
American Horror Story
Bleak House
Phineas and Ferb
Charlie's Angels
Saturday Night's Main Event
Six Feet Under
Robot Chicken
Game of Thrones
Seinfeld
Program:
function: Find
inputs: Charlie's Angels
function: FilterNum
dependencies: 0
inputs: number of episodes
8
=
function: Find
inputs: Serpico
function: FilterNum
dependencies: 2
inputs: number of seasons
1
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlie's Angels" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "8"^^xsd:double . } UNION { ?e <pred:name> "Serpico" . ?e <number_of_seasons> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "1"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Charlie's Angels