According to all of the documentation provided by the vendor, the following SQL features are supported using a subquery:
The query that should by all means work would then be:
count in (
select max(count) from table
group by id
)
In 'pure' SQL (as some would put it), you would see this as:
create table temp (
id nvarchar(1),
ct int
)
go
insert into temp
select 'a', 1
insert into temp
select 'b', 1
insert into temp
select 'a', 4
insert into temp
select 'b', 8
select * from temp
where ct in (
select max(ct) from temp
group by id
)
id ct
-----
a | 4
b | 8
-----
drop table temp
Since, for whatever reason, the query isn't working, I've knocked up the following script that works for you. Simply configure it and run it in the Python console, or by any other means you're familiar with.
import arcpy
layer = "pts1"
pkCol = "OBJECTID"
gpCol = "id"
ctCol = "count"
cols = (pkCol, gpCol, ctCol)
pks = []
gps = []
cts = []
i = -1
with arcpy.da.SearchCursor("pts1", cols) as c:
for f in c:
pk = f[0]
gp = f[1]
ct = f[2]
if not (gp in gps):
i = i + 1
gps.append(gp)
cts.append(0)
pks.append(pk)
if (ct > cts[i]):
cts[i] = ct
pks[i] = pk
cts[i] = ct
query = '{0} IN ({1})'.format(pkCol, ', '.join("{0}".format(n) for n in pks))
arcpy.SelectLayerByAttribute_management(layer, "NEW_SELECTION", query)