Question: Who has a greater mass, Steven Wright of the Boston Red Sox or David Healy (the one whose height is 176 cm)?
Choices:
Richard Gere
Simon Cowell
Paul Simon
David Healy
James E. Reilly
William Henry Harrison
Sylvester Stallone
Rahul Dev Burman
Max Fleischer
Steven Wright
Program:
function: Find
inputs: Boston Red Sox
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Steven Wright
function: And
dependencies: 1
2
function: Find
inputs: David Healy
function: FilterNum
dependencies: 4
inputs: height
176 centimetre
=
function: SelectBetween
dependencies: 3
5
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Steven Wright" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Boston Red Sox" . } UNION { ?e <pred:name> "David Healy" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "176"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Steven Wright