CREATE TABLE "5901_6000" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);

Question: What is the average NGC number that has a Apparent magnitude greater than 14.2?
SQL: SELECT AVG("ngc_number") FROM "5901_6000" WHERE "apparent_magnitude">14.2;

Question: What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?
SQL: SELECT MAX("ngc_number") FROM "5901_6000" WHERE "declination_j2000"='°04′58″' AND "apparent_magnitude">7.3;

Question: What Constellation has a Object type of globular cluster and a NGC number of 5986?
SQL: SELECT "constellation" FROM "5901_6000" WHERE "object_type"='globular cluster' AND "ngc_number"=5986;