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