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