rename compile_context to _compile_context in BaseQuery