Advanced-SQL - task 29, 31