How many captains are in each rank, and I want to show from low to high by the y axis.
CREATE TABLE Ship (
    Ship_ID int,
    Name text,
    Type text,
    Built_Year real,
    Class text,
    Flag text
)

CREATE TABLE captain (
    Captain_ID int,
    Name text,
    Ship_ID int,
    age text,
    Class text,
    Rank text
)
SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*)
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many captains are in each rank, and I want to show from low to high by the y axis. ### Input: CREATE TABLE Ship (
    Ship_ID int,
    Name text,
    Type text,
    Built_Year real,
    Class text,
    Flag text
)

CREATE TABLE captain (
    Captain_ID int,
    Name text,
    Ship_ID int,
    age text,
    Class text,
    Rank text
) ### Response: SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*)