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