CREATE TABLE "most_official_appearances" (
  "ranking" real,
  "nationality" text,
  "name" text,
  "position" text,
  "years" text,
  "league" real,
  "cup" real,
  "europe" real,
  "others" real,
  "total" real
);

Question: How many years was the total 402?
SQL: SELECT COUNT("years") FROM "most_official_appearances" WHERE "total"=402;