Bluevine interview question

2 easy + 2 intermediate SQL question