def convert_opengl_coordinates2ga_query_coordinates(
        base_x, base_y, scale, x, y, tile_height):
    """To make GroupedAnnotationQuery

    :param int base_x: GroupedAnnotation's x coordinate (OpenGL cs)
    :param int base_y: GroupedAnnotation's y coordinate (OpenGL cs)
    :param int scale: GA level's scale based on level 0
    :param int x:
    :param int y:
    :param tile_height:
    :return tuple[int]: x and y
    """
    new_x = x // scale - base_x
    new_y = tile_height - (y // scale - base_y)
    return new_x, new_y