Question: Who has less children,Joss Whedon or Hugh Grant?
Choices: James E. Reilly
Sylvester Stallone
Rahul Dev Burman
Hugh Grant
Joss Whedon
Simon Cowell
David Byrne
Richard Gere
William Henry Harrison
Max Fleischer
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Joss Whedon" .  } UNION { ?e <pred:name> "Hugh Grant" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Four Weddings and a Funeral" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Joss Whedon
function: Find
inputs: Four Weddings and a Funeral
function: Relate
dependencies: 1
inputs: cast member
forward
function: Find
inputs: Hugh Grant
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
less
Answer: Joss Whedon