Question: Does Kris Kristofferson or Erykah Badu have fewer children?
Choices:
William Henry Harrison
Rahul Dev Burman
Richard Gere
Sylvester Stallone
Paul Simon
Max Fleischer
Kris Kristofferson
Simon Cowell
James E. Reilly
Erykah Badu
Program:
function: Find
inputs: Kris Kristofferson
function: Find
inputs: Erykah Badu
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kris Kristofferson" .  } UNION { ?e <pred:name> "Erykah Badu" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Erykah Badu