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