Question: Who is shorter, John Quincy Adams (the one whose height is 171 centimetre) or Chris Martin (the one whose height is 185 centimetre)?
Choices:
Max Fleischer
Sylvester Stallone
James E. Reilly
Chris Martin
Rahul Dev Burman
Richard Gere
William Henry Harrison
David Byrne
John Quincy Adams
Simon Cowell
Answer: John Quincy Adams
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Quincy Adams" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "171"^^xsd:double . } UNION { ?e <pred:name> "Chris Martin" . ?e <height> ?pv_2 . ?pv_2 <pred:unit> "centimetre" . ?pv_2 <pred:value> "185"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: John Quincy Adams
function: FilterNum
dependencies: 0
inputs: height
171 centimetre
=
function: Find
inputs: Chris Martin
function: FilterNum
dependencies: 2
inputs: height
185 centimetre
=
function: SelectBetween
dependencies: 1
3
inputs: height
less