Consider that we have two tables like the following tables :

Products TABLE : ( Note only in this table ID is product id )

```
|     ID     |   type_id | 
| ---------- | --------- |
|      1     |     1     |
|      2     |     1     |
|      3     |     1     |
|      4     |     2     |
|      5     |     2     |

```

bundle\_product\_relation TABLE:

```
| ID | bundle_id | product_id |
| ---| --------- | -----------|
| 1  |     1     |      1     |
| 2  |     1     |      2     |
| 3  |     1     |      3     |
| 4  |     2     |      1     |
| 5  |     2     |      5     |
| 6  |     3     |      1     |
| 7  |     3     |      3     |

```

I want to write a function that takes the `type_id` as input and returns bundles whose their all products have that `type_id`

For example f(1) returns bundles ids : 1 , 3.

Bundle with id 2 has a product with ID 5, which is the `type_id` 2, So does not count as the output of the function.

What is the right query to get this output?