Question: Which one has the highest number of episodes, The Little Mermaid (the one whose production company is Walt Disney Animation Studios) or Benjamin Franklin (the one whose genre is docudrama) ?
Choices: Robot Chicken
Dancing with the Stars
American Horror Story
Six Feet Under
Seinfeld
Saturday Night's Main Event
Bleak House
The Little Mermaid
Game of Thrones
Phineas and Ferb
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Little Mermaid" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Walt Disney Animation Studios" .   } UNION { ?e <pred:name> "Benjamin Franklin" . ?e <genre> ?e_2 . ?e_2 <pred:name> "docudrama" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Walt Disney Animation Studios
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: The Little Mermaid
function: And
dependencies: 1
2
function: Find
inputs: docudrama
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Benjamin Franklin
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
greater
Answer: The Little Mermaid