select id, advertising_and_marketing_technology_services_competency as data, 'Advertising and Marketing Technology Services Competencency' as 'competency'  from a_w_s where advertising_and_marketing_technology_services_competency is not null
union all
select id, cloud_operations_services_competency as data, 'Cloud Operations Services Competency' as 'competency'  from a_w_s where cloud_operations_services_competency is not null and deleted=0
union all
select id, data_analytics as data, 'Data & Analytics' as 'competency'  from a_w_s where data_analytics is not null and deleted=0
union all
select id, dev_ops as data, 'DevOps' as 'competency'  from a_w_s where dev_ops is not null and deleted=0
union all
select id, digital_workplace as data, 'Digital Workplace' as 'competency'  from a_w_s where digital_workplace is not null and deleted=0
union all
select id, education as data, 'Education' as 'competency'  from a_w_s where education is not null and deleted=0
union all
select id, financial_services as data, 'Financial Services' as 'competency'  from a_w_s where financial_services is not null and deleted=0
union all
select id, government as data, 'Government' as 'competency'  from a_w_s where government is not null and deleted=0
union all
select id, io_t_consulting as data, 'IoT Consulting' as 'competency'  from a_w_s where io_t_consulting is not null and deleted=0
union all
select id, level1_m_s_s_p as data, 'Level 1 MSSP' as 'competency'  from a_w_s where level1_m_s_s_p is not null and deleted=0
union all
select id, machine_learning_consulting_partner as data, 'Machine Learning Consulting Partner' as 'competency'  from a_w_s where machine_learning_consulting_partner is not null and deleted=0
union all
select id, microsoft_workloads as data, 'Microsoft Workloads' as 'competency'  from a_w_s where microsoft_workloads is not null and deleted=0
union all
select id, digital_workplace as data, 'Migration' as 'competency'  from a_w_s where digital_workplace is not null and deleted=0
union all
select id, migration as data, 'level1_m_s_s_p' as 'competency'  from a_w_s where migration is not null and deleted=0
union all
select id, migration_and_modernization_i_s_v_partner as data, 'Migration and Modernization ISV Partner' as 'competency'  from a_w_s where migration_and_modernization_i_s_v_partner is not null and deleted=0
union all
select id, networking_consulting_competency as data, 'Networking Consulting Competency' as 'competency'  from a_w_s where networking_consulting_competency is not null and deleted=0
union all
select id, nonprofit as data, 'Nonprofit' as 'competency'  from a_w_s where nonprofit is not null and deleted=0
union all
select id, oracle as data, 'Oracle' as 'competency'  from a_w_s where oracle is not null and deleted=0
union all
select id, public_safety_services_competency as data, 'Public Safety Services Competency' as 'competency'  from a_w_s where public_safety_services_competency is not null and deleted=0
union all
select id, resilience_services_competency as data, 'Resilience Services Competency' as 'competency'  from a_w_s where resilience_services_competency is not null and deleted=0
union all
select id, retail as data, 'Retail' as 'competency'  from a_w_s where retail is not null and deleted=0
union all
select id, s_a_p as data, 'SAP' as 'competency'  from a_w_s where s_a_p is not null and deleted=0
union all
select id, `security`  as data, 'Security' as 'competency'  from a_w_s where `security` is not null and deleted=0
union all
select id, small_and_medium_business_services_competency as data, 'Small and Medium Business Services Competency' as 'competency'  from a_w_s where small_and_medium_business_services_competency is not null and deleted=0
union all
select id, storage as data, 'Storage' as 'competency'  from a_w_s where storage is not null and deleted=0
union all
select id, travel_and_hospitality as data, 'Travel and Hospitality' as 'competency'  from a_w_s where travel_and_hospitality is not null and deleted=0