CREATE TABLE "tank_locomotives" (
  "class" text,
  "number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "type" text
);

Question: Which class has fewer than 10 and number(s) names?
SQL: SELECT "class" FROM "tank_locomotives" WHERE "quantity"<10 AND "number_s"='names';

Question: What is the type with a quantity of fewer than 6 and number(s) 5201?
SQL: SELECT "type" FROM "tank_locomotives" WHERE "quantity"<6 AND "number_s"='5201';