A compound according to Formula I or a pharmaceutically acceptable salt or solvate thereof, wherein: a is no bond or a bond; z is 3, 2 or 1; X is C, CH 2, or CHR b; Y is N; n = 0, 1, 2, 3 or 4; A 4 is CR 4 or N, A 5 is CR 5 or N, A 6 is CR 6 or N, A 7 is CR 7 or N, with the proviso that no more than two of A 4 -A 7 can be N; R b is (C 1-4)alkyl; R 1 is (i) (C 3-12)carbocyclyl; or (ii) a 4- to 12-membered heterocyclyl, both (i) and (ii) optionally substituted with one, two, three, four or five R 8; R 2 is hydroxycarbonyl, hydroxycarbonyl(C 1-10)alkyl, (C 1-10)alkylsulfoxyaminocarbonyl, or carbamoyl; R 3 is hydrogen, halogen, cyano, nitro, hydroxy, (C 1-3)alkylC O-, phenyl, (C 1-4)alkyl, oxo, or (C 1-4)alkoxy, wherein (C 1-4)alkyl and (C 1-4)alkoxy are optionally substituted with one or more halogen; optionally when z is 3, a represents no bond and two R 3 groups are attached to the two carbons flanking the N atom of the piperidinyl ring formed when z is 3, such that the two R 3 groups join to form a 2- or 3- carbon bridge with the piperidinyl ring to form an azabicyclo [3.2.1]octanyl or azabicyclo [3.3.1]nonanyl ring; R 4, R 5, R 6 and R 7 independently are H, halogen, amino, cyano, hydroxy, (C 1-3)alkoxy, (C 1-4)alkyl, (C 0-10)alkyl)aminocarbonyl, (di)(C 1-6)alkylaminocarbonyl or amino(C 1-4)alkyl, wherein (C 1-3)alkoxy, (C 1-4)alkyl, (C 0-10)alkyl)aminocarbonyl, (di)(C 1-6)alkylaminocarbonyl and amino(C 1-4)alkyl are optionally substituted with one or more halogen, hydroxyl or (C 1-3)alkoxy; or a group having the formula optionally substituted with one or more of the following: (C 1-10)alkyl, halogen, amino, cyano, hydroxy, (C 1-3)alkoxy, and wherein m is 1, 2, 3, or 4; R 8 is halogen, cyano, amino, nitro, hydroxy, oxo, H 2 NC -, (C 1-3)alkoxycarbonyl, (di)(C 1-6)alkylaminocarbonyl, (C 1-4)alkyl, (C 3-7)cycloalkyl, (C 3-5)heterocycloalkyl, or (C 1-3)alkoxy, wherein (C 1-3)alkoxycarbonyl, (di)(C 1-6)alkylaminocarbonyl, (C 1-4)alkyl and (C 1-3)alkoxy are optionally substituted with one, two or three halogens. a is no bond or a bond; z is 3, 2 or 1; X is C, CH 2, or CHR b; Y is N; n = 0, 1, 2, 3 or 4; A 4 is CR 4 or N, A 5 is CR 5 or N, A 6 is CR 6 or N, A 7 is CR 7 or N, with the proviso that no more than two of A 4 -A 7 can be N; R b is (C 1-4)alkyl; R 1 is (i) (C 3-12)carbocyclyl; or (ii) a 4- to 12-membered heterocyclyl, both (i) and (ii) optionally substituted with one, two, three, four or five R 8; (i) (C 3-12)carbocyclyl; or (ii) a 4- to 12-membered heterocyclyl, R 2 is hydroxycarbonyl, hydroxycarbonyl(C 1-10)alkyl, (C 1-10)alkylsulfoxyaminocarbonyl, or carbamoyl; R 3 is hydrogen, halogen, cyano, nitro, hydroxy, (C 1-3)alkylC O-, phenyl, (C 1-4)alkyl, oxo, or (C 1-4)alkoxy, wherein (C 1-4)alkyl and (C 1-4)alkoxy are optionally substituted with one or more halogen; optionally when z is 3, a represents no bond and two R 3 groups are attached to the two carbons flanking the N atom of the piperidinyl ring formed when z is 3, such that the two R 3 groups join to form a 2- or 3- carbon bridge with the piperidinyl ring to form an azabicyclo [3.2.1]octanyl or azabicyclo [3.3.1]nonanyl ring; R 4, R 5, R 6 and R 7 independently are H, halogen, amino, cyano, hydroxy, (C 1-3)alkoxy, (C 1-4)alkyl, (C 0-10)alkyl)aminocarbonyl, (di)(C 1-6)alkylaminocarbonyl or amino(C 1-4)alkyl, wherein (C 1-3)alkoxy, (C 1-4)alkyl, (C 0-10)alkyl)aminocarbonyl, (di)(C 1-6)alkylaminocarbonyl and amino(C 1-4)alkyl are optionally substituted with one or more halogen, hydroxyl or (C 1-3)alkoxy; or a group having the formula optionally substituted with one or more of the following: (C 1-10)alkyl, halogen, amino, cyano, hydroxy, (C 1-3)alkoxy, and wherein m is 1, 2, 3, or 4; R 8 is halogen, cyano, amino, nitro, hydroxy, oxo, H 2 NC -, (C 1-3)alkoxycarbonyl, (di)(C 1-6)alkylaminocarbonyl, (C 1-4)alkyl, (C 3-7)cycloalkyl, (C 3-5)heterocycloalkyl, or (C 1-3)alkoxy, wherein (C 1-3)alkoxycarbonyl, (di)(C 1-6)alkylaminocarbonyl, (C 1-4)alkyl and (C 1-3)alkoxy are optionally substituted with one, two or three halogens.