modified sql sample