instruction stringlengths 0 1.06k | input stringlengths 11 5.3k | response stringlengths 2 4.44k |
|---|---|---|
What is the type of POR? | CREATE TABLE table_49584 ("Nat." text,"Name" text,"Moving to" text,"Type" text,"Transfer window" text,"Transfer fee" text,"Source" text) | SELECT "Type" FROM table_49584 WHERE "Nat." = 'por' |
What is the time/retired for alain prost? | CREATE TABLE table_name_60 (time_retired VARCHAR,driver VARCHAR) | SELECT time_retired FROM table_name_60 WHERE driver = "alain prost" |
Who was Betty's partner when the surface is hard? | CREATE TABLE table_30388 ("Outcome" text,"Year" real,"Championship" text,"Surface" text,"Partner" text,"Opponents in the final" text,"Score in the final" text) | SELECT "Partner" FROM table_30388 WHERE "Surface" = 'Hard' |
What is the highest pick for a player from auburn? | CREATE TABLE table_name_60 (pick INTEGER,school VARCHAR) | SELECT MAX(pick) FROM table_name_60 WHERE school = "auburn" |
Who was the home team in the game with more than 1675, and Olimpia was the away side? | CREATE TABLE table_8196 ("Date" text,"Home" text,"Score" text,"Away" text,"Attendance" real) | SELECT "Home" FROM table_8196 WHERE "Attendance" > '1675' AND "Away" = 'olimpia' |
how many female patients were diagnosed with aortic valve insuffiency\aortic valve replacement /sda? | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" |
How much are all winners share ($) in the year 2004? | CREATE TABLE table_15315816_1 (winners_share__$_ VARCHAR,year VARCHAR) | SELECT winners_share__$_ FROM table_15315816_1 WHERE year = "2004" |
What is the sum of Weeks on Top for the Volume:Issue 34:9-12? | CREATE TABLE table_42213 ("Volume:Issue" text,"Issue Date(s)" text,"Weeks on Top" real,"Song" text,"Artist" text) | SELECT SUM("Weeks on Top") FROM table_42213 WHERE "Volume:Issue" = '34:9-12' |
What was the title of the episode with a production code of 1gowo04? | CREATE TABLE table_7464 ("Ep No" text,"Prod Code" text,"Original Air Date" text,"Episode Title" text,"Ratings" text) | SELECT "Episode Title" FROM table_7464 WHERE "Prod Code" = '1gowo04' |
Draw a bar chart of last name versus department_id, and order in desc by the X please. | 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 dec... | SELECT LAST_NAME, DEPARTMENT_ID FROM employees ORDER BY LAST_NAME DESC |
What was the game number when record is 59-15? | CREATE TABLE table_46019 ("Game" real,"Date" text,"Opponent" text,"Score" text,"Location" text,"Record" text) | SELECT MIN("Game") FROM table_46019 WHERE "Record" = '59-15' |
What is Hungary's highest Rank? | CREATE TABLE table_name_38 (rank INTEGER,country VARCHAR) | SELECT MAX(rank) FROM table_name_38 WHERE country = "hungary" |
How many air dates does the episode with 15.50 million viewers have? | CREATE TABLE table_26198709_1 (original_air_date VARCHAR,us_viewers__million_ VARCHAR) | SELECT COUNT(original_air_date) FROM table_26198709_1 WHERE us_viewers__million_ = "15.50" |
At Time Warner Cable Arena 12,096, what was the high points? | CREATE TABLE table_name_85 (high_points VARCHAR,location_attendance VARCHAR) | SELECT high_points FROM table_name_85 WHERE location_attendance = "time warner cable arena 12,096" |
What's the biggest zone? | CREATE TABLE table_1231 ("Station" text,"Year opened" text,"Metropolitan borough [c ]" text,"Zone" real,"Servedby Route maps:- [ dead link ] [ dead link ]" text,"Station users 2006\u201307" real,"Station users 2007\u201308" real) | SELECT MAX("Zone") FROM table_1231 |
Which Red Cards has a Season of 1998/1999, and a Games larger than 41? | CREATE TABLE table_name_55 (red_cards INTEGER,season VARCHAR,games VARCHAR) | SELECT MIN(red_cards) FROM table_name_55 WHERE season = "1998/1999" AND games > 41 |
What is the position for Discus in 2013? | CREATE TABLE table_14174 ("Year" real,"Competition" text,"Venue" text,"Position" text,"Event" text) | SELECT "Position" FROM table_14174 WHERE "Event" = 'discus' AND "Year" = '2013' |
In the championship Indian Wells, United States (2), who are the opponents in the final? | CREATE TABLE table_73914 ("Outcome" text,"No." text,"Date" text,"Championship" text,"Surface" text,"Opponent in the final" text,"Score in the final" text) | SELECT "Opponent in the final" FROM table_73914 WHERE "Championship" = 'Indian Wells, United States (2)' |
Name the LB&SCR number that has SR number of 8597 8600 | CREATE TABLE table_name_7 (lb VARCHAR,scr_no VARCHAR,sr_no VARCHAR) | SELECT lb & scr_no FROM table_name_7 WHERE sr_no = "8597–8600" |
what are the hospitals admission times of patient 60515 until 3 years ago? | CREATE TABLE diagnoses_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 procedures_icd (row_id number,subject_id number,hadm_id number,icd9_code... | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 60515 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-3 year') |
What are the years for Kawerau Putauaki School? | CREATE TABLE table_name_98 (years VARCHAR,name VARCHAR) | SELECT years FROM table_name_98 WHERE name = "kawerau putauaki school" |
Test of Poorly Answer Questions by Tag. | CREATE TABLE ReviewTaskResults (Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text)CREATE TABLE ReviewTaskTypes (Id number,Name text,Description text)CREATE TABLE Tags (Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number)CREATE TABL... | SELECT * FROM Posts WHERE AnswerCount > 2 AND ViewCount > 20 AND ClosedDate IS NULL AND AcceptedAnswerId IS NULL AND Tags LIKE '%##Tag1##%' AND CreationDate > '2015-12-21' |
count the number of patients whose insurance is government and procedure long title is intravenous infusion of clofarabine? | 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 diagnoses (subject_id text,hadm_id text,icd9_code text,short_title text,long_title ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Government" AND procedures.long_title = "Intravenous infusion of clofarabine" |
Show me mean rating by languages in a histogram, and list by the names from low to high please. | CREATE TABLE artist (artist_name varchar2(50),country varchar2(20),gender varchar2(20),preferred_genre varchar2(50))CREATE TABLE genre (g_name varchar2(20),rating varchar2(10),most_popular_in varchar2(50))CREATE TABLE song (song_name varchar2(50),artist_name varchar2(50),country varchar2(20),f_id number(10),genre_is va... | SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY languages |
What is the average squad age of the team whose shirt sponsor is Sho'rtan Gaz Mahsulot and whose kit manufacturer is Adidas? | CREATE TABLE table_25527255_2 (average_squad_age VARCHAR,shirt_sponsor VARCHAR,kit_manufacturer VARCHAR) | SELECT average_squad_age FROM table_25527255_2 WHERE shirt_sponsor = "Sho'rtan Gaz Mahsulot" AND kit_manufacturer = "Adidas" |
How many questions did SO have X days after its creation?. Note that the public beta started on September 15th, 2008 | CREATE TABLE Badges (Id number,UserId number,Name text,Date time,Class number,TagBased boolean)CREATE TABLE ReviewTaskResultTypes (Id number,Name text,Description text)CREATE TABLE ReviewRejectionReasons (Id number,Name text,Description text,PostTypeId number)CREATE TABLE ReviewTaskTypes (Id number,Name text,Descriptio... | SELECT COUNT(*) FROM Posts WHERE PostTypeId = 1 AND CreationDate < DATEADD(day, '##Days##', '2008-07-15') |
What was the Week on September 5, 1993? | CREATE TABLE table_46708 ("Week" real,"Date" text,"Opponent" text,"Result" text,"Attendance" text) | SELECT "Week" FROM table_46708 WHERE "Date" = 'september 5, 1993' |
Name the Player who has a Place of t7 in Country of united states? | CREATE TABLE table_name_45 (player VARCHAR,place VARCHAR,country VARCHAR) | SELECT player FROM table_name_45 WHERE place = "t7" AND country = "united states" |
count the number of patients whose days of hospital stay is greater than 1 and lab test fluid is joint fluid? | 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 tex... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "1" AND lab.fluid = "Joint Fluid" |
What is the country(s) where the points equal 723.075? | CREATE TABLE table_28707 ("Rank" real,"Athlete" text,"Country" text,"Distance (metres)" text,"Points" text,"Adjusted Points" real) | SELECT "Country" FROM table_28707 WHERE "Points" = '723.075' |
Whats the season/episode of segment a digital dentistry | CREATE TABLE table_15187735_16 (netflix VARCHAR,segment_a VARCHAR) | SELECT netflix FROM table_15187735_16 WHERE segment_a = "Digital Dentistry" |
Visualize a bar chart about the distribution of ACC_Road and the sum of School_ID , and group by attribute ACC_Road, show in descending by the bars please. | CREATE TABLE basketball_match (Team_ID int,School_ID int,Team_Name text,ACC_Regular_Season text,ACC_Percent text,ACC_Home text,ACC_Road text,All_Games text,All_Games_Percent int,All_Home text,All_Road text,All_Neutral text)CREATE TABLE university (School_ID int,School text,Location text,Founded real,Affiliation text,En... | SELECT ACC_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road DESC |
What is Career with the franchise [b ], when Player is 'Willie Anderson Category:Articles with hCards'? | CREATE TABLE table_name_59 (career_with_the_franchise_ VARCHAR,b_ VARCHAR,player VARCHAR) | SELECT career_with_the_franchise_ AS "b_" FROM table_name_59 WHERE player = "willie anderson category:articles with hcards" |
count the number of inpatient hospital admitted patients who were discharged to skilled nursing facility. | 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,la... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.discharge_location = "SNF" |
Tell me the competition of 20 august 2008 | CREATE TABLE table_name_87 (competition VARCHAR,date VARCHAR) | SELECT competition FROM table_name_87 WHERE date = "20 august 2008" |
How many of the cmdlets are the 2008 version? | CREATE TABLE table_19363 ("Application" text,"Version" text,"Cmdlets" text,"Provider" text,"Management GUI" text) | SELECT COUNT("Cmdlets") FROM table_19363 WHERE "Version" = '2008' |
Name the D 45 O that has D 46 O of d 26 | CREATE TABLE table_name_30 (d_45_o VARCHAR,d_46_o VARCHAR) | SELECT d_45_o FROM table_name_30 WHERE d_46_o = "d 26" |
Name the date of Tournament of paris indoor , france? | CREATE TABLE table_61329 ("Outcome" text,"Date" real,"Tournament" text,"Surface" text,"Partner" text,"Opponents in the final" text,"Score in the final" text) | SELECT SUM("Date") FROM table_61329 WHERE "Tournament" = 'paris indoor , france' |
what is the total number of last names of all candidates? | CREATE TABLE Candidate_Assessments (candidate_id INTEGER,qualification CHAR(15),assessment_date DATETIME,asessment_outcome_code CHAR(15))CREATE TABLE Student_Course_Registrations (student_id INTEGER,course_id INTEGER,registration_date DATETIME)CREATE TABLE Student_Course_Attendance (student_id INTEGER,course_id INTEGER... | SELECT last_name, COUNT(last_name) FROM People GROUP BY last_name |
What was the largest ethnic group in in the settlement with the cyrillic name ? | CREATE TABLE table_27879 ("Settlement" text,"Cyrillic Name Other Names" text,"Type" text,"Population (2011)" real,"Largest ethnic group (2002)" text,"Dominant religion (2002)" text) | SELECT "Largest ethnic group (2002)" FROM table_27879 WHERE "Cyrillic Name Other Names" = 'Банатски Карловац' |
What was the Weds 25 Aug time for the driver whose Aug 27 time was 22' 23.97 101.065mph? | CREATE TABLE table_29202 ("Rank" real,"Rider" text,"Sat 21 Aug" text,"Mon 23 Aug" text,"Tues 24 Aug" text,"Wed 25 Aug" text,"Thurs 26 Aug" text,"Fri 27 Aug" text,"Sat 28 Aug" text) | SELECT "Wed 25 Aug" FROM table_29202 WHERE "Fri 27 Aug" = '22'' 23.97 101.065mph' |
which month had the most games ? | CREATE TABLE table_204_557 (id number,"#" number,"date" text,"visitor" text,"score" text,"home" text,"record" text,"pts" number) | SELECT "date" FROM table_204_557 GROUP BY "date" ORDER BY COUNT(*) DESC LIMIT 1 |
Show me the owner of the channel with the highest rating. | CREATE TABLE program (program_id number,name text,origin text,launch number,owner text)CREATE TABLE broadcast (channel_id number,program_id number,time_of_day text)CREATE TABLE broadcast_share (channel_id number,program_id number,date text,share_in_percent number)CREATE TABLE channel (channel_id number,name text,owner ... | SELECT owner FROM channel ORDER BY rating_in_percent DESC LIMIT 1 |
What kind of North Marquesan has a Takuu of / ani/? | CREATE TABLE table_49473 ("Tongan" text,"Niuean" text,"S\u0101moan" text,"Takuu" text,"Tahitian" text,"Rarotongan" text,"M\u0101ori" text,"North Marquesan" text,"South Marquesan" text,"Hawai'ian" text,"Mangarevan" text) | SELECT "North Marquesan" FROM table_49473 WHERE "Takuu" = '/ɾani/' |
give me the earliest flight on AA tomorrow from ST. PETERSBURG to MILWAUKEE | CREATE TABLE state (state_code text,state_name text,country_name text)CREATE TABLE aircraft (aircraft_code varchar,aircraft_description varchar,manufacturer varchar,basic_type varchar,engines int,propulsion varchar,wide_body varchar,wing_span int,length int,weight int,capacity int,pay_load int,cruising_speed int,range_... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MILWAUKEE' AND date_day.day_number = 20 AND date_day.month_number = 1 A... |
tell me the cost for a circumcision? | 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 diagnoses_icd (row_id number,subject_id number,hadm_id number,icd9_code text... | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'procedures_icd' AND cost.event_id IN (SELECT procedures_icd.row_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'circumcision')) |
What was the HT for the game at Stadio Luigi Ferraris? | CREATE TABLE table_name_31 (ht VARCHAR,venue VARCHAR) | SELECT ht FROM table_name_31 WHERE venue = "stadio luigi ferraris" |
What's the end score of the game where Shane Battier (8) did the high rebounds? | CREATE TABLE table_23281862_6 (score VARCHAR,high_rebounds VARCHAR) | SELECT score FROM table_23281862_6 WHERE high_rebounds = "Shane Battier (8)" |
has patient 12797 received a procedure until 2102. | CREATE TABLE inputevents_cv (row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number)CREATE TABLE labevents (row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text)CREATE TABLE d_items (row_id number,itemid number,lab... | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12797) AND STRFTIME('%y', procedures_icd.charttime) <= '2102' |
What is the average year for a Saar of FK Pirmasens and Hessen of Wormatia Worms? | CREATE TABLE table_name_47 (year INTEGER,saar VARCHAR,hessen VARCHAR) | SELECT AVG(year) FROM table_name_47 WHERE saar = "fk pirmasens" AND hessen = "wormatia worms" |
What courses are offered this Fall ? | CREATE TABLE student_record (student_id int,course_id int,semester int,grade varchar,how varchar,transfer_source varchar,earn_credit varchar,repeat_term varchar,test_id varchar)CREATE TABLE offering_instructor (offering_instructor_id int,offering_id int,instructor_id int)CREATE TABLE course (course_id int,name varchar,... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND semester.semester = 'Fall' AND semester.semester_id = course_offering.semester AND semester.year = 2016 |
What was the away team's score when Fitzroy's score was 16.27 (123) on May 13, 1950. | CREATE TABLE table_74601 ("Home team" text,"Home team score" text,"Away team" text,"Away team score" text,"Venue" text,"Crowd" real,"Date" text) | SELECT "Away team score" FROM table_74601 WHERE "Home team score" = '16.27 (123)' |
Name the high rebounds for td garden 18,624 | CREATE TABLE table_25458 ("#" real,"Date" text,"Visitor" text,"Score" text,"Arena Attendance" text,"High Points" text,"High Rebounds" text,"High Assists" text,"Record" text) | SELECT "High Rebounds" FROM table_25458 WHERE "Arena Attendance" = 'TD Garden 18,624' |
What is the minimum Height of the Little Switzerland Tunnel? | CREATE TABLE table_name_49 (minimum_height VARCHAR,name_of_the_tunnel VARCHAR) | SELECT minimum_height FROM table_name_49 WHERE name_of_the_tunnel = "little switzerland tunnel" |
Return a pie chart on what are the ids and trade names of the medicine that can interact with at least 3 enzymes? | CREATE TABLE medicine_enzyme_interaction (enzyme_id int,medicine_id int,interaction_type text)CREATE TABLE medicine (id int,name text,Trade_Name text,FDA_approved text)CREATE TABLE enzyme (id int,name text,Location text,Product text,Chromosome text,OMIM int,Porphyria text) | SELECT Trade_Name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id |
what are the four most frequent procedures among the patients 50s since 2 years ago? | CREATE TABLE microbiologyevents (row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name 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,langua... | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age B... |
Plot the number of name by grouped by name as a bar graph, could you list Y in ascending order? | CREATE TABLE station (Station_ID int,Name text,Annual_entry_exit real,Annual_interchanges real,Total_Passengers real,Location text,Main_Services text,Number_of_Platforms int)CREATE TABLE train_station (Train_ID int,Station_ID int)CREATE TABLE train (Train_ID int,Name text,Time text,Service text) | SELECT Name, COUNT(Name) FROM train GROUP BY Name ORDER BY COUNT(Name) |
What is the mascot with the colors green and navy? | CREATE TABLE table_15873547_1 (mascot VARCHAR,colors VARCHAR) | SELECT mascot FROM table_15873547_1 WHERE colors = "Green and Navy" |
what flights are available from DENVER to SAN FRANCISCO | CREATE TABLE code_description (code varchar,description text)CREATE TABLE flight (aircraft_code_sequence text,airline_code varchar,airline_flight text,arrival_time int,connections int,departure_time int,dual_carrier text,flight_days text,flight_id int,flight_number int,from_airport varchar,meal_code text,stops int,time... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRA... |
when did patient 84346 depart hospital since 5 years ago for the first time? | CREATE TABLE diagnoses_icd (row_id number,subject_id number,hadm_id number,icd9_code text,charttime 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 admissions (row_id number,subject_id number,hadm_id number,admittime time,di... | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 84346 AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-5 year') ORDER BY admissions.dischtime LIMIT 1 |
What was the tournament that resulted in a winning score of 4 (71-72-72-69=284)? | CREATE TABLE table_70468 ("Date" text,"Tournament" text,"Winning score" text,"Margin of victory" text,"Runner(s)-up" text) | SELECT "Tournament" FROM table_70468 WHERE "Winning score" = '–4 (71-72-72-69=284)' |
what comes before donny hathaway | CREATE TABLE table_204_193 (id number,"year" number,"artist" text,"album" text,"chart position" text,"role" text) | SELECT "artist" FROM table_204_193 WHERE id = (SELECT id FROM table_204_193 WHERE "artist" = 'donny hathaway') - 1 |
Who was the second when Ilian Kirilov was the lead? | CREATE TABLE table_35947 ("Nation" text,"Skip" text,"Third" text,"Second" text,"Lead" text) | SELECT "Second" FROM table_35947 WHERE "Lead" = 'ilian kirilov' |
What is the height of the person that weighs 320 pounds? | CREATE TABLE table_10966926_2 (height VARCHAR,weight VARCHAR) | SELECT height FROM table_10966926_2 WHERE weight = 320 |
Which opponent has a Season of 2011/12? | CREATE TABLE table_54191 ("Season" text,"Competition" text,"Round" text,"Opponent" text,"Result" text,"Venue" text) | SELECT "Opponent" FROM table_54191 WHERE "Season" = '2011/12' |
What School/Club did Dominique Wilkins play for? | CREATE TABLE table_75926 ("Player" text,"Nationality" text,"Position" text,"Years in Orlando" text,"School/Club Team" text) | SELECT "School/Club Team" FROM table_75926 WHERE "Player" = 'dominique wilkins' |
WHAT IS THE LOSS WITH AN AVERAGE OF 89.9? | CREATE TABLE table_46163 ("Name" text,"GP-GS" text,"Gain" real,"Loss" real,"Long" real,"Avg/G" real) | SELECT SUM("Loss") FROM table_46163 WHERE "Avg/G" = '89.9' |
What is the socket for microprocessors with a frequency of 1.3 ghz? | CREATE TABLE table_16729930_18 (socket VARCHAR,frequency VARCHAR) | SELECT socket FROM table_16729930_18 WHERE frequency = "1.3 GHz" |
What district for ulysses currie? | CREATE TABLE table_78549 ("District" real,"County(s) Represented" text,"Member Senator" text,"Party" text,"First Elected" real) | SELECT "District" FROM table_78549 WHERE "Member Senator" = 'ulysses currie' |
what flights are available from BOSTON to DENVER today | CREATE TABLE food_service (meal_code text,meal_number int,compartment text,meal_description varchar)CREATE TABLE airport_service (city_code varchar,airport_code varchar,miles_distant int,direction varchar,minutes_distant int)CREATE TABLE city (city_code varchar,city_name varchar,state_code varchar,country_name varchar,... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND date_day.day_number = 1 AND date_day.month_number = 8 AND dat... |
Who is the round winner of the wanneroo park circuit? | CREATE TABLE table_19886463_1 (round_winner VARCHAR,circuit VARCHAR) | SELECT round_winner FROM table_19886463_1 WHERE circuit = "Wanneroo Park" |
What was the result of game 1? | CREATE TABLE table_name_26 (result VARCHAR,game VARCHAR) | SELECT result FROM table_name_26 WHERE game = "game 1" |
List all of the player ids with a height of at least 180cm and an overall rating higher than 85. | CREATE TABLE country (id number,name text)CREATE TABLE league (id number,country_id number,name text)CREATE TABLE sqlite_sequence (name text,seq text)CREATE TABLE player (id number,player_api_id number,player_name text,player_fifa_api_id number,birthday text,height number,weight number)CREATE TABLE team (id number,team... | SELECT player_api_id FROM player WHERE height >= 180 INTERSECT SELECT player_api_id FROM player_attributes WHERE overall_rating > 85 |
Which opponent has a loss of trout (7-4)? | CREATE TABLE table_37073 ("Date" text,"Opponent" text,"Score" text,"Loss" text,"Save" text) | SELECT "Opponent" FROM table_37073 WHERE "Loss" = 'trout (7-4)' |
How many Spins sources have a CCM Chart of CHR with a peak position less than 1? | CREATE TABLE table_name_61 (spins__since_1998__source VARCHAR,ccm_chart VARCHAR,peak_pos VARCHAR) | SELECT COUNT(spins__since_1998__source) AS :_mediabase FROM table_name_61 WHERE ccm_chart = "chr" AND peak_pos < 1 |
What name has a listed of 03/31/1989 in spartanburg county? | CREATE TABLE table_57649 ("CERCLIS ID" text,"Name" text,"County" text,"Proposed" text,"Listed" text) | SELECT "Name" FROM table_57649 WHERE "Listed" = '03/31/1989' AND "County" = 'spartanburg' |
What's the to par of the United States with the score of 71-71=142? | CREATE TABLE table_49165 ("Place" text,"Player" text,"Country" text,"Score" text,"To par" text) | SELECT "To par" FROM table_49165 WHERE "Country" = 'united states' AND "Score" = '71-71=142' |
Name the other name where na plus is 77 | CREATE TABLE table_20962 ("Solution" text,"Other Name" text,"[Na + ](mmol/L)" real,"[Cl - ](mmol/L)" real,"[Glucose](mmol/L)" real,"[Glucose](mg/dl)" real) | SELECT "Other Name" FROM table_20962 WHERE "[Na + ](mmol/L)" = '77' |
what is the least amount of cattle head | CREATE TABLE table_4163 ("Province" text,"Number of Dairy Farms" real,"Number of Dairy Cows" real,"Production (hectolitres)" real,"Dairy Cows per Farm" real,"Production (hectolitres) per Farm" real) | SELECT MIN("Number of Dairy Cows") FROM table_4163 |
Which award show had the category of best supporting actress? | CREATE TABLE table_name_22 (award VARCHAR,category VARCHAR) | SELECT award FROM table_name_22 WHERE category = "best supporting actress" |
SELECT * WHERE `ClosedDate` is NOT NULL;. | CREATE TABLE TagSynonyms (Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time)CREATE TABLE Votes (Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount numb... | SELECT * FROM Posts WHERE NOT 'ClosedDate' IS NULL |
Were I to declare a major in WOMENSTD , which classes would I need to take ? | CREATE TABLE course_prerequisite (pre_course_id int,course_id int)CREATE TABLE jobs (job_id int,job_title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int)CREATE TABLE comment_instructor (instructor_id int,student_id int,score int,comment_text varchar)CREATE TABLE ta (c... | SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%WOMENSTD%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id |
What is the lowest Top-25 for the open championship, with a Top-10 larger than 3? | CREATE TABLE table_39738 ("Tournament" text,"Wins" real,"Top-5" real,"Top-10" real,"Top-25" real,"Events" real,"Cuts made" real) | SELECT MIN("Top-25") FROM table_39738 WHERE "Tournament" = 'the open championship' AND "Top-10" > '3' |
What candidate was re-elected in the Louisiana 5 district? | CREATE TABLE table_18506 ("District" text,"Incumbent" text,"Party" text,"First elected" real,"Result" text,"Candidates" text) | SELECT "Candidates" FROM table_18506 WHERE "Result" = 'Re-elected' AND "District" = 'Louisiana 5' |
how many patients whose diagnoses icd9 code is 27801? | 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 prescriptions (subject_id text,hadm_id text,icustay_id text,drug_type text,drug text... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "27801" |
WHAT PLACE DOES TOM LEHMAN HAVE? | CREATE TABLE table_44957 ("Place" text,"Player" text,"Country" text,"Score" text,"To par" text) | SELECT "Place" FROM table_44957 WHERE "Player" = 'tom lehman' |
What are the original air dates for episodes directed by fred toye? | CREATE TABLE table_30159 ("No. in series" real,"No. in season" real,"Title" text,"Directed by" text,"Written by" text,"Original air date" text,"Production" text,"U.S. viewers (in millions)" text) | SELECT "Original air date" FROM table_30159 WHERE "Directed by" = 'Fred Toye' |
provide the number of patients whose age is less than 45 and procedure long title is open biopsy of liver? | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "45" AND procedures.long_title = "Open biopsy of liver" |
Can you tell me the College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia? | CREATE TABLE table_34307 ("Round" real,"Player" text,"Position" text,"Nationality" text,"College/Junior/Club Team" text) | SELECT "College/Junior/Club Team" FROM table_34307 WHERE "Position" = 'defence' AND "Nationality" = 'czechoslovakia' |
what was the last time patient 78086 was prescribed medication? | CREATE TABLE cost (row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number)CREATE TABLE transfers (row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time)CREATE TABLE icustays (row_id number,... | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 78086) ORDER BY prescriptions.startdate DESC LIMIT 1 |
What is the identity of the brighton works built train? | CREATE TABLE table_name_48 (identity VARCHAR,builder VARCHAR) | SELECT identity FROM table_name_48 WHERE builder = "brighton works" |
show me the number of patients who are taking tramadol medication and were admitted in hospital before 2163. | 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 ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2163" AND prescriptions.drug = "traMADOL" |
how many films star eddie murphy ? | CREATE TABLE table_202_122 (id number,"rank" number,"title" text,"studio" text,"actor/actress" text,"director" text,"gross" text) | SELECT COUNT("title") FROM table_202_122 WHERE "actor/actress" = 'eddie murphy' |
how many places have 17 varsity teams? | CREATE TABLE table_26805 ("School" text,"Mascot" text,"Location" text,"Founded" real,"Entered ISL" real,"Grades" text,"Number of Students" text,"Varsity Teams" real) | SELECT COUNT("Location") FROM table_26805 WHERE "Varsity Teams" = '17' |
What was the source for the person named Cresswell? | CREATE TABLE table_name_89 (source VARCHAR,name VARCHAR) | SELECT source FROM table_name_89 WHERE name = "cresswell" |
What are all the policy types of the customer named 'Dayana Robel'? | CREATE TABLE customers (customer_id VARCHAR,customer_name VARCHAR)CREATE TABLE customers_policies (customer_id VARCHAR,policy_id VARCHAR)CREATE TABLE available_policies (policy_type_code VARCHAR,policy_id VARCHAR) | SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = "Dayana Robel" |
has any 30 ml cup : alum & mag hydroxide-simeth 200-200-20 mg/5ml po susp been prescribed to patient 004-66442 until 03/2102? | 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 tim... | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-66442')) AND medication.drugname = '30 ml cup : alum & mag hydroxide-s... |
bradycardia _ pulse < 55 ppm | CREATE TABLE table_test_11 ("id" int,"left_ventricular_ejection_fraction_lvef" int,"systolic_blood_pressure_sbp" int,"tachycardia" int,"bradycardia" int,"renal_disease" bool,"allergy_to_aspirin" bool,"temperature" float,"creatinine_clearance_cl" float,"diastolic_blood_pressure_dbp" int,"hypotension" bool,"serum_creatin... | SELECT * FROM table_test_11 WHERE bradycardia < 55 |
What was the opponent on August 29? | CREATE TABLE table_69377 ("Date" text,"Opponent" text,"Score" text,"Loss" text,"Attendance" text) | SELECT "Opponent" FROM table_69377 WHERE "Date" = 'august 29' |
What is the state the winning driver Jamie Whincup from in round 2? | CREATE TABLE table_38319 ("Round" real,"Circuit" text,"State/Territory" text,"Date" text,"Winning driver" text) | SELECT "State/Territory" FROM table_38319 WHERE "Winning driver" = 'jamie whincup' AND "Round" = '2' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.