Question: Which has fewer seasons, Battlestar Galactica (the one that origins from Canada) or Sleepy Hollow (the one that uses the language English)?
Choices:
Edge of Darkness
The Pacific
The Stand
Roots
George Washington
Sleepy Hollow
The Ten Commandments
Emma
The Civil War
Battlestar Galactica
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Battlestar Galactica
function: And
dependencies: 1
2
function: Find
inputs: English
function: Relate
dependencies: 4
inputs: language of work or name
backward
function: Find
inputs: Sleepy Hollow
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Battlestar Galactica" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Canada" .   } UNION { ?e <pred:name> "Sleepy Hollow" . ?e <language_of_work_or_name> ?e_2 . ?e_2 <pred:name> "English" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Battlestar Galactica