Question: Which has highest Erdős number, Richard Taylor (member of Royal Society) or Albert Einstein died in Princeton?
Choices:
Richard Taylor
David Byrne
Simon Cowell
Sylvester Stallone
Paul Simon
Max Fleischer
Rahul Dev Burman
James E. Reilly
William Henry Harrison
Albert Einstein
Answer: Richard Taylor
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richard Taylor" . ?e <member_of> ?e_1 . ?e_1 <pred:name> "Royal Society" .   } UNION { ?e <pred:name> "Albert Einstein" . ?e <place_of_death> ?e_2 . ?e_2 <pred:name> "Princeton" .  } ?e <Erdős_number> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Royal Society
function: Relate
dependencies: 0
inputs: member of
backward
function: Find
inputs: Richard Taylor
function: And
dependencies: 1
2
function: Find
inputs: Princeton
function: Relate
dependencies: 4
inputs: place of death
backward
function: Find
inputs: Albert Einstein
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: Erdős number
greater