CREATE TABLE "building_and_withdrawal_data" (
  "number" real,
  "builder" text,
  "built" text,
  "rebuilt" text,
  "name_as_rebuilt" text,
  "scrapped_sold" text
);

Question: Which Scrapped/Sold has a Name as rebuilt of trostan?
SQL: SELECT "scrapped_sold" FROM "building_and_withdrawal_data" WHERE "name_as_rebuilt"='trostan';

Question: Which Rebuilt has a Name as rebuilt of binevanagh?
SQL: SELECT "rebuilt" FROM "building_and_withdrawal_data" WHERE "name_as_rebuilt"='binevanagh';

Question: Which Rebuilt has a Builder of derby, and a Name as rebuilt of ben madigan?
SQL: SELECT "rebuilt" FROM "building_and_withdrawal_data" WHERE "builder"='derby' AND "name_as_rebuilt"='ben madigan';

Question: Which Scrapped/Sold has a Builder of derby, and a Name as rebuilt of ben madigan?
SQL: SELECT "scrapped_sold" FROM "building_and_withdrawal_data" WHERE "builder"='derby' AND "name_as_rebuilt"='ben madigan';