A compound having Formula: or a stereoisomer, a geometric isomer, a tautomer, an N -oxide, a solvate, or a pharmaceutically salt thereof, wherein: W 1 is N or CR c; each of W 2 and W 3 is independently CR c; Z is CN, N 3, or X is H, D, (C 1 -C 6)alkyl, (C 3 -C 6)cycloalkyl, (C 3 -C 6)heterocyclyl, -(C 1 -C 4)alkylene-(C 3 -C 6)cycloalkyl, or -(C 1 -C 4)alkylene-(C 3 -C 6)heterocyclyl, wherein each of the (C 1 -C 6)alkyl, (C 3 -C 6)cycloalkyl, (C 3 -C 6)heterocyclyl, -(C 1 -C 4)alkylene-(C 3 -C 6)cycloalkyl and -(C 1 -C 4)alkylene-(C 3 -C 6)heterocyclyl is optionally substituted with 1, 2, 3 or 4 substituents independently selected from D, F, Cl, Br, CN, N 3, OR a, SR a, NR a R b, -C(=O)NR a R b, (C 1 -C 3)alkyl, (C 1 -C 3)haloalkyl, (C 2 -C 4)alkenyl, and (C 2 -C 4)alkynyl; Y is (C 1 -C 6)alkyl, (C 3 -C 6)cycloalkyl, (C 3 -C 6)heterocyclyl, -(C 1 -C 4)alkylene-(C 3 -C 6)cycloalkyl, -(C 1 -C 4)alkylene-(C 3 -C 6)heterocyclyl, (C 2 -C 6)alkenyl, (C 2 -C 6)alkynyl, (C 6 -C 10)aryl, or 5-10 membered heteroaryl comprising 1, 2, 3 or 4 heteroatoms independently selected from O, S and N, wherein each of the (C 1 -C 6)alkyl, (C 3 -C 6)cycloalkyl, (C 3 -C 6)heterocyclyl, -(C 1 -C 4)alkylene-(C 3 -C 6)cycloalkyl, -(C 1 -C 4)alkylene-(C 3 -C 6)heterocyclyl, (C 2 -C 6)alkenyl, (C 2 -C 6)alkynyl, (C 6 -C 10)aryl and 5-10 membered heteroaryl is optionally substituted with 1, 2, 3 or 4 substituents independently selected from D, F, Cl, Br, CN, N 3, OR a, SR a, NR a R b, -C(=O)NR a R b, (C 1 -C 6)alkyl, (C 1 -C 6)haloalkyl, (C 2 -C 6)alkenyl, (C 2 -C 6)alkynyl, -(C 1 -C 4)alkylene-CN, -(C 1 -C 4)alkylene-OR a, -(C 1 -C 4)alkylene-NR a R b, (C 6 -C 10)aryl, and 5-10 membered heteroaryl; R 1 is H, D, Cl, OR a, NR a R b, (C 1 -C 6)aliphatic, or (C 3 -C 6)cycloalkyl, wherein each of the (C 1 -C 6)aliphatic and (C 3 -C 6)cycloalkyl is optionally substituted with 1, 2, 3 or 4 substituents independently selected from D, F, Cl, CN, N 3, OR a, SR a, and NR a R b; each R a and R b is independently H, (C 1 -C 6)alkyl, (C 3 -C 6)cycloalkyl, (C 3 -C 6)heterocyclyl, (C 6 -C 10)aryl, 5-10 membered heteroaryl comprising 1, 2, 3 or 4 heteroatoms independently selected from O, S and N, -(C 1 -C 4)alkylene-(C 6 -C 10)aryl, -(C 1 -C 4)alkylene-(5-10 membered heteroaryl), or R a and R b are taken together with the nitrogen atom to which they are attached form a 3-8 membered heterocyclic ring, wherein each of the above substituents is optionally substituted with 1, 2, 3 or 4 substituents independently selected from D, F, Cl, CN, N 3, OH, NH 2, (C 1 -C 6)alkoxy, and (C 1 -C 6)alkylamino; and each R c is independently H. W 1 is N or CR c; each of W 2 and W 3 is independently CR c; Z is CN, N 3, or X is H, D, (C 1 -C 6)alkyl, (C 3 -C 6)cycloalkyl, (C 3 -C 6)heterocyclyl, -(C 1 -C 4)alkylene-(C 3 -C 6)cycloalkyl, or -(C 1 -C 4)alkylene-(C 3 -C 6)heterocyclyl, wherein each of the (C 1 -C 6)alkyl, (C 3 -C 6)cycloalkyl, (C 3 -C 6)heterocyclyl, -(C 1 -C 4)alkylene-(C 3 -C 6)cycloalkyl and -(C 1 -C 4)alkylene-(C 3 -C 6)heterocyclyl is optionally substituted with 1, 2, 3 or 4 substituents independently selected from D, F, Cl, Br, CN, N 3, OR a, SR a, NR a R b, -C(=O)NR a R b, (C 1 -C 3)alkyl, (C 1 -C 3)haloalkyl, (C 2 -C 4)alkenyl, and (C 2 -C 4)alkynyl; Y is (C 1 -C 6)alkyl, (C 3 -C 6)cycloalkyl, (C 3 -C 6)heterocyclyl, -(C 1 -C 4)alkylene-(C 3 -C 6)cycloalkyl, -(C 1 -C 4)alkylene-(C 3 -C 6)heterocyclyl, (C 2 -C 6)alkenyl, (C 2 -C 6)alkynyl, (C 6 -C 10)aryl, or 5-10 membered heteroaryl comprising 1, 2, 3 or 4 heteroatoms independently selected from O, S and N, wherein each of the (C 1 -C 6)alkyl, (C 3 -C 6)cycloalkyl, (C 3 -C 6)heterocyclyl, -(C 1 -C 4)alkylene-(C 3 -C 6)cycloalkyl, -(C 1 -C 4)alkylene-(C 3 -C 6)heterocyclyl, (C 2 -C 6)alkenyl, (C 2 -C 6)alkynyl, (C 6 -C 10)aryl and 5-10 membered heteroaryl is optionally substituted with 1, 2, 3 or 4 substituents independently selected from D, F, Cl, Br, CN, N 3, OR a, SR a, NR a R b, -C(=O)NR a R b, (C 1 -C 6)alkyl, (C 1 -C 6)haloalkyl, (C 2 -C 6)alkenyl, (C 2 -C 6)alkynyl, -(C 1 -C 4)alkylene-CN, -(C 1 -C 4)alkylene-OR a, -(C 1 -C 4)alkylene-NR a R b, (C 6 -C 10)aryl, and 5-10 membered heteroaryl; R 1 is H, D, Cl, OR a, NR a R b, (C 1 -C 6)aliphatic, or (C 3 -C 6)cycloalkyl, wherein each of the (C 1 -C 6)aliphatic and (C 3 -C 6)cycloalkyl is optionally substituted with 1, 2, 3 or 4 substituents independently selected from D, F, Cl, CN, N 3, OR a, SR a, and NR a R b; each R a and R b is independently H, (C 1 -C 6)alkyl, (C 3 -C 6)cycloalkyl, (C 3 -C 6)heterocyclyl, (C 6 -C 10)aryl, 5-10 membered heteroaryl comprising 1, 2, 3 or 4 heteroatoms independently selected from O, S and N, -(C 1 -C 4)alkylene-(C 6 -C 10)aryl, -(C 1 -C 4)alkylene-(5-10 membered heteroaryl), or R a and R b are taken together with the nitrogen atom to which they are attached form a 3-8 membered heterocyclic ring, wherein each of the above substituents is optionally substituted with 1, 2, 3 or 4 substituents independently selected from D, F, Cl, CN, N 3, OH, NH 2, (C 1 -C 6)alkoxy, and (C 1 -C 6)alkylamino; and each R c is independently H.