There is a table with 97972561 rows (recordings) and 8 columns (attributes). The format looks like:
+--------------+------+-------------+------------+--------------+-----------+-----------+-------------+
| PREDICATE_ID | PMID | SENTENCE_ID | SUBJECT_ID | SUBJECT_NAME | PREDICATE | OBJECT_ID | OBJECT_NAME |
+--------------+------+-------------+------------+--------------+-----------+-----------+-------------+
I would like to filter recordings whose subject, predication and object value only appear once. For example, there are four recordings in a table. The last recording should be excluded from the result because (Bob, is_a, Person) only appears once.
+--------------+------+-------------+------------+--------------+-----------+-----------+-------------+
| PREDICATE_ID | PMID | SENTENCE_ID | SUBJECT_ID | SUBJECT_NAME | PREDICATE | OBJECT_ID | OBJECT_NAME |
+--------------+------+-------------+------------+--------------+-----------+-----------+-------------+
| 1 | 100 | 1 | 2 | Bob | is_born_in| 3 | 1994 |
+--------------+------+-------------+------------+--------------+-----------+-----------+-------------+
| 1 | 103 | 3 | 2 | Bob | is_born_in| 3 | 1994 |
+--------------+------+-------------+------------+--------------+-----------+-----------+-------------+
| 1 | 102 | 5 | 2 | Bob | is_born_in| 3 | 1994 |
+--------------+------+-------------+------------+--------------+-----------+-----------+-------------+
| 2 | 104 | 2 | 2 | Bob | is_a | 4 | Person |
+--------------+------+-------------+------------+--------------+-----------+-----------+-------------+
Any help would be appreciated!