Table: legislator_details_2
Columns: senator
party
district
home_town
took_office

Question: What is the earliest date of taking office for district 22?
SQL: SELECT MIN("took_office") FROM legislator_details_2 WHERE "district" = 22

Question: What district has a democratic leader from Roby?
SQL: SELECT SUM("district") FROM legislator_details_2 WHERE "party" = 'democratic' AND "home_town" = 'roby'

Question: What is the district where Steve Carriker is the Democratic Senator and he took office later than 1988?
SQL: SELECT MAX("district") FROM legislator_details_2 WHERE "party" = 'democratic' AND "senator" = 'steve carriker' AND "took_office" > 1988