added read_tbl_rows_sg_cont_ad_with_cond