Question: Who weighs more, Stephen King (the one that is a member of Seattle Sounders FC) or David Beckham?
Choices:
Richard Gere
Paul Simon
Sylvester Stallone
Rahul Dev Burman
David Byrne
William Henry Harrison
Max Fleischer
Stephen King
Simon Cowell
David Beckham
Program:
function: Find
inputs: Seattle Sounders FC
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Stephen King
function: And
dependencies: 1
2
function: Find
inputs: David Beckham
function: SelectBetween
dependencies: 3
4
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stephen King" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Seattle Sounders FC" .   } UNION { ?e <pred:name> "David Beckham" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: David Beckham