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