Yeah I agree it looks weird. That was the only way I found to reproduce the issue though. I will try to improve it and assert against results instead of the SQL.