Below query works file
SELECT "MD Appliance Details"."client_name" AS "client_name", count(*) AS "count" FROM (SELECT