lowercase table names in ON clauses