answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT attendance FROM table_name_89 WHERE tie_no = 1
How many were in Attendance during a Tie no of 1?
CREATE TABLE table_name_89 (attendance VARCHAR, tie_no VARCHAR)
SELECT AVG(against) FROM table_name_66 WHERE drawn < 7 AND points > 22 AND played = 19
What is the average against that has a drawn less than 7, points greater than 22, and 19 for the played?
CREATE TABLE table_name_66 ( against INTEGER, played VARCHAR, drawn VARCHAR, points VARCHAR )
SELECT COUNT(club) FROM table_27293285_4 WHERE lost = "16"
Name the total number of club for lost being 16
CREATE TABLE table_27293285_4 (club VARCHAR, lost VARCHAR)
SELECT COUNT(attendance) FROM table_name_9 WHERE away_team = "tamworth"
What was the Attendance during the Tamworth Away game?
CREATE TABLE table_name_9 (attendance VARCHAR, away_team VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "ASIAN" AND diagnoses.icd9_code = "30501"
how many asian patients have diagnoses icd9 code 30501?
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 )
SELECT drawn FROM table_27293285_4 WHERE lost = "5" AND tries_for = "89"
Name the drawn for lost being 5 and tries for 89
CREATE TABLE table_27293285_4 (drawn VARCHAR, lost VARCHAR, tries_for VARCHAR)
SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_21 WHERE winner = "scott simpson (7)"
Which 1st prize ($) has a Winner of scott simpson (7)?
CREATE TABLE table_name_21 (winner VARCHAR)
SELECT MAX(round) FROM table_name_67 WHERE player = "chris phillips"
What is the highest round played by Chris Phillips?
CREATE TABLE table_name_67 ( round INTEGER, player VARCHAR )
SELECT won FROM table_27293285_4 WHERE played = "22" AND lost = "15" AND points_against = "511"
Name the won for played being 22 and points against 511 and lost being 15
CREATE TABLE table_27293285_4 (won VARCHAR, points_against VARCHAR, played VARCHAR, lost VARCHAR)
SELECT COUNT(1 AS st_prize___) AS $__ FROM table_name_69 WHERE date = "aug 17"
How many 1st prizes have a Date of aug 17?
CREATE TABLE table_name_69 (date VARCHAR)
SELECT COUNT(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'
How many different courses offered by Physics department?
CREATE TABLE course ( course_id VARCHAR, dept_name VARCHAR )
SELECT aorist FROM table_27298240_26 WHERE present = "bude"
What aorist has bude in present tense?
CREATE TABLE table_27298240_26 (aorist VARCHAR, present VARCHAR)
SELECT tournament FROM table_name_15 WHERE location = "texas" AND winner = "tom watson (39)"
Which Tournament has a Location of texas, and a Winner of tom watson (39)?
CREATE TABLE table_name_15 (tournament VARCHAR, location VARCHAR, winner VARCHAR)
SELECT COUNT("Lost") FROM table_34236 WHERE "Order" = '2nd' AND "Played" > '13'
How many games were lost when the order was 2nd and the play was more than 13
CREATE TABLE table_34236 ( "Season" text, "Order" text, "Played" real, "Drawn" real, "Lost" real, "Penalties" real, "Points For" real, "Points Against" real, "Points Diff" real, "Coach" text )
SELECT aorist FROM table_27298240_26 WHERE imperfect = "bijasmo / bejasmo / besmo"
Which aorist has imperfect form of bijasmo / bejasmo / besmo?
CREATE TABLE table_27298240_26 (aorist VARCHAR, imperfect VARCHAR)
SELECT res FROM table_name_81 WHERE type = "ko" AND opponent = "cliff beckett"
What was the resolution for KO opposing Cliff Beckett?
CREATE TABLE table_name_81 (res VARCHAR, type VARCHAR, opponent VARCHAR)
SELECT * FROM table_train_53 WHERE immune_suppression = 1 OR steroid_therapy = 1
immunosuppression, systemic steroid therapy ( > 10 mg prednisolon / day )
CREATE TABLE table_train_53 ( "id" int, "immune_suppression" bool, "need_hemodialysis" bool, "steroid_therapy" bool, "cardiogenic_shock" bool, "hematologic_disease" bool, "coronary_syndrome" bool, "NOUSE" float )
SELECT pluperfect FROM table_27298240_26 WHERE perfect = "si bio/la; bio/la si"
What is the pluperfect for the perfect si bio/la; bio/la si?
CREATE TABLE table_27298240_26 (pluperfect VARCHAR, perfect VARCHAR)
SELECT type FROM table_name_34 WHERE opponent = "robert villemain" AND record = "109–1–2"
What is the type when Robert Villemain had a record at 109–1–2?
CREATE TABLE table_name_34 (type VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT "Player" FROM table_30552 WHERE "Points" = '2343'
what is the person there the numbers is 2343
CREATE TABLE table_30552 ( "#" real, "Player" text, "Country" text, "Points" real, "Reset points" real, "Events" real )
SELECT event FROM table_27294107_11 WHERE round_of_32 = "Suárez ( TRI ) W 16–6"
What was the event when suárez ( tri ) w 16–6 was round of 32?
CREATE TABLE table_27294107_11 (event VARCHAR, round_of_32 VARCHAR)
SELECT platform_ & _frequency_[mhz] FROM table_name_46 WHERE model = "whr-g54s"
What is the platform & frequency [MHz] of the whr-g54s model?
CREATE TABLE table_name_46 (platform_ VARCHAR, _frequency_ VARCHAR, mhz VARCHAR, model VARCHAR)
SELECT "(Virtual)" FROM table_23329 WHERE "Callsign" = 'WNET'
what is the virtual callsign if is wnet
CREATE TABLE table_23329 ( "(Virtual)" text, "Callsign" text, "Affiliation" text, "Branding" text, "Channel" text, "Programming" text, "Owner" text )
SELECT semifinals FROM table_27294107_11 WHERE event = "Light flyweight"
What is the semifinals for the light flyweight event?
CREATE TABLE table_27294107_11 (semifinals VARCHAR, event VARCHAR)
SELECT voltage_input_[v_a] FROM table_name_89 WHERE model = "whr-g54s"
What is the voltage iinput [V/A] of the whr-g54s model?
CREATE TABLE table_name_89 (voltage_input_ VARCHAR, v_a VARCHAR, model VARCHAR)
SELECT COUNT(pick) FROM table_name_7 WHERE round = "round 8" AND position = "kicker"
What was the pick number for the kicker in round 8?
CREATE TABLE table_name_7 ( pick VARCHAR, round VARCHAR, position VARCHAR )
SELECT COUNT(semifinals) FROM table_27294107_11 WHERE athlete = "Ferhat Pehlivan"
How many semifinals did ferhat pehlivan attend?
CREATE TABLE table_27294107_11 (semifinals VARCHAR, athlete VARCHAR)
SELECT ethernet_port_count FROM table_name_72 WHERE model = "whr-hp-g300n"
What is the Ethernet port count of the whr-hp-g300n model?
CREATE TABLE table_name_72 (ethernet_port_count VARCHAR, model VARCHAR)
SELECT CRS_CODE, COUNT(CRS_CODE) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM GROUP BY CRS_CODE ORDER BY CRS_CODE
How many courses each teacher taught? Show me a bar chart grouping by course code, sort names in ascending order please.
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 DEPARTMENT ( DEPT_CODE varchar(10), DEPT_NAME varchar(30), SCHOOL_CODE varchar(8), EMP_NUM int, DEPT_ADDRESS varchar(20), DEPT_EXTENSION varchar(4) ) 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 COURSE ( CRS_CODE varchar(10), DEPT_CODE varchar(10), CRS_DESCRIPTION varchar(35), CRS_CREDIT float(8) ) 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 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 ENROLL ( CLASS_CODE varchar(5), STU_NUM int, ENROLL_GRADE varchar(50) )
SELECT round_of_32 FROM table_27294107_11 WHERE round_of_16 = "Drenovak ( SRB ) W 20–11"
What is the round of 32 if the round of 16 is drenovak ( srb ) w 20–11?
CREATE TABLE table_27294107_11 (round_of_32 VARCHAR, round_of_16 VARCHAR)
SELECT MAX(year) FROM table_name_64 WHERE album = "airwaves" AND us_hot_100 = "–"
Which Year has an Album of airwaves, and a US Hot 100 of –?
CREATE TABLE table_name_64 (year INTEGER, album VARCHAR, us_hot_100 VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND procedures.icd9_code = "4233"
what is the number of office admission patients who have procedure icd9 code 4233?
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 ) 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 )
SELECT round_of_32 FROM table_27294107_11 WHERE athlete = "Yakup Şener"
When yakup şener is the athlete what is the round of 32?
CREATE TABLE table_27294107_11 (round_of_32 VARCHAR, athlete VARCHAR)
SELECT song FROM table_name_1 WHERE year < 1979 AND us_hot_100 = "8"
Which Song has a Year smaller than 1979, and a US Hot 100 of 8?
CREATE TABLE table_name_1 (song VARCHAR, year VARCHAR, us_hot_100 VARCHAR)
SELECT COUNT("Pos") FROM table_2758 WHERE "Total Time" = '1:30.4135'
How many positions have a total time of 1:30.4135?
CREATE TABLE table_2758 ( "Pos" text, "##" real, "Name" text, "Team" text, "Lap One" text, "Lap Two" text, "Lap Three" text, "Lap Four" text, "Total Time" text, "Avg. Speed" text )
SELECT round_of_32 FROM table_27294107_11 WHERE athlete = "Fatih Keleş"
What is the round of 32 for fatih keleş?
CREATE TABLE table_27294107_11 (round_of_32 VARCHAR, athlete VARCHAR)
SELECT series FROM table_name_41 WHERE date = "april 24"
What is the series record for the game on April 24?
CREATE TABLE table_name_41 (series VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "WIDOWED" AND procedures.short_title = "Transplant cadaver donor"
how many widow patients had transplant from cadaver?
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 ) 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 )
SELECT 1 AS st FROM table_27298240_28 WHERE present = "mogu"
What is in 1st place when present is mogu?
CREATE TABLE table_27298240_28 (present VARCHAR)
SELECT game FROM table_name_50 WHERE date = "april 27"
What was the game number that took place on April 27?
CREATE TABLE table_name_50 (game VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.drug_type = "MAIN"
how many patients whose admission type is emergency and drug type is main?
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 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 )
SELECT 2 AS nd FROM table_27298240_28 WHERE pronoun = "vi (you pl.)"
what is 2nd when the pronoun is vi (you pl.)?
CREATE TABLE table_27298240_28 (pronoun VARCHAR)
SELECT opponent FROM table_name_82 WHERE attendance = "6,275"
Which Opponent has a Attendance of 6,275?
CREATE TABLE table_name_82 (opponent VARCHAR, attendance VARCHAR)
SELECT "Date" FROM table_37550 WHERE "Opponent" = 'luxembourg'
What day did Yugoslavia play Luxembourg?
CREATE TABLE table_37550 ( "Date" text, "City" text, "Opponent" text, "Results\u00b9" text, "Type of game" text )
SELECT r FROM table WHERE total = 1 AND position = "FW"
What is the R when the total is 1 and the position is fw?
CREATE TABLE table (r VARCHAR, total VARCHAR, position VARCHAR)
SELECT opponent FROM table_name_29 WHERE attendance = "7,034"
Which Opponent has a Attendance of 7,034?
CREATE TABLE table_name_29 (opponent VARCHAR, attendance VARCHAR)
SELECT apt_number, room_count FROM Apartments ORDER BY apt_number DESC
Return the apartment number and the number of rooms for each apartment, sort by the bars in desc.
CREATE TABLE Apartment_Facilities ( apt_id INTEGER, facility_code CHAR(15) ) CREATE TABLE Apartment_Bookings ( apt_booking_id INTEGER, apt_id INTEGER, guest_id INTEGER, booking_status_code CHAR(15), booking_start_date DATETIME, booking_end_date DATETIME ) CREATE TABLE Apartment_Buildings ( building_id INTEGER, building_short_name CHAR(15), building_full_name VARCHAR(80), building_description VARCHAR(255), building_address VARCHAR(255), building_manager VARCHAR(50), building_phone VARCHAR(80) ) CREATE TABLE View_Unit_Status ( apt_id INTEGER, apt_booking_id INTEGER, status_date DATETIME, available_yn BIT ) CREATE TABLE Guests ( guest_id INTEGER, gender_code CHAR(1), guest_first_name VARCHAR(80), guest_last_name VARCHAR(80), date_of_birth DATETIME ) CREATE TABLE Apartments ( apt_id INTEGER, building_id INTEGER, apt_type_code CHAR(15), apt_number CHAR(10), bathroom_count INTEGER, bedroom_count INTEGER, room_count CHAR(5) )
SELECT MIN(league_cup) FROM table
What is the lowest league cup?
CREATE TABLE table (league_cup INTEGER)
SELECT date FROM table_name_13 WHERE result = "0–2" AND opponent = "aberdeen"
When has a Result of 0–2 and a Opponent of aberdeen?
CREATE TABLE table_name_13 (date VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT lungchang FROM table_name_85 WHERE halang = "ʒɯ²" AND rera = "ʒo²"
Which Lungchang has a Halang of , and a Rera of o ?
CREATE TABLE table_name_85 ( lungchang VARCHAR, halang VARCHAR, rera VARCHAR )
SELECT position FROM table WHERE player = Becchio
What is the position for the player becchio?
CREATE TABLE table (position VARCHAR, player VARCHAR, Becchio VARCHAR)
SELECT venue FROM table_name_58 WHERE result = "2–2" AND attendance = "5,760"
Which Venue has a Result of 2–2 and Attendances of 5,760?
CREATE TABLE table_name_58 (venue VARCHAR, result VARCHAR, attendance VARCHAR)
SELECT "Nat." FROM table_68773 WHERE "Name" = 'roma'
What nation had a ship named Roma?
CREATE TABLE table_68773 ( "Estimate" text, "Name" text, "Nat." text, "Ship type" text, "Where sunk" text, "Date" text )
SELECT COUNT(league_cup) FROM table WHERE r = 4
How many times was the r 4?
CREATE TABLE table (league_cup VARCHAR, r VARCHAR)
SELECT venue FROM table_name_97 WHERE attendance = "11,045"
Which Venue has Attendances of 11,045?
CREATE TABLE table_name_97 (venue VARCHAR, attendance VARCHAR)
SELECT MIN(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3229) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' AND d_items.linksto = 'chartevents')
whats patient 3229 minimum arterial bp mean on the first icu visit?
CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) 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 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 d_items ( row_id number, itemid number, label text, linksto 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime 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 )
SELECT parent FROM table_2731431_1 WHERE peak = "Cima Tosa"
What is the parent for peak cima tosa?
CREATE TABLE table_2731431_1 (parent VARCHAR, peak VARCHAR)
SELECT date FROM table_name_53 WHERE venue = "a" AND attendance = "4,365"
When Venue of A has Attendance of 4,365?
CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR, attendance VARCHAR)
SELECT LName, Age FROM Student WHERE StuID IN (SELECT StuID FROM Has_Allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_Allergy WHERE Allergy = "Cat") ORDER BY Age
Find the last name and age of the student who has allergy to both milk and cat Show a bar chart, order in asc by the Y.
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 Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) )
SELECT MIN(elevation__m_) FROM table_2731431_1 WHERE location = "Austria" AND peak = "Wildspitze"
What is the elevation for the peak wildspitze in Austria?
CREATE TABLE table_2731431_1 (elevation__m_ INTEGER, location VARCHAR, peak VARCHAR)
SELECT 1 AS st_leg FROM table_name_48 WHERE team_2 = "cs sfaxien"
What is the 1st leg of cs sfaxien?
CREATE TABLE table_name_48 (team_2 VARCHAR)
SELECT dar FROM table_15887683_17 WHERE television_service = "Telenord"
Name the dar for telenord
CREATE TABLE table_15887683_17 ( dar VARCHAR, television_service VARCHAR )
SELECT MAX(elevation__m_) FROM table_2731431_1 WHERE no = 39
What is the elevation for number 39?
CREATE TABLE table_2731431_1 (elevation__m_ INTEGER, no VARCHAR)
SELECT finish FROM table_name_94 WHERE player = "lee janzen"
Name the finish for lee janzen
CREATE TABLE table_name_94 (finish VARCHAR, player VARCHAR)
SELECT position FROM table_name_81 WHERE birthplace = "phoenix, new york"
What is the Position of the person with a birthplace of phoenix, new york?
CREATE TABLE table_name_81 ( position VARCHAR, birthplace VARCHAR )
SELECT col_location FROM table_2731431_1 WHERE location = "France / Italy"
What is the col location for the location of france / italy?
CREATE TABLE table_2731431_1 (col_location VARCHAR, location VARCHAR)
SELECT MAX(total) FROM table_name_14 WHERE to_par > 16
Name the most total with to par more than 16
CREATE TABLE table_name_14 (total INTEGER, to_par INTEGER)
SELECT MAX(against) FROM table_name_50 WHERE draws > 0 AND losses < 16 AND wins < 4
Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4?
CREATE TABLE table_name_50 ( against INTEGER, wins VARCHAR, draws VARCHAR, losses VARCHAR )
SELECT col_location FROM table_2731431_1 WHERE col_height__m_ = 1107
What is the col location with a col height (m) of 1107?
CREATE TABLE table_2731431_1 (col_location VARCHAR, col_height__m_ VARCHAR)
SELECT record FROM table_name_95 WHERE opponent = "new york jets"
What was the Steeler's record when they played against the new york Jets?
CREATE TABLE table_name_95 (record VARCHAR, opponent VARCHAR)
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 = "Bleed esoph var oth dis" AND lab."CATEGORY" = "Chemistry"
How many patients categorized under a chemistry lab test are diagnosed with esophageal varices in diseases classified elsewhere (with bleeding)?
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 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 )
SELECT location FROM table_2731431_1 WHERE elevation__m_ = 3798
Which location has an elevation of 3798?
CREATE TABLE table_2731431_1 (location VARCHAR, elevation__m_ VARCHAR)
SELECT result FROM table_name_24 WHERE date = "december 8, 1963"
What is the Result from the Date that is December 8, 1963?
CREATE TABLE table_name_24 (result VARCHAR, date VARCHAR)
SELECT builder FROM table_name_35 WHERE country = "united kingdom" AND location = "chatham, kent"
What is Builder, when Country is 'United Kingdom', and when Location is 'Chatham, Kent'?
CREATE TABLE table_name_35 ( builder VARCHAR, country VARCHAR, location VARCHAR )
SELECT title FROM table_27303975_3 WHERE catalog_number = "CAL01 / 0091037137319"
What is the title when the catalog number is cal01 / 0091037137319?
CREATE TABLE table_27303975_3 (title VARCHAR, catalog_number VARCHAR)
SELECT date FROM table_name_28 WHERE attendance = 960
What is the date when the attendance is 960?
CREATE TABLE table_name_28 (date VARCHAR, attendance VARCHAR)
SELECT MIN("Episode Number") FROM table_8560 WHERE "Air Date" = '8 june 2008'
What is the earliest episode aired on 8 June 2008?
CREATE TABLE table_8560 ( "Episode Number" real, "Air Date" text, "Event 1" text, "Event 2" text, "Event 3" text, "Event 4" text )
SELECT COUNT(studio) FROM table_27303975_3 WHERE title = "AM/PM Callanetics"
How many times is the title am/pm callanetics?
CREATE TABLE table_27303975_3 (studio VARCHAR, title VARCHAR)
SELECT SUM(date) FROM table_name_8 WHERE venue = "away" AND opponent = "wightlink raiders" AND attendance > 375
What is the date of the away venue with an opponent of wightlink raiders with an attendance larger than 375?
CREATE TABLE table_name_8 (date INTEGER, attendance VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT "2009" FROM table_71446 WHERE "2006" = 'q1' AND "Tournament" = 'french open'
What is the 2009 value with a q1 in 2006 in the French Open?
CREATE TABLE table_71446 ( "Tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text )
SELECT COUNT(title) FROM table_27303975_3 WHERE catalog_number = "CAL04 / 0091037553546"
How many times was the catalog number cal04 / 0091037553546?
CREATE TABLE table_27303975_3 (title VARCHAR, catalog_number VARCHAR)
SELECT AVG(attendance) FROM table_name_75 WHERE opponent = "telford tigers"
What is the average attendance when the opponent is telford tigers?
CREATE TABLE table_name_75 (attendance INTEGER, opponent VARCHAR)
SELECT elevation FROM table_name_20 WHERE county = "oslo"
Tell me the elevation for oslo
CREATE TABLE table_name_20 ( elevation VARCHAR, county VARCHAR )
SELECT COUNT(copyright_information) FROM table_27303975_3 WHERE catalog_number = "CAL04 / 0091037553546"
how many times was the catalog number cal04 / 0091037553546?
CREATE TABLE table_27303975_3 (copyright_information VARCHAR, catalog_number VARCHAR)
SELECT result FROM table_name_44 WHERE attendance = 960
What is the result when the attendance is 960?
CREATE TABLE table_name_44 (result VARCHAR, attendance VARCHAR)
SELECT "Written by" FROM table_73201 WHERE "Television order" = 'S01E06'
who wrote s01e06
CREATE TABLE table_73201 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "Television order" text )
SELECT COUNT(copyright_information) FROM table_27303975_3 WHERE catalog_number = "CAL01 / 0091037137319"
how many times was the catalog number cal01 / 0091037137319?
CREATE TABLE table_27303975_3 (copyright_information VARCHAR, catalog_number VARCHAR)
SELECT tournament FROM table_name_68 WHERE 2006 = "a" AND 1996 = "1r" AND 2004 = "1r"
Name the tournament for 2006 of a, 1996 of 1r and 2004 of 1r
CREATE TABLE table_name_68 (tournament VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2125" AND lab.itemid = "51484"
what number of patients admitted before the year 2125 have lab test item id 51484?
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 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 )
SELECT COUNT(title) FROM table_27303975_3 WHERE catalog_number = "CAL05 / 0091037137357"
how many times was the catalog number cal05 / 0091037137357?
CREATE TABLE table_27303975_3 (title VARCHAR, catalog_number VARCHAR)
SELECT 2003 FROM table_name_83 WHERE 1998 = "atp masters series"
Name the 2003 for atp masters series 1998
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT "Position" FROM table_49927 WHERE "Nationality" = 'canada' AND "Round" < '7' AND "Player" = 'zach boychuk'
WHAT IS THE POSITION FOR CANADA, ROUND SMALLER THAN 7, PLAYER ZACH BOYCHUK?
CREATE TABLE table_49927 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text )
SELECT directed_by FROM table_27332038_1 WHERE written_by = "Elaine Ko"
who directed the episode that elaine ko wrote?
CREATE TABLE table_27332038_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT 1997 FROM table_name_65 WHERE 1992 = "atp masters series"
Name the 1997 for atp masters series 1992
CREATE TABLE table_name_65 (Id VARCHAR)
SELECT MAX("Season 3") FROM table_28473 WHERE "Played by" = 'Morgan the Dog'
How many season 3 appearances by Morgan the Dog?
CREATE TABLE table_28473 ( "Character" text, "Played by" text, "Season 1" real, "Season 2" real, "Season 3" real, "Season 4" real, "First Appearance" text )
SELECT original_air_date FROM table_27332038_1 WHERE production_code = "2ARG01"
when was the episode with production code "2arg01" originally aired?
CREATE TABLE table_27332038_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT city FROM table_name_84 WHERE county = "brule"
what city is brule in
CREATE TABLE table_name_84 (city VARCHAR, county VARCHAR)
SELECT * FROM table_test_16 WHERE stroke = 1
recent stroke ( within the last six month )
CREATE TABLE table_test_16 ( "id" int, "left_ventricular_ejection_fraction_lvef" int, "systolic_blood_pressure_sbp" int, "severe_hypertension" bool, "adrenaline" bool, "stroke" bool, "renal_disease" bool, "severe_uncontrolled_arterial_hypertension" bool, "hepatic_disease" bool, "dobutamine" bool, "temperature" float, "creatinine_clearance_cl" float, "estimated_glomerular_filtration_rate_egfr" int, "cardiogenic_shock" bool, "diastolic_blood_pressure_dbp" int, "liver_disease" bool, "intravenous_vasoactive_agents" bool, "kidney_disease" bool, "hypertension" bool, "age" float, "NOUSE" float )
SELECT title FROM table_27332038_1 WHERE production_code = "2ARG09"
what is the title of the episode with production code "2arg09"?
CREATE TABLE table_27332038_1 (title VARCHAR, production_code VARCHAR)
SELECT performer_3 FROM table_name_67 WHERE performer_2 = "karen maruyama"
Who was performer 3 with karen maruyama as performer 2?
CREATE TABLE table_name_67 (performer_3 VARCHAR, performer_2 VARCHAR)