Table: election_results_1888
Columns: district
incumbent
party
first_elected
result

Question: What party was re-elected as an incumbent of robert p. Kennedy?
SQL: SELECT "party" FROM election_results_1888 WHERE "result" = 're-elected' AND "incumbent" = 'robert p. kennedy'

Question: Which democratic incumbent is from the district of ohio 7?
SQL: SELECT "incumbent" FROM election_results_1888 WHERE "party" = 'democratic' AND "district" = 'ohio 7'

Question: Which republican was first elected in 1886 in the district of ohio 17?
SQL: SELECT "result" FROM election_results_1888 WHERE "party" = 'republican' AND "first_elected" = '1886' AND "district" = 'ohio 17'

Question: Which result was in the district of ohio 6?
SQL: SELECT "result" FROM election_results_1888 WHERE "district" = 'ohio 6'

Question: Who was first elected as the result of a retired republican gain in the district of ohio 21?
SQL: SELECT "first_elected" FROM election_results_1888 WHERE "result" = 'retired republican gain' AND "district" = 'ohio 21'