CREATE TABLE "list_of_elected_m_ps" (
  "constituency" text,
  "winner" text,
  "party" text,
  "margin" real,
  "runner_up_a" text,
  "party_a" text
);

Question: What party won with a margin of 105731?
SQL: SELECT "party" FROM "list_of_elected_m_ps" WHERE "margin"=105731;

Question: What party is the winner K. Anbazhagan from?
SQL: SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "winner"='K. Anbazhagan';

Question: How many times did M. Gounder win for Party A?
SQL: SELECT COUNT("party_a") FROM "list_of_elected_m_ps" WHERE "winner"='M. Gounder';

Question: Who won when V. A. Muthiah was the runner-up?
SQL: SELECT "winner" FROM "list_of_elected_m_ps" WHERE "runner_up_a"='V. A. Muthiah';

Question: What party was the winner when A. Krishnaswamy was the runner-up?
SQL: SELECT "party" FROM "list_of_elected_m_ps" WHERE "runner_up_a"='A. Krishnaswamy';

Question: Who was the runner up for the Nagapattinam constituency?
SQL: SELECT "runner_up_a" FROM "list_of_elected_m_ps" WHERE "constituency"='Nagapattinam';