Which Total has a Name of alex mcleish category:articles with hcards, and a League smaller than 494?
CREATE TABLE "appearances" (
  "name" text,
  "years" text,
  "league" real,
  "scottish_cup" real,
  "league_cup" real,
  "europe" real,
  "total" real
);
SELECT AVG("total") FROM "appearances" WHERE "name"='alex mcleish category:articles with hcards' AND "league"<494;