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