Question: Who is taller, Liam O'Brien (the one whose height is 183 centimetre) or Hameur Bouazza?
Choices:
James E. Reilly
Liam O'Brien
Hameur Bouazza
Sylvester Stallone
Richard Gere
Max Fleischer
William Henry Harrison
Rahul Dev Burman
Simon Cowell
David Byrne
Program:
function: Find
inputs: Liam O'Brien
function: FilterNum
dependencies: 0
inputs: height
183 centimetre
=
function: Find
inputs: Hameur Bouazza
function: SelectBetween
dependencies: 1
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Liam O'Brien" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "183"^^xsd:double . } UNION { ?e <pred:name> "Hameur Bouazza" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Liam O'Brien