Updated window function analysis to fail queries without an over clause