Question: Does Albert Einstein (born in Ulm) or Ernest Rutherford have a greater Erdős number?
Choices:
James E. Reilly
Richard Gere
Ernest Rutherford
Paul Simon
Sylvester Stallone
David Byrne
Rahul Dev Burman
William Henry Harrison
Albert Einstein
Simon Cowell
Program:
function: Find
inputs: Ulm
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Albert Einstein
function: And
dependencies: 1
2
function: Find
inputs: Ernest Rutherford
function: SelectBetween
dependencies: 3
4
inputs: Erdős number
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Albert Einstein" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Ulm" .   } UNION { ?e <pred:name> "Ernest Rutherford" .  } ?e <Erdős_number> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ernest Rutherford