Diff Date Postgresql Tutorial Subquery Question