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