CREATE TABLE "m_ps_1832_1885_macclesfield_parliamentar" (
  "election" real,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text
);

Question: Which 1st member has Thomas Grimsditch as a 2nd member?
SQL: SELECT "1st_member" FROM "m_ps_1832_1885_macclesfield_parliamentar" WHERE "2nd_member"='thomas grimsditch';

Question: What is all the total election that has conservative as 2nd party?
SQL: SELECT SUM("election") FROM "m_ps_1832_1885_macclesfield_parliamentar" WHERE "2nd_party"='conservative';

Question: Which 1st party has John Brocklehurst as 1st member, Edward Christopher Egerton 2nd memeber, and election smaller than 1880?
SQL: SELECT "1st_party" FROM "m_ps_1832_1885_macclesfield_parliamentar" WHERE "election"<1880 AND "1st_member"='john brocklehurst' AND "2nd_member"='edward christopher egerton';

Question: Which 1st party has 2nd party conservative, election smaller than 1852, and Thomas Grimsditch as 2nd member?
SQL: SELECT "1st_party" FROM "m_ps_1832_1885_macclesfield_parliamentar" WHERE "2nd_party"='conservative' AND "election"<1852 AND "2nd_member"='thomas grimsditch';