Question: Which one, David Copperfield (the one whose production company is PBS) or Sonic X, has fewer number of seasons?
Choices:
The Late Shift
Shackleton
The Music Man
David Copperfield
The Three Musketeers
Sonic X
The Goodbye Girl
A Christmas Carol
The Challenge
All Quiet on the Western Front
Program:
function: Find
inputs: PBS
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: David Copperfield
function: And
dependencies: 1
2
function: Find
inputs: Sonic X
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Copperfield" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "PBS" .   } UNION { ?e <pred:name> "Sonic X" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: David Copperfield