generated and added table selections to syntax