Table: election_results_1977
Columns: constituency
winner
party
margin
runner_up_a
party_a

Question: Name the most margin for nco party and p. ramachandran won
SQL: SELECT MAX("margin") FROM election_results_1977 WHERE "party" = 'NCO' AND "winner" = 'P. Ramachandran'

Question: Name the party a for m. s. k. sathiyendran runner up
SQL: SELECT "party_a" FROM election_results_1977 WHERE "runner_up_a" = 'M. S. K. Sathiyendran'

Question: Name the party a for  sriperumbudur
SQL: SELECT "party_a" FROM election_results_1977 WHERE "constituency" = 'Sriperumbudur'

Question: Name the total number of runner up a for  perambalur
SQL: SELECT COUNT("runner_up_a") FROM election_results_1977 WHERE "constituency" = 'Perambalur'

Question: Name the constituency for 175130
SQL: SELECT "constituency" FROM election_results_1977 WHERE "margin" = 175130