Question: WHo has more children, Rob Lowe or Ulysses S. Grant?
Choices:
David Byrne
Rahul Dev Burman
Ulysses S. Grant
Rob Lowe
Sylvester Stallone
Max Fleischer
Paul Simon
Simon Cowell
William Henry Harrison
Richard Gere
Program:
function: Find
inputs: Rob Lowe
function: Find
inputs: Ulysses S. Grant
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rob Lowe" .  } 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