CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
  "bank_type" text,
  "number_of_branches" real,
  "on_site_at_ms" real,
  "off_site_at_ms" real,
  "total_at_ms" real
);

Question: What is the total ATMs with off-site ATMs greater than 3672, and less than 1685 as the number of branches?
SQL: SELECT COUNT("total_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "off_site_at_ms">3672 AND "number_of_branches"<1685;

Question: What is the total number of branches when the on-site ATMS is 1548, and the off-site ATMs is bigger than 3672?
SQL: SELECT SUM("number_of_branches") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "on_site_at_ms"=1548 AND "off_site_at_ms">3672;

Question: What is the minimum total ATMs with new private sector banks as the bank type, and the on-site ATMs are greater than 1883?
SQL: SELECT MIN("total_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "bank_type"='new private sector banks' AND "on_site_at_ms">1883;

Question: What is the mean on-site ATMS that have off-site ATMs of 1567, and the total number of ATMs less than 4772?
SQL: SELECT AVG("on_site_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "off_site_at_ms"=1567 AND "total_at_ms"<4772;

Question: With foreign banks as the bank type, and on-site ATMS less than 218, what is the average off-site ATMs?
SQL: SELECT AVG("off_site_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "bank_type"='foreign banks' AND "on_site_at_ms"<218;