Question: Is the shorter of the two Chris Cooper, at 180-centimetres in height, or Roger Taylor, with a record of 188–140 in doubles?
Choices:
Roger Taylor
David Byrne
William Henry Harrison
Simon Cowell
Max Fleischer
Rahul Dev Burman
Richard Gere
Paul Simon
Chris Cooper
Sylvester Stallone
Program:
function: Find
inputs: Chris Cooper
function: FilterNum
dependencies: 0
inputs: height
180 centimetre
=
function: Find
inputs: Roger Taylor
function: FilterStr
dependencies: 2
inputs: doubles record
188–140
function: SelectBetween
dependencies: 1
3
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Cooper" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "180"^^xsd:double . } UNION { ?e <pred:name> "Roger Taylor" . ?e <doubles_record> ?pv_2 . ?pv_2 <pred:value> "188–140" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Chris Cooper