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