Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If you ask a question, such as 誰がこれが分かる？ Is this still grammatical? Is it okay to use two が's in the same sentence?
Yes, it is grammatically correct. But if you want to avoid multiple がs like this, you can replace the former with に.
See also this topic about が and に interchangeablitily.
Required, but never shown