Please help me to deconstruct the grammar of this relative clause: この法律に違反する可能性がある政治の団体が活動をやめています。


This is an
[excerpt](https://www3.nhk.or.jp/news/easy/k10012490501000/k10012490501000.html)
from an NHK easy article talking about the new law passed in Hong Kong:

> この法律に違反する可能性がある政治の団体が活動をやめています。

この法律に this law

違反する可能性がある政治の団体が活動 activities (by?) government groups (that?) possibly
oppose... this law have ceased

Possibly a better translation would be - demonstrations/protests by government
groups that possibly oppose this law will cease?

I suppose what I don't understand is how the two が's used in this sentence are
functioning:

The first が: 違反する可能性がある政治の団体 lit. government groups **that** possibly oppose?

The second が: 政治の団体が活動 lit. activities **by** government groups? (in
retrospect, the が here is the subject marker)




If it were to be parsed, this is what it would look like:

> (a) この法律に違反する可能性がある\ (b) 政治の \ **団体が活動をやめています** 。

The one in boldface is the core of the sentence. (a) and (b) modifies 団体.

Now, you mentioned this:

> The first が: 違反する可能性がある政治の団体 lit. government groups that possibly oppose?
> The second が: 政治の団体が活動 lit. activities by government groups? (in retrospect,
> the が here is the subject marker)

Your understanding of the first が is correct. It would have been better though
if you included 法律に so that you can translate it to "government/political
groups that possibly oppose the law."

For the second が, the one in 団体が活動をやめています, it translates to "groups are
ceasing their activities (i.e., demonstration, protests)."

So all in all, the sentence can translate to "The political groups that have
the possibility of violating this law have stopped their activities."

