Question: Who weighs more, Dave Thomas (the one that is related to sport American football) or Joe Jackson (the one that was born in Tempe)?
Choices: Paul Simon
Richard Gere
David Byrne
Joe Jackson
Simon Cowell
Rahul Dev Burman
Sylvester Stallone
Max Fleischer
Dave Thomas
William Henry Harrison
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dave Thomas" . ?e <sport> ?e_1 . ?e_1 <pred:name> "American football" .   } UNION { ?e <pred:name> "Joe Jackson" . ?e <place_of_birth> ?e_2 . ?e_2 <pred:name> "Tempe" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: American football
function: Relate
dependencies: 0
inputs: sport
backward
function: Find
inputs: Dave Thomas
function: And
dependencies: 1
2
function: Find
inputs: Tempe
function: Relate
dependencies: 4
inputs: place of birth
backward
function: Find
inputs: Joe Jackson
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
greater
Answer: Joe Jackson