Question: Who is shorter, Leon Trotsky or Israel who is 172 centimetres?
Choices:
James E. Reilly
David Byrne
Leon Trotsky
Simon Cowell
Sylvester Stallone
Israel
Richard Gere
William Henry Harrison
Max Fleischer
Rahul Dev Burman
Program:
function: Find
inputs: Leon Trotsky
function: Find
inputs: Israel
function: FilterNum
dependencies: 1
inputs: height
172 centimetre
=
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Leon Trotsky" . } UNION { ?e <pred:name> "Israel" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "172"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Israel