Question: Is the season count lower for American Idol that originates from the United States of America or Thomas and Friends?
Choices:
Bleak House
Saturday Night's Main Event
Game of Thrones
Seinfeld
American Idol
American Horror Story
Dancing with the Stars
Thomas and Friends
Phineas and Ferb
Robot Chicken
Answer: American Idol
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "American Idol" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Thomas and Friends" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: American Idol
function: And
dependencies: 1
2
function: Find
inputs: Thomas and Friends
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
less