Pregunta de entrevista de Amazon

All about SQL statements, not too much difficut.