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