I'm having following table 

```
id task_id stage_id is_completed
1   1         1        1
2   1         2        1
3   1         3        0
4   2         1        1
5   2         2        0
6   2         3        1
7   3         1        1
8   3         2        1
9   3         3        0

```

How can I get all task\_ids where stage\_id = 1 and is\_completed = 1 and stage\_id = 2 and is\_completed = 0