CREATE TABLE "kansas" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);

Question: Frequency MHz of 88.7 had what average erp w?
SQL: SELECT AVG("erp_w") FROM "kansas" WHERE "frequency_m_hz"=88.7;

Question: Frequency MHz smaller than 95.3, and a Call sign of k234ag is what class?
SQL: SELECT "class" FROM "kansas" WHERE "frequency_m_hz"<95.3 AND "call_sign"='k234ag';

Question: Call sign of k231bg has what sum of erp w?
SQL: SELECT SUM("erp_w") FROM "kansas" WHERE "call_sign"='k231bg';

Question: Class of d, and a Frequency MHz smaller than 107.7, and a ERP W smaller than 232 has what call sign?
SQL: SELECT "call_sign" FROM "kansas" WHERE "class"='d' AND "frequency_m_hz"<107.7 AND "erp_w"<232;

Question: ERP W that has a Class of d, and a Call sign of k299ar is what total number?
SQL: SELECT COUNT("erp_w") FROM "kansas" WHERE "class"='d' AND "call_sign"='k299ar';