Instead of comparing the SQL we should compare the value.