Add Problem 7 for PostgreSQL