Question: Does James A. Garfield or Henry Winkler have fewer children?
Choices:
James E. Reilly
Max Fleischer
David Byrne
Richard Gere
Paul Simon
William Henry Harrison
Simon Cowell
James A. Garfield
Sylvester Stallone
Henry Winkler
Program:
function: Find
inputs: James A. Garfield
function: Find
inputs: Henry Winkler
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James A. Garfield" .  } UNION { ?e <pred:name> "Henry Winkler" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Henry Winkler