CREATE TABLE "current_members_of_the_baltimore_county_" (
  "district" text,
  "counties_represented" text,
  "party" text,
  "first_elected" real,
  "committee" text
);

Question: What counties represented have a democratic committee, and a committee of ways and means?
SQL: SELECT "counties_represented" FROM "current_members_of_the_baltimore_county_" WHERE "party"='democratic' AND "committee"='ways and means';

Question: What is the average first elected year that has a district of 11 and a committee of environmental matters?
SQL: SELECT AVG("first_elected") FROM "current_members_of_the_baltimore_county_" WHERE "district"='11' AND "committee"='environmental matters';

Question: What is the total number of First elected that has a country represented in Baltimore county, a district of 06.0 6, and a committee of economic matters?
SQL: SELECT COUNT("first_elected") FROM "current_members_of_the_baltimore_county_" WHERE "counties_represented"='baltimore county' AND "district"='06.0 6' AND "committee"='economic matters';

Question: What district has counties represented by Baltimore county, a committee of health and government operations, and a first elected smaller than 2002?
SQL: SELECT "district" FROM "current_members_of_the_baltimore_county_" WHERE "counties_represented"='baltimore county' AND "committee"='health and government operations' AND "first_elected"<2002;

Question: What is the Highest first elected year that has a district of 06.0 6, and a committee of economic matters?
SQL: SELECT MAX("first_elected") FROM "current_members_of_the_baltimore_county_" WHERE "district"='06.0 6' AND "committee"='economic matters';