I have a database in the following format:

```
idA | idB | stringValue
----+-----+------------
xyz |  1  | ANDFGFRDFG
xyz |  2  | DTGDFHFGH
xyz |  3  | DFDFDS
abc |  5  | DGDFHHGH
abc |  6  | GG
...

```

idA and idB **together** are unique.

I have a file (`list.txt`) with a list of id pairs like this:

```
xyz 2
abc 5
abc 6
...

```

and I would like to print it with `stringValue` in each row. Note some pairs of ids from the file might be absent from the DB. In that case, I don't want to print them at all.

In short, I want to filter a table using a file.