Question: Who weighs less, John Williams (the one that died from prostate cancer) or Ryan Adams (the one that is a member of Baltimore Orioles)?
Choices: Ryan Adams
John Williams
Simon Cowell
David Byrne
Richard Gere
James E. Reilly
Rahul Dev Burman
Paul Simon
Sylvester Stallone
Max Fleischer
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Williams" . ?e <cause_of_death> ?e_1 . ?e_1 <pred:name> "prostate cancer" .   } UNION { ?e <pred:name> "Ryan Adams" . ?e <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Baltimore Orioles" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: prostate cancer
function: Relate
dependencies: 0
inputs: cause of death
backward
function: Find
inputs: John Williams
function: And
dependencies: 1
2
function: Find
inputs: Baltimore Orioles
function: Relate
dependencies: 4
inputs: member of sports team
backward
function: Find
inputs: Ryan Adams
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
less
Answer: Ryan Adams