Which 1st party has 2nd party conservative, election smaller than 1852, and Thomas Grimsditch as 2nd member?
CREATE TABLE "m_ps_1832_1885_macclesfield_parliamentar" (
  "election" real,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text
);
SELECT "1st_party" FROM "m_ps_1832_1885_macclesfield_parliamentar" WHERE "2nd_party"='conservative' AND "election"<1852 AND "2nd_member"='thomas grimsditch';