The present invention provides compounds of formula (I) which are useful as inhibitors of PHD, pharmaceutical compositions thereof, methods for treatment of conditions associated with HIF, processes for making the compounds and intermediates thereof.