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