TSQB-30: Made the group and query available on ongoingrestriction