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