A compound of the formula: or a tautomer, a pharmaceutically acceptable salt and a solvate thereof, wherein W 1 represents an aryl, a 3- to 8- membered carbocyclyl, a 5-, 6- or 7- membered heterocyclyl or heteroaryl ring comprising carbon atoms and 1-4 heteroatoms independently selected from O, N, P and S r and W 1 is optionally substituted with 1-5 R a groups; W 2 represents phenyl, and W 2 is optionally substituted with 1-5 R b groups; Q is N; R is CH 3 or H; R a and R b are independently selected from the group consisting of halo, -CN, -NO 2, -R 1, -OR 2, -O-NR 1 R 2, -NR 1 R 2, -NR 1 -NR 1 R 2, -NR 1 -OR 2, -C YR 2, -OC YR 2, -NR 1 C YR 2, -SC YR 2, -NR 1 C(=S)YR 2, -OC(=S)YR 2, -C(=S)YR 2, -YC(=NR 1)YR 2, -YC(=N-OR 1)YR 2, -YC(=N-NR 1 R 2)YR 2, -YP(=O)(YR 3)(YR 3), -Si(R 3) 3, -NR 1 SO 2 R 2, -S r R 2, -SO 2 NR 1 R 2 and -NR 1 SO 2 NR 1 R 2; alternatively two adjacent R a or two adjacent R b can form with the atoms to which they are attached, a 5-, 6- or 7-membered saturated, partially saturated or unsaturated ring, which can be optionally substituted and which contains 0-3 heteroatoms selected from N, O, P and S r; wherein each Y is independently a bond, -O-, -S- or -NR 1 -; r is 0, 1 or 2; n is 1 or 2; each occurrence of R 1 and R 2 is independently selected from H, alkyl, alkenyl, alkynyl, cycloalkyl, cycloalkenyl, cycloalkynyl, aryl, heterocyclyl and heteroaryl; each occurrence of R 3 is independently selected from alkyl, alkenyl, alkynyl, cycloalkyl, cycloalkenyl, cycloalkynyl, aryl, heterocyclyl and heteroaryl; alternatively, each NR 1 R 2 moiety may be a 5-, 6- or 7-membered saturated, partially saturated or unsaturated ring, which can be optionally substituted and which contains 0-2 additional heteroatoms selected from N, O, P and S r; and each occurrence of the foregoing R 1, R 2 and R 3, when independently selected from alkyl, alkenyl, alkynyl, cycloalkyl, cycloalkenyl, cycloalkynyl, aryl, heteroaryl and heterocyclic moieties, is optionally substituted; and the optional substituents are selected from amino, alkylamino, dialkylamino, aminocarbonyl, halogen, alkyl, aryl, heteroaryl, carbocycle, heterocycle, alkylaminocarbonyl, dialkylaminocarbonyl, alkylaminocarbonyloxy, dialkylaminocarbonyloxy, nitro, cyano, carboxy, alkoxycarbonyl, alkylcarbonyl, hydroxy, alkoxy and haloalkoxy groups; alkyl groups have 1 to 6 carbon atoms; alkenyl groups have 2 to 8 carbon atoms; alkynyl groups have 2 to 8 carbon atoms; cycloalkyl groups have 3 to 13 carbon atoms; cycloalkenyl groups have 3 to 13 carbon atoms; cycloalkynyl groups have 5 to 13 carbon atoms; aryl groups have 6 to 14 ring atoms; heteroaryl groups have 5 to 14 ring atoms; and heterocyclyl groups are non-aromatic heterocycles having 5 to 10 ring atoms in which 1 to 4 ring carbons are each replaced by a heteroatom selected from N, O and S. W 1 represents an aryl, a 3- to 8- membered carbocyclyl, a 5-, 6- or 7- membered heterocyclyl or heteroaryl ring comprising carbon atoms and 1-4 heteroatoms independently selected from O, N, P and S r and W 1 is optionally substituted with 1-5 R a groups; W 2 represents phenyl, and W 2 is optionally substituted with 1-5 R b groups; Q is N; R is CH 3 or H; R a and R b are independently selected from the group consisting of halo, -CN, -NO 2, -R 1, -OR 2, -O-NR 1 R 2, -NR 1 R 2, -NR 1 -NR 1 R 2, -NR 1 -OR 2, -C YR 2, -OC YR 2, -NR 1 C YR 2, -SC YR 2, -NR 1 C(=S)YR 2, -OC(=S)YR 2, -C(=S)YR 2, -YC(=NR 1)YR 2, -YC(=N-OR 1)YR 2, -YC(=N-NR 1 R 2)YR 2, -YP(=O)(YR 3)(YR 3), -Si(R 3) 3, -NR 1 SO 2 R 2, -S r R 2, -SO 2 NR 1 R 2 and -NR 1 SO 2 NR 1 R 2; alternatively two adjacent R a or two adjacent R b can form with the atoms to which they are attached, a 5-, 6- or 7-membered saturated, partially saturated or unsaturated ring, which can be optionally substituted and which contains 0-3 heteroatoms selected from N, O, P and S r; wherein each Y is independently a bond, -O-, -S- or -NR 1 -; r is 0, 1 or 2; n is 1 or 2; each occurrence of R 1 and R 2 is independently selected from H, alkyl, alkenyl, alkynyl, cycloalkyl, cycloalkenyl, cycloalkynyl, aryl, heterocyclyl and heteroaryl; each occurrence of R 3 is independently selected from alkyl, alkenyl, alkynyl, cycloalkyl, cycloalkenyl, cycloalkynyl, aryl, heterocyclyl and heteroaryl; alternatively, each NR 1 R 2 moiety may be a 5-, 6- or 7-membered saturated, partially saturated or unsaturated ring, which can be optionally substituted and which contains 0-2 additional heteroatoms selected from N, O, P and S r; and each occurrence of the foregoing R 1, R 2 and R 3, when independently selected from alkyl, alkenyl, alkynyl, cycloalkyl, cycloalkenyl, cycloalkynyl, aryl, heteroaryl and heterocyclic moieties, is optionally substituted; and the optional substituents are selected from amino, alkylamino, dialkylamino, aminocarbonyl, halogen, alkyl, aryl, heteroaryl, carbocycle, heterocycle, alkylaminocarbonyl, dialkylaminocarbonyl, alkylaminocarbonyloxy, dialkylaminocarbonyloxy, nitro, cyano, carboxy, alkoxycarbonyl, alkylcarbonyl, hydroxy, alkoxy and haloalkoxy groups; alkyl groups have 1 to 6 carbon atoms; alkenyl groups have 2 to 8 carbon atoms; alkynyl groups have 2 to 8 carbon atoms; cycloalkyl groups have 3 to 13 carbon atoms; cycloalkenyl groups have 3 to 13 carbon atoms; cycloalkynyl groups have 5 to 13 carbon atoms; aryl groups have 6 to 14 ring atoms; heteroaryl groups have 5 to 14 ring atoms; and heterocyclyl groups are non-aromatic heterocycles having 5 to 10 ring atoms in which 1 to 4 ring carbons are each replaced by a heteroatom selected from N, O and S.