CREATE TABLE "senate_composition_before_the_elections" (
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text,
  "d_40" text
);

Question: Tell me the D 49 and D 46 of r 13
SQL: SELECT "d_49" FROM "senate_composition_before_the_elections" WHERE "d_46"='r 13';

Question: I want the D 40 with D 44 of d 15
SQL: SELECT "d_40" FROM "senate_composition_before_the_elections" WHERE "d_44"='d 15';

Question: I want the D 45 and D 42 of r 22
SQL: SELECT "d_45" FROM "senate_composition_before_the_elections" WHERE "d_42"='r 22';

Question: I want the D 46 for D 45 of r 5
SQL: SELECT "d_46" FROM "senate_composition_before_the_elections" WHERE "d_45"='r 5';

Question: I want the D 47 for D 41 being r 21
SQL: SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_41"='r 21';