Question: Which one, Richard Taylor (the one that is an employee of Harvard University) or Albert Einstein (the one that works in the location Princeton), has the less Erdős number?
Choices:
David Byrne
Albert Einstein
Max Fleischer
Sylvester Stallone
Rahul Dev Burman
Simon Cowell
Richard Gere
William Henry Harrison
Richard Taylor
Paul Simon
Answer: Albert Einstein
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richard Taylor" . ?e <employer> ?e_1 . ?e_1 <pred:name> "Harvard University" .   } UNION { ?e <pred:name> "Albert Einstein" . ?e <work_location> ?e_2 . ?e_2 <pred:name> "Princeton" .  } ?e <Erdős_number> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Harvard University
function: Relate
dependencies: 0
inputs: employer
backward
function: Find
inputs: Richard Taylor
function: And
dependencies: 1
2
function: Find
inputs: Princeton
function: Relate
dependencies: 4
inputs: work location
backward
function: Find
inputs: Albert Einstein
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: Erdős number
less