Question: Who is shorter: Israel of Xerez C.D. or Tom Johnson, the 180-pounder?
Choices:
James E. Reilly
Israel
Max Fleischer
Simon Cowell
William Henry Harrison
Richard Gere
Rahul Dev Burman
Sylvester Stallone
David Byrne
Paul Simon
Program:
function: Find
inputs: Xerez C.D.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Israel
function: And
dependencies: 1
2
function: Find
inputs: Tom Johnson
function: FilterNum
dependencies: 4
inputs: mass
180 pound
=
function: SelectBetween
dependencies: 3
5
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Israel" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Xerez C.D." . } UNION { ?e <pred:name> "Tom Johnson" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "180"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Israel