CREATE TABLE "top_40_albums_of_2004" (
  "position" real,
  "album_title" text,
  "artist" text,
  "highest_position" real,
  "sales" real
);

Question: What is the lowest high position for 10 years of hits, and over 870,000 sales?
SQL: SELECT MIN("highest_position") FROM "top_40_albums_of_2004" WHERE "album_title"='10 years of hits' AND "sales">'870,000';

Question: What is the average high position for the album unwritten?
SQL: SELECT AVG("highest_position") FROM "top_40_albums_of_2004" WHERE "album_title"='unwritten';