Table: ngc_objects_3
Columns: ngc_number
object_type
constellation
right_ascension_j2000
declination_j2000
apparent_magnitude

Question: What is the average NGC number that has a Apparent magnitude greater than 14.2?
SQL: SELECT AVG("ngc_number") FROM ngc_objects_3 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 ngc_objects_3 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 ngc_objects_3 WHERE "object_type" = 'globular cluster' AND "ngc_number" = 5986