Question: Which show has more seasons, Rome (the one whose original language is English) or Avatar: The Last Airbender (the one whose number of seasons is 3)?
Choices:
American Dad!
Batman Beyond
Tiny Toon Adventures
Aladdin
Robot Chicken
Rome
The Cleveland Show
Phineas and Ferb
Avatar: The Last Airbender
South Park
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: Rome
function: And
dependencies: 1
2
function: Find
inputs: Avatar: The Last Airbender
function: FilterNum
dependencies: 4
inputs: number of seasons
3
=
function: SelectBetween
dependencies: 3
5
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rome" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "English" . } UNION { ?e <pred:name> "Avatar: The Last Airbender" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Avatar: The Last Airbender