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