sql server inaccurate cardinality estimation