Question: Who is shorter, Brad Jones (the one whose mass is 242 pound) or Henry James (the one that is a member of Cleveland Cavaliers)?
Choices:
Richard Gere
Paul Simon
James E. Reilly
Rahul Dev Burman
Henry James
David Byrne
Brad Jones
Max Fleischer
William Henry Harrison
Sylvester Stallone
Answer: Brad Jones
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brad Jones" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "242"^^xsd:double . } UNION { ?e <pred:name> "Henry James" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Cleveland Cavaliers" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Brad Jones
function: FilterNum
dependencies: 0
inputs: mass
242 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: height
less