CREATE TABLE table_17022 ("Number" TEXT, "TMS Number" TEXT, "Builder" TEXT, "Year built" FLOAT, "Carriage type" TEXT)

What year was the carriage type is 47' 6' 'birdcage' gallery coach built
SELECT "Year built" FROM table_17022 WHERE "Carriage type" = '47'' 6" ''Birdcage'' gallery coach'
SELECT "Year built" FROM "table_17022" WHERE "Carriage type" = '47\' 6" \'Birdcage\' gallery coach'