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