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