def METHOD_NAME(statements_input, sql_statements):
    recommendation = []
    for i in statements_input:
        dict_res = check_with_cte(i)
         # Get line number where the cte is defined
        for cte, count in dict_res.items():
            if count >= 2:
                data = get_line_numbers(cte, count, sql_statements)
                recommendation.append(data)
    # return the recommendations
    return recommendation