Question: Who is shorter, U.K. citizen David Healy or John Williams who is 211 centimetres tall?
Choices:
David Byrne
Paul Simon
Rahul Dev Burman
John Williams
William Henry Harrison
James E. Reilly
Richard Gere
Simon Cowell
Sylvester Stallone
David Healy
Answer: David Healy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Healy" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "United Kingdom" . } UNION { ?e <pred:name> "John Williams" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "211"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: David Healy
function: And
dependencies: 1
2
function: Find
inputs: John Williams
function: FilterNum
dependencies: 4
inputs: height
211 centimetre
=
function: SelectBetween
dependencies: 3
5
inputs: height
less