Question: Which one, Lincoln (the one that is a member of Sociedade Esportiva Palmeiras) or Sting (the one whose birth name is وليم ماتسو), has greater mass?
Choices:
Max Fleischer
William Henry Harrison
Paul Simon
Sting
Lincoln
Sylvester Stallone
David Byrne
Rahul Dev Burman
James E. Reilly
Richard Gere
Program:
function: Find
inputs: Sociedade Esportiva Palmeiras
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Lincoln
function: And
dependencies: 1
2
function: Find
inputs: Sting
function: FilterStr
dependencies: 4
inputs: birth name
وليم ماتسو
function: SelectBetween
dependencies: 3
5
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lincoln" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Sociedade Esportiva Palmeiras" . } UNION { ?e <pred:name> "Sting" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "وليم ماتسو" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Sting