def getRelationsAndRNByGame(gtitle: str, rn: int) -> str: 
    """Return a query to get the relation and Ryu Number of a game.
    
    The query retrieves the game's title, as well as the name and Ryu
    Number of all characters who appear in that game and have a Ryu Number 
    greater than or equal to the passed value minus one.

    The resulting tuple takes the following form for appears_in as AI and
    game_character as C: `(AI.cname: str, AI.gtitle: str, C.ryu_number: int)`
    """
    return (f"SELECT AI.cname, AI.gtitle, C.ryu_number "
            f"FROM appears_in AS AI "
            f"JOIN game_character AS C ON C.name=AI.cname "
            f"WHERE gtitle='{gtitle}' AND C.ryu_number>={rn}-1;"
    )