Postgres Select Rows With Duplicate File