def getGameFromCharacter(cname: str) -> str: 
    """Return a query to get games with equal Ryu Number to a character.
    
    The query will retrieve the title and Ryu Number of a game whose Ryu 
    Number is exactly equal to the Ryu Number of the character whose name is
    passed. This is used primarily for path-finding towards Ryu.

    The resulting query takes the following form for game as G:
    `(G.title: str, G.ryu_number: int)`
    """
    return (f"SELECT DISTINCT G.title, G.ryu_number "
            f"FROM appears_in "
            f"INNER JOIN game_character AS C ON cname=C.name "
            f"INNER JOIN game AS G ON gtitle=G.title "
            f"WHERE cname LIKE '{cname}' AND G.ryu_number=C.ryu_number;"
    )