generate table, isolated code_gen tests
selectivity test added