CREATE TABLE "for_mk_type_stars_with_planets_in_the_ha" (
  "stellar_mass_m" real,
  "planetary_mass_m" real,
  "lum_l_0" text,
  "type" text,
  "rhab_au" real,
  "rv_cm_s" real,
  "period_days" real
);

Question: What is the total stellar mass of the type m0?
SQL: SELECT SUM("stellar_mass_m") FROM "for_mk_type_stars_with_planets_in_the_ha" WHERE "type"='m0';

Question: What is the highest planetary mass having an RV (cm/s) of 65 and a Period (days) less than 21?
SQL: SELECT MAX("planetary_mass_m") FROM "for_mk_type_stars_with_planets_in_the_ha" WHERE "rv_cm_s"=65 AND "period_days"<21;

Question: What is the smallest period (days) to have a planetary mass of 1, a stellar mass greater than 0.21 and of the type M0?
SQL: SELECT MIN("period_days") FROM "for_mk_type_stars_with_planets_in_the_ha" WHERE "planetary_mass_m"=1 AND "stellar_mass_m">0.21 AND "type"='m0';