Meta tracks various types of reactions on posts to measure user sentiment. For this task, the product team wants to know the combined total of positive engagement—specifically Like and Heart reactions—for a single post with post_id 1001.
Write an SQL query to find the total number of Like and Heart reactions for post_id 1001.
| post_id(INTEGER) | reaction_type(VARCHAR) |
|---|---|
| 1001 | Like |
| 1001 | Heart |
| 1001 | Like |
| 1001 | Sad |
| 1002 | Heart |
| 1001 | Heart |
| 1001 | Like |
| post_id(INTEGER) | total_positive_reactions(INTEGER) |
|---|---|
| 1001 | 5 |