Question: Who weighs more, Jermaine Jackson (the one that is a member of Milwaukee Bucks) or Savannah (the one whose hair color is blond)?
Choices:
James E. Reilly
William Henry Harrison
Savannah
Sylvester Stallone
Simon Cowell
David Byrne
Jermaine Jackson
Rahul Dev Burman
Max Fleischer
Richard Gere
Program:
function: Find
inputs: Milwaukee Bucks
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Jermaine Jackson
function: And
dependencies: 1
2
function: Find
inputs: blond
function: Relate
dependencies: 4
inputs: hair color
backward
function: Find
inputs: Savannah
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jermaine Jackson" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Milwaukee Bucks" .   } UNION { ?e <pred:name> "Savannah" . ?e <hair_color> ?e_2 . ?e_2 <pred:name> "blond" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jermaine Jackson