instruction
stringlengths
12
317
input
stringlengths
38
973
response
stringlengths
25
526
What's the voltage for the pentium dual-core e2140?
CREATE TABLE table_name_49 ( voltage VARCHAR, model_number VARCHAR )
SELECT voltage FROM table_name_49 WHERE model_number = "pentium dual-core e2140"
What are the names of the five cities with the greatest proportion of white people?
CREATE TABLE county_public_safety ( county_id number, name text, population number, police_officers number, residents_per_officer number, case_burden number, crime_rate number, police_force text, location text ) CREATE TABLE city ( city_id number, county_id number, name text, white number, black number, amerindian number, asian number, multiracial number, hispanic number )
SELECT name FROM city ORDER BY white DESC LIMIT 5
What is number of silver for the country with more than 0 gold, rank of 14, and more than 4 bronze?
CREATE TABLE table_name_81 ( silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR )
SELECT COUNT(silver) FROM table_name_81 WHERE gold > 0 AND rank = "14" AND bronze > 4
How many episodes were written by Jack Burditt & Robert Carlock
CREATE TABLE table_1378 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Original air date" text, "Production code" real )
SELECT COUNT("Production code") FROM table_1378 WHERE "Written by" = 'Jack Burditt & Robert Carlock'
How many Points a February smaller than 1 have?
CREATE TABLE table_name_5 ( points INTEGER, february INTEGER )
SELECT MIN(points) FROM table_name_5 WHERE february < 1
Show the minister who took office after 1961 or before 1959.
CREATE TABLE party ( minister VARCHAR, took_office VARCHAR )
SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959
what is the english translation when the artist is ann christine?
CREATE TABLE table_name_10 ( english_translation VARCHAR, artist VARCHAR )
SELECT english_translation FROM table_name_10 WHERE artist = "ann christine"
Name the data with a percent gain of 28.4%
CREATE TABLE table_11393 ( "Data" text, "Total gain" text, "Percent gain" text, "2003" text, "2000" text, "1997" text, "1994" text, "1991" text, "1988" text, "1985" text, "1982" text, "1979" text, "1976" text, "1973" text, "1970" text, "1967" text )
SELECT "Data" FROM table_11393 WHERE "Percent gain" = '28.4%'
Can you tell me the Away team that has the Home team of south dragons, and the Score of 94-81?
CREATE TABLE table_name_17 ( away_team VARCHAR, home_team VARCHAR, score VARCHAR )
SELECT away_team FROM table_name_17 WHERE home_team = "south dragons" AND score = "94-81"
What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?
CREATE TABLE table_35256 ( "Rank" real, "Airport" text, "Location" text, "Code (IATA)" text, "Total Cargo (Metric Tonnes)" text, "2003 Rank" text, "% Change" text )
SELECT "Code (IATA)" FROM table_35256 WHERE "Total Cargo (Metric Tonnes)" = '1,838,894'
Which Thursday does big brother 13 air?
CREATE TABLE table_name_59 ( thursday VARCHAR, series VARCHAR )
SELECT thursday FROM table_name_59 WHERE series = "big brother 13"
How many seasons are there for the 3rd position?
CREATE TABLE table_4195 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" real, "Position" text )
SELECT COUNT("Season") FROM table_4195 WHERE "Position" = '3rd'
How many time is the theme rotary international : 100 years in canada?
CREATE TABLE table_25468520_1 ( printing_process VARCHAR, theme VARCHAR )
SELECT COUNT(printing_process) FROM table_25468520_1 WHERE theme = "Rotary International : 100 Years in Canada"
Name the total number of value for revenue more than 193 and rank less than 12 for manchester united
CREATE TABLE table_name_21 ( value__ VARCHAR, team VARCHAR, revenue__$m_ VARCHAR, rank VARCHAR )
SELECT COUNT(value__) AS $m_ FROM table_name_21 WHERE revenue__$m_ > 193 AND rank < 12 AND team = "manchester united"
Which Record has a Loss of o'connor (0-1)?
CREATE TABLE table_name_44 ( record VARCHAR, loss VARCHAR )
SELECT record FROM table_name_44 WHERE loss = "o'connor (0-1)"
How many losses had a total of 17 and more than 10 wins?
CREATE TABLE table_39747 ( "Year" text, "Total" real, "Wins" real, "Losses" real, "No result" real, "% Win" text )
SELECT COUNT("Losses") FROM table_39747 WHERE "Total" = '17' AND "Wins" > '10'
What team was ranked in 7th?
CREATE TABLE table_24765815_1 ( team VARCHAR, rank VARCHAR )
SELECT team FROM table_24765815_1 WHERE rank = "7th"
What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses?
CREATE TABLE table_name_29 ( draws INTEGER, losses VARCHAR, club VARCHAR, against VARCHAR, wins VARCHAR )
SELECT MIN(draws) FROM table_name_29 WHERE against < 1299 AND wins > 7 AND club = "warrnambool" AND losses < 2
Who had a score of 69-70=139?
CREATE TABLE table_67528 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Player" FROM table_67528 WHERE "Score" = '69-70=139'
How many parties of the time they leave office, binning the leave office into WEEKDAY interval, show by the y-axis in ascending.
CREATE TABLE party ( Party_ID int, Minister text, Took_office text, Left_office text, Region_ID int, Party_name text ) CREATE TABLE party_events ( Event_ID int, Event_Name text, Party_ID int, Member_in_charge_ID int ) CREATE TABLE region ( Region_ID int, Region_name text, Date text, Label text, Format text, Catalogue text ) CREATE TABLE member ( Member_ID int, Member_Name text, Party_ID text, In_office text )
SELECT Left_office, COUNT(Left_office) FROM party ORDER BY COUNT(Left_office)
how many countries earned at lest one bronze medal ?
CREATE TABLE table_204_297 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT COUNT("nation") FROM table_204_297 WHERE "bronze" >= 1
How many U.S. viewers (million) are there for the episode whose Production code is 3T7051?
CREATE TABLE table_13183076_3 ( us_viewers__million_ VARCHAR, production_code VARCHAR )
SELECT us_viewers__million_ FROM table_13183076_3 WHERE production_code = "3T7051"
Show names and seatings for all tracks opened after 2000 by a pie chart.
CREATE TABLE race ( Race_ID int, Name text, Class text, Date text, Track_ID text ) CREATE TABLE track ( Track_ID int, Name text, Location text, Seating real, Year_Opened real )
SELECT Name, Seating FROM track WHERE Year_Opened > 2000
Name the tournament for top-5 more thn 1 and top-25 of 13 with wins of 3
CREATE TABLE table_79797 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT "Tournament" FROM table_79797 WHERE "Top-5" > '1' AND "Top-25" = '13' AND "Wins" = '3'
Which HPFS has a no for ReFS?
CREATE TABLE table_name_51 ( hpfs VARCHAR, refs VARCHAR )
SELECT hpfs FROM table_name_51 WHERE refs = "no"
Find the average hours for the students whose tryout decision is no.
CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) CREATE TABLE college ( cname text, state text, enr number )
SELECT AVG(T1.hs) FROM player AS T1 JOIN tryout AS T2 ON T1.pid = T2.pid WHERE T2.decision = 'no'
Tell me the date for bugatti fpr stanislas czaykowski
CREATE TABLE table_31560 ( "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning constructor" text, "Report" text )
SELECT "Date" FROM table_31560 WHERE "Winning constructor" = 'bugatti' AND "Winning driver" = 'stanislas czaykowski'
The candidates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% is for what incumbent?
CREATE TABLE table_2668336_17 ( incumbent VARCHAR, candidates VARCHAR )
SELECT incumbent FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%"
Which Grid has a Driver of johnny dumfries?
CREATE TABLE table_name_85 ( grid VARCHAR, driver VARCHAR )
SELECT grid FROM table_name_85 WHERE driver = "johnny dumfries"
Show names of technicians and series of machines they are assigned to repair.
CREATE TABLE technician ( Name VARCHAR, technician_ID VARCHAR ) CREATE TABLE machine ( Machine_series VARCHAR, machine_id VARCHAR ) CREATE TABLE repair_assignment ( machine_id VARCHAR, technician_ID VARCHAR )
SELECT T3.Name, T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID
What is the nickname of the team in division 2?
CREATE TABLE table_name_34 ( nickname VARCHAR, division VARCHAR )
SELECT nickname FROM table_name_34 WHERE division = "division 2"
What is 2011, when 2012 is 'A', and when Tournament is 'French Open'?
CREATE TABLE table_61811 ( "Tournament" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT "2011" FROM table_61811 WHERE "2012" = 'a' AND "Tournament" = 'french open'
List the themes of parties in ascending order of number of hosts.
CREATE TABLE party ( Party_Theme VARCHAR, Number_of_hosts VARCHAR )
SELECT Party_Theme FROM party ORDER BY Number_of_hosts
Name the Number of electorates (2009 which has a Reserved for ( SC / ST /None) of none, and a Name of jahanabad?
CREATE TABLE table_name_40 ( number_of_electorates__2009_ INTEGER, reserved_for___sc___st__none_ VARCHAR, name VARCHAR )
SELECT MIN(number_of_electorates__2009_) FROM table_name_40 WHERE reserved_for___sc___st__none_ = "none" AND name = "jahanabad"
Show name and distance for all aircrafts by a bar chart, list by the y axis in ascending please.
CREATE TABLE employee ( eid number(9,0), name varchar2(30), salary number(10,2) ) CREATE TABLE aircraft ( aid number(9,0), name varchar2(30), distance number(6,0) ) CREATE TABLE certificate ( eid number(9,0), aid number(9,0) ) CREATE TABLE flight ( flno number(4,0), origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_date date, price number(7,2), aid number(9,0) )
SELECT name, distance FROM aircraft ORDER BY distance
What is the 2nd leg of team 1 Zamalek SC?
CREATE TABLE table_name_31 ( team_1 VARCHAR )
SELECT 2 AS nd_leg FROM table_name_31 WHERE team_1 = "zamalek sc"
How many results are there with the original title of ani ohev otach roza ( )?
CREATE TABLE table_12369913_1 ( result VARCHAR, original_title VARCHAR )
SELECT COUNT(result) FROM table_12369913_1 WHERE original_title = "Ani Ohev Otach Roza (ืื ื™ ืื•ื”ื‘ ืื•ืชืš ืจื•ื–ื”)"
Which player played for the Grizzlies from 1997-1998?
CREATE TABLE table_8684 ( "Player" text, "Nationality" text, "Position" text, "Years for Grizzlies" text, "School/Club Team" text )
SELECT "Player" FROM table_8684 WHERE "Years for Grizzlies" = '1997-1998'
What score has notts county as the home team?
CREATE TABLE table_7254 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT "Score" FROM table_7254 WHERE "Home team" = 'notts county'
what is the time/retired when the laps is less than 54 and the driver is mark donohue?
CREATE TABLE table_54237 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Time/Retired" FROM table_54237 WHERE "Laps" < '54' AND "Driver" = 'mark donohue'
What Competition had a Score of 3 3?
CREATE TABLE table_name_27 ( competition VARCHAR, score VARCHAR )
SELECT competition FROM table_name_27 WHERE score = "3โ€“3"
What is the total number of airlines?
CREATE TABLE airlines ( alid number, name text, iata text, icao text, callsign text, country text, active text ) CREATE TABLE routes ( rid number, dst_apid number, dst_ap text, src_apid number, src_ap text, alid number, airline text, codeshare text ) CREATE TABLE airports ( apid number, name text, city text, country text, x number, y number, elevation number, iata text, icao text )
SELECT COUNT(*) FROM airlines
Who directed the episode written by Dan Serafin and aired on July 23, 2008?
CREATE TABLE table_name_52 ( directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR )
SELECT directed_by FROM table_name_52 WHERE written_by = "dan serafin" AND original_airdate = "july 23, 2008"
Which week is the theme n/a
CREATE TABLE table_2467 ( "Week #" text, "Theme" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text )
SELECT "Week #" FROM table_2467 WHERE "Theme" = 'N/A'
Show the number of departments created in different year and bin creation time by year in a line chart, and I want to rank in ascending by the x-axis.
CREATE TABLE head ( head_ID int, name text, born_state text, age real ) CREATE TABLE management ( department_ID int, head_ID int, temporary_acting text ) CREATE TABLE department ( Department_ID int, Name text, Creation text, Ranking int, Budget_in_Billions real, Num_Employees real )
SELECT Creation, COUNT(Creation) FROM department ORDER BY Creation
What is the market value of every comapny in the banking industry ordered by sales and profits? Return a bar chart.
CREATE TABLE gas_station ( Station_ID int, Open_Year int, Location text, Manager_Name text, Vice_Manager_Name text, Representative_Name text ) CREATE TABLE company ( Company_ID int, Rank int, Company text, Headquarters text, Main_Industry text, Sales_billion real, Profits_billion real, Assets_billion real, Market_Value real ) CREATE TABLE station_company ( Station_ID int, Company_ID int, Rank_of_the_Year int )
SELECT Company, Market_Value FROM company WHERE Main_Industry = 'Banking' ORDER BY Sales_billion, Profits_billion
For those records from the products and each product's manufacturer, find name and the average of code , and group by attribute name, and visualize them by a bar chart, rank by the Y-axis in asc.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code
Stack bar chart of team_id vs ACC_Home based on all home, and could you display Y in asc order please?
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) 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 )
SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY Team_ID
What is the lowest Preliminary score of a contestant that has an Evening Gown score of 8.472?
CREATE TABLE table_name_94 ( preliminaries INTEGER, evening_gown VARCHAR )
SELECT MIN(preliminaries) FROM table_name_94 WHERE evening_gown = 8.472
When was the private/baptist school founded?
CREATE TABLE table_261941_1 ( founded VARCHAR, type VARCHAR )
SELECT founded FROM table_261941_1 WHERE type = "Private/Baptist"
What is the id of the files that are available in the format of mp4 and a resolution smaller than 1000?
CREATE TABLE song ( song_name text, artist_name text, country text, f_id number, genre_is text, rating number, languages text, releasedate time, resolution number ) CREATE TABLE artist ( artist_name text, country text, gender text, preferred_genre text ) CREATE TABLE files ( f_id number, artist_name text, file_size text, duration text, formats text ) CREATE TABLE genre ( g_name text, rating text, most_popular_in text )
SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000
What is the number of points for the 7th placed song with a draw greater than 8?
CREATE TABLE table_name_73 ( points INTEGER, place VARCHAR, draw VARCHAR )
SELECT MIN(points) FROM table_name_73 WHERE place = "7th" AND draw > 8
Which General classification has a Stage of 7?
CREATE TABLE table_52601 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Trofeo Fast Team" text )
SELECT "General classification" FROM table_52601 WHERE "Stage" = '7'
Show vote_percent from each date, could you show y axis from high to low order please?
CREATE TABLE election ( Election_ID int, Representative_ID int, Date text, Votes real, Vote_Percent real, Seats real, Place real ) CREATE TABLE representative ( Representative_ID int, Name text, State text, Party text, Lifespan text )
SELECT Date, Vote_Percent FROM election ORDER BY Vote_Percent DESC
Name the number of date for stephen curry , dorell wright (27)
CREATE TABLE table_29933 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT COUNT("Date") FROM table_29933 WHERE "High points" = 'Stephen Curry , Dorell Wright (27)'
List the names of editors in ascending order of age.
CREATE TABLE editor ( Name VARCHAR, Age VARCHAR )
SELECT Name FROM editor ORDER BY Age
What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008?
CREATE TABLE table_61449 ( "Tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT "2009" FROM table_61449 WHERE "2012" = 'lq' AND "2011" = '2r' AND "2008" = 'lq'
Opened prior to 1877 only 2.44km from Wellington, when did this station close?
CREATE TABLE table_name_6 ( closed VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR )
SELECT closed FROM table_name_6 WHERE opened < 1877 AND distance_from_wellington = "2.44km"
What is the gender of the school which has the website http://www.nicholasbreakspearschool.co.uk/?
CREATE TABLE table_30574 ( "School" text, "Gender" text, "Age Range" text, "Religious Affiliation" text, "Location" text, "School website" text )
SELECT "Gender" FROM table_30574 WHERE "School website" = 'http://www.nicholasbreakspearschool.co.uk/'
Which city in Texas hosts the Frank Erwin center?
CREATE TABLE table_name_58 ( city VARCHAR, state VARCHAR, venue VARCHAR )
SELECT city FROM table_name_58 WHERE state = "texas" AND venue = "frank erwin center"
What is the sum of Average, when 2006 is '36/40', and when Played is greater than 126?
CREATE TABLE table_44715 ( "Team" text, "Average" real, "Points" real, "Played" real, "2006" text, "2007" text, "2008" text )
SELECT SUM("Average") FROM table_44715 WHERE "2006" = '36/40' AND "Played" > '126'
What is the time/retired of Driver Masten Gregory Carroll Shelby when the constructor was Maserati, the Grid was larger than 10 and there were more than 2 laps?
CREATE TABLE table_11847 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Time/Retired" FROM table_11847 WHERE "Grid" > '10' AND "Laps" > '2' AND "Constructor" = 'maserati' AND "Driver" = 'masten gregory carroll shelby'
What is the lowest episode number where john bird was the 4th performer?
CREATE TABLE table_name_48 ( episode INTEGER, performer_4 VARCHAR )
SELECT MIN(episode) FROM table_name_48 WHERE performer_4 = "john bird"
What is every year where opponent in the final is John Mcenroe at Wimbledon?
CREATE TABLE table_23235767_1 ( year VARCHAR, opponent_in_the_final VARCHAR, championship VARCHAR )
SELECT year FROM table_23235767_1 WHERE opponent_in_the_final = "John McEnroe" AND championship = "Wimbledon"
who is the the incumbent with candidates being percy e. quin (d) unopposed
CREATE TABLE table_1342379_23 ( incumbent VARCHAR, candidates VARCHAR )
SELECT incumbent FROM table_1342379_23 WHERE candidates = "Percy E. Quin (D) Unopposed"
List all episode air dates where Luiza Possi was the guest fourth judge?
CREATE TABLE table_27615445_1 ( episode_air_date VARCHAR, guest_fourth_judge VARCHAR )
SELECT episode_air_date FROM table_27615445_1 WHERE guest_fourth_judge = "Luiza Possi"
What is the percentage of registered voters in which the d-r spread is +14.3%?
CREATE TABLE table_27003223_4 ( registered_voters VARCHAR, d_r_spread VARCHAR )
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+14.3%"
for the name of joe surratt what is the last update?
CREATE TABLE table_name_75 ( last_update VARCHAR, name VARCHAR )
SELECT last_update FROM table_name_75 WHERE name = "joe surratt"
Which Podium has 1 Race and a Final Place of 5th?
CREATE TABLE table_name_11 ( podiums VARCHAR, races VARCHAR, final_placing VARCHAR )
SELECT podiums FROM table_name_11 WHERE races = "1" AND final_placing = "5th"
What's the track for 1978?
CREATE TABLE table_7794 ( "Year" real, "Track" text, "50 cc" text, "125 cc" text, "Report" text )
SELECT "Track" FROM table_7794 WHERE "Year" = '1978'
What is the name of the plaza where the told for heavy vehicles with 2 axles is r20.50?
CREATE TABLE table_1211545_2 ( name VARCHAR, heavy_vehicle__2_axles_ VARCHAR )
SELECT name FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = "R20.50"
What was the tail number with 3/3 fatalities?
CREATE TABLE table_name_32 ( tail_number VARCHAR, fatalities VARCHAR )
SELECT tail_number FROM table_name_32 WHERE fatalities = "3/3"
What is the Official Name of the Community with an Area km 2 of 16.13?
CREATE TABLE table_45223 ( "Official Name" text, "Status" text, "Area km 2" real, "Population" real, "Census Ranking" text )
SELECT "Official Name" FROM table_45223 WHERE "Area km 2" = '16.13'
What was the average losses for team with points larger than 3 and played larger thna 14?
CREATE TABLE table_49511 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real )
SELECT AVG("Lost") FROM table_49511 WHERE "Points" > '3' AND "Played" > '14'
What is the points for a team with more than 9 wins and more than 40 goals?
CREATE TABLE table_52780 ( "Place (Posici\u00f3n)" real, "Team (Equipo)" text, "Played (PJ)" real, "Won (PG)" real, "Draw (PE)" real, "Lost (PP)" real, "Goals Scored (GF)" real, "Goals Conceded (GC)" real, "+/- (Dif.)" real, "Points (Pts.)" real )
SELECT SUM("Points (Pts.)") FROM table_52780 WHERE "Won (PG)" > '9' AND "Goals Scored (GF)" > '40'
established do not resuscitate orders prior to enrollment
CREATE TABLE table_train_40 ( "id" int, "bone_marrow_transplant" bool, "organ_transplantation" bool, "systolic_blood_pressure_sbp" int, "do_not_resuscitate_dnr" bool, "autoimmune_disease" bool, "steroid_therapy" bool, "intention_to_central_venous_catheter" bool, "hematologic_disease" bool, "sepsis" bool, "acute_leukemia" bool, "allergy_to_ifn_gamma" bool, "neoplasma" bool, "receiving_prednisolone" int, "septic_shock" bool, "lactate" int, "NOUSE" float )
SELECT * FROM table_train_40 WHERE do_not_resuscitate_dnr = 1
Name the record for attendance location of palace of auburn hills 15,210
CREATE TABLE table_21310 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location/Attendance" text, "Record" text )
SELECT "Record" FROM table_21310 WHERE "Location/Attendance" = 'Palace of Auburn Hills 15,210'
How many entrants were there in 2011?
CREATE TABLE table_name_21 ( entrants VARCHAR, year VARCHAR )
SELECT COUNT(entrants) FROM table_name_21 WHERE year = 2011
Name the maximum mum l is less than 6.0
CREATE TABLE table_1346 ( "Num" real, "Team" text, "W" real, "L" real, "PCT" text, "PF" real, "PA" real, "Last appearance" real, "Last championship" real, "HOME games" real, "Home wins" real, "Home losses" real, "Home Win Pct." text, "ROAD games" real, "Road wins" real, "Road losses" real, "Road Win Pct." text )
SELECT MAX("Num") FROM table_1346 WHERE "L" < '6.0'
What 2011 has 12.7% as the 2010?
CREATE TABLE table_65708 ( "Score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT "2011" FROM table_65708 WHERE "2010" = '12.7%'
What was the result of the game after week 6 against the cleveland browns?
CREATE TABLE table_8614 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Attendance" text )
SELECT "Result" FROM table_8614 WHERE "Week" < '6' AND "Opponent" = 'cleveland browns'
What is the example with the associative type?
CREATE TABLE table_33570 ( "Type" text, "Suffix" text, "Valency change" text, "Example" text, "Meaning" text )
SELECT "Example" FROM table_33570 WHERE "Type" = 'associative'
What is the highest league up with less than 3 championships, a total less than 2, and a FA cup larger than 0?
CREATE TABLE table_name_99 ( league_cup INTEGER, fa_cup VARCHAR, championship VARCHAR, total VARCHAR )
SELECT MAX(league_cup) FROM table_name_99 WHERE championship < 3 AND total < 2 AND fa_cup > 0
Name the sum of roll for morrinsville school
CREATE TABLE table_71700 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real )
SELECT SUM("Roll") FROM table_71700 WHERE "Name" = 'morrinsville school'
Find the states where have the colleges whose enrollments are less than the largest size.
CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE college ( cname text, state text, enr number ) CREATE TABLE tryout ( pid number, cname text, ppos text, decision text )
SELECT DISTINCT state FROM college WHERE enr < (SELECT MAX(enr) FROM college)
What is the Height for Years for Rockets of 2005-06?
CREATE TABLE table_54250 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "Years for Rockets" text, "School/Club Team/Country" text )
SELECT "Height in Ft." FROM table_54250 WHERE "Years for Rockets" = '2005-06'
What is the lowest number of draws of the NTFA Div 2 Lilydale?
CREATE TABLE table_75325 ( "NTFA Div 2" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real )
SELECT MIN("Draws") FROM table_75325 WHERE "NTFA Div 2" = 'lilydale'
The home team has a score of 12.9 (81) what is the score of the away team?
CREATE TABLE table_56896 ( "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_56896 WHERE "Home team score" = '12.9 (81)'
What is Notes, when Date is 2007?
CREATE TABLE table_name_9 ( notes VARCHAR, date VARCHAR )
SELECT notes FROM table_name_9 WHERE date = "2007"
In What Week was the Attendance 75,866?
CREATE TABLE table_name_59 ( week VARCHAR, attendance VARCHAR )
SELECT week FROM table_name_59 WHERE attendance = "75,866"
when was the last time rade serbedzija won an award for best actor ?
CREATE TABLE table_203_191 ( id number, "year" number, "group" text, "award" text, "result" text, "notes" text )
SELECT "year" FROM table_203_191 WHERE "award" = 'best actor' ORDER BY "year" DESC LIMIT 1
what measurement does the contestant from sindelfingen have?
CREATE TABLE table_3565 ( "Contestant" text, "Place" real, "Age" real, "Country" text, "Federal state" text, "City" text, "Height" text, "Measurements (in cm)" text )
SELECT "Measurements (in cm)" FROM table_3565 WHERE "City" = 'Sindelfingen'
How many wines are there for each grape, and I want to display by the X in ascending.
CREATE TABLE grapes ( ID INTEGER, Grape TEXT, Color TEXT ) CREATE TABLE appellations ( No INTEGER, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT ) CREATE TABLE wine ( No INTEGER, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT, Name TEXT, Year INTEGER, Price INTEGER, Score INTEGER, Cases INTEGER, Drink TEXT )
SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY Grape
How many locations have been used for ballparks named Memorial Stadium?
CREATE TABLE table_23384 ( "Ballpark" text, "Location" text, "Team" text, "Opened" real, "Closed" real, "Demod" real, "Current Status" text )
SELECT COUNT("Location") FROM table_23384 WHERE "Ballpark" = 'Memorial Stadium'
What was the margin of victory on Mar 18, 1979?
CREATE TABLE table_name_69 ( margin_of_victory VARCHAR, date VARCHAR )
SELECT margin_of_victory FROM table_name_69 WHERE date = "mar 18, 1979"
What is the date of birth of the player that has 11 caps and plays the prop position?
CREATE TABLE table_name_41 ( date_of_birth__age_ VARCHAR, caps VARCHAR, position VARCHAR )
SELECT date_of_birth__age_ FROM table_name_41 WHERE caps = 11 AND position = "prop"
Name the playoffs for 2nd round open cup
CREATE TABLE table_14240688_1 ( playoffs VARCHAR, open_cup VARCHAR )
SELECT playoffs FROM table_14240688_1 WHERE open_cup = "2nd Round"
how many performers appeared on the air date 21 january 2011 ?
CREATE TABLE table_203_784 ( id number, "no. in\nseries" number, "no. in\nseason" number, "performer" text, "appearance" text, "air date" text )
SELECT COUNT("performer") FROM table_203_784 WHERE "air date" = '21 january 2011'
What medal was awarded in the men's freestyle 52 kg?
CREATE TABLE table_35155 ( "Medal" text, "Name" text, "Games" text, "Sport" text, "Event" text )
SELECT "Medal" FROM table_35155 WHERE "Event" = 'men''s freestyle 52 kg'
Show the total number of passengers of each location in a bar chart.
CREATE TABLE train_station ( Train_ID int, Station_ID int ) CREATE TABLE train ( Train_ID int, Name text, Time text, Service text ) 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 )
SELECT Location, SUM(Total_Passengers) FROM station GROUP BY Location