Question: Who has less Erdős number, Niels Bohr or mathematician William Goldman?
Choices:
Simon Cowell
William Henry Harrison
Max Fleischer
Rahul Dev Burman
Paul Simon
Richard Gere
David Byrne
James E. Reilly
Sylvester Stallone
William Goldman
Program:
function: Find
inputs: Niels Bohr
function: Find
inputs: mathematician
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: William Goldman
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: Erdős number
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Niels Bohr" .  } UNION { ?e <pred:name> "William Goldman" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "mathematician" .   } ?e <Erdős_number> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: William Goldman