Question: Which one, Scott Wilson (the one that is drafted by Pittsburgh Penguins) or Tom Johnson (the one whose mass is 288 pound), has greater mass?
Choices:
Scott Wilson
Rahul Dev Burman
William Henry Harrison
Simon Cowell
Tom Johnson
Max Fleischer
David Byrne
Sylvester Stallone
Paul Simon
Richard Gere
Program:
function: Find
inputs: Pittsburgh Penguins
function: Relate
dependencies: 0
inputs: drafted by
backward
function: Find
inputs: Scott Wilson
function: And
dependencies: 1
2
function: Find
inputs: Tom Johnson
function: FilterNum
dependencies: 4
inputs: mass
288 pound
=
function: SelectBetween
dependencies: 3
5
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scott Wilson" . ?e <drafted_by> ?e_1 . ?e_1 <pred:name> "Pittsburgh Penguins" . } UNION { ?e <pred:name> "Tom Johnson" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "288"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tom Johnson