Question: Does Carl Sagan or David X. Cohen have the higher Erdős number?
Choices:
Max Fleischer
William Henry Harrison
Paul Simon
Sylvester Stallone
David Byrne
Richard Gere
Carl Sagan
David X. Cohen
James E. Reilly
Rahul Dev Burman
Program:
function: Find
inputs: Carl Sagan
function: Find
inputs: David X. Cohen
function: SelectBetween
dependencies: 0
1
inputs: Erdős number
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carl Sagan" .  } UNION { ?e <pred:name> "David X. Cohen" .  } ?e <Erdős_number> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Carl Sagan