Pregunta de entrevista de OneStaff Medical

Write a query to sort and compare dates in sql