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