implemented queryml