def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 3008,
            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
