instruction
stringlengths
0
1.06k
input
stringlengths
11
5.3k
response
stringlengths
2
4.44k
What is the current account balance for an export volume of goods and service value of -4.2?
CREATE TABLE table_30133_1 (current_account_balance__percent_of_gdp_ VARCHAR,export_volume_of_goods_and_services__percent_change_ VARCHAR)
SELECT current_account_balance__percent_of_gdp_ FROM table_30133_1 WHERE export_volume_of_goods_and_services__percent_change_ = "-4.2"
How many categories for elapsed time exist for the $16.50 fixed-limit badugi game?
CREATE TABLE table_22050544_3 (elapsed_time VARCHAR,event VARCHAR)
SELECT COUNT(elapsed_time) FROM table_22050544_3 WHERE event = "$16.50 Fixed-Limit Badugi"
What are the swimsuit scores of participants with score 9.366 in interview
CREATE TABLE table_17088705_2 (swimsuit VARCHAR,interview VARCHAR)
SELECT swimsuit FROM table_17088705_2 WHERE interview = "9.366"
What is the highest Pick, when Position is 'G/F'?
CREATE TABLE table_name_39 (pick INTEGER,position VARCHAR)
SELECT MAX(pick) FROM table_name_39 WHERE position = "g/f"
During what weak of the season was the game played on october 4, 1987?
CREATE TABLE table_18029 ("Week" real,"Date" text,"Opponent" text,"Result" text,"Game site" text,"Record" text,"Attendance" text)
SELECT MAX("Week") FROM table_18029 WHERE "Date" = 'October 4, 1987'
What is the number of classes being offered next semester ?
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 COUNT(DISTINCT course_offering.course_id) FROM course_offering, semester WHERE semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016
what is the power when the city of license is belleville?
CREATE TABLE table_name_71 (power VARCHAR,city_of_license VARCHAR)
SELECT power FROM table_name_71 WHERE city_of_license = "belleville"
What is the final Vuelta position associated with a final Giro position over 39 and a final Tour position of 90?
CREATE TABLE table_71169 ("Rider" text,"Year" real,"Final Position - Giro" real,"Final Position - Tour" real,"Final Position - Vuelta" real)
SELECT "Final Position - Vuelta" FROM table_71169 WHERE "Final Position - Giro" > '39' AND "Final Position - Tour" = '90'
Where was the FC match with a score of 12 played?
CREATE TABLE table_51178 ("Name of ground" text,"Location" text,"Year" text,"FC matches" text,"LA matches" text,"T20 matches" text,"Total" text)
SELECT "Location" FROM table_51178 WHERE "FC matches" = '12'
give me the number of patients whose age is less than 80 and drug name is cefpodoxime proxetil?
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.age < "80" AND prescriptions.drug = "Cefpodoxime Proxetil"
give me the number of patients whose age is less than 71 and procedure long title is central venous catheter placement with guidance?
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,sho...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "71" AND procedures.long_title = "Central venous catheter placement with guidance"
what the highest number for the opposite of offense for the green bay packers
CREATE TABLE table_19081 ("Year" real,"Player Name" text,"NFL Team" text,"Position" text,"Team Defense Rank" real,"Team Performance" text)
SELECT MAX("Team Defense Rank") FROM table_19081 WHERE "NFL Team" = 'Green Bay Packers'
When 3 is the rank what is the highest combo?
CREATE TABLE table_22542 ("Rank" text,"Country" text,"Jerseys" real,"Vuelta Wins" real,"Points" real,"KoM" real,"Combo" real,"Most recent cyclist" text,"Most recent date" text,"Different holders" real)
SELECT MAX("Combo") FROM table_22542 WHERE "Rank" = '3'
provide the number of patients whose hospital stay is more than 5 days and used the drug name syringe
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 lab (subject_id text,hadm_id text,itemid text,charttime tex...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "5" AND prescriptions.drug = "Syringe"
If the partial thromboplastin and bleeding time is prolonged, what is the prothrombin time?
CREATE TABLE table_20146 ("Condition" text,"Prothrombin time" text,"Partial thromboplastin time" text,"Bleeding time" text,"Platelet count" text)
SELECT "Prothrombin time" FROM table_20146 WHERE "Partial thromboplastin time" = 'Prolonged' AND "Bleeding time" = 'Prolonged'
chronic heavy alcohol use
CREATE TABLE table_test_26 ("id" int,"bleeding" int,"left_ventricular_ejection_fraction_lvef" int,"left_main_coronary_artery_disease" bool,"uncontrolled_diabetes" bool,"hiv_infection" bool,"hemoglobin_a1c_hba1c" float,"hepatitis_b_infection" bool,"renal_disease" bool,"unprotected_left_main_disease" bool,"creatinine_cle...
SELECT * FROM table_test_26 WHERE alcohol_abuse = 1
What was the date of the game when the Canadiens had a record of 31 19 9?
CREATE TABLE table_77533 ("Date" text,"Visitor" text,"Score" text,"Home" text,"Decision" text,"Attendance" real,"Record" text)
SELECT "Date" FROM table_77533 WHERE "Record" = '31–19–9'
Who vacated his post when his successor was formally installed on May 11, 1966?
CREATE TABLE table_1847180_3 (vacator VARCHAR,date_of_successors_formal_installation VARCHAR)
SELECT vacator FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966"
what's party with district being pennsylvania 21
CREATE TABLE table_18253 ("District" text,"Incumbent" text,"Party" text,"First elected" real,"Result" text,"Candidates" text)
SELECT "Party" FROM table_18253 WHERE "District" = 'Pennsylvania 21'
Some questions where accepted answer does not have the highest score.
CREATE TABLE Tags (Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number)CREATE TABLE SuggestedEdits (Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID other)CREATE TABLE PendingFlags (Id number...
SELECT P2.Id AS "post_link", P.Score AS HighestScore, P3.Score AS AcceptedAnswerScore FROM Posts AS P JOIN Posts AS P2 ON (P2.Id = P.ParentId) JOIN Posts AS P3 ON (P3.ParentId = P2.Id) WHERE P.Score > 2 AND P.PostTypeId = 2 AND P2.PostTypeId = 1 AND P3.PostTypeId = 2 AND P.Score > P3.Score AND P2.AcceptedAnswerId = P3....
what is date of birth and diagnoses long title of subject name jerry deberry?
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 demographic.dob, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Jerry Deberry"
Which Date has a Location/Attendance of verizon center 7,448?
CREATE TABLE table_name_15 (date VARCHAR,location_attendance VARCHAR)
SELECT date FROM table_name_15 WHERE location_attendance = "verizon center 7,448"
how many patients who died in or before 2183 have been prescribed the drug with code bupi0.1epd?
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 ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2183.0" AND prescriptions.formulary_drug_cd = "BUPI0.1EPD"
in how many games was the opponent the green bay packers ?
CREATE TABLE table_204_755 (id number,"week" number,"date" text,"opponent" text,"result" text,"attendance" number)
SELECT COUNT(*) FROM table_204_755 WHERE "opponent" = 'green bay packers'
Willy Sagnol with a type as career end had what has the transfer fee?
CREATE TABLE table_65213 ("Nat." text,"Name" text,"Type" text,"Transfer window" text,"Transfer fee" text)
SELECT "Transfer fee" FROM table_65213 WHERE "Type" = 'career end' AND "Name" = 'willy sagnol'
when did new zealand last compete?
CREATE TABLE table_19228 ("Country/Territory" text,"Former pageant" text,"Last competed" real,"New pageant" text,"Franchise since" real)
SELECT MAX("Last competed") FROM table_19228 WHERE "Country/Territory" = 'New Zealand'
give me the number of patients with morbid obesity/sda primary disease who were admitted before the year 2119.
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 WHERE demographic.diagnosis = "MORBID OBESITY/SDA" AND demographic.admityear < "2119"
how many 1391 carelia where 1398 donnera is 2397 lappaj rvi
CREATE TABLE table_21563 ("1391 Carelia" text,"1398 Donnera" text,"1405 Sibelius" text,"1406 Komppa" text,"1407 Lindel\u00f6f" text)
SELECT COUNT("1391 Carelia") FROM table_21563 WHERE "1398 Donnera" = '2397 Lappajärvi'
What is the maximum money list rank for Matt Hansen?
CREATE TABLE table_24747844_2 (money_list_rank INTEGER,player VARCHAR)
SELECT MAX(money_list_rank) FROM table_24747844_2 WHERE player = "Matt Hansen"
what is the number of patients whose insurance is private and diagnoses short title is prolif diab retinopathy?
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,ethni...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.short_title = "Prolif diab retinopathy"
view list of edited posts for a user. View a list of all edits done on all posts of a site.
CREATE TABLE Users (Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number)CREATE TABLE Comments (Id number,PostId number,Score number,Text text,Creati...
SELECT PostTypes.Name AS Type, PostHistory.PostId AS "post_link", PostHistoryTypes.Name AS Modification, Comment FROM PostHistory INNER JOIN PostHistoryTypes ON PostHistoryTypes.Id = PostHistory.PostHistoryTypeId INNER JOIN Posts ON Posts.Id = PostHistory.PostId INNER JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId W...
How many laps were there when the start was 12?
CREATE TABLE table_66818 ("Year" text,"Start" text,"Qual" text,"Rank" text,"Finish" text,"Laps" real)
SELECT COUNT("Laps") FROM table_66818 WHERE "Start" = '12'
What is the gender of the cunningham hill infant school?
CREATE TABLE table_4040 ("School" text,"Gender" text,"Age Range" text,"Religious Affiliation" text,"Location" text,"School website" text)
SELECT "Gender" FROM table_4040 WHERE "School" = 'Cunningham Hill Infant School'
Who are all the womens doubles for the year 2008/2009?
CREATE TABLE table_72601 ("Year" text,"Mens singles" text,"Womens singles" text,"Mens doubles" text,"Womens doubles" text,"Mixed doubles" text)
SELECT "Womens doubles" FROM table_72601 WHERE "Year" = '2008/2009'
What is Years, when Postition is PG, and when From is USC?
CREATE TABLE table_8758 ("Player" text,"Nationality" text,"Jersey Number(s)" text,"Position" text,"Years" text,"From" text)
SELECT "Years" FROM table_8758 WHERE "Position" = 'pg' AND "From" = 'usc'
How many different instructors have taught some course?
CREATE TABLE student (id text,name text,dept_name text,tot_cred number)CREATE TABLE teaches (id text,course_id text,sec_id text,semester text,year number)CREATE TABLE classroom (building text,room_number text,capacity number)CREATE TABLE instructor (id text,name text,dept_name text,salary number)CREATE TABLE prereq (co...
SELECT COUNT(DISTINCT id) FROM teaches
Name the original air date of 1/2 in season
CREATE TABLE table_1559 ("No. in series" text,"No. in season" text,"Title" text,"Directed by" text,"Written by" text,"Original air date" text,"Production code" text,"U.S. viewers (millions)" text)
SELECT "Original air date" FROM table_1559 WHERE "No. in season" = '1/2'
Which Away team score has a Crowd larger than 6,000?
CREATE TABLE table_name_21 (away_team VARCHAR,crowd INTEGER)
SELECT away_team AS score FROM table_name_21 WHERE crowd > 6 OFFSET 000
What is Team, when Circuit is Phillip Island Grand Prix Circuit?
CREATE TABLE table_44749 ("Date" text,"Series" text,"Circuit" text,"City / State" text,"Winner" text,"Team" text)
SELECT "Team" FROM table_44749 WHERE "Circuit" = 'phillip island grand prix circuit'
What is the Annual Generation at Kawerau (Bope)?
CREATE TABLE table_42979 ("Name" text,"Location" text,"Field" text,"Capacity (MW)" real,"Annual Generation (average GWh)" text,"Commissioned" text)
SELECT "Annual Generation (average GWh)" FROM table_42979 WHERE "Name" = 'kawerau (bope)'
What is the lowest rank of a nation with fewer than 3 gold medals, more than 2 bronze medals, and 0 silver medals?
CREATE TABLE table_name_95 (rank INTEGER,bronze VARCHAR,gold VARCHAR,silver VARCHAR)
SELECT MIN(rank) FROM table_name_95 WHERE gold < 3 AND silver = 0 AND bronze > 2
For each film, return the number of cinemas showing the fim in a pie chart.
CREATE TABLE schedule (Cinema_ID int,Film_ID int,Date text,Show_times_per_day int,Price float)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 cinema (Cinema_ID int,Name text,Openning_year int,Capacity int,Locatio...
SELECT Title, COUNT(Title) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Title
what is the total number of properties on the chart ?
CREATE TABLE table_204_229 (id number,"property" text,"test method" text,"units" text,"4275" text,"4301" text,"4435" text,"4630" text,"4645" text)
SELECT COUNT("property") FROM table_204_229
after france , who has the next highest amount of silver medals ?
CREATE TABLE table_203_314 (id number,"rank" number,"nation" text,"gold" number,"silver" number,"bronze" number,"total" number)
SELECT "nation" FROM table_203_314 WHERE "nation" <> 'france' ORDER BY "silver" DESC LIMIT 1
What is the stadium when the date of the game is December 14?
CREATE TABLE table_name_12 (stadium VARCHAR,date VARCHAR)
SELECT stadium FROM table_name_12 WHERE date = "december 14"
What was the record when the team played at Oakland Seals?
CREATE TABLE table_name_36 (record VARCHAR,home VARCHAR)
SELECT record FROM table_name_36 WHERE home = "oakland seals"
What is Country, when Player is 'Dow Finsterwald'?
CREATE TABLE table_name_54 (country VARCHAR,player VARCHAR)
SELECT country FROM table_name_54 WHERE player = "dow finsterwald"
What is the rank when time is 11.15 and lane is bigger than 7 with notes Q, PB?
CREATE TABLE table_name_76 (rank INTEGER,lane VARCHAR,notes VARCHAR,time___sec__ VARCHAR)
SELECT SUM(rank) FROM table_name_76 WHERE notes = "q, pb" AND time___sec__ = 11.15 AND lane > 7
Which Blackpool has a Preston North End smaller than 46, and a Competition of other, and a Draw larger than 1?
CREATE TABLE table_6321 ("Competition" text,"Played" real,"Blackpool" real,"Draw" real,"Preston North End" real)
SELECT SUM("Blackpool") FROM table_6321 WHERE "Preston North End" < '46' AND "Competition" = 'other' AND "Draw" > '1'
How many production codes had a US viewership of 4.43 million?
CREATE TABLE table_3573 ("No. in series" real,"No. in season" real,"Title" text,"Directed by" text,"Written by" text,"Original air date" text,"Production code" real,"U.S. viewers (millions)" text)
SELECT COUNT("Production code") FROM table_3573 WHERE "U.S. viewers (millions)" = '4.43'
Which Precincts has a G. Hager of 2,260 (15%)?
CREATE TABLE table_59246 ("County" text,"Precincts" text,"E. Greenberg" text,"G. Hager" text,"T. Wyka" text)
SELECT "Precincts" FROM table_59246 WHERE "G. Hager" = '2,260 (15%)'
Name the place with building of victoria hall
CREATE TABLE table_54736 ("Date" real,"Country" text,"Place" text,"Building" text,"Size" text)
SELECT "Place" FROM table_54736 WHERE "Building" = 'victoria hall'
Which manufacturer was used after 1969 with a finish position of 34?
CREATE TABLE table_46724 ("Year" real,"Manufacturer" text,"Start" real,"Finish" real,"Team" text)
SELECT "Manufacturer" FROM table_46724 WHERE "Year" > '1969' AND "Finish" = '34'
What is the sum of the area for the bahawalnagar district with a population more than 134,936?
CREATE TABLE table_name_32 (city_area_km_2__ INTEGER,district VARCHAR,city_population__2009_ VARCHAR)
SELECT SUM(city_area_km_2__) FROM table_name_32 WHERE district = "bahawalnagar district" AND city_population__2009_ > 134 OFFSET 936
how many patients below 50 years of age have procedure icd9 code 4131?
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 INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "50" AND procedures.icd9_code = "4131"
what is the difference in foundation date between cusco and motul ?
CREATE TABLE table_204_965 (id number,"year" text,"city" text,"state,province,dept.,etc." text,"country" text,"notes" text)
SELECT ABS((SELECT "year" FROM table_204_965 WHERE "city" = 'cusco') - (SELECT "year" FROM table_204_965 WHERE "city" = 'motul'))
Name the round for engine of ford cosworth dfv 3.0 v8 with chassis fo 751
CREATE TABLE table_name_90 (rounds VARCHAR,engine VARCHAR,chassis VARCHAR)
SELECT rounds FROM table_name_90 WHERE engine = "ford cosworth dfv 3.0 v8" AND chassis = "751"
Accept rate in a tag vs global accept rate per month.
CREATE TABLE CloseReasonTypes (Id number,Name text,Description text)CREATE TABLE PostNoticeTypes (Id number,ClassId number,Name text,Body text,IsHidden boolean,Predefined boolean,PostNoticeDurationId number)CREATE TABLE Votes (Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number...
SELECT YEAR(q.CreationDate) + MONTH(q.CreationDate) / 12.0 AS "m", ROUND(COUNT(q.AcceptedAnswerId) * 100.0 / COUNT(*), 2) AS "global_%_accepted", ROUND(COUNT(CASE WHEN NOT q.AcceptedAnswerId IS NULL AND q.Tags LIKE '%##Tag##%' THEN 1 ELSE NULL END) * 100.0 / NULLIF(COUNT(CASE WHEN q.Tags LIKE '%##Tag##%' THEN 1 ELSE NU...
A bar chart listing the number of faults for different description of skills required to fix them, rank y axis from high to low order.
CREATE TABLE Parts (part_id INTEGER,part_name VARCHAR(255),chargeable_yn VARCHAR(1),chargeable_amount VARCHAR(20),other_part_details VARCHAR(255))CREATE TABLE Engineer_Visits (engineer_visit_id INTEGER,contact_staff_id INTEGER,engineer_id INTEGER,fault_log_entry_id INTEGER,fault_status VARCHAR(10),visit_start_datetime ...
SELECT skill_description, COUNT(skill_description) FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id GROUP BY skill_description ORDER BY COUNT(skill_description) DESC
Visualize a bar chart about the distribution of name and ID , and sort from high to low by the Y-axis.
CREATE TABLE record (ID int,Result text,Swimmer_ID int,Event_ID int)CREATE TABLE event (ID int,Name text,Stadium_ID int,Year text)CREATE TABLE stadium (ID int,name text,Capacity int,City text,Country text,Opening_year int)CREATE TABLE swimmer (ID int,name text,Nationality text,meter_100 real,meter_200 text,meter_300 te...
SELECT name, ID FROM swimmer ORDER BY ID DESC
Number of users by age.
CREATE TABLE CloseReasonTypes (Id number,Name text,Description text)CREATE TABLE SuggestedEditVotes (Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number)CREATE TABLE ReviewTasks (Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate ti...
SELECT Age, COUNT(17) FROM Users GROUP BY Age ORDER BY Age
What is the average age for all person?
CREATE TABLE personfriend (name text,friend text,year number)CREATE TABLE person (name text,age number,city text,gender text,job text)
SELECT AVG(age) FROM person
WHAT IS THE NAME OF THE MENS DOUBLES PLAYER WHEN THE WOMENS DOUBLES PLAYER IS HELEN REINO KAI-RIIN SALUSTE?
CREATE TABLE table_14903627_1 (mens_doubles VARCHAR,womens_doubles VARCHAR)
SELECT mens_doubles FROM table_14903627_1 WHERE womens_doubles = "Helen Reino Kai-Riin Saluste"
What Year was the United States the country for aug 3 5?
CREATE TABLE table_41262 ("Year" text,"Dates" text,"Champion" text,"Country" text,"Score" text,"Tournament location" text,"Purse ($)" real,"Winner's share ($)" real)
SELECT "Year" FROM table_41262 WHERE "Country" = 'united states' AND "Dates" = 'aug 3–5'
What is the die size(mm 2) for model sgx531?
CREATE TABLE table_1439045_5 (die_size__mm_2___ VARCHAR,model VARCHAR)
SELECT die_size__mm_2___ AS "1" FROM table_1439045_5 WHERE model = "SGX531"
During the act, Performance of 'Lost' by Anouk, what was the result?
CREATE TABLE table_26067 ("Place came" text,"Artist" text,"Category" text,"Act" text,"Semi-final" text,"Result" text)
SELECT COUNT("Result") FROM table_26067 WHERE "Act" = 'Performance of "Lost" by Anouk'
What is the weight of Damir Buri ?
CREATE TABLE table_60171 ("Name" text,"Pos." text,"Height" text,"Weight" text,"Date of Birth" text,"Club" text)
SELECT "Weight" FROM table_60171 WHERE "Name" = 'damir burić'
What teams has 1-5 as the away?
CREATE TABLE table_name_96 (teams VARCHAR,away VARCHAR)
SELECT teams FROM table_name_96 WHERE away = "1-5"
what is primary disease and diagnoses icd9 code of subject name josette orr?
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 demographic.diagnosis, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Josette Orr"
What is the smallest round for the welterweight class with a preliminary card?
CREATE TABLE table_43226 ("Card" text,"Weight Class" text,"Round" real,"Time" text,"Method" text)
SELECT MIN("Round") FROM table_43226 WHERE "Weight Class" = 'welterweight' AND "Card" = 'preliminary'
Show the pair of male and female names in all weddings after year 2014
CREATE TABLE people (name VARCHAR,people_id VARCHAR)CREATE TABLE wedding (male_id VARCHAR,female_id VARCHAR,year INTEGER)
SELECT T2.name, T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014
What are the average access counts of documents that have the functional area description 'Acknowledgement'?
CREATE TABLE document_functional_areas (document_code text,functional_area_code text)CREATE TABLE roles (role_code text,role_description text)CREATE TABLE functional_areas (functional_area_code text,parent_functional_area_code text,functional_area_description text)CREATE TABLE document_sections (section_id number,docum...
SELECT AVG(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = "Acknowledgement"
What was the vacator for georgia 2nd?
CREATE TABLE table_26642 ("District" text,"Vacator" text,"Reason for change" text,"Successor" text,"Date successor seated" text)
SELECT "Vacator" FROM table_26642 WHERE "District" = 'Georgia 2nd'
What is the Engine used before 1983?
CREATE TABLE table_70586 ("Year" real,"Team" text,"Chassis" text,"Engine" text,"Rank" text,"Points" real)
SELECT "Engine" FROM table_70586 WHERE "Year" < '1983'
what is the yearly minimum amount of ultrafiltrate ultrafiltrate that patient 20034 had until 12/21/2105?
CREATE TABLE labevents (row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text)CREATE TABLE outputevents (row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number)CREATE TABLE icustays (row_id number,subject_id number,h...
SELECT MIN(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20034)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'ult...
What is the Digital/analog signal with a Chipset based on with radeon 8500?
CREATE TABLE table_name_50 (digital_analog_signal VARCHAR,chipset_based_on VARCHAR)
SELECT digital_analog_signal FROM table_name_50 WHERE chipset_based_on = "radeon 8500"
when was the last time patient 030-44598 had a lab test, this month?
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,disch...
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-44598')) AND DATETIME(lab.labresulttime, 'start of month') = DATETIME(CURRENT_T...
what is the most assists when the goals is less than 0?
CREATE TABLE table_44929 ("Season" text,"Club" text,"Country" text,"Apps." real,"Goals" real,"Assists" real)
SELECT MAX("Assists") FROM table_44929 WHERE "Goals" < '0'
what is the most bronze when the total is 9?
CREATE TABLE table_63781 ("Rank" text,"Nation" text,"Gold" real,"Silver" real,"Bronze" real,"Total" real)
SELECT MAX("Bronze") FROM table_63781 WHERE "Total" = '9'
what is the highest number of dismissals in a match with 8 innings
CREATE TABLE table_23381 ("Rank" real,"Dismissals" real,"Player" text,"Caught" real,"Stumped" real,"Matches" real,"Innings" real)
SELECT COUNT("Dismissals") FROM table_23381 WHERE "Innings" = '8'
What is the highest score for candidate Mohsen Rezaee when candidate mir-hossein mousavi scored 837858 votes?
CREATE TABLE table_25998 ("Province" text,"Mahmoud Ahmadinejad" real,"Mehdi Karroubi" real,"Mir-Hossein Mousavi" real,"Mohsen Rezaee" real,"Spoiled ballots" real,"Total votes" real)
SELECT MAX("Mohsen Rezaee") FROM table_25998 WHERE "Mir-Hossein Mousavi" = '837858'
Find the number of trains starting from each origin.
CREATE TABLE station (id number,network_name text,services text,local_authority text)CREATE TABLE route (train_id number,station_id number)CREATE TABLE weekly_weather (station_id number,day_of_week text,high_temperature number,low_temperature number,precipitation number,wind_speed_mph number)CREATE TABLE train (id numb...
SELECT origin, COUNT(*) FROM train GROUP BY origin
What date did series number 32 premiere?
CREATE TABLE table_28836 ("No. in series" real,"No. in season" real,"Title" text,"Directed by" text,"Written by" text,"Original air date" text,"Prod. code" text)
SELECT "Original air date" FROM table_28836 WHERE "No. in series" = '32'
who was the last competitor to actually finish the preliminaries ?
CREATE TABLE table_204_886 (id number,"rank" number,"swimmer" text,"country" text,"time" text,"note" text)
SELECT "swimmer" FROM table_204_886 ORDER BY "rank" DESC LIMIT 1
WHAT TRANSFER FEE HAS A TYPE OF TRANSFER FOR DOS SANTOS?
CREATE TABLE table_59700 ("Nat." text,"Name" text,"Moving to" text,"Type" text,"Transfer window" text,"Transfer fee" text,"Source" text)
SELECT "Transfer fee" FROM table_59700 WHERE "Type" = 'transfer' AND "Name" = 'dos santos'
Show the names of authors from college 'Florida' or 'Temple
CREATE TABLE submission (Author VARCHAR,College VARCHAR)
SELECT Author FROM submission WHERE College = "Florida" OR College = "Temple"
What player had 1420 points coming in?
CREATE TABLE table_26845 ("Seed" real,"Rank" real,"Player" text,"Points" real,"Points defending" text,"Points won" real,"New points" real,"Status" text)
SELECT "Player" FROM table_26845 WHERE "Points" = '1420'
Which Wins has a Tournament of totals, and a Cuts made larger than 42?
CREATE TABLE table_41695 ("Tournament" text,"Wins" real,"Top-5" real,"Top-10" real,"Top-25" real,"Events" real,"Cuts made" real)
SELECT AVG("Wins") FROM table_41695 WHERE "Tournament" = 'totals' AND "Cuts made" > '42'
tell me the total amount of propofol that patient 022-78423 has taken since 11/29/2104?
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,disch...
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-78423')) AND intakeoutput.celllabel = 'propo...
What time did rider steve plater have?
CREATE TABLE table_47397 ("Rank" real,"Rider" text,"Team" text,"Time" text,"Speed" text)
SELECT "Time" FROM table_47397 WHERE "Rider" = 'steve plater'
get me the difference between patient 1784's total volume of input and output since 05/20/2101.
CREATE TABLE microbiologyevents (row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text)CREATE TABLE outputevents (row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number)CREATE TABLE cost (row_id number,subject_id number,hadm_i...
SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1784)) AND STRFTIME('%y-%m-%d', inputevents_cv.charttime) >= '2101-05-20') - (SELE...
During the Big Seven Conference which team was the regular season winner?
CREATE TABLE table_30503 ("Conference" text,"Regular Season Winner" text,"Conference Player of the Year" text,"Conference Tournament" text,"Tournament Venue (City)" text,"Tournament Winner" text)
SELECT "Regular Season Winner" FROM table_30503 WHERE "Conference" = 'Big Seven Conference'
who is the the pole position with date being august 10
CREATE TABLE table_19462 ("Rnd" real,"Race Name" text,"Circuit" text,"City/Location" text,"Date" text,"Pole position" text,"Fastest lap" text,"Winning driver" text,"Winning team" text,"Report" text)
SELECT "Pole position" FROM table_19462 WHERE "Date" = 'August 10'
What is the average points on November 6?
CREATE TABLE table_name_8 (points INTEGER,november VARCHAR)
SELECT AVG(points) FROM table_name_8 WHERE november = 6
tell me the yearly maximum sao2 of patient 015-94542.
CREATE TABLE cost (costid number,uniquepid text,patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number)CREATE TABLE diagnosis (diagnosisid number,patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text)CREATE TABLE microlab (microlabid number,patientunitstayid nu...
SELECT MAX(vitalperiodic.sao2) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-94542')) AND NOT vitalperiodic.sao2 IS NULL GROUP BY ...
How many total reason for change are listed corresponding to the successor Leonard B. Jordan (r)?
CREATE TABLE table_1795 ("State (class)" text,"Vacator" text,"Reason for change" text,"Successor" text,"Date of successors formal installation" text)
SELECT COUNT("Reason for change") FROM table_1795 WHERE "Successor" = 'Leonard B. Jordan (R)'
for the drumset name td-15k how many snare pads are
CREATE TABLE table_2889300_6 (snare_pad VARCHAR,drumset_name VARCHAR)
SELECT COUNT(snare_pad) FROM table_2889300_6 WHERE drumset_name = "TD-15K"
how many capital with population census 2009 being 284657
CREATE TABLE table_1404456_1 (capital VARCHAR,population_census_2009 VARCHAR)
SELECT COUNT(capital) FROM table_1404456_1 WHERE population_census_2009 = 284657
Find the names of channels that are not owned by CCTV.
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 text,share_in_percent number,rating_in_percent number)CREATE TABLE program (program_id ...
SELECT name FROM channel WHERE owner <> 'CCTV'
What was the first leg score in the 2nd round?
CREATE TABLE table_41926 ("Round" text,"Opposition" text,"First leg" text,"Second leg" text,"Aggregate score" text)
SELECT "First leg" FROM table_41926 WHERE "Round" = '2nd'