VishalCh/book-train huggingface dataset:
Schema:
CREATE TABLE COURSE (
    CRS_CODE varchar(10),
    DEPT_CODE varchar(10),
    CRS_DESCRIPTION varchar(35),
    CRS_CREDIT float(8)
)

CREATE TABLE EMPLOYEE (
    EMP_NUM int,
    EMP_LNAME varchar(15),
    EMP_FNAME varchar(12),
    EMP_INITIAL varchar(1),
    EMP_JOBCODE varchar(5),
    EMP_HIREDATE datetime,
    EMP_DOB datetime
)

CREATE TABLE PROFESSOR (
    EMP_NUM int,
    DEPT_CODE varchar(10),
    PROF_OFFICE varchar(50),
    PROF_EXTENSION varchar(4),
    PROF_HIGH_DEGREE varchar(5)
)

CREATE TABLE STUDENT (
    STU_NUM int,
    STU_LNAME varchar(15),
    STU_FNAME varchar(15),
    STU_INIT varchar(1),
    STU_DOB datetime,
    STU_HRS int,
    STU_CLASS varchar(2),
    STU_GPA float(8),
    STU_TRANSFER numeric,
    DEPT_CODE varchar(18),
    STU_PHONE varchar(4),
    PROF_NUM int
)

CREATE TABLE ENROLL (
    CLASS_CODE varchar(5),
    STU_NUM int,
    ENROLL_GRADE varchar(50)
)

CREATE TABLE CLASS (
    CLASS_CODE varchar(5),
    CRS_CODE varchar(10),
    CLASS_SECTION varchar(2),
    CLASS_TIME varchar(20),
    CLASS_ROOM varchar(8),
    PROF_NUM int
)

CREATE TABLE DEPARTMENT (
    DEPT_CODE varchar(10),
    DEPT_NAME varchar(30),
    SCHOOL_CODE varchar(8),
    EMP_NUM int,
    DEPT_ADDRESS varchar(20),
    DEPT_EXTENSION varchar(4)
)

Question: Find the number of professors in each office with a bar chart, and order y axis in descending order.

SQL:
SELECT PROF_OFFICE, COUNT(PROF_OFFICE) FROM PROFESSOR AS T1 JOIN EMPLOYEE AS T2 ON T1.EMP_NUM = T2.EMP_NUM GROUP BY PROF_OFFICE ORDER BY COUNT(PROF_OFFICE) DESC
Schema:
CREATE TABLE table_22851 (
    "Year" real,
    "Worldwide" real,
    "Africa" real,
    "America" real,
    "Asia" real,
    "Australia" real,
    "Europe" real
)

Question: How many members did Africa have the year that Australia had 94615?

SQL:
SELECT "Africa" FROM table_22851 WHERE "Australia" = '94615'
Schema:
CREATE TABLE table_2533 (
    "Outcome" text,
    "Year" real,
    "Championship" text,
    "Surface" text,
    "Opponent in the final" text,
    "Score in the final" text
)

Question: List the total number of years that have a score of 3 6, 4 6, 2 6.

SQL:
SELECT COUNT("Year") FROM table_2533 WHERE "Score in the final" = '3–6, 4–6, 2–6'
Schema:
CREATE TABLE table_55184 (
    "Week" text,
    "Date" text,
    "Opponent" text,
    "Result" text,
    "Kickoff [a ]" text,
    "Game site" text,
    "Attendance" text,
    "Record" text
)

Question: What is the result when the Indianapolis Colts are the opponents?

SQL:
SELECT "Result" FROM table_55184 WHERE "Opponent" = 'indianapolis colts'
Schema:
CREATE TABLE table_name_67 (
    country VARCHAR,
    season VARCHAR,
    team VARCHAR
)

Question: Which country does FC Atyrau represent after the 2006 season?

SQL:
SELECT country FROM table_name_67 WHERE season > 2006 AND team = "fc atyrau"
Schema:
CREATE TABLE table_15857 (
    "Player" text,
    "No." real,
    "Nationality" text,
    "Position" text,
    "Years in Toronto" text,
    "School/Club Team" text
)

Question: Who played in the Toronto Raptors from 1995-96?

SQL:
SELECT "Player" FROM table_15857 WHERE "Years in Toronto" = '1995-96'
Schema:
CREATE TABLE table_21949 (
    "Parish (Prestegjeld)" text,
    "Sub-Parish (Sokn)" text,
    "Church Name" text,
    "Year Built" text,
    "Location of the Church" text
)

Question: What's the sub-parish (sokn) of Eikefjord?

SQL:
SELECT "Sub-Parish (Sokn)" FROM table_21949 WHERE "Location of the Church" = 'Eikefjord'
Schema:
CREATE TABLE table_1341472_15 (
    first_elected VARCHAR,
    district VARCHAR
)

Question: what's the first elected with district illinois 18

SQL:
SELECT first_elected FROM table_1341472_15 WHERE district = "Illinois 18"
Schema:
CREATE TABLE table_79458 (
    "Title" text,
    "Series" text,
    "Director" text,
    "Production Number" real,
    "Release date" text
)

Question: What is the highest production number released on 1955-04-02 with i. freleng as the director?

SQL:
SELECT MAX("Production Number") FROM table_79458 WHERE "Director" = 'i. freleng' AND "Release date" = '1955-04-02'
Schema:
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 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 countries (
    COUNTRY_ID varchar(2),
    COUNTRY_NAME varchar(40),
    REGION_ID decimal(10,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)
)

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)
)

Question: For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by time, and I want to sort y-axis from low to high order.

SQL:
SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(EMPLOYEE_ID)
Schema:
CREATE TABLE table_name_61 (
    skip VARCHAR,
    third VARCHAR
)

Question: What is the Skip when the Third was john morris?

SQL:
SELECT skip FROM table_name_61 WHERE third = "john morris"
Schema:
CREATE TABLE Ref_Calendar (
    Calendar_Date DATETIME,
    Day_Number INTEGER
)

CREATE TABLE Document_Locations (
    Document_ID INTEGER,
    Location_Code CHAR(15),
    Date_in_Location_From DATETIME,
    Date_in_Locaton_To DATETIME
)

CREATE TABLE Documents_to_be_Destroyed (
    Document_ID INTEGER,
    Destruction_Authorised_by_Employee_ID INTEGER,
    Destroyed_by_Employee_ID INTEGER,
    Planned_Destruction_Date DATETIME,
    Actual_Destruction_Date DATETIME,
    Other_Details VARCHAR(255)
)

CREATE TABLE Ref_Locations (
    Location_Code CHAR(15),
    Location_Name VARCHAR(255),
    Location_Description VARCHAR(255)
)

CREATE TABLE Employees (
    Employee_ID INTEGER,
    Role_Code CHAR(15),
    Employee_Name VARCHAR(255),
    Gender_MFU CHAR(1),
    Date_of_Birth DATETIME,
    Other_Details VARCHAR(255)
)

CREATE TABLE Roles (
    Role_Code CHAR(15),
    Role_Name VARCHAR(255),
    Role_Description VARCHAR(255)
)

CREATE TABLE All_Documents (
    Document_ID INTEGER,
    Date_Stored DATETIME,
    Document_Type_Code CHAR(15),
    Document_Name CHAR(255),
    Document_Description CHAR(255),
    Other_Details VARCHAR(255)
)

CREATE TABLE Ref_Document_Types (
    Document_Type_Code CHAR(15),
    Document_Type_Name VARCHAR(255),
    Document_Type_Description VARCHAR(255)
)

Question: Show the number of documents for each location code in a bar chart.

SQL:
SELECT Location_Code, COUNT(Location_Code) FROM Document_Locations GROUP BY Location_Code
Schema:
CREATE TABLE table_48113 (
    "Province" text,
    "Largest city" text,
    "2nd Largest" text,
    "3rd Largest" text,
    "4th largest" text
)

Question: What is the 3rd largest when 2nd largest in Minab?

SQL:
SELECT "3rd Largest" FROM table_48113 WHERE "2nd Largest" = 'minab'
Schema:
CREATE TABLE table_6658 (
    "Date" text,
    "City" text,
    "Opponent" text,
    "Results\u00b9" text,
    "Type of game" text
)

Question: What type of game was held against France with the results of 3:1?

SQL:
SELECT "Type of game" FROM table_6658 WHERE "Results\u00b9" = '3:1' AND "Opponent" = 'france'
Schema:
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 procedures (
    subject_id text,
    hadm_id text,
    icd9_code text,
    short_title text,
    long_title 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: Give the number of patients that died with a drug named pneumococcal vac polyvalent.

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "1" AND prescriptions.drug = "PNEUMOcoccal Vac Polyvalent"
Schema:
CREATE TABLE table_31987 (
    "Year" real,
    "Album" text,
    "Song" text,
    "Label" text,
    "Catalog#" text,
    "Format" text,
    "Country" text
)

Question: Which song had Central Station as a label and whose album was Various - Wild Nights 4?

SQL:
SELECT "Song" FROM table_31987 WHERE "Label" = 'central station' AND "Album" = 'various - wild nights 4'
Schema:
CREATE TABLE table_10510 (
    "Season" text,
    "Winner" text,
    "Team" text,
    "Position" text,
    "Win #" real
)

Question: Who had more than 3 wins?

SQL:
SELECT "Winner" FROM table_10510 WHERE "Win #" > '3'
Schema:
CREATE TABLE table_66500 (
    "Draw" real,
    "Artist" text,
    "Song" text,
    "Televote/SMS" text,
    "Place" real
)

Question: how many times was the televote/sms 2.39% and the place more than 9?

SQL:
SELECT COUNT("Draw") FROM table_66500 WHERE "Televote/SMS" = '2.39%' AND "Place" > '9'
Schema:
CREATE TABLE table_train_119 (
    "id" int,
    "systolic_blood_pressure_sbp" int,
    "hemoglobin_a1c_hba1c" float,
    "diastolic_blood_pressure_dbp" int,
    "hypotension" bool,
    "allergy_to_milk" bool,
    "allergy_to_soy" bool,
    "body_mass_index_bmi" float,
    "plasma_creatinine" float,
    "NOUSE" float
)

Question: plasma creatinine > 2 mg / dl.

SQL:
SELECT * FROM table_train_119 WHERE plasma_creatinine > 2
Schema:
CREATE TABLE table_204_177 (
    id number,
    "player" text,
    "years played" text,
    "total w-l" text,
    "singles w-l" text,
    "doubles w-l" text
)

Question: how many years did an jae sung play ?

SQL:
SELECT "years played" FROM table_204_177 WHERE "player" = 'an jae-sung'
Schema:
CREATE TABLE table_39203 (
    "Week" text,
    "Date" text,
    "Opponent" text,
    "Result" text,
    "Record" text
)

Question: Name the week for date of bye

SQL:
SELECT "Week" FROM table_39203 WHERE "Date" = 'bye'
Schema:
CREATE TABLE table_name_45 (
    drawn INTEGER,
    lost VARCHAR
)

Question: What is the sum of the drawn values for teams with 2 losses?

SQL:
SELECT SUM(drawn) FROM table_name_45 WHERE lost = 2
Schema:
CREATE TABLE genre (
    g_name varchar2(20),
    rating varchar2(10),
    most_popular_in varchar2(50)
)

CREATE TABLE artist (
    artist_name varchar2(50),
    country varchar2(20),
    gender varchar2(20),
    preferred_genre varchar2(50)
)

CREATE TABLE files (
    f_id number(10),
    artist_name varchar2(50),
    file_size varchar2(20),
    duration varchar2(20),
    formats varchar2(20)
)

CREATE TABLE song (
    song_name varchar2(50),
    artist_name varchar2(50),
    country varchar2(20),
    f_id number(10),
    genre_is varchar2(20),
    rating number(10),
    languages varchar2(20),
    releasedate Date,
    resolution number(10)
)

Question: What is the average rating of songs for each language. Plot them as pie chart.

SQL:
SELECT languages, AVG(rating) FROM song GROUP BY languages
Schema:
CREATE TABLE table_name_81 (
    wins VARCHAR,
    top_25 VARCHAR,
    top_10 VARCHAR
)

Question: What is the total number of Wins, when Top-25 is less than 4, and when Top-10 is less than 1?

SQL:
SELECT COUNT(wins) FROM table_name_81 WHERE top_25 < 4 AND top_10 < 1
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 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 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
)

Question: How many patients of black/cape verdean ethnicity were primarily diagnosed with the disease colangitis

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.diagnosis = "COLANGITIS"
Schema:
CREATE TABLE Timed_Status_of_Things (
    thing_id INTEGER,
    Date_and_Date DATETIME,
    Status_of_Thing_Code CHAR(15)
)

CREATE TABLE Services (
    service_id INTEGER,
    organization_id INTEGER,
    service_type_code CHAR(15),
    service_details VARCHAR(255)
)

CREATE TABLE Customers (
    customer_id INTEGER,
    customer_details VARCHAR(255)
)

CREATE TABLE Properties (
    property_id INTEGER,
    property_type_code CHAR(15),
    property_address VARCHAR(255),
    other_details VARCHAR(255)
)

CREATE TABLE Residents (
    resident_id INTEGER,
    property_id INTEGER,
    date_moved_in DATETIME,
    date_moved_out DATETIME,
    other_details VARCHAR(255)
)

CREATE TABLE Customer_Events (
    Customer_Event_ID INTEGER,
    customer_id INTEGER,
    date_moved_in DATETIME,
    property_id INTEGER,
    resident_id INTEGER,
    thing_id INTEGER
)

CREATE TABLE Customer_Event_Notes (
    Customer_Event_Note_ID INTEGER,
    Customer_Event_ID INTEGER,
    service_type_code CHAR(15),
    resident_id INTEGER,
    property_id INTEGER,
    date_moved_in DATETIME
)

CREATE TABLE Timed_Locations_of_Things (
    thing_id INTEGER,
    Date_and_Time DATETIME,
    Location_Code CHAR(15)
)

CREATE TABLE Residents_Services (
    resident_id INTEGER,
    service_id INTEGER,
    date_moved_in DATETIME,
    property_id INTEGER,
    date_requested DATETIME,
    date_provided DATETIME,
    other_details VARCHAR(255)
)

CREATE TABLE Things (
    thing_id INTEGER,
    organization_id INTEGER,
    Type_of_Thing_Code CHAR(15),
    service_type_code CHAR(10),
    service_details VARCHAR(255)
)

CREATE TABLE Organizations (
    organization_id INTEGER,
    parent_organization_id INTEGER,
    organization_details VARCHAR(255)
)

Question: What is the proportion of each customer's move in date? Show me the bar chart.

SQL:
SELECT date_moved_in, COUNT(date_moved_in) FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id GROUP BY date_moved_in
Schema:
CREATE TABLE instruments (
    songid number,
    bandmateid number,
    instrument text
)

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

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

CREATE TABLE albums (
    aid number,
    title text,
    year number,
    label text,
    type text
)

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

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

CREATE TABLE songs (
    songid number,
    title text
)

Question: What are the vocal types used in song 'Le Pop'?

SQL:
SELECT type FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
Schema:
CREATE TABLE table_79845 (
    "Title" text,
    "Album" text,
    "Country" text,
    "Peak position" real,
    "Weeks on chart" real
)

Question: what is the most weeks on chart when the peak position is less than 5 and from Sweden?

SQL:
SELECT MAX("Weeks on chart") FROM table_79845 WHERE "Peak position" < '5' AND "Country" = 'sweden'
Schema:
CREATE TABLE diagnoses (
    subject_id text,
    hadm_id text,
    icd9_code text,
    short_title text,
    long_title 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
)

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 lab (
    subject_id text,
    hadm_id text,
    itemid text,
    charttime text,
    flag text,
    value_unit text,
    label text,
    fluid text
)

Question: Count the number of patients died in or before year 2111 whose lab test fluid is ascites.

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2111.0" AND lab.fluid = "Ascites"
Schema:
CREATE TABLE table_name_61 (
    series VARCHAR,
    season VARCHAR
)

Question: What was the series in season 2009?

SQL:
SELECT series FROM table_name_61 WHERE season = 2009
Schema:
CREATE TABLE sampledata15 (
    sample_pk number,
    state text,
    year text,
    month text,
    day text,
    site text,
    commod text,
    source_id text,
    variety text,
    origin text,
    country text,
    disttype text,
    commtype text,
    claim text,
    quantity number,
    growst text,
    packst text,
    distst text
)

CREATE TABLE resultsdata15 (
    sample_pk number,
    commod text,
    commtype text,
    lab text,
    pestcode text,
    testclass text,
    concen number,
    lod number,
    conunit text,
    confmethod text,
    confmethod2 text,
    annotate text,
    quantitate text,
    mean text,
    extract text,
    determin text
)

Question: What is the maximum pesticide concentration ever found in a commodity?

SQL:
SELECT MAX(concen) FROM resultsdata15
Schema:
CREATE TABLE table_45338 (
    "Year" real,
    "Domestic freight" real,
    "Domestic mail" real,
    "International freight" real,
    "International mail" real,
    "Total freight and mail" real,
    "Change" text
)

Question: What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail?

SQL:
SELECT MAX("International mail") FROM table_45338 WHERE "Change" = '+0,2%' AND "Domestic mail" < '0'
Schema:
CREATE TABLE table_name_97 (
    park_and_ride_lot VARCHAR,
    station_name VARCHAR
)

Question: What is the park & ride lot for the Temple Square station?

SQL:
SELECT park_and_ride_lot FROM table_name_97 WHERE station_name = "temple square"
Schema:
CREATE TABLE table_22824319_3 (
    player VARCHAR,
    points VARCHAR
)

Question: Name the total number of player for 51 points

SQL:
SELECT COUNT(player) FROM table_22824319_3 WHERE points = 51
Schema:
CREATE TABLE table_name_51 (
    round INTEGER,
    name VARCHAR,
    overall VARCHAR
)

Question: Name of David Kimball, and an Overall smaller than 229 is what highest round?

SQL:
SELECT MAX(round) FROM table_name_51 WHERE name = "david kimball" AND overall < 229
Schema:
CREATE TABLE table_53964 (
    "Home team" text,
    "Home team score" text,
    "Away team" text,
    "Away team score" text,
    "Venue" text,
    "Crowd" real,
    "Date" text
)

Question: How is the crowd of the team Geelong?

SQL:
SELECT AVG("Crowd") FROM table_53964 WHERE "Away team" = 'geelong'
Schema:
CREATE TABLE repair (
    repair_ID int,
    name text,
    Launch_Date text,
    Notes text
)

CREATE TABLE machine (
    Machine_ID int,
    Making_Year int,
    Class text,
    Team text,
    Machine_series text,
    value_points real,
    quality_rank int
)

CREATE TABLE repair_assignment (
    technician_id int,
    repair_ID int,
    Machine_ID int
)

CREATE TABLE technician (
    technician_id real,
    Name text,
    Team text,
    Starting_Year real,
    Age int
)

Question: For each team, how many technicians are there, and sort from high to low by the y axis.

SQL:
SELECT Team, COUNT(*) FROM technician GROUP BY Team ORDER BY COUNT(*) DESC
Schema:
CREATE TABLE table_70568 (
    "Week" real,
    "Date" text,
    "Opponent" text,
    "Result" text,
    "Attendance" real
)

Question: September 23, 1973 landed on which week of the season?

SQL:
SELECT "Week" FROM table_70568 WHERE "Date" = 'september 23, 1973'
Schema:
CREATE TABLE table_name_34 (
    location VARCHAR,
    method VARCHAR
)

Question: Where was the method of tko?

SQL:
SELECT location FROM table_name_34 WHERE method = "tko"
Schema:
CREATE TABLE table_name_2 (
    partner VARCHAR,
    construction_start VARCHAR
)

Question: What Partner has a Construction Start of 2008 january?

SQL:
SELECT partner FROM table_name_2 WHERE construction_start = "2008 january"
Schema:
CREATE TABLE table_name_86 (
    death VARCHAR,
    spouse VARCHAR
)

Question: When was the date of death for the person married to Charles II?

SQL:
SELECT death FROM table_name_86 WHERE spouse = "charles ii"
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 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 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
)

Question: count the number of patients whose gender is f and procedure icd9 code is 4610?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.icd9_code = "4610"
Schema:
CREATE TABLE table_name_90 (
    points VARCHAR,
    wins VARCHAR,
    team VARCHAR
)

Question: How many points did Carlin have when they had 3 wins?

SQL:
SELECT points FROM table_name_90 WHERE wins = "3" AND team = "carlin"
Schema:
CREATE TABLE table_35942 (
    "Outcome" text,
    "Date" text,
    "Tournament" text,
    "Surface" text,
    "Partner" text,
    "Opponents in the final" text,
    "Score in the final" text
)

Question: In the final, who are the opponents of partner Simon Aspelin?

SQL:
SELECT "Opponents in the final" FROM table_35942 WHERE "Partner" = 'simon aspelin'