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