Green’s Dictionary of Slang

queer ’em n.

also queer’m, queerum
[queer v. (3)]

late 18C-the gallows.

[UK]H. Lemoine ‘Education’ in Attic Misc. 117: Both’ring the flats assembled round the quod / The queerum queerly smear’d with dirty black.
[UK]‘Jon Bee’ Dict. of the Turf, the Ring, the Chase, etc.
[UK] ‘Sonnets for the Fancy’ in Egan Boxiana III 622: [as 1791].