VishalCh/book-train huggingface dataset:
Schema:
CREATE TABLE intakeoutput (
    intakeoutputid number,
    patientunitstayid number,
    cellpath text,
    celllabel text,
    cellvaluenumeric number,
    intakeoutputtime 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 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
)

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 medication (
    medicationid number,
    patientunitstayid number,
    drugname text,
    dosage text,
    routeadmin text,
    drugstarttime time,
    drugstoptime 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 microlab (
    microlabid number,
    patientunitstayid number,
    culturesite text,
    organism text,
    culturetakentime time
)

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

Question: what are the top five frequent prescribed drugs that were prescribed to patients aged 20s in the same hospital encounter after they had been diagnosed with quadriplegia-partial until 2104?

SQL:
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'quadriplegia-partial' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime, patient.patienthealthsystemstayid FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.age BETWEEN 20 AND 29 AND STRFTIME('%y', medication.drugstarttime) <= '2104') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND t1.patienthealthsystemstayid = t2.patienthealthsystemstayid GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 5
Schema:
CREATE TABLE table_14524 (
    "Date" text,
    "Venue" text,
    "Score" text,
    "Result" text,
    "Competition" text
)

Question: In which venue did the competition on 11 October 2008 take place?

SQL:
SELECT "Venue" FROM table_14524 WHERE "Date" = '11 october 2008'
Schema:
CREATE TABLE Accounts (
    account_id INTEGER,
    customer_id INTEGER,
    account_name VARCHAR(50),
    other_account_details VARCHAR(255)
)

CREATE TABLE Customers_Cards (
    card_id INTEGER,
    customer_id INTEGER,
    card_type_code VARCHAR(15),
    card_number VARCHAR(80),
    date_valid_from DATETIME,
    date_valid_to DATETIME,
    other_card_details VARCHAR(255)
)

CREATE TABLE Financial_Transactions (
    transaction_id INTEGER,
    previous_transaction_id INTEGER,
    account_id INTEGER,
    card_id INTEGER,
    transaction_type VARCHAR(15),
    transaction_date DATETIME,
    transaction_amount DOUBLE,
    transaction_comment VARCHAR(255),
    other_transaction_details VARCHAR(255)
)

CREATE TABLE Customers (
    customer_id INTEGER,
    customer_first_name VARCHAR(20),
    customer_last_name VARCHAR(20),
    customer_address VARCHAR(255),
    customer_phone VARCHAR(255),
    customer_email VARCHAR(255),
    other_customer_details VARCHAR(255)
)

Question: Display a bar chart for what are the different card types, and how many cards are there of each?

SQL:
SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code
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 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 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
)

Question: what is discharge time and procedure icd9 code of subject id 65759?

SQL:
SELECT demographic.dischtime, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "65759"

Question: what number of patients primarily diagnosed for coronary artery disease were given drug by inhalation?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE" AND prescriptions.route = "INHALATION"

Question: how many patients are diagnosed with primary disease copd exacerbation?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COPD EXACERBATION"

Question: count the number of patients whose days of hospital stay is greater than 17 and diagnoses long title is diabetes with renal manifestations, type i [juvenile type], not stated as uncontrolled?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "17" AND diagnoses.long_title = "Diabetes with renal manifestations, type I [juvenile type], not stated as uncontrolled"
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 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: give the number of patients who are born before 2180 with a ivpca drug route.

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2180" AND prescriptions.route = "IVPCA"

Question: provide the number of patients whose primary disease is left colon cancer and age is less than 67?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT COLON CANCER" AND demographic.age < "67"

Question: give me the number of patients less than 45 years who were hospitalized for more than 20 days.

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "45" AND demographic.days_stay > "20"
Schema:
CREATE TABLE table_17356873_1 (
    venue VARCHAR,
    shirt_sponsor VARCHAR
)

Question: Which venue does Mardan sponsor?

SQL:
SELECT venue FROM table_17356873_1 WHERE shirt_sponsor = "Mardan"
Schema:
CREATE TABLE table_16331144_1 (
    runner_up VARCHAR,
    season VARCHAR
)

Question: Who was the runner-up in season five?

SQL:
SELECT runner_up FROM table_16331144_1 WHERE season = "Five"
Schema:
CREATE TABLE table_16484 (
    "Trim" text,
    "Engine" text,
    "Turbo" text,
    "Fuel Delivery" text,
    "Power" text,
    "Torque" text,
    "Transmission" text,
    "Performance" text
)

Question: what's the transmission where turbo is yes (mitsubishi td04-16t )

SQL:
SELECT "Transmission" FROM table_16484 WHERE "Turbo" = 'Yes (Mitsubishi TD04-16t )'
Schema:
CREATE TABLE table_35935 (
    "Round" real,
    "Pick" real,
    "Player" text,
    "Position" text,
    "School/Club Team" text
)

Question: What is the lowest round of Ed Smith, who had a pick lower than 19?

SQL:
SELECT MIN("Round") FROM table_35935 WHERE "Player" = 'ed smith' AND "Pick" > '19'
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 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 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
)

Question: provide the number of patients whose days of hospital stay is greater than 23 and drug code is acyc400?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "23" AND prescriptions.formulary_drug_cd = "ACYC400"

Question: count the number of patients whose primary disease is coronary artery disease\coronary artery bypass graft; myomectomy/sda and lab test fluid is urine?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA" AND lab.fluid = "Urine"
Schema:
CREATE TABLE table_name_94 (
    plural_word VARCHAR,
    plural_abbreviation VARCHAR
)

Question: The plural abbreviation of ll. uses what plural word?

SQL:
SELECT plural_word FROM table_name_94 WHERE plural_abbreviation = "ll."
Schema:
CREATE TABLE table_name_37 (
    date VARCHAR,
    time___et__ VARCHAR,
    game_site VARCHAR
)

Question: What date is the 1:00 pm game at arrowhead stadium?

SQL:
SELECT date FROM table_name_37 WHERE time___et__ = "1:00 pm" AND game_site = "arrowhead stadium"
Schema:
CREATE TABLE addresses (
    address_id number,
    address_details text
)

CREATE TABLE circulation_history (
    document_id number,
    draft_number number,
    copy_number number,
    employee_id number
)

CREATE TABLE ref_document_status (
    document_status_code text,
    document_status_description text
)

CREATE TABLE roles (
    role_code text,
    role_description text
)

CREATE TABLE documents_mailed (
    document_id number,
    mailed_to_address_id number,
    mailing_date time
)

CREATE TABLE document_drafts (
    document_id number,
    draft_number number,
    draft_details text
)

CREATE TABLE ref_shipping_agents (
    shipping_agent_code text,
    shipping_agent_name text,
    shipping_agent_description text
)

CREATE TABLE draft_copies (
    document_id number,
    draft_number number,
    copy_number number
)

CREATE TABLE employees (
    employee_id number,
    role_code text,
    employee_name text,
    other_details text
)

CREATE TABLE ref_document_types (
    document_type_code text,
    document_type_description text
)

CREATE TABLE documents (
    document_id number,
    document_status_code text,
    document_type_code text,
    shipping_agent_code text,
    receipt_date time,
    receipt_number text,
    other_details text
)

Question: What is draft detail of the document with id 7?

SQL:
SELECT draft_details FROM document_drafts WHERE document_id = 7
Schema:
CREATE TABLE table_32520 (
    "Athlete Name" text,
    "Jump 1" text,
    "Jump 2" text,
    "Jump 3" text,
    "Best Jump" text
)

Question: What is the Jump 2 of the person that has a Jump 3 of 7.77?

SQL:
SELECT "Jump 2" FROM table_32520 WHERE "Jump 3" = '7.77'
Schema:
CREATE TABLE cinema (
    Cinema_ID int,
    Name text,
    Openning_year int,
    Capacity int,
    Location text
)

CREATE TABLE film (
    Film_ID int,
    Rank_in_series int,
    Number_in_season int,
    Title text,
    Directed_by text,
    Original_air_date text,
    Production_code text
)

CREATE TABLE schedule (
    Cinema_ID int,
    Film_ID int,
    Date text,
    Show_times_per_day int,
    Price float
)

Question: Give me a pie to show how many directed by from different directed by.

SQL:
SELECT Directed_by, COUNT(Directed_by) FROM film GROUP BY Directed_by
Schema:
CREATE TABLE table_name_3 (
    cospar_id VARCHAR,
    satellite VARCHAR
)

Question: What is Ariel 3's COSPAR ID?

SQL:
SELECT cospar_id FROM table_name_3 WHERE satellite = "ariel 3"
Schema:
CREATE TABLE table_71124 (
    "Year" real,
    "Entrant" text,
    "Chassis" text,
    "Engine" text,
    "Tyres" text,
    "Points" real
)

Question: What Chassis has g Tyres before 1987?

SQL:
SELECT "Chassis" FROM table_71124 WHERE "Tyres" = 'g' AND "Year" < '1987'
Schema:
CREATE TABLE table_name_83 (
    channel VARCHAR,
    country VARCHAR
)

Question: Which channel comes out of Israel?

SQL:
SELECT channel FROM table_name_83 WHERE country = "israel"
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 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
)

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: how many patients whose admission year is less than 2166 and drug name is loperamide?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2166" AND prescriptions.drug = "Loperamide"

Question: how many patients are diagnosed with nb obsrv suspct infect and tested under hematology category in lab?

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.short_title = "NB obsrv suspct infect" AND lab."CATEGORY" = "Hematology"
Schema:
CREATE TABLE table_name_83 (
    year VARCHAR,
    team VARCHAR,
    tournament VARCHAR,
    finish VARCHAR
)

Question: In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?

SQL:
SELECT year FROM table_name_83 WHERE tournament = "1st division el salvador" AND finish = "champion" AND team = "fas"
Schema:
CREATE TABLE table_name_76 (
    accolade VARCHAR,
    rank VARCHAR,
    year VARCHAR,
    publication VARCHAR
)

Question: What is Accolade, when Year is less than 2002, when Publication is 'Rolling Stone', and when Rank is '48'?

SQL:
SELECT accolade FROM table_name_76 WHERE year < 2002 AND publication = "rolling stone" AND rank = 48
Schema:
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 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 countries (
    COUNTRY_ID varchar(2),
    COUNTRY_NAME varchar(40),
    REGION_ID decimal(10,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)
)

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

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 did not have any job in the past, return a bar chart about the distribution of hire_date and the sum of salary bin hire_date by time.

SQL:
SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)
Schema:
CREATE TABLE table_203_109 (
    id number,
    "treaty" text,
    "organization" text,
    "introduced" number,
    "signed" number,
    "ratified" number
)

Question: what is the last treaty morocco ratified ?

SQL:
SELECT "treaty" FROM table_203_109 ORDER BY "ratified" DESC LIMIT 1
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 d_labitems (
    row_id number,
    itemid number,
    label text
)

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

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

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 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 labevents (
    row_id number,
    subject_id number,
    hadm_id number,
    itemid number,
    charttime time,
    valuenum number,
    valueuom 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 procedures_icd (
    row_id number,
    subject_id number,
    hadm_id number,
    icd9_code text,
    charttime time
)

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 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_items (
    row_id number,
    itemid number,
    label text,
    linksto text
)

CREATE TABLE diagnoses_icd (
    row_id number,
    subject_id number,
    hadm_id number,
    icd9_code text,
    charttime 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 outputevents (
    row_id number,
    subject_id number,
    hadm_id number,
    icustay_id number,
    charttime time,
    itemid number,
    value number
)

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

Question: had patient 13806 been prescribed vancomycin hcl, phenylephrine or d5w (excel bag) until 2102?

SQL:
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13806) AND prescriptions.drug IN ('vancomycin hcl', 'phenylephrine', 'd5w (excel bag)') AND STRFTIME('%y', prescriptions.startdate) <= '2102'
Schema:
CREATE TABLE table_58551 (
    "Tournament" text,
    "2009" text,
    "2011" text,
    "2012" text,
    "2013" text
)

Question: Name the 2012 for 2009 of 1r

SQL:
SELECT "2012" FROM table_58551 WHERE "2009" = '1r'
Schema:
CREATE TABLE on_call (
    nurse VARCHAR,
    blockfloor VARCHAR,
    blockcode VARCHAR
)

Question: What nurses are on call with block floor 1 and block code 1? Tell me their names.

SQL:
SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1