Question: Who has a smaller Erdős number, Stephen Hawking or Richard Feynman?
Choices:
Sylvester Stallone
Stephen Hawking
Simon Cowell
Richard Gere
Max Fleischer
Richard Feynman
David Byrne
Paul Simon
Rahul Dev Burman
James E. Reilly
Program:
function: Find
inputs: Stephen Hawking
function: Find
inputs: Richard Feynman
function: SelectBetween
dependencies: 0
1
inputs: Erdős number
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stephen Hawking" .  } UNION { ?e <pred:name> "Richard Feynman" .  } ?e <Erdős_number> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Richard Feynman