Begin query definition
Remove extra codes