Question: Who has more mass, Mark Harmon (the one whose date of birth is 1951-09-02) or Chris Martin (the one whose date of birth is 1986-06-02)?
Choices:
Simon Cowell
Rahul Dev Burman
Mark Harmon
William Henry Harrison
James E. Reilly
Max Fleischer
David Byrne
Chris Martin
Sylvester Stallone
Richard Gere
Program:
function: Find
inputs: Mark Harmon
function: FilterDate
dependencies: 0
inputs: date of birth
1951-09-02
=
function: Find
inputs: Chris Martin
function: FilterDate
dependencies: 2
inputs: date of birth
1986-06-02
=
function: SelectBetween
dependencies: 1
3
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mark Harmon" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1951-09-02"^^xsd:date . } UNION { ?e <pred:name> "Chris Martin" . ?e <date_of_birth> ?pv_2 . ?pv_2 <pred:date> "1986-06-02"^^xsd:date . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chris Martin