def getRelationsAndRNByCharacter(cname: str, rn: int) -> str: 
    """Return a query to get the relation and Ryu Number of a character.
    
    The query retrieves the character's name, as well as the title and Ryu
    Number of all games that the character appears in with a Ryu Number 
    greater than or equal to the passed value.

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