def get_grant_key(grant_statement):
    """
    Create the key from the grant statement.
    The key will be used as the dictionnary key.
    :param grant_statement: The grant statement
    :return: The key
    """

    splitted_statement = grant_statement.split()
    grant_privilege = splitted_statement[1]

    if "." in splitted_statement[3]:
        grant_table = splitted_statement[3].split('.')[1]
    else:
        grant_table = splitted_statement[3]

    return grant_privilege + "_" + grant_table