Question: Which has fewer seasons, The Transformers or Hercules which has Frank Welker as a voice actor?
Choices:
Tiny Toon Adventures
The Transformers
Robot Chicken
Hercules
Phineas and Ferb
Aladdin
American Dad!
The Venture Bros.
The Cleveland Show
South Park
Program:
function: Find
inputs: The Transformers
function: Find
inputs: Frank Welker
function: Relate
dependencies: 1
inputs: voice actor
backward
function: Find
inputs: Hercules
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Transformers" .  } UNION { ?e <pred:name> "Hercules" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Frank Welker" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hercules