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