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