Question: Who is taller, Joan Crawford (the one whose date of birth is 1937-08-22) or Mark Johnson (the one whose mass is 82 kilogram)?
Choices:
Max Fleischer
Richard Gere
Rahul Dev Burman
James E. Reilly
Simon Cowell
Paul Simon
Joan Crawford
Sylvester Stallone
William Henry Harrison
David Byrne
Program:
function: Find
inputs: Joan Crawford
function: FilterDate
dependencies: 0
inputs: date of birth
1937-08-22
=
function: Find
inputs: Mark Johnson
function: FilterNum
dependencies: 2
inputs: mass
82 kilogram
=
function: SelectBetween
dependencies: 1
3
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Joan Crawford" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1937-08-22"^^xsd:date . } UNION { ?e <pred:name> "Mark Johnson" . ?e <mass> ?pv_2 . ?pv_2 <pred:unit> "kilogram" . ?pv_2 <pred:value> "82"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Joan Crawford