CREATE TABLE "d_r" (
  "serial_branch" real,
  "seaman" text,
  "mechanical" text,
  "secretariat" text,
  "supply" text,
  "electrical" text,
  "radio_electrical" text,
  "regulating" text,
  "medical" text
);

Question: How many serial branches have radio electrial = rea-iv?
SQL: SELECT COUNT("serial_branch") FROM "d_r" WHERE "radio_electrical"='REA-IV';

Question: What are radio electricals when secretariat is wtr i?
SQL: SELECT "radio_electrical" FROM "d_r" WHERE "secretariat"='WTR I';

Question: What are electricals where secretariat is po(w)?
SQL: SELECT "electrical" FROM "d_r" WHERE "secretariat"='PO(W)';

Question: What mechanical has lpm regulation?
SQL: SELECT "mechanical" FROM "d_r" WHERE "regulating"='LPM';

Question: How many branches have radio electrical=hon s lt(r)?
SQL: SELECT COUNT("serial_branch") FROM "d_r" WHERE "radio_electrical"='Hon S Lt(R)';

Question: Who regulates radio electrical = lren?
SQL: SELECT "regulating" FROM "d_r" WHERE "radio_electrical"='LREN';