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