Question: Which show has fewer seasons, The Office (the one that origins from United States of America) or Dark Shadows (the one that is originally aired on American Broadcasting Company)?
Choices:
Dancing with the Stars
Bleak House
Phineas and Ferb
The Office
Game of Thrones
Robot Chicken
American Horror Story
Dark Shadows
Six Feet Under
Seinfeld
Answer: Dark Shadows
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Office" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Dark Shadows" . ?e <original_network> ?e_2 . ?e_2 <pred:name> "American Broadcasting Company" .  } ?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: The Office
function: And
dependencies: 1
2
function: Find
inputs: American Broadcasting Company
function: Relate
dependencies: 4
inputs: original network
backward
function: Find
inputs: Dark Shadows
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
less