Question: Does Aladdin (produced by The Walt Disney Company) or Back to the Future (in the United States of America) have more seasons?
Choices:
Aladdin
Fantastic Four
Batman Beyond
South Park
Robot Chicken
The Cleveland Show
Phineas and Ferb
The Venture Bros.
Back to the Future
American Dad!
Answer: Aladdin
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aladdin" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "The Walt Disney Company" .   } UNION { ?e <pred:name> "Back to the Future" . ?e <country> ?e_2 . ?e_2 <pred:name> "United States of America" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Walt Disney Company
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Aladdin
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country
backward
function: Find
inputs: Back to the Future
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
greater