Question: Who has fewer children, Hugh Grant (the one that is the talk show guest of Late Show with David Letterman) or Mamoru Miyano?
Choices: William Henry Harrison
Sylvester Stallone
Paul Simon
Max Fleischer
Rahul Dev Burman
Mamoru Miyano
David Byrne
James E. Reilly
Hugh Grant
Simon Cowell
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hugh Grant" . ?e_1 <talk_show_guest> ?e . ?e_1 <pred:name> "Late Show with David Letterman" .   } UNION { ?e <pred:name> "Mamoru Miyano" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Late Show with David Letterman
function: Relate
dependencies: 0
inputs: talk show guest
forward
function: Find
inputs: Hugh Grant
function: And
dependencies: 1
2
function: Find
inputs: Mamoru Miyano
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
Answer: Mamoru Miyano