Pregunta de entrevista de WebMD Health

Asked to right SQL queries medium level