[#61829288] Implemented new abstract query class.