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