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