select 'ALL' as type , count(*) from feature_matrix_test
union
select 'TN' as type , count(*) from feature_matrix_test where classified_as = 'NA' and phi_type = 'NA' 
union
select 'TP' as type, count(*) from feature_matrix_test where classified_as <> 'NA' and phi_type <> 'NA' 
union
select 'FN' as type, count(*) from feature_matrix_test where classified_as = 'NA' and phi_type <> 'NA' 
union
select 'FP' as type, count(*) from feature_matrix_test where classified_as <> 'NA' and phi_type = 'NA' ; 
