Question: Which one has more children between Salma Hayek and Ulysses S. Grant?
Choices:
Sylvester Stallone
Paul Simon
Salma Hayek
Ulysses S. Grant
Max Fleischer
David Byrne
James E. Reilly
Rahul Dev Burman
Richard Gere
Simon Cowell
Program:
function: Find
inputs: Salma Hayek
function: Find
inputs: Ulysses S. Grant
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salma Hayek" .  } UNION { ?e <pred:name> "Ulysses S. Grant" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ulysses S. Grant