Table: election_results_1984
Columns: district
incumbent
party
first_elected
result
candidates

Question: What is the result for barney frank?
SQL: SELECT "result" FROM election_results_1984 WHERE "incumbent" = 'Barney Frank'

Question: What is the number of results for james shannon?
SQL: SELECT COUNT("result") FROM election_results_1984 WHERE "incumbent" = 'James Shannon'

Question: What is the minimum first elected for ed markey?
SQL: SELECT MIN("first_elected") FROM election_results_1984 WHERE "incumbent" = 'Ed Markey'