```
catId  DealId
 1      668
 2      668
 3      669
 1      669
 3      671
11      671
12      671
 7      669
12      672
13      673

```

Suppose it's a table. If I give two values for `catId` as input, a query should return all the records that contain same `DealId`.