Question: Who weighs more, Chris Evans (the one that is a member of Detroit Red Wings) or Robert Smith (the one whose mass is 210 pound)?
Choices:
Sylvester Stallone
Rahul Dev Burman
Paul Simon
Simon Cowell
Robert Smith
David Byrne
James E. Reilly
Richard Gere
William Henry Harrison
Max Fleischer
Program:
function: Find
inputs: Detroit Red Wings
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Chris Evans
function: And
dependencies: 1
2
function: Find
inputs: Robert Smith
function: FilterNum
dependencies: 4
inputs: mass
210 pound
=
function: SelectBetween
dependencies: 3
5
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Evans" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Detroit Red Wings" . } UNION { ?e <pred:name> "Robert Smith" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "210"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Robert Smith