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