Question: Which has more episodes, Avatar: The Last Airbender, which began on 2005-02-21, or the docudrama Mars?
Choices:
The Venture Bros.
Robot Chicken
Tiny Toon Adventures
Aladdin
Mars
Avatar: The Last Airbender
South Park
American Dad!
Batman Beyond
Phineas and Ferb
Program:
function: Find
inputs: Avatar: The Last Airbender
function: FilterDate
dependencies: 0
inputs: start time
2005-02-21
=
function: Find
inputs: docudrama
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Mars
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Avatar: The Last Airbender" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "2005-02-21"^^xsd:date . } UNION { ?e <pred:name> "Mars" . ?e <genre> ?e_1 . ?e_1 <pred:name> "docudrama" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Avatar: The Last Airbender