I’ve a query which returns the following data

as you can see in the image the colored groups are similar regarding column “A”
i want to take the first occurrence of these rows regarding column “A” and discard the rest.
so i can end up with this result.

any solutions?
Thanks 🙂
Update:
this is the original query results

I would do it as follows: