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