Question: Who has the larger Erdős number, Richard Taylor (the one whose Erdős number is 3) or Linus Pauling?
Choices:
Rahul Dev Burman
Linus Pauling
William Henry Harrison
David Byrne
Paul Simon
James E. Reilly
Simon Cowell
Max Fleischer
Richard Gere
Sylvester Stallone
Program:
function: Find
inputs: Richard Taylor
function: FilterNum
dependencies: 0
inputs: Erdős number
3
=
function: Find
inputs: Linus Pauling
function: SelectBetween
dependencies: 1
2
inputs: Erdős number
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richard Taylor" . ?e <Erdős_number> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } UNION { ?e <pred:name> "Linus Pauling" . } ?e <Erdős_number> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Linus Pauling