medai queries