Question: Which is taller, Doug Flutie or Robert Smith (the one that was drafted by the Denver Nuggets)?
Choices:
Doug Flutie
Sylvester Stallone
Rahul Dev Burman
Simon Cowell
Max Fleischer
Paul Simon
Robert Smith
Richard Gere
David Byrne
James E. Reilly
Program:
function: Find
inputs: Doug Flutie
function: Find
inputs: Denver Nuggets
function: Relate
dependencies: 1
inputs: drafted by
backward
function: Find
inputs: Robert Smith
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Doug Flutie" .  } UNION { ?e <pred:name> "Robert Smith" . ?e <drafted_by> ?e_1 . ?e_1 <pred:name> "Denver Nuggets" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Robert Smith