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