Fixed a bug: added get_ranges to Id_Query_Constraint to make it work again.