Fix condition attribute location
Add break in switch expression statement; Add space before WHERE keyword in sql