CREATE TABLE Student (StuID INT, LName VARCHAR, Fname VARCHAR, Age INT, Sex VARCHAR, Major INT, Advisor INT, city_code VARCHAR)
CREATE TABLE Restaurant_Type (ResTypeID INT, ResTypeName VARCHAR, ResTypeDescription VARCHAR)
CREATE TABLE Type_Of_Restaurant (ResID INT, ResTypeID INT)
CREATE TABLE Visits_Restaurant (StuID INT, ResID INT, Time TIMESTAMPNTZ, Spent FLOAT)
CREATE TABLE Restaurant (ResID INT, ResName VARCHAR, Address VARCHAR, Rating INT)

For those female students with age is older than 18 who are not majoring in 600, tell me how many students of different first names using a bar chart, display in asc by the how many fname.
SELECT Fname, COUNT(Fname) FROM Student WHERE Age > 18 AND Major <> 600 AND Sex = 'F' GROUP BY Fname ORDER BY COUNT(Fname)
SELECT "Fname", COUNT("Fname") FROM "Student" WHERE "Age" > 18 AND "Major" <> 600 AND "Sex" = 'F' GROUP BY "Fname" ORDER BY COUNT("Fname") NULLS FIRST