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: How many bills where originally cosponsored in those years where the total of all amendments cosponsored was 0?
SQL: SELECT "bills_originally_cosponsored" FROM "legislation_sponsored_by_john_mc_cain" WHERE "all_amendments_cosponsored"=0;

Question: How many bill cosponsored during those years where bills originally cosponsored is 113?
SQL: SELECT "all_bills_cosponsored" FROM "legislation_sponsored_by_john_mc_cain" WHERE "bills_originally_cosponsored"=113;

Question: What is the greatest number of bills sponsored in any year?
SQL: SELECT MAX("all_bills_sponsored") FROM "legislation_sponsored_by_john_mc_cain";