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