The present application provides the compounds of formula (J),, or pharmaceutically acceptable salts, isomers, or a mixture thereof, wherein n, m, q, A', W1, W2, W3, R1, R2, and R3 are described herein. The compounds are inhibitors to the activities of phosphatidylinositol 3-kinase (PI3K) and are useful for treating conditions mediated by one or more PI3K isoforms. The present application further provides pharmaceutical compositions that include a compound of formula (J), or pharmaceutically acceptable salts, isomers, tautomer, or mixture thereof, and methods of using these compounds and compositions for treating conditions mediated by one or more PI3K isoforms.本發明提供化學式(J)之化合物,, 或其醫藥上可接受之鹽類、異構體或混合物,其中n、m、q、A'、W1、W2、W3、R1、R2、及R3係如本文所述。化合物係為針對磷脂醯肌醇3-激酶(PI3K)之活性的抑制劑,且有效於治療由一或多個PI3K 同功型所介導之病症。本發明進一步提供包含化學式(J)之化合物、醫藥上可接受之鹽類、異構體、互變異構體或其混合物之醫藥組成物,以及使用此些化合物及組成物以治療由一或多個PI3K 同功型所介導之病症的方法。