VishalCh/book-train huggingface dataset:
Schema:
CREATE TABLE table_name_59 (
    representative VARCHAR,
    termination_of_mission VARCHAR
)

Question: Which representative has a Termination of MIssion date Mar 25, 1976?

SQL:
SELECT representative FROM table_name_59 WHERE termination_of_mission = "mar 25, 1976"
Schema:
CREATE TABLE table_name_19 (
    country VARCHAR,
    rank VARCHAR
)

Question: What country is ranked 79?

SQL:
SELECT country FROM table_name_19 WHERE rank = 79
Schema:
CREATE TABLE table_49483 (
    "Rifle" text,
    "Danish Krag-J\u00f8rgensen 1889" text,
    "US Krag-J\u00f8rgensen M1892" text,
    "Norwegian Krag-J\u00f8rgensen M1894" text,
    "Japanese Type 38 Rifle" text,
    "German Gewehr 98" text,
    "British Lee-Enfield (data for late model)" text
)

Question: What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5?

SQL:
SELECT "British Lee-Enfield (data for late model)" FROM table_49483 WHERE "Japanese Type 38 Rifle" = '5'
Schema:
CREATE TABLE table_52028 (
    "Player" text,
    "Nationality" text,
    "Position" text,
    "Years for Jazz" text,
    "School/Club Team" text
)

Question: What is the Year for Jazz club of Houston?

SQL:
SELECT "Years for Jazz" FROM table_52028 WHERE "School/Club Team" = 'houston'
Schema:
CREATE TABLE addresses (
    address_id number,
    line_1 text,
    line_2 text,
    city text,
    zip_postcode text,
    state_province_county text,
    country text
)

CREATE TABLE people_addresses (
    person_address_id number,
    person_id number,
    address_id number,
    date_from time,
    date_to time
)

CREATE TABLE people (
    person_id number,
    first_name text,
    middle_name text,
    last_name text,
    cell_mobile_number text,
    email_address text,
    login_name text,
    password text
)

CREATE TABLE students (
    student_id number,
    student_details text
)

CREATE TABLE student_course_registrations (
    student_id number,
    course_id number,
    registration_date time
)

CREATE TABLE candidate_assessments (
    candidate_id number,
    qualification text,
    assessment_date time,
    asessment_outcome_code text
)

CREATE TABLE courses (
    course_id text,
    course_name text,
    course_description text,
    other_details text
)

CREATE TABLE student_course_attendance (
    student_id number,
    course_id number,
    date_of_attendance time
)

CREATE TABLE candidates (
    candidate_id number,
    candidate_details text
)

Question: What is detail of the student who most recently registered course?

SQL:
SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1
Schema:
CREATE TABLE table_204_822 (
    id number,
    "rank" number,
    "nation" text,
    "gold" number,
    "silver" number,
    "bronze" number,
    "total" number
)

Question: which country won the same amount of medals as bulgaria in these olympics ?

SQL:
SELECT "nation" FROM table_204_822 WHERE "nation" <> 'bulgaria' AND "total" = (SELECT "total" FROM table_204_822 WHERE "nation" = 'bulgaria')
Schema:
CREATE TABLE table_204_620 (
    id number,
    "title" text,
    "year" number,
    "language" text,
    "role" text,
    "notes" text
)

Question: what title is before dhol in 2007 ?

SQL:
SELECT "title" FROM table_204_620 WHERE id = (SELECT id FROM table_204_620 WHERE "title" = 'dhol') - 1
Schema:
CREATE TABLE table_19041 (
    "Episode" text,
    "Original Air Date" text,
    "Viewers (millions)" text,
    "Presenter" text,
    "Location" text
)

Question: Where was held the ceremony for the 12th Pride of Britain Awards?

SQL:
SELECT "Location" FROM table_19041 WHERE "Episode" = '12th Pride of Britain Awards'
Schema:
CREATE TABLE table_name_62 (
    language VARCHAR,
    music_director VARCHAR
)

Question: What language does Raj Kamal speak?

SQL:
SELECT language FROM table_name_62 WHERE music_director = "raj kamal"
Schema:
CREATE TABLE table_76279 (
    "Season" real,
    "Date" text,
    "Winner" text,
    "Score [C ]" text,
    "Venue" text,
    "Competition round" text
)

Question: What venue had an event on 17 November 1963?

SQL:
SELECT "Venue" FROM table_76279 WHERE "Season" = '1963' AND "Date" = '17 november 1963'
Schema:
CREATE TABLE table_66188 (
    "Date" text,
    "Tournament" text,
    "Winning score" text,
    "Margin of victory" text,
    "Runner(s)-up" text
)

Question: What is the Date of the Ameritech Senior Open?

SQL:
SELECT "Date" FROM table_66188 WHERE "Tournament" = 'ameritech senior open'
Schema:
CREATE TABLE table_67362 (
    "Name" text,
    "Species Authority" text,
    "Order" text,
    "Family" text,
    "Red List" real
)

Question: What is the highest Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)?

SQL:
SELECT MAX("Red List") FROM table_67362 WHERE "Family" = 'muridae' AND "Species Authority" = 'microtus pinetorum (le conte, 1830)'
Schema:
CREATE TABLE table_12911 (
    "Elector" text,
    "Nationality" text,
    "Order" text,
    "Title" text,
    "Elevated" text,
    "Elevator" text
)

Question: Which Elevator has a Title of bishop of palestrina?

SQL:
SELECT "Elevator" FROM table_12911 WHERE "Title" = 'bishop of palestrina'
Schema:
CREATE TABLE photos (
    id int,
    camera_lens_id int,
    mountain_id int,
    color text,
    name text
)

CREATE TABLE mountain (
    id int,
    name text,
    Height real,
    Prominence real,
    Range text,
    Country text
)

CREATE TABLE camera_lens (
    id int,
    brand text,
    name text,
    focal_length_mm real,
    max_aperture real
)

Question: Group and count brand for each camera lens using a bar chart, and rank X in descending order.

SQL:
SELECT brand, COUNT(brand) FROM camera_lens GROUP BY brand ORDER BY brand DESC
Schema:
CREATE TABLE Person (
    name VARCHAR,
    gender VARCHAR,
    age INTEGER
)

CREATE TABLE person (
    name VARCHAR,
    gender VARCHAR,
    age INTEGER
)

Question: Who is the youngest male?

SQL:
SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT MIN(age) FROM Person WHERE gender = 'male')
Schema:
CREATE TABLE d_labitems (
    row_id number,
    itemid number,
    label text
)

CREATE TABLE procedures_icd (
    row_id number,
    subject_id number,
    hadm_id number,
    icd9_code text,
    charttime time
)

CREATE TABLE microbiologyevents (
    row_id number,
    subject_id number,
    hadm_id number,
    charttime time,
    spec_type_desc text,
    org_name text
)

CREATE TABLE diagnoses_icd (
    row_id number,
    subject_id number,
    hadm_id number,
    icd9_code text,
    charttime time
)

CREATE TABLE admissions (
    row_id number,
    subject_id number,
    hadm_id number,
    admittime time,
    dischtime time,
    admission_type text,
    admission_location text,
    discharge_location text,
    insurance text,
    language text,
    marital_status text,
    ethnicity text,
    age number
)

CREATE TABLE d_icd_procedures (
    row_id number,
    icd9_code text,
    short_title text,
    long_title text
)

CREATE TABLE patients (
    row_id number,
    subject_id number,
    gender text,
    dob time,
    dod time
)

CREATE TABLE prescriptions (
    row_id number,
    subject_id number,
    hadm_id number,
    startdate time,
    enddate time,
    drug text,
    dose_val_rx text,
    dose_unit_rx text,
    route text
)

CREATE TABLE inputevents_cv (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    charttime time,
    itemid number,
    amount number
)

CREATE TABLE d_items (
    row_id number,
    itemid number,
    label text,
    linksto text
)

CREATE TABLE outputevents (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    charttime time,
    itemid number,
    value number
)

CREATE TABLE transfers (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    eventtype text,
    careunit text,
    wardid number,
    intime time,
    outtime time
)

CREATE TABLE labevents (
    row_id number,
    subject_id number,
    hadm_id number,
    itemid number,
    charttime time,
    valuenum number,
    valueuom text
)

CREATE TABLE d_icd_diagnoses (
    row_id number,
    icd9_code text,
    short_title text,
    long_title text
)

CREATE TABLE chartevents (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    itemid number,
    charttime time,
    valuenum number,
    valueuom text
)

CREATE TABLE cost (
    row_id number,
    subject_id number,
    hadm_id number,
    event_type text,
    event_id number,
    chargetime time,
    cost number
)

CREATE TABLE icustays (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    first_careunit text,
    last_careunit text,
    first_wardid number,
    last_wardid number,
    intime time,
    outtime time
)

Question: did patient 366 have microbiological test results from the mrsa screen until 1 year ago?

SQL:
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 366) AND microbiologyevents.spec_type_desc = 'mrsa screen' AND DATETIME(microbiologyevents.charttime) <= DATETIME(CURRENT_TIME(), '-1 year')
Schema:
CREATE TABLE table_5943 (
    "Draw" real,
    "Artist" text,
    "Song" text,
    "Jury" real,
    "Televote" real,
    "Total" real,
    "Place" real
)

Question: Which Place is the highest one that has an Artist of nikolas metaxas, and a Televote larger than 60?

SQL:
SELECT MAX("Place") FROM table_5943 WHERE "Artist" = 'nikolas metaxas' AND "Televote" > '60'
Schema:
CREATE TABLE table_name_65 (
    name VARCHAR,
    constituency_number VARCHAR
)

Question: What's the name of Constituency number 108?

SQL:
SELECT name FROM table_name_65 WHERE constituency_number = "108"
Schema:
CREATE TABLE table_54910 (
    "Rd #" real,
    "Pick #" real,
    "Player" text,
    "Team (League)" text,
    "Reg GP" real,
    "Pl GP" real
)

Question: When Steve Hazlett is the Player, and the PI GP is under 0, what is the average Rd #?

SQL:
SELECT AVG("Rd #") FROM table_54910 WHERE "Player" = 'steve hazlett' AND "Pl GP" < '0'
Schema:
CREATE TABLE patients (
    row_id number,
    subject_id number,
    gender text,
    dob time,
    dod time
)

CREATE TABLE cost (
    row_id number,
    subject_id number,
    hadm_id number,
    event_type text,
    event_id number,
    chargetime time,
    cost number
)

CREATE TABLE transfers (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    eventtype text,
    careunit text,
    wardid number,
    intime time,
    outtime time
)

CREATE TABLE inputevents_cv (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    charttime time,
    itemid number,
    amount number
)

CREATE TABLE chartevents (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    itemid number,
    charttime time,
    valuenum number,
    valueuom text
)

CREATE TABLE d_items (
    row_id number,
    itemid number,
    label text,
    linksto text
)

CREATE TABLE d_icd_procedures (
    row_id number,
    icd9_code text,
    short_title text,
    long_title text
)

CREATE TABLE outputevents (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    charttime time,
    itemid number,
    value number
)

CREATE TABLE icustays (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    first_careunit text,
    last_careunit text,
    first_wardid number,
    last_wardid number,
    intime time,
    outtime time
)

CREATE TABLE d_icd_diagnoses (
    row_id number,
    icd9_code text,
    short_title text,
    long_title text
)

CREATE TABLE diagnoses_icd (
    row_id number,
    subject_id number,
    hadm_id number,
    icd9_code text,
    charttime time
)

CREATE TABLE procedures_icd (
    row_id number,
    subject_id number,
    hadm_id number,
    icd9_code text,
    charttime time
)

CREATE TABLE admissions (
    row_id number,
    subject_id number,
    hadm_id number,
    admittime time,
    dischtime time,
    admission_type text,
    admission_location text,
    discharge_location text,
    insurance text,
    language text,
    marital_status text,
    ethnicity text,
    age number
)

CREATE TABLE microbiologyevents (
    row_id number,
    subject_id number,
    hadm_id number,
    charttime time,
    spec_type_desc text,
    org_name text
)

CREATE TABLE prescriptions (
    row_id number,
    subject_id number,
    hadm_id number,
    startdate time,
    enddate time,
    drug text,
    dose_val_rx text,
    dose_unit_rx text,
    route text
)

CREATE TABLE labevents (
    row_id number,
    subject_id number,
    hadm_id number,
    itemid number,
    charttime time,
    valuenum number,
    valueuom text
)

CREATE TABLE d_labitems (
    row_id number,
    itemid number,
    label text
)

Question: has patient 40059 received a lab test?

SQL:
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 40059)
Schema:
CREATE TABLE albums (
    aid number,
    title text,
    year number,
    label text,
    type text
)

CREATE TABLE instruments (
    songid number,
    bandmateid number,
    instrument text
)

CREATE TABLE band (
    id number,
    firstname text,
    lastname text
)

CREATE TABLE performance (
    songid number,
    bandmate number,
    stageposition text
)

CREATE TABLE songs (
    songid number,
    title text
)

CREATE TABLE tracklists (
    albumid number,
    position number,
    songid number
)

CREATE TABLE vocals (
    songid number,
    bandmate number,
    type text
)

Question: What is the last name of the musicians who has played back position the most?

SQL:
SELECT T2.lastname FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE stageposition = "back" GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1
Schema:
CREATE TABLE table_221315_3 (
    usaf_space_flights VARCHAR,
    max_speed__mph_ VARCHAR
)

Question: What were all USAF space flights when the aximum speed was 3822?

SQL:
SELECT usaf_space_flights FROM table_221315_3 WHERE max_speed__mph_ = 3822
Schema:
CREATE TABLE table_29501 (
    "Number" real,
    "Player" text,
    "Position" text,
    "Seasons by team" text,
    "Year of induction into Pro Football Hall of Fame" text
)

Question: When was Will Shields inducted into the Pro Football Hall of Fame?

SQL:
SELECT "Year of induction into Pro Football Hall of Fame" FROM table_29501 WHERE "Player" = 'Will Shields'
Schema:
CREATE TABLE admissions (
    row_id number,
    subject_id number,
    hadm_id number,
    admittime time,
    dischtime time,
    admission_type text,
    admission_location text,
    discharge_location text,
    insurance text,
    language text,
    marital_status text,
    ethnicity text,
    age number
)

CREATE TABLE transfers (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    eventtype text,
    careunit text,
    wardid number,
    intime time,
    outtime time
)

CREATE TABLE microbiologyevents (
    row_id number,
    subject_id number,
    hadm_id number,
    charttime time,
    spec_type_desc text,
    org_name text
)

CREATE TABLE inputevents_cv (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    charttime time,
    itemid number,
    amount number
)

CREATE TABLE prescriptions (
    row_id number,
    subject_id number,
    hadm_id number,
    startdate time,
    enddate time,
    drug text,
    dose_val_rx text,
    dose_unit_rx text,
    route text
)

CREATE TABLE d_icd_procedures (
    row_id number,
    icd9_code text,
    short_title text,
    long_title text
)

CREATE TABLE icustays (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    first_careunit text,
    last_careunit text,
    first_wardid number,
    last_wardid number,
    intime time,
    outtime time
)

CREATE TABLE d_icd_diagnoses (
    row_id number,
    icd9_code text,
    short_title text,
    long_title text
)

CREATE TABLE cost (
    row_id number,
    subject_id number,
    hadm_id number,
    event_type text,
    event_id number,
    chargetime time,
    cost number
)

CREATE TABLE diagnoses_icd (
    row_id number,
    subject_id number,
    hadm_id number,
    icd9_code text,
    charttime time
)

CREATE TABLE d_labitems (
    row_id number,
    itemid number,
    label text
)

CREATE TABLE d_items (
    row_id number,
    itemid number,
    label text,
    linksto text
)

CREATE TABLE outputevents (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    charttime time,
    itemid number,
    value number
)

CREATE TABLE chartevents (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    itemid number,
    charttime time,
    valuenum number,
    valueuom text
)

CREATE TABLE patients (
    row_id number,
    subject_id number,
    gender text,
    dob time,
    dod time
)

CREATE TABLE labevents (
    row_id number,
    subject_id number,
    hadm_id number,
    itemid number,
    charttime time,
    valuenum number,
    valueuom text
)

CREATE TABLE procedures_icd (
    row_id number,
    subject_id number,
    hadm_id number,
    icd9_code text,
    charttime time
)

Question: what is the total dose heparin sodium that patient 11826 has been prescribed during their current hospital encounter?

SQL:
SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11826 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'heparin sodium'
Schema:
CREATE TABLE table_54414 (
    "Pick #" real,
    "CFL Team" text,
    "Player" text,
    "Position" text,
    "College" text
)

Question: Which pick number attended McMaster College?

SQL:
SELECT "Pick #" FROM table_54414 WHERE "College" = 'mcmaster'
Schema:
CREATE TABLE table_name_51 (
    metres VARCHAR,
    feet INTEGER
)

Question: What is the sum of Metres wiht a Feet that's smaller than 196?

SQL:
SELECT COUNT(metres) FROM table_name_51 WHERE feet < 196
Schema:
CREATE TABLE table_55689 (
    "Season" real,
    "Series Name" text,
    "Champion" text,
    "Team Champion" text,
    "Secondary Class Champion" text
)

Question: What are the seasons where Marcello Puglisi (formula master italia) was the secondary class champion?

SQL:
SELECT SUM("Season") FROM table_55689 WHERE "Secondary Class Champion" = 'marcello puglisi (formula master italia)'
Schema:
CREATE TABLE Manufacturers (
    Code INTEGER,
    Name VARCHAR(255),
    Headquarter VARCHAR(255),
    Founder VARCHAR(255),
    Revenue REAL
)

CREATE TABLE Products (
    Code INTEGER,
    Name VARCHAR(255),
    Price DECIMAL,
    Manufacturer INTEGER
)

Question: For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of code , and group by attribute name, sort total number of code in asc order.

SQL:
SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code

Question: For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the sum of price , and group by attribute name, I want to show from high to low by the x axis.

SQL:
SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC

Question: For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the sum of code , and group by attribute founder, show by the X from high to low please.

SQL:
SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder DESC

Question: For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and price , and group by attribute headquarter, and rank y-axis from low to high order please.

SQL:
SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Price

Question: For those records from the products and each product's manufacturer, show me about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter in a bar chart.

SQL:
SELECT Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter

Question: Create a bar chart showing maximal revenue across headquarter, and sort by the y-axis in asc.

SQL:
SELECT Headquarter, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter ORDER BY MAX(Revenue)
Schema:
CREATE TABLE table_6019 (
    "Year" real,
    "Artist" text,
    "Title" text,
    "Genre" text,
    "Label" text
)

Question: what year was cryptogramophon released

SQL:
SELECT "Year" FROM table_6019 WHERE "Label" = 'cryptogramophon'
Schema:
CREATE TABLE table_79109 (
    "Round" text,
    "Circuit" text,
    "Date" text,
    "Winning driver" text,
    "Winning team" text
)

Question: What is the round on 30 June with a.z.k./roc-comp tition a.z.k./roc-comp tition as the winning team?

SQL:
SELECT "Round" FROM table_79109 WHERE "Winning team" = 'a.z.k./roc-compétition a.z.k./roc-compétition' AND "Date" = '30 june'
Schema:
CREATE TABLE procedures (
    subject_id text,
    hadm_id text,
    icd9_code text,
    short_title text,
    long_title text
)

CREATE TABLE diagnoses (
    subject_id text,
    hadm_id text,
    icd9_code text,
    short_title text,
    long_title text
)

CREATE TABLE lab (
    subject_id text,
    hadm_id text,
    itemid text,
    charttime text,
    flag text,
    value_unit text,
    label text,
    fluid text
)

CREATE TABLE demographic (
    subject_id text,
    hadm_id text,
    name text,
    marital_status text,
    age text,
    dob text,
    gender text,
    language text,
    religion text,
    admission_type text,
    days_stay text,
    insurance text,
    ethnicity text,
    expire_flag text,
    admission_location text,
    discharge_location text,
    diagnosis text,
    dod text,
    dob_year text,
    dod_year text,
    admittime text,
    dischtime text,
    admityear text
)

CREATE TABLE prescriptions (
    subject_id text,
    hadm_id text,
    icustay_id text,
    drug_type text,
    drug text,
    formulary_drug_cd text,
    route text,
    drug_dose text
)

Question: what is the total number of patients who were diagnosed with icd9 code 2254?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "2254"

Question: provide the number of patients whose discharge location is snf and days of hospital stay is greater than 13?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.days_stay > "13"

Question: find out the age and lab test fluid to be checked for patient with patient id 2560.

SQL:
SELECT demographic.age, lab.fluid FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "2560"
Schema:
CREATE TABLE table_37692 (
    "Rank" text,
    "Urban sub-area" text,
    "Population" text,
    "Status" text,
    "Council area" text
)

Question: What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020?

SQL:
SELECT "Urban sub-area" FROM table_37692 WHERE "Council area" = 'east dunbartonshire' AND "Population" = '19,020'
Schema:
CREATE TABLE player (
    pid number,
    pname text,
    ycard text,
    hs number
)

CREATE TABLE college (
    cname text,
    state text,
    enr number
)

CREATE TABLE tryout (
    pid number,
    cname text,
    ppos text,
    decision text
)

Question: List the name of the colleges whose enrollment is greater 18000 sorted by the college's name.

SQL:
SELECT cname FROM college WHERE enr > 18000 ORDER BY cname