Question: Which has fewer episodes, Malcolm in the Middle or adventure film Avatar: The Last Airbender?
Choices:
The Cleveland Show
Batman Beyond
Phineas and Ferb
Avatar: The Last Airbender
American Dad!
Aladdin
Tiny Toon Adventures
South Park
Robot Chicken
Malcolm in the Middle
Program:
function: Find
inputs: Malcolm in the Middle
function: Find
inputs: adventure film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Avatar: The Last Airbender
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Malcolm in the Middle" .  } UNION { ?e <pred:name> "Avatar: The Last Airbender" . ?e <genre> ?e_1 . ?e_1 <pred:name> "adventure film" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Avatar: The Last Airbender