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