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