Question: Who has fewer children, David Alan Grier or Herbert Hoover?
Choices:
Sylvester Stallone
William Henry Harrison
David Alan Grier
James E. Reilly
Herbert Hoover
Paul Simon
David Byrne
Simon Cowell
Richard Gere
Max Fleischer
Program:
function: Find
inputs: David Alan Grier
function: Find
inputs: Herbert Hoover
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Alan Grier" .  } UNION { ?e <pred:name> "Herbert Hoover" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: David Alan Grier