select date_part( 'day', minus_weekend(begin_date,end_date)) from table1 where name in ('a', 'b', 'c')