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