Table: legislative_history
Columns: office
branch
location
elected
term_began
term_ended

Question: What location was the congressional service of which the term ended in January 3, 2011?
SQL: SELECT "location" FROM legislative_history WHERE "term_ended" = 'January 3, 2011'

Question: What branch was involved when the term began in January 3, 1985?
SQL: SELECT "branch" FROM legislative_history WHERE "term_began" = 'January 3, 1985'

Question: What year was the congressional service elected for a term beginning on January 3, 1989?
SQL: SELECT "elected" FROM legislative_history WHERE "term_began" = 'January 3, 1989'

Question: What group was in office when the term ended in January 3, 1993?
SQL: SELECT "office" FROM legislative_history WHERE "term_ended" = 'January 3, 1993'

Question: How many terms began when the term ended in January 3, 1989?
SQL: SELECT COUNT("term_began") FROM legislative_history WHERE "term_ended" = 'January 3, 1989'