add helper functions to translate molgenis query to RSQL, currently used for TRIUMPH heatmap