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