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