Question: Who has more mass, William Powell of the Arizona Cardinals or James Brown who is 78 inches tall?
Choices: Richard Gere
William Henry Harrison
William Powell
David Byrne
Max Fleischer
Simon Cowell
Paul Simon
James E. Reilly
Rahul Dev Burman
James Brown
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "William Powell" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Arizona Cardinals" . } UNION { ?e <pred:name> "James Brown" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "78"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Arizona Cardinals
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: William Powell
function: And
dependencies: 1
2
function: Find
inputs: James Brown
function: FilterNum
dependencies: 4
inputs: height
78 inch
=
function: SelectBetween
dependencies: 3
5
inputs: mass
greater
Answer: James Brown