Date Difference Sql Query Compiler Python Gdp