Question: Who is shorter, Charlie Daniels of Gillingham F.C. or 100-kilogram Chris Evans?
Choices: Richard Gere
Charlie Daniels
William Henry Harrison
Chris Evans
David Byrne
Max Fleischer
Sylvester Stallone
Paul Simon
James E. Reilly
Simon Cowell
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlie Daniels" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Gillingham F.C." . } UNION { ?e <pred:name> "Chris Evans" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "kilogram" . ?pv_1 <pred:value> "100"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Gillingham F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Charlie Daniels
function: And
dependencies: 1
2
function: Find
inputs: Chris Evans
function: FilterNum
dependencies: 4
inputs: mass
100 kilogram
=
function: SelectBetween
dependencies: 3
5
inputs: height
less
Answer: Charlie Daniels