Compounds of the form in which Q is selected from -COOH -CH=NR12, -W, -CH2NHR13, -CH=0 and -CH(OR17)2 capable of modulating the activity of histone demethylases (HDMEs), which are useful for prevention and/or treatment of diseases in which genomic dysregulation is involved in the pathogenesis, such as e.g. cancer and formulations and methods of use of such compounds.