CREATE TABLE "singles" (
  "year" real,
  "chart" text,
  "track" text,
  "peak" real,
  "weeks_on_chart" real
);

Question: Name the least weeks for year less than 2000
SQL: SELECT MIN("weeks_on_chart") FROM "singles" WHERE "year"<2000;

Question: Name the total number of weeks for si te vas and peak less than 7 and year less than 2000
SQL: SELECT COUNT("weeks_on_chart") FROM "singles" WHERE "track"='si te vas' AND "peak"<7 AND "year"<2000;