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