Borrow Lenses interview question

SQL queries and relational schema