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