CREATE TABLE "2701_2800" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);

Question: Which Object type has a Constellation of cancer?
SQL: SELECT "object_type" FROM "2701_2800" WHERE "constellation"='cancer';

Question: Which NGC number has a Constellation of ursa major?
SQL: SELECT MAX("ngc_number") FROM "2701_2800" WHERE "constellation"='ursa major';

Question: Which Constellation has a NGC number smaller than 2775, and a Declination (J2000) of °05′07″?
SQL: SELECT "constellation" FROM "2701_2800" WHERE "ngc_number"<2775 AND "declination_j2000"='°05′07″';

Question: Which Object type has a NGC number of 2787?
SQL: SELECT "object_type" FROM "2701_2800" WHERE "ngc_number"=2787;