Disclosed are carboxamide compounds, as well as pharmaceutical compositions and methods of use. One embodiment is a compound having the structure in which R1, R2, R3, R4, D, J, Z, T, p, q, w and x are as described herein. In certain embodiments, a compound disclosed herein activates the AMPK pathway, and can be used to treat metabolism-related disorders and conditions.