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