VishalCh/book-train huggingface dataset:
Schema:
CREATE TABLE lab (
    subject_id text,
    hadm_id text,
    itemid text,
    charttime text,
    flag text,
    value_unit text,
    label text,
    fluid text
)

CREATE TABLE diagnoses (
    subject_id text,
    hadm_id text,
    icd9_code text,
    short_title text,
    long_title 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
)

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

Question: What is the number of patients diagnosed with rheumatic heart failure (congestive) who have a delta abnormal lab test?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Rheumatic heart failure (congestive)" AND lab.flag = "delta"
Schema:
CREATE TABLE table_name_76 (
    colliery VARCHAR,
    death_toll VARCHAR
)

Question: Which Colliery has a Death toll of 7?

SQL:
SELECT colliery FROM table_name_76 WHERE death_toll = 7
Schema:
CREATE TABLE table_1634376_1 (
    status VARCHAR,
    _number VARCHAR
)

Question: What is the status of vessel number K-223?

SQL:
SELECT status FROM table_1634376_1 WHERE _number = "K-223"
Schema:
CREATE TABLE table_29650 (
    "Season" real,
    "Series" text,
    "Team Name" text,
    "Races" real,
    "Poles" real,
    "Wins" real,
    "Podiums" real,
    "F/Laps" real,
    "Points" real,
    "Final Placing" text
)

Question: Name the post poles for 4 podiums

SQL:
SELECT MAX("Poles") FROM table_29650 WHERE "Podiums" = '4'
Schema:
CREATE TABLE Photos (
    Photo_ID INTEGER,
    Tourist_Attraction_ID INTEGER,
    Name VARCHAR(255),
    Description VARCHAR(255),
    Filename VARCHAR(255),
    Other_Details VARCHAR(255)
)

CREATE TABLE Theme_Parks (
    Theme_Park_ID INTEGER,
    Theme_Park_Details VARCHAR(255)
)

CREATE TABLE Hotels (
    hotel_id INTEGER,
    star_rating_code CHAR(15),
    pets_allowed_yn CHAR(1),
    price_range real,
    other_hotel_details VARCHAR(255)
)

CREATE TABLE Ref_Attraction_Types (
    Attraction_Type_Code CHAR(15),
    Attraction_Type_Description VARCHAR(255)
)

CREATE TABLE Visits (
    Visit_ID INTEGER,
    Tourist_Attraction_ID INTEGER,
    Tourist_ID INTEGER,
    Visit_Date DATETIME,
    Visit_Details VARCHAR(40)
)

CREATE TABLE Street_Markets (
    Market_ID INTEGER,
    Market_Details VARCHAR(255)
)

CREATE TABLE Staff (
    Staff_ID INTEGER,
    Tourist_Attraction_ID INTEGER,
    Name VARCHAR(40),
    Other_Details VARCHAR(255)
)

CREATE TABLE Visitors (
    Tourist_ID INTEGER,
    Tourist_Details VARCHAR(255)
)

CREATE TABLE Tourist_Attraction_Features (
    Tourist_Attraction_ID INTEGER,
    Feature_ID INTEGER
)

CREATE TABLE Features (
    Feature_ID INTEGER,
    Feature_Details VARCHAR(255)
)

CREATE TABLE Royal_Family (
    Royal_Family_ID INTEGER,
    Royal_Family_Details VARCHAR(255)
)

CREATE TABLE Ref_Hotel_Star_Ratings (
    star_rating_code CHAR(15),
    star_rating_description VARCHAR(80)
)

CREATE TABLE Shops (
    Shop_ID INTEGER,
    Shop_Details VARCHAR(255)
)

CREATE TABLE Locations (
    Location_ID INTEGER,
    Location_Name VARCHAR(255),
    Address VARCHAR(255),
    Other_Details VARCHAR(255)
)

CREATE TABLE Tourist_Attractions (
    Tourist_Attraction_ID INTEGER,
    Attraction_Type_Code CHAR(15),
    Location_ID INTEGER,
    How_to_Get_There VARCHAR(255),
    Name VARCHAR(255),
    Description VARCHAR(255),
    Opening_Hours VARCHAR(255),
    Other_Details VARCHAR(255)
)

CREATE TABLE Museums (
    Museum_ID INTEGER,
    Museum_Details VARCHAR(255)
)

Question: A line chart for what are the number of the distinct visit dates?

SQL:
SELECT Visit_Date, COUNT(Visit_Date) FROM Visits
Schema:
CREATE TABLE Faculty (
    FacID INTEGER,
    Lname VARCHAR(15),
    Fname VARCHAR(15),
    Rank VARCHAR(15),
    Sex VARCHAR(1),
    Phone INTEGER,
    Room VARCHAR(5),
    Building VARCHAR(13)
)

CREATE TABLE Faculty_Participates_in (
    FacID INTEGER,
    actid INTEGER
)

CREATE TABLE Participates_in (
    stuid INTEGER,
    actid INTEGER
)

CREATE TABLE Student (
    StuID INTEGER,
    LName VARCHAR(12),
    Fname VARCHAR(12),
    Age INTEGER,
    Sex VARCHAR(1),
    Major INTEGER,
    Advisor INTEGER,
    city_code VARCHAR(3)
)

CREATE TABLE Activity (
    actid INTEGER,
    activity_name varchar(25)
)

Question: How many faculty members does each building have? List the result with the name of the building with a bar chart, show from high to low by the x-axis.

SQL:
SELECT Building, COUNT(*) FROM Faculty GROUP BY Building ORDER BY Building DESC
Schema:
CREATE TABLE table_name_12 (
    result VARCHAR,
    venue VARCHAR,
    goal VARCHAR
)

Question: What was the result of the game in Stuttgart, West Germany and a goal number of less than 9?

SQL:
SELECT result FROM table_name_12 WHERE venue = "stuttgart, west germany" AND goal < 9
Schema:
CREATE TABLE table_1683 (
    "Game" real,
    "Date" text,
    "Team" text,
    "Score" text,
    "High points" text,
    "High rebounds" text,
    "High assists" text,
    "Location Attendance" text,
    "Record" text
)

Question: Who had the high rebounds in the game with a final score of w 140-108?

SQL:
SELECT "High rebounds" FROM table_1683 WHERE "Score" = 'W 140-108'
Schema:
CREATE TABLE people (
    Weight VARCHAR,
    Height VARCHAR
)

Question: What is the weight of the shortest person?

SQL:
SELECT Weight FROM people ORDER BY Height LIMIT 1
Schema:
CREATE TABLE table_77037 (
    "Athlete" text,
    "Event" text,
    "100 m" real,
    "400 m" real,
    "110H" real,
    "1500 m" text,
    "Final" real
)

Question: What was the 110H that the 1500m was 692 and the final was more than 7906?

SQL:
SELECT COUNT("110H") FROM table_77037 WHERE "1500 m" = '692' AND "Final" > '7906'
Schema:
CREATE TABLE table_name_76 (
    pick INTEGER,
    player VARCHAR,
    round VARCHAR
)

Question: What is the mean pick when the play is Marc Lewis (lhp) and the round is less than 20?

SQL:
SELECT AVG(pick) FROM table_name_76 WHERE player = "marc lewis (lhp)" AND round < 20
Schema:
CREATE TABLE table_name_51 (
    opponent VARCHAR,
    tournament VARCHAR,
    surface VARCHAR,
    outcome VARCHAR
)

Question: Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu?

SQL:
SELECT opponent FROM table_name_51 WHERE surface = "hardcourt" AND outcome = "runner-up" AND tournament = "honolulu"
Schema:
CREATE TABLE locations (
    LOCATION_ID decimal(4,0),
    STREET_ADDRESS varchar(40),
    POSTAL_CODE varchar(12),
    CITY varchar(30),
    STATE_PROVINCE varchar(25),
    COUNTRY_ID varchar(2)
)

CREATE TABLE jobs (
    JOB_ID varchar(10),
    JOB_TITLE varchar(35),
    MIN_SALARY decimal(6,0),
    MAX_SALARY decimal(6,0)
)

CREATE TABLE countries (
    COUNTRY_ID varchar(2),
    COUNTRY_NAME varchar(40),
    REGION_ID decimal(10,0)
)

CREATE TABLE departments (
    DEPARTMENT_ID decimal(4,0),
    DEPARTMENT_NAME varchar(30),
    MANAGER_ID decimal(6,0),
    LOCATION_ID decimal(4,0)
)

CREATE TABLE regions (
    REGION_ID decimal(5,0),
    REGION_NAME varchar(25)
)

CREATE TABLE job_history (
    EMPLOYEE_ID decimal(6,0),
    START_DATE date,
    END_DATE date,
    JOB_ID varchar(10),
    DEPARTMENT_ID decimal(4,0)
)

CREATE TABLE employees (
    EMPLOYEE_ID decimal(6,0),
    FIRST_NAME varchar(20),
    LAST_NAME varchar(25),
    EMAIL varchar(25),
    PHONE_NUMBER varchar(20),
    HIRE_DATE date,
    JOB_ID varchar(10),
    SALARY decimal(8,2),
    COMMISSION_PCT decimal(2,2),
    MANAGER_ID decimal(6,0),
    DEPARTMENT_ID decimal(4,0)
)

Question: For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the average of employee_id , and group by attribute job_id in a bar chart, and list y axis in asc order please.

SQL:
SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID)
Schema:
CREATE TABLE table_name_26 (
    points_for VARCHAR,
    try_bonus VARCHAR
)

Question: What Points for has a Try bonus of 140?

SQL:
SELECT points_for FROM table_name_26 WHERE try_bonus = "140"
Schema:
CREATE TABLE table_71432 (
    "Country" text,
    "Film title used in nomination" text,
    "Language" text,
    "Original title" text,
    "Director" text
)

Question: Name the langauge for switzerland

SQL:
SELECT "Language" FROM table_71432 WHERE "Country" = 'switzerland'
Schema:
CREATE TABLE table_10722506_6 (
    _number_of_bids VARCHAR,
    conference VARCHAR
)

Question: Name the total number of bids of the sun belt conference

SQL:
SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE conference = "Sun Belt"
Schema:
CREATE TABLE cinema (
    cinema_id number,
    name text,
    openning_year number,
    capacity number,
    location text
)

CREATE TABLE film (
    film_id number,
    rank_in_series number,
    number_in_season number,
    title text,
    directed_by text,
    original_air_date text,
    production_code text
)

CREATE TABLE schedule (
    cinema_id number,
    film_id number,
    date text,
    show_times_per_day number,
    price number
)

Question: Count the number of cinemas.

SQL:
SELECT COUNT(*) FROM cinema
Schema:
CREATE TABLE table_name_23 (
    rank INTEGER,
    gold VARCHAR,
    total VARCHAR,
    bronze VARCHAR,
    silver VARCHAR
)

Question: What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold?

SQL:
SELECT MIN(rank) FROM table_name_23 WHERE bronze > 0 AND silver = 8 AND total = 19 AND gold < 9
Schema:
CREATE TABLE procedures (
    subject_id text,
    hadm_id text,
    icd9_code text,
    short_title text,
    long_title 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
)

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

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

Question: What is the number of patients with private health insurance who had a urea nitrogen urine lab test?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Private" AND lab.label = "Urea Nitrogen, Urine"
Schema:
CREATE TABLE table_15796 (
    "Tournament" text,
    "2006" text,
    "2007" text,
    "2008" text,
    "2009" text,
    "2010" text,
    "2011" text,
    "2012" text
)

Question: Name the 2006 when the 2010 is 27

SQL:
SELECT "2006" FROM table_15796 WHERE "2010" = '27'
Schema:
CREATE TABLE table_name_33 (
    score VARCHAR,
    record VARCHAR
)

Question: What was the score of the game when the Indians ended up with a record of 55-51?

SQL:
SELECT score FROM table_name_33 WHERE record = "55-51"
Schema:
CREATE TABLE table_12275551_1 (
    mens_singles VARCHAR,
    womens_singles VARCHAR
)

Question: Who won the mens singles when sayaka sato won the womens singles?

SQL:
SELECT mens_singles FROM table_12275551_1 WHERE womens_singles = "Sayaka Sato"
Schema:
CREATE TABLE table_name_15 (
    original_artist VARCHAR,
    week__number VARCHAR
)

Question: What is the name of the Original artist when the week # is top 16 (8 men)?

SQL:
SELECT original_artist FROM table_name_15 WHERE week__number = "top 16 (8 men)"
Schema:
CREATE TABLE table_21501565_1 (
    order__number VARCHAR,
    original_artist VARCHAR
)

Question: With an original artist names Bette Midler, what is the order number?

SQL:
SELECT COUNT(order__number) FROM table_21501565_1 WHERE original_artist = "Bette Midler"
Schema:
CREATE TABLE table_21275 (
    "Team" text,
    "Outgoing manager" text,
    "Manner of departure" text,
    "Date of vacancy" text,
    "Replaced by" text,
    "Date of appointment" text
)

Question: How many appointment dates were recorded when J rgen Kohler was the replaced by?

SQL:
SELECT COUNT("Date of appointment") FROM table_21275 WHERE "Replaced by" = 'Jürgen Kohler'
Schema:
CREATE TABLE table_36915 (
    "Year" real,
    "Starts" real,
    "Wins" real,
    "Top 5" real,
    "Top 10" real,
    "Poles" real,
    "Avg. Start" real,
    "Avg. Finish" real,
    "Winnings" text,
    "Position" text
)

Question: What is the average year with an average start smaller than 6.3 and fewer than 0 wins?

SQL:
SELECT AVG("Year") FROM table_36915 WHERE "Avg. Start" < '6.3' AND "Wins" < '0'
Schema:
CREATE TABLE table_203_496 (
    id number,
    "pos" number,
    "country" text,
    "gold" number,
    "silver" number,
    "bronze" number,
    "total" number
)

Question: japan earned only 1 bronze metal in boxing during the 1960 olympics . how many other countries earned the exact same metal count as japan ?

SQL:
SELECT COUNT("country") FROM table_203_496 WHERE "country" <> 'japan' AND "bronze" = 1 AND "total" = 1
Schema:
CREATE TABLE table_name_98 (
    wins INTEGER,
    played VARCHAR,
    losses VARCHAR,
    position VARCHAR
)

Question: Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?

SQL:
SELECT MIN(wins) FROM table_name_98 WHERE losses < 6 AND position = 4 AND played > 9
Schema:
CREATE TABLE table_27218002_2 (
    originalairdate VARCHAR,
    ratings VARCHAR
)

Question: What date did the epiode that had 1.37 million as the rating originally air?

SQL:
SELECT originalairdate FROM table_27218002_2 WHERE ratings = "1.37 Million"
Schema:
CREATE TABLE table_23374 (
    "Year" text,
    "Division" text,
    "League" text,
    "Regular Season" text,
    "Playoffs" text,
    "Open Cup" text
)

Question: When divisional semifinals are the playoffs what is the year?

SQL:
SELECT "Year" FROM table_23374 WHERE "Playoffs" = 'Divisional Semifinals'
Schema:
CREATE TABLE table_name_86 (
    label VARCHAR,
    date VARCHAR,
    catalog VARCHAR
)

Question: Which label released the catalog Magik Muzik CD 07 on 28 March 2007?

SQL:
SELECT label FROM table_name_86 WHERE date = "28 march 2007" AND catalog = "magik muzik cd 07"
Schema:
CREATE TABLE countries (
    COUNTRY_ID varchar(2),
    COUNTRY_NAME varchar(40),
    REGION_ID decimal(10,0)
)

CREATE TABLE regions (
    REGION_ID decimal(5,0),
    REGION_NAME varchar(25)
)

CREATE TABLE locations (
    LOCATION_ID decimal(4,0),
    STREET_ADDRESS varchar(40),
    POSTAL_CODE varchar(12),
    CITY varchar(30),
    STATE_PROVINCE varchar(25),
    COUNTRY_ID varchar(2)
)

CREATE TABLE employees (
    EMPLOYEE_ID decimal(6,0),
    FIRST_NAME varchar(20),
    LAST_NAME varchar(25),
    EMAIL varchar(25),
    PHONE_NUMBER varchar(20),
    HIRE_DATE date,
    JOB_ID varchar(10),
    SALARY decimal(8,2),
    COMMISSION_PCT decimal(2,2),
    MANAGER_ID decimal(6,0),
    DEPARTMENT_ID decimal(4,0)
)

CREATE TABLE job_history (
    EMPLOYEE_ID decimal(6,0),
    START_DATE date,
    END_DATE date,
    JOB_ID varchar(10),
    DEPARTMENT_ID decimal(4,0)
)

CREATE TABLE jobs (
    JOB_ID varchar(10),
    JOB_TITLE varchar(35),
    MIN_SALARY decimal(6,0),
    MAX_SALARY decimal(6,0)
)

CREATE TABLE departments (
    DEPARTMENT_ID decimal(4,0),
    DEPARTMENT_NAME varchar(30),
    MANAGER_ID decimal(6,0),
    LOCATION_ID decimal(4,0)
)

Question: For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of hire_date and the average of employee_id bin hire_date by weekday in a bar chart, and sort in ascending by the Y-axis.

SQL:
SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(EMPLOYEE_ID)
Schema:
CREATE TABLE diagnosis (
    diagnosisid number,
    patientunitstayid number,
    diagnosisname text,
    diagnosistime time,
    icd9code text
)

CREATE TABLE lab (
    labid number,
    patientunitstayid number,
    labname text,
    labresult number,
    labresulttime time
)

CREATE TABLE cost (
    costid number,
    uniquepid text,
    patienthealthsystemstayid number,
    eventtype text,
    eventid number,
    chargetime time,
    cost number
)

CREATE TABLE treatment (
    treatmentid number,
    patientunitstayid number,
    treatmentname text,
    treatmenttime time
)

CREATE TABLE intakeoutput (
    intakeoutputid number,
    patientunitstayid number,
    cellpath text,
    celllabel text,
    cellvaluenumeric number,
    intakeoutputtime time
)

CREATE TABLE microlab (
    microlabid number,
    patientunitstayid number,
    culturesite text,
    organism text,
    culturetakentime time
)

CREATE TABLE medication (
    medicationid number,
    patientunitstayid number,
    drugname text,
    dosage text,
    routeadmin text,
    drugstarttime time,
    drugstoptime time
)

CREATE TABLE allergy (
    allergyid number,
    patientunitstayid number,
    drugname text,
    allergyname text,
    allergytime time
)

CREATE TABLE vitalperiodic (
    vitalperiodicid number,
    patientunitstayid number,
    temperature number,
    sao2 number,
    heartrate number,
    respiration number,
    systemicsystolic number,
    systemicdiastolic number,
    systemicmean number,
    observationtime time
)

CREATE TABLE patient (
    uniquepid text,
    patienthealthsystemstayid number,
    patientunitstayid number,
    gender text,
    age text,
    ethnicity text,
    hospitalid number,
    wardid number,
    admissionheight number,
    admissionweight number,
    dischargeweight number,
    hospitaladmittime time,
    hospitaladmitsource text,
    unitadmittime time,
    unitdischargetime time,
    hospitaldischargetime time,
    hospitaldischargestatus text
)

Question: when did patient 029-16431 come this year for the last time to the hospital?

SQL:
SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '029-16431' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1
Schema:
CREATE TABLE diagnoses (
    subject_id text,
    hadm_id text,
    icd9_code text,
    short_title text,
    long_title text
)

CREATE TABLE procedures (
    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 number of patients whose diagnoses long title is sinoatrial node dysfunction?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Sinoatrial node dysfunction"
Schema:
CREATE TABLE certificate (
    eid number(9,0),
    aid number(9,0)
)

CREATE TABLE employee (
    eid number(9,0),
    name varchar2(30),
    salary number(10,2)
)

CREATE TABLE flight (
    flno number(4,0),
    origin varchar2(20),
    destination varchar2(20),
    distance number(6,0),
    departure_date date,
    arrival_date date,
    price number(7,2),
    aid number(9,0)
)

CREATE TABLE aircraft (
    aid number(9,0),
    name varchar2(30),
    distance number(6,0)
)

Question: Show me how many destination by destination in a histogram, display by the bars in ascending.

SQL:
SELECT destination, COUNT(destination) FROM flight GROUP BY destination ORDER BY destination
Schema:
CREATE TABLE table_52523 (
    "Pick #" real,
    "CFL Team" text,
    "Player" text,
    "Position" text,
    "College" text
)

Question: Which player plays for the college of manitoba?

SQL:
SELECT "Player" FROM table_52523 WHERE "College" = 'manitoba'
Schema:
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 procedures (
    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 prescriptions (
    subject_id text,
    hadm_id text,
    icustay_id text,
    drug_type text,
    drug text,
    formulary_drug_cd text,
    route text,
    drug_dose text
)

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

Question: what is diagnoses short title of subject id 17519?

SQL:
SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "17519"
Schema:
CREATE TABLE table_7679 (
    "Driver" text,
    "Entrant" text,
    "Constructor" text,
    "Chassis" text,
    "Engine" text
)

Question: What was the Engine, when the Chassis was Bugatti T51, and when the Entrant was a Private Entry?

SQL:
SELECT "Engine" FROM table_7679 WHERE "Chassis" = 'bugatti t51' AND "Entrant" = 'private entry'
Schema:
CREATE TABLE table_30442 (
    "Stadium" text,
    "Capacity" real,
    "City" text,
    "Country" text,
    "Tenant" text,
    "Opening" text
)

Question: Name the city for los angeles stadium

SQL:
SELECT "City" FROM table_30442 WHERE "Stadium" = 'Los Angeles Stadium'
Schema:
CREATE TABLE table_68099 (
    "Year" real,
    "Group" text,
    "Award" text,
    "Film/Show" text,
    "Result" text
)

Question: What is the Film/Show, when the Year is 2010?

SQL:
SELECT "Film/Show" FROM table_68099 WHERE "Year" = '2010'
Schema:
CREATE TABLE table_38244 (
    "Outcome" text,
    "Date" text,
    "Tournament" text,
    "Surface" text,
    "Partnering" text,
    "Opponents in the final" text,
    "Score" text
)

Question: Name the score for opponents of nathan healey igor kunitsyn

SQL:
SELECT "Score" FROM table_38244 WHERE "Opponents in the final" = 'nathan healey igor kunitsyn'