Question: Which one has less children, Hugo Weaving or Fidel Castro?
Choices:
Max Fleischer
David Byrne
James E. Reilly
Richard Gere
Hugo Weaving
Rahul Dev Burman
Sylvester Stallone
William Henry Harrison
Fidel Castro
Simon Cowell
Program:
function: Find
inputs: Hugo Weaving
function: Find
inputs: Fidel Castro
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hugo Weaving" .  } UNION { ?e <pred:name> "Fidel Castro" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hugo Weaving