Question: Does Mighty Morphin Power Rangers (that originates in the United States of America) or Star Trek (that includes the famous work Star Trek: The Original Series) have more episodes?
Choices:
Law & Order
The Little Mermaid
Shrek
Dragon Ball
Jurassic Park
From Dusk till Dawn
Transformers
Mighty Morphin Power Rangers
Star Wars
Star Trek
Answer: Star Trek
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mighty Morphin Power Rangers" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Star Trek" . ?e <notable_work> ?e_2 . ?e_2 <pred:name> "Star Trek: The Original Series" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Mighty Morphin Power Rangers
function: And
dependencies: 1
2
function: Find
inputs: Star Trek: The Original Series
function: Relate
dependencies: 4
inputs: notable work
backward
function: Find
inputs: Star Trek
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
greater