Question: Which show has fewer episodes, Somerset (the one that origins from United States of America) or Eureka (the one whose genre is comedy-drama)?
Choices:
Phineas and Ferb
Eureka
Seinfeld
Game of Thrones
Six Feet Under
Saturday Night's Main Event
Somerset
Bleak House
American Horror Story
Robot Chicken
Answer: Eureka
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Somerset" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Eureka" . ?e <genre> ?e_2 . ?e_2 <pred:name> "comedy-drama" .  } ?e <number_of_episodes> ?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: Somerset
function: And
dependencies: 1
2
function: Find
inputs: comedy-drama
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Eureka
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
less