How the SQL query runs in background?

Thank you @pturmel for your reply.