creat diagram select 