CREATE TABLE ship (Ship_ID INT, Name TEXT, Type TEXT, Nationality TEXT, Tonnage INT)
CREATE TABLE mission (Mission_ID INT, Ship_ID INT, Code TEXT, Launched_Year INT, Location TEXT, Speed_knots INT, Fate TEXT)

Stack bar chart of the number of type vs Nationality based on type, and list x-axis in descending order.
SELECT Type, COUNT(Type) FROM ship GROUP BY Nationality, Type ORDER BY Type DESC
SELECT "Type", COUNT("Type") FROM "ship" GROUP BY "Nationality", "Type" ORDER BY "Type" DESC NULLS LAST