CREATE TABLE "legislation_sponsored_by_john_mc_cain" (
  "years_covered" text,
  "all_bills_sponsored" real,
  "all_amendments_sponsored" real,
  "all_bills_cosponsored" real,
  "all_amendments_cosponsored" real,
  "bills_originally_cosponsored" real,
  "amendments_originally_cosponsored" real
);

Question: What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored?
SQL: SELECT COUNT("all_bills_cosponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "all_amendments_sponsored"<15 AND "all_bills_sponsored"=6 AND "all_amendments_cosponsored"<0;

Question: What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 bills cosponsored?
SQL: SELECT MIN("all_amendments_sponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "bills_originally_cosponsored"=150 AND "all_bills_cosponsored">247;

Question: What is the highest number of bills cosponsored associated with under 24 bills sponsored and under 16 amendments sponsored?
SQL: SELECT MAX("all_bills_cosponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "all_bills_sponsored"<24 AND "all_amendments_sponsored"<16;

Question: What is the highest number of amendments cosponsored associated with 53 amendments originally cosponsored and over 54 bills sponsored?
SQL: SELECT MAX("all_amendments_cosponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "amendments_originally_cosponsored"=53 AND "all_bills_sponsored">54;

Question: What is the number of bills sponsored associated with over 113 bills originally cosponsored and under 47 amendments cosponsored?
SQL: SELECT "all_bills_sponsored" FROM "legislation_sponsored_by_john_mc_cain" WHERE "bills_originally_cosponsored">113 AND "all_amendments_cosponsored"<47;