How to run SQL cells with if statement?

How I created a sql cell and run it with if statement
When I run all the notebook, I dont want to run my queries all the time.