I have output like this:
number pd_team rating att_attorney law_firm patent_developer
496486 Networks Auto
You could start with this...
SELECT number entity
, 'pd_team' attribute
, pd_team value
FROM my_table
UNION
SELECT number
, 'rating' attribute
, rating value
FROM my_table
UNION ...
Deriving the results from this would be trivial
Try this query.
select t1.name Value, count(t1.name) Count from(
select pd_team from Table
union all
select rating from Table
union all
select att_attorney from Table
union all
select law_firm from Table
union all
select patent_developer from Table) t1 group by t1.name;