Which league has total smaller than 284, with Sandro Mazzola league?
CREATE TABLE "goals" (
  "rank" real,
  "name" text,
  "years" text,
  "league" real,
  "total" real
);
SELECT MIN("league") FROM "goals" WHERE "total"<284 AND "name"='sandro mazzola';