Question: Which one, Avatar: The Last Airbender (the one that has Mark Hamill as a voice actor) or SpongeBob SquarePan, has a greater number of seasons?
Choices:
SpongeBob SquarePants
Tiny Toon Adventures
The Cleveland Show
Aladdin
Phineas and Ferb
Batman Beyond
American Dad!
South Park
The Venture Bros.
Avatar: The Last Airbender
Program:
function: Find
inputs: Mark Hamill
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Avatar: The Last Airbender
function: And
dependencies: 1
2
function: Find
inputs: SpongeBob SquarePants
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Avatar: The Last Airbender" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Mark Hamill" .   } UNION { ?e <pred:name> "SpongeBob SquarePants" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: SpongeBob SquarePants