Question: Which one, Savannah (the one that is originally aired on The WB) or Avatar: The Last Airbender (the one whose duration is 23 minute), has greater number of episodes?
Choices:
Savannah
Robot Chicken
Tiny Toon Adventures
Avatar: The Last Airbender
Phineas and Ferb
Aladdin
The Venture Bros.
American Dad!
The Cleveland Show
South Park
Answer: Avatar: The Last Airbender
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Savannah" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "The WB" . } UNION { ?e <pred:name> "Avatar: The Last Airbender" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "23"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The WB
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Savannah
function: And
dependencies: 1
2
function: Find
inputs: Avatar: The Last Airbender
function: FilterNum
dependencies: 4
inputs: duration
23 minute
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
greater