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