Question: Does Ronaldo of Cruzeiro E.C. or Joshua Kennedy have more mass?
Choices:
Ronaldo
Simon Cowell
Max Fleischer
Richard Gere
Paul Simon
William Henry Harrison
David Byrne
Joshua Kennedy
James E. Reilly
Sylvester Stallone
Program:
function: Find
inputs: Cruzeiro E.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Ronaldo
function: And
dependencies: 1
2
function: Find
inputs: Joshua Kennedy
function: SelectBetween
dependencies: 3
4
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ronaldo" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Cruzeiro E.C." .   } UNION { ?e <pred:name> "Joshua Kennedy" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Joshua Kennedy