Question: Which one has fewer children between Charlie Chaplin or Charles Dance?
Choices:
William Henry Harrison
James E. Reilly
David Byrne
Rahul Dev Burman
Max Fleischer
Paul Simon
Charles Dance
Simon Cowell
Charlie Chaplin
Richard Gere
Program:
function: Find
inputs: Charlie Chaplin
function: Find
inputs: Charles Dance
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlie Chaplin" .  } UNION { ?e <pred:name> "Charles Dance" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Charles Dance