Question: Which has a larger Erdős number, Richard Feynman or Carl Sagan?
Choices:
Sylvester Stallone
James E. Reilly
Simon Cowell
David Byrne
Carl Sagan
Paul Simon
William Henry Harrison
Max Fleischer
Richard Feynman
Richard Gere
Program:
function: Find
inputs: Richard Feynman
function: Find
inputs: Carl Sagan
function: SelectBetween
dependencies: 0
1
inputs: Erdős number
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richard Feynman" .  } UNION { ?e <pred:name> "Carl Sagan" .  } ?e <Erdős_number> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Carl Sagan