CREATE TABLE "schools_with_most_team_titles_in_one_spo" (
  "rank" real,
  "num_of_titles" real,
  "school" text,
  "city" text,
  "sport" text,
  "first" real,
  "last" real
);

Question: What city is the School, Highland, in that ranks less than 8 and had its first title before 1980 and its last title later than 1960?
SQL: SELECT "city" FROM "schools_with_most_team_titles_in_one_spo" WHERE "rank"<8 AND "first"<1980 AND "last">1960 AND "school"='highland';

Question: What city is the school that had less than 17 titles in boys basketball with the last title being after 2005?
SQL: SELECT "city" FROM "schools_with_most_team_titles_in_one_spo" WHERE "num_of_titles"<17 AND "last">2005 AND "sport"='boys basketball';

Question: What is the highest rank for the boys swimming team in Albuquerque?
SQL: SELECT MAX("rank") FROM "schools_with_most_team_titles_in_one_spo" WHERE "sport"='boys swimming' AND "city"='albuquerque';

Question: What is the total rank number for Los Alamos' girls cross country?
SQL: SELECT COUNT("rank") FROM "schools_with_most_team_titles_in_one_spo" WHERE "school"='los alamos' AND "sport"='girls cross country';