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