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