Examples of programming questions in sql