Question: Does Tom Johnson (who is a member of the Calgary Stampeders) or Ron Howard (whose height is 76 inches) weigh more?
Choices: Tom Johnson
Ron Howard
William Henry Harrison
Sylvester Stallone
Richard Gere
Simon Cowell
Rahul Dev Burman
Max Fleischer
James E. Reilly
David Byrne
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tom Johnson" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Calgary Stampeders" . } UNION { ?e <pred:name> "Ron Howard" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "76"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Calgary Stampeders
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Tom Johnson
function: And
dependencies: 1
2
function: Find
inputs: Ron Howard
function: FilterNum
dependencies: 4
inputs: height
76 inch
=
function: SelectBetween
dependencies: 3
5
inputs: mass
greater
Answer: Tom Johnson