When executing an INNER JOIN query with a complex ON condition involving multiple CAST operations, the query optimizer selects a significantly slower execution plan (NESTED-LOOP JOIN) compared to a ...