Question: Who has a larger Erdős number, David Hilbert or Albert Einstein (the one that received Nobel Prize in Physics)?
Choices:
William Henry Harrison
James E. Reilly
Sylvester Stallone
David Hilbert
Max Fleischer
David Byrne
Paul Simon
Rahul Dev Burman
Simon Cowell
Albert Einstein
Answer: David Hilbert
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Hilbert" .  } UNION { ?e <pred:name> "Albert Einstein" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Nobel Prize in Physics" .   } ?e <Erdős_number> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: David Hilbert
function: Find
inputs: Nobel Prize in Physics
function: Relate
dependencies: 1
inputs: award received
backward
function: Find
inputs: Albert Einstein
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: Erdős number
greater