def query_put_bounders(query, partition_column, start, end):
    """ Put bounders in the query

    Args:
        query: SQL query string
        partition_column: partition_column name
        start: lower_bound
        end: upper_bound

    Returns:
        Query with bounders
    """
    where = " WHERE TMP_TABLE.{0} >= {1} AND TMP_TABLE.{0} <= {2}".format(
        partition_column, start, end
    )
    query_with_bounders = "SELECT * FROM ({0}) AS TMP_TABLE {1}".format(query, where)
    return query_with_bounders
Put bounders in the query

    Args:
        query: SQL query string
        partition_column: partition_column name
        start: lower_bound
        end: upper_bound

    Returns:
        Query with bounders