Question: Which one, Doug Flutie or Joe Jackson (the one that is related to sport basketball), has greater mass?
Choices:
William Henry Harrison
Joe Jackson
Rahul Dev Burman
Max Fleischer
James E. Reilly
Simon Cowell
David Byrne
Richard Gere
Sylvester Stallone
Doug Flutie
Program:
function: Find
inputs: Doug Flutie
function: Find
inputs: basketball
function: Relate
dependencies: 1
inputs: sport
backward
function: Find
inputs: Joe Jackson
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Doug Flutie" .  } UNION { ?e <pred:name> "Joe Jackson" . ?e <sport> ?e_1 . ?e_1 <pred:name> "basketball" .   } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Doug Flutie