Generate a query to remove duplicated rows in one table for postgres db. You can use \d {schema}.{table}