CREATE TABLE "narrow_gauge_locomotives" (
  "class" text,
  "railway_number_s" text,
  "drg_number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "axle_arrangement_uic_bauart" text
);

Question: What is average quantity, when DRG number is 99 011?
SQL: SELECT AVG("quantity") FROM "narrow_gauge_locomotives" WHERE "drg_number_s"='99 011';

Question: Which railway number has 3 quantity?
SQL: SELECT "railway_number_s" FROM "narrow_gauge_locomotives" WHERE "quantity"=3;

Question: Which DRG number has xxx railway number?
SQL: SELECT "drg_number_s" FROM "narrow_gauge_locomotives" WHERE "railway_number_s"='xxx';

Question: Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?
SQL: SELECT "quantity" FROM "narrow_gauge_locomotives" WHERE "axle_arrangement_uic_bauart"='c n2t' AND "drg_number_s"='99 093';