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