Question: Who has more children, Thandie Newton or Dwight D. Eisenhower?
Choices:
Sylvester Stallone
Dwight D. Eisenhower
Simon Cowell
Max Fleischer
David Byrne
Paul Simon
Rahul Dev Burman
Thandie Newton
William Henry Harrison
James E. Reilly
Program:
function: Find
inputs: Thandie Newton
function: Find
inputs: Dwight D. Eisenhower
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Thandie Newton" .  } UNION { ?e <pred:name> "Dwight D. Eisenhower" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Thandie Newton