def rule(event):
    if any(
        [
            any(
                [
                    event.deep_get("QueryName", default="").startswith("aaa.stage."),
                    event.deep_get("QueryName", default="").startswith("post.1"),
                ]
            ),
            ".stage.123456." in event.deep_get("QueryName", default=""),
        ]
    ):
        return True
    return False
