instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
hemoglobin less than 12 g / dl | CREATE TABLE table_dev_4 (
"id" int,
"hypothyroidism" bool,
"serum_bicarbonate" int,
"c_peptide_level" float,
"autoimmune_disease" bool,
"hemoglobin_a1c_hba1c" float,
"positive_serum" bool,
"inhaled_steroids" bool,
"diabetic_ketoacidosis" bool,
"creatinine_clearance_cl" float,
"urinary_ketones" bool,
"admission_blood_glucose" int,
"chronic_inflammatory" bool,
"asthma" bool,
"NOUSE" float
) | SELECT * FROM table_dev_4 WHERE hemoglobin_a1c_hba1c < 12 |
Give me a line chart about each year's maximum score . | 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
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
) | SELECT Year, MAX(Score) FROM wine GROUP BY Year |
what is the 2nd leg when team #2 is algiris kaunas? | CREATE TABLE table_name_67 (
team__number2 VARCHAR
) | SELECT 2 AS nd_leg FROM table_name_67 WHERE team__number2 = "žalgiris kaunas" |
What is every score at the location of Verizon Center and points of 68? | CREATE TABLE table_23486853_8 (
score VARCHAR,
location VARCHAR,
points VARCHAR
) | SELECT score FROM table_23486853_8 WHERE location = "Verizon Center" AND points = 68 |
What is the result of the match with clyde as the opponent in the h venue? | CREATE TABLE table_name_27 (
result VARCHAR,
opponent VARCHAR,
venue VARCHAR
) | SELECT result FROM table_name_27 WHERE opponent = "clyde" AND venue = "h" |
Name the finish for patani | CREATE TABLE table_21178 (
"Cycle no." text,
"Air dates" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
) | SELECT "Finish" FROM table_21178 WHERE "Eliminated" = 'Patani' |
Who were the challenge leaders of the games won by boston college (88-76)? | CREATE TABLE table_29535057_4 (
challenge_leader VARCHAR,
winner VARCHAR
) | SELECT challenge_leader FROM table_29535057_4 WHERE winner = "Boston College (88-76)" |
Name the number of color for furcifer pardalis | CREATE TABLE table_21800 (
"Scientific name" text,
"Common name" text,
"Length (male)" text,
"Length (female)" text,
"Color" text,
"Lifespan (years)" text
) | SELECT COUNT("Color") FROM table_21800 WHERE "Scientific name" = 'Furcifer pardalis' |
Which opponent played in game 3 before October 18? | CREATE TABLE table_47327 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Opponent" FROM table_47327 WHERE "October" < '18' AND "Game" = '3' |
Who directed the title that was written by Adam Milch? | CREATE TABLE table_17657 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Total viewers (in millions)" text
) | SELECT "Directed by" FROM table_17657 WHERE "Written by" = 'Adam Milch' |
Which team was the opponent on october 21? | CREATE TABLE table_27734577_2 (
team VARCHAR,
date VARCHAR
) | SELECT team FROM table_27734577_2 WHERE date = "October 21" |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the average of price , and group by attribute founder, sort from high to low by the X-axis please. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Founder, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC |
What was the lowest number of wins for the team that scored more than 14 points and had a position of 7? | CREATE TABLE table_35523 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) | SELECT MIN("Wins") FROM table_35523 WHERE "Position" = '7' AND "Scored" > '14' |
What is Venue, when Date is '14/12/1996'? | CREATE TABLE table_62618 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT "Venue" FROM table_62618 WHERE "Date" = '14/12/1996' |
How many members did Europe have the year that America had 403892? | CREATE TABLE table_1914090_2 (
europe VARCHAR,
america VARCHAR
) | SELECT europe FROM table_1914090_2 WHERE america = 403892 |
What were the ratings for host Chris Economaki who had 12.3 million viewers? | CREATE TABLE table_52445 (
"Year" real,
"Network" text,
"Lap-by-lap" text,
"Color commentator(s)" text,
"Pit reporters" text,
"Host" text,
"Ratings" text,
"Viewers" text
) | SELECT "Ratings" FROM table_52445 WHERE "Host" = 'chris economaki' AND "Viewers" = '12.3 million' |
Which Runner-up has a Year smaller than 2008, and a Champion of jos acasuso? | CREATE TABLE table_name_49 (
runner_up VARCHAR,
year VARCHAR,
champion VARCHAR
) | SELECT runner_up FROM table_name_49 WHERE year < 2008 AND champion = "josé acasuso" |
How many exhibitions has each artist had Plot them as bar chart, I want to order bar in desc order please. | CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
) | SELECT Name, COUNT(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.Artist_ID = T2.Artist_ID GROUP BY T1.Artist_ID ORDER BY Name DESC |
what stadium has a prior record of 7th? | CREATE TABLE table_68203 (
"Team" text,
"City" text,
"Stadium" text,
"Manager" text,
"Past season" text
) | SELECT "Stadium" FROM table_68203 WHERE "Past season" = '7th' |
What was the final score of the game at Texas Stadium? | CREATE TABLE table_name_26 (
final_score VARCHAR,
stadium VARCHAR
) | SELECT final_score FROM table_name_26 WHERE stadium = "texas stadium" |
What is the 1st leg of the Al Fahaheel Team 1? | CREATE TABLE table_name_11 (
team_1 VARCHAR
) | SELECT 1 AS st_leg FROM table_name_11 WHERE team_1 = "al fahaheel" |
Who is the chairman when teh captain is fawzi bashir? | CREATE TABLE table_27631756_2 (
chairman VARCHAR,
captain VARCHAR
) | SELECT chairman FROM table_27631756_2 WHERE captain = "Fawzi Bashir" |
Who had the fastest lap(s) when stefan wilson had the pole? | CREATE TABLE table_74411 (
"Rd." text,
"Race" text,
"Pole position" text,
"Fastest lap" text,
"Most laps led" text,
"Winning driver" text,
"Winning team" text
) | SELECT "Fastest lap" FROM table_74411 WHERE "Pole position" = 'Stefan Wilson' |
In what episode was segment D ned Can Corn? | CREATE TABLE table_19894 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT MAX("Episode") FROM table_19894 WHERE "Segment D" = 'ned Can Corn' |
List the names of members who did not attend any performance. | CREATE TABLE member (
member_id text,
name text,
nationality text,
role text
)
CREATE TABLE performance (
performance_id number,
date text,
host text,
location text,
attendance number
)
CREATE TABLE member_attendance (
member_id number,
performance_id number,
num_of_pieces number
) | SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM member_attendance) |
how many months had more than 55 favor votes ? | CREATE TABLE table_203_43 (
id number,
"polling firm" text,
"month" text,
"link" text,
"favor" number,
"oppose" number
) | SELECT COUNT("month") FROM table_203_43 WHERE "favor" > 55 |
what is the category that has the people's choice awards? | CREATE TABLE table_68026 (
"Year" real,
"Result" text,
"Award" text,
"Category" text,
"Nominated work" text
) | SELECT "Category" FROM table_68026 WHERE "Award" = 'people''s choice awards' |
What resulted after 4 rounds with Ed Mahone? | CREATE TABLE table_31661 (
"Date" text,
"Result" text,
"Opponent" text,
"Method" text,
"Round" real
) | SELECT "Result" FROM table_31661 WHERE "Round" > '4' AND "Opponent" = 'ed mahone' |
What is the Label for the Covered Song named ' sign o' the times ' by prince .? | CREATE TABLE table_41309 (
"Album" text,
"Release date" text,
"Label" text,
"Format" text,
"Covered Song" text,
"Original Song" text
) | SELECT "Label" FROM table_41309 WHERE "Covered Song" = ' sign o'' the times " by prince .' |
What is RJCM's IATA? | CREATE TABLE table_name_76 (
iata VARCHAR,
icao VARCHAR
) | SELECT iata FROM table_name_76 WHERE icao = "rjcm" |
How many yards did the player with 87 attempts rush? | CREATE TABLE table_11157122_5 (
yards VARCHAR,
attempts VARCHAR
) | SELECT yards FROM table_11157122_5 WHERE attempts = 87 |
What's the number & name for the date after 1954? | CREATE TABLE table_name_28 (
number_ VARCHAR,
_name VARCHAR,
date INTEGER
) | SELECT number_ & _name FROM table_name_28 WHERE date > 1954 |
What is the name of the station where the language is tamil malay? | CREATE TABLE table_1388 (
"Frequency" text,
"Station" text,
"Operator" text,
"Language" text,
"Genre" text,
"Coverage Area" text
) | SELECT "Station" FROM table_1388 WHERE "Language" = 'Tamil Malay' |
What is the circuit on 19 Apr with Craig Lowndes as the winner? | CREATE TABLE table_51034 (
"Date" text,
"Series" text,
"Circuit" text,
"City / State" text,
"Winner" text,
"Team" text
) | SELECT "Circuit" FROM table_51034 WHERE "Winner" = 'craig lowndes' AND "Date" = '19 apr' |
Which country is Pete Cooper, who made $816, from? | CREATE TABLE table_77149 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Country" FROM table_77149 WHERE "Money ( $ )" = '816' AND "Player" = 'pete cooper' |
Name the software with the latest stable date of 0.6.1 | CREATE TABLE table_55886 (
"Software" text,
"Latest stable date (version)" text,
"Cost ( USD )" text,
"Open source" text,
"License" text
) | SELECT "Software" FROM table_55886 WHERE "Latest stable date (version)" = '0.6.1' |
What 2nd leg has pelister as team 1? | CREATE TABLE table_13051 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "2nd leg" FROM table_13051 WHERE "Team 1" = 'pelister' |
Find the country that has the most stadiums. | CREATE TABLE swimmer (
id number,
name text,
nationality text,
meter_100 number,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
time text
)
CREATE TABLE record (
id number,
result text,
swimmer_id number,
event_id number
)
CREATE TABLE event (
id number,
name text,
stadium_id number,
year text
)
CREATE TABLE stadium (
id number,
name text,
capacity number,
city text,
country text,
opening_year number
) | SELECT country FROM stadium GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 |
What team has fewer than 9 wins and less than 1593 against? | CREATE TABLE table_78974 (
"Lexton Plains" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT "Lexton Plains" FROM table_78974 WHERE "Wins" < '9' AND "Against" < '1593' |
What is the series number when al horford (10) had the high rebounds? | CREATE TABLE table_3873 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "Series" FROM table_3873 WHERE "High rebounds" = 'Al Horford (10)' |
Which is the LMS SPR when the car number was 15? | CREATE TABLE table_name_60 (
lms_spr VARCHAR,
car_no VARCHAR
) | SELECT lms_spr FROM table_name_60 WHERE car_no = "15" |
what's the tuesday time with location being millhopper | CREATE TABLE table_16422 (
"Location" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text,
"Saturday" text,
"Sunday" text
) | SELECT "Tuesday" FROM table_16422 WHERE "Location" = 'Millhopper' |
Return a pie chart on what are the number of rooms for each bed type? | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
) | SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType |
Which actor won in 1966? | CREATE TABLE table_name_43 (
actor VARCHAR,
year VARCHAR
) | SELECT actor FROM table_name_43 WHERE year = 1966 |
Which state has a Reason for termination of retirement, and an Active service of 1926 1928? | CREATE TABLE table_15578 (
"State" text,
"Born/Died" text,
"Active service" text,
"Chief Judge" text,
"Senior status" text,
"Appointed by" text,
"Reason for termination" text
) | SELECT "State" FROM table_15578 WHERE "Reason for termination" = 'retirement' AND "Active service" = '1926–1928' |
What conference does Gonzaga University play in? | CREATE TABLE table_16078390_2 (
primary_conference VARCHAR,
institution VARCHAR
) | SELECT primary_conference FROM table_16078390_2 WHERE institution = "Gonzaga University" |
what is the average league cup goals when the position is df and total goals is more than 4? | CREATE TABLE table_name_78 (
league_cup_goals INTEGER,
position VARCHAR,
total_goals VARCHAR
) | SELECT AVG(league_cup_goals) FROM table_name_78 WHERE position = "df" AND total_goals > 4 |
Who is the elevator with the cardinalatial title of Deacon of SS. Sergio e Bacco? | CREATE TABLE table_62721 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
) | SELECT "Elevator" FROM table_62721 WHERE "Cardinalatial title" = 'deacon of ss. sergio e bacco' |
What is the Date of the Ameritech Senior Open? | CREATE TABLE table_66188 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Date" FROM table_66188 WHERE "Tournament" = 'ameritech senior open' |
How many games were numbered 13? | CREATE TABLE table_27700530_9 (
team VARCHAR,
game VARCHAR
) | SELECT COUNT(team) FROM table_27700530_9 WHERE game = 13 |
Nigeria had the fastest time once. | CREATE TABLE table_1231316_5 (
fastest_time__s_ VARCHAR,
nation VARCHAR
) | SELECT COUNT(fastest_time__s_) FROM table_1231316_5 WHERE nation = "Nigeria" |
Who was second for the United States team? | CREATE TABLE table_name_35 (
second VARCHAR,
nation VARCHAR
) | SELECT second FROM table_name_35 WHERE nation = "united states" |
When did Samsung Electronics Co LTD make the GT-i9100? | CREATE TABLE table_47482 (
"Company name" text,
"Hardware Model" text,
"Accreditation type" text,
"Accreditation level" text,
"Date" text
) | SELECT "Date" FROM table_47482 WHERE "Company name" = 'samsung electronics co ltd' AND "Hardware Model" = 'gt-i9100' |
Who directed k0122? | CREATE TABLE table_2618113_1 (
directed_by VARCHAR,
production_code VARCHAR
) | SELECT directed_by FROM table_2618113_1 WHERE production_code = "K0122" |
microalbuminuria up to 300 mg / 24 hours is acceptable if serum creatinine is < 1.4 for female , < 1.5 for male and estimated gfr ( egfr ) is > 60 ) | CREATE TABLE table_dev_42 (
"id" int,
"gender" string,
"depression" bool,
"familial_hypercholesterolemia" bool,
"microalbuminuria" int,
"renal_disease" bool,
"diabetic" string,
"estimated_glomerular_filtration_rate_egfr" int,
"serum_creatinine" float,
"fbg" int,
"body_mass_index_bmi" float,
"triglyceride_tg" float,
"a1c" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_dev_42 WHERE microalbuminuria <= 300 OR ((gender = 'male' AND serum_creatinine < 1.5) OR (gender = 'female' AND serum_creatinine < 1.4)) AND estimated_glomerular_filtration_rate_egfr > 60 |
Tell me the network for 13 january 2009 | CREATE TABLE table_name_80 (
network VARCHAR,
premiere VARCHAR
) | SELECT network FROM table_name_80 WHERE premiere = "13 january 2009" |
What is Date, when Attendance is less than 521? | CREATE TABLE table_name_43 (
date VARCHAR,
attendance INTEGER
) | SELECT date FROM table_name_43 WHERE attendance < 521 |
What is the number of total offense when the opponentis Penn State? | CREATE TABLE table_30692 (
"Rank" real,
"Player" text,
"Year" real,
"Opponent" text,
"Passing yards" real,
"Rushing yards" real,
"Total offense" real
) | SELECT MAX("Total offense") FROM table_30692 WHERE "Opponent" = 'Penn State' |
What is the total number of played for the goals against over 44 and a goal difference of 11? | CREATE TABLE table_name_68 (
played VARCHAR,
goal_difference VARCHAR,
goals_against VARCHAR
) | SELECT COUNT(played) FROM table_name_68 WHERE goal_difference = 11 AND goals_against > 44 |
What was the average year that Xuxa 3 earned the certification 2x platinum, and that the sales were higher than 750,000? | CREATE TABLE table_name_60 (
year INTEGER,
sales VARCHAR,
certification VARCHAR,
álbum VARCHAR
) | SELECT AVG(year) FROM table_name_60 WHERE certification = "2x platinum" AND álbum = "xuxa 3" AND sales > 750 OFFSET 000 |
What is the sum for December when the record was 22-12-5? | CREATE TABLE table_36845 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT SUM("December") FROM table_36845 WHERE "Record" = '22-12-5' |
What is the away team when solon was the home team? | CREATE TABLE table_name_63 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_63 WHERE home_team = "solon" |
How many tries for did the club with a 3 losing bonus and 45 points have? | CREATE TABLE table_36645 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Tries for" FROM table_36645 WHERE "Losing bonus" = '3' AND "Points" = '45' |
What school did draft pick from round 3 go to? | CREATE TABLE table_40871 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
) | SELECT "School" FROM table_40871 WHERE "Round" = '3' |
When was John Hoan Trinh Doan / St. John Hoan, who was beatified in 1909 and canonised after 1988, martyred? | CREATE TABLE table_32115 (
"Name" text,
"Martyred" real,
"Place" text,
"Beatified" real,
"Canonised" real
) | SELECT MAX("Martyred") FROM table_32115 WHERE "Beatified" = '1909' AND "Name" = 'john hoan trinh doan / st. john hoan' AND "Canonised" > '1988' |
What is the lowest Year, when Notes is '5.19km, 18controls'? | CREATE TABLE table_name_24 (
year INTEGER,
notes VARCHAR
) | SELECT MIN(year) FROM table_name_24 WHERE notes = "5.19km, 18controls" |
What is Original Album, when English Translation is 'With You'? | CREATE TABLE table_60614 (
"English translation" text,
"Original album" text,
"Lyricist(s)" text,
"Composer(s)" text,
"Time" text
) | SELECT "Original album" FROM table_60614 WHERE "English translation" = 'with you' |
What is the average opened year of the line with 59 stations served and more than 145,000,000 journeys made per annum? | CREATE TABLE table_10001 (
"Line name" text,
"Opened" real,
"Last extension" real,
"Stations served" real,
"Length" text,
"Average Interstation" text,
"Journeys made (per annum)" real
) | SELECT AVG("Opened") FROM table_10001 WHERE "Stations served" = '59' AND "Journeys made (per annum)" > '145,000,000' |
nephrotic range proteinuria ( urinary protein > 3.5 gm / day ) | CREATE TABLE table_train_235 (
"id" int,
"urinary_protein" float,
"nephrotic_range_proteinuria" bool,
"hepatic_disease" bool,
"estimated_glomerular_filtration_rate_egfr" int,
"kidney_disease" bool,
"renal_transplantation" bool,
"NOUSE" float
) | SELECT * FROM table_train_235 WHERE nephrotic_range_proteinuria = 1 OR urinary_protein > 3.5 |
how many total garratts did south african railways have ? | CREATE TABLE table_204_637 (
id number,
"type" text,
"gauge" text,
"railway" text,
"works no." text,
"year" text,
"builder" text
) | SELECT COUNT(*) FROM table_204_637 WHERE "railway" = 'south african railways' |
Which Opponent was played on 1991-10-13? | CREATE TABLE table_name_52 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_52 WHERE date = "1991-10-13" |
Which intergiro classification is there for team Polti at stage 14? | CREATE TABLE table_66911 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text
) | SELECT "Intergiro classification" FROM table_66911 WHERE "Trofeo Fast Team" = 'team polti' AND "Stage" = '14' |
Which river had 26 points? | CREATE TABLE table_name_72 (
driver VARCHAR,
points VARCHAR
) | SELECT driver FROM table_name_72 WHERE points = 26 |
What was the max points you when when you place 9th? | CREATE TABLE table_1653 (
"Season" text,
"Series" text,
"Team Name" text,
"Races" real,
"Poles" real,
"Wins" real,
"Points" real,
"Final Placing" text
) | SELECT MAX("Points") FROM table_1653 WHERE "Final Placing" = '9th' |
What is the capacity of Band rma Banvit? | CREATE TABLE table_name_28 (
capacity INTEGER,
club VARCHAR
) | SELECT AVG(capacity) FROM table_name_28 WHERE club = "bandırma banvit" |
Which Opponent has a Result of 0-3? | CREATE TABLE table_59829 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
) | SELECT "Opponent" FROM table_59829 WHERE "Result" = '0-3' |
Who was the opponent for the game with a score of w 94 88 (ot)? | CREATE TABLE table_27713030_11 (
team VARCHAR,
score VARCHAR
) | SELECT team FROM table_27713030_11 WHERE score = "W 94–88 (OT)" |
What is the lowest total GFR that has 95.80% of the population as Whites, and a TFR total larger than 2.14, in 2006? | CREATE TABLE table_70053 (
"County" text,
"Live births 2006" real,
"GFR 2006" real,
"TFR 2006" real,
"Whites as % of Pop." text
) | SELECT MIN("GFR 2006") FROM table_70053 WHERE "Whites as % of Pop." = '95.80%' AND "TFR 2006" > '2.14' |
When has a Tie no of 15? | CREATE TABLE table_name_17 (
date VARCHAR,
tie_no VARCHAR
) | SELECT date FROM table_name_17 WHERE tie_no = "15" |
What is the type when McCormack is the name? | CREATE TABLE table_name_21 (
type VARCHAR,
name VARCHAR
) | SELECT type FROM table_name_21 WHERE name = "mccormack" |
What is the Tie no when Swansea City is the Away team with a Score of 2 2? | CREATE TABLE table_61081 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Tie no" FROM table_61081 WHERE "Score" = '2–2' AND "Away team" = 'swansea city' |
poor renal allograft function ( serum creatinine > 1.6 mg / dl, creatinine clearance < 60 ml / min and albumin excretion > 300 mg / 24hr ) | CREATE TABLE table_dev_19 (
"id" int,
"glucagon_stimulated_c_peptide" float,
"c_peptide_level" float,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"hyperlipidemia" bool,
"creatinine_clearance_cl" float,
"total_cholesterol" int,
"stimulated_c_peptide" float,
"smoking" bool,
"insulin_requirement" float,
"diabetes" bool,
"albumin_excretion" int,
"ldl" int,
"treatment" bool,
"serum_creatinine" float,
"alcohol_abuse" bool,
"renal_transplantation" bool,
"triglyceride_tg" float,
"negative_basal" bool,
"NOUSE" float
) | SELECT * FROM table_dev_19 WHERE renal_transplantation = 1 OR (serum_creatinine > 1.6 AND creatinine_clearance_cl < 60 AND albumin_excretion > 300) |
How many elections have resulted in retired democratic hold? | CREATE TABLE table_18155 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Results" text,
"Candidates" text
) | SELECT COUNT("Party") FROM table_18155 WHERE "Results" = 'Retired Democratic hold' |
what is 2010 when 2006 is 3r? | CREATE TABLE table_name_24 (
Id VARCHAR
) | SELECT 2010 FROM table_name_24 WHERE 2006 = "3r" |
What is the average laps for a grid larger than 2, for a ferrari that got in an accident? | CREATE TABLE table_name_87 (
laps INTEGER,
constructor VARCHAR,
grid VARCHAR,
time_retired VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid > 2 AND time_retired = "accident" AND constructor = "ferrari" |
How many mystic arte have hisui (jadeite) hearts 1 as the character? | CREATE TABLE table_30345 (
"Character" text,
"Game" text,
"Platform" text,
"Status" text,
"Mystic Arte" text,
"Character Voice" text
) | SELECT COUNT("Mystic Arte") FROM table_30345 WHERE "Character" = 'Hisui (Jadeite) Hearts 1' |
What visitor has February 11 as the date? | CREATE TABLE table_name_37 (
visitor VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_37 WHERE date = "february 11" |
What is Pittodrie Stadium's maximum capacity? | CREATE TABLE table_11208143_9 (
capacity INTEGER,
stadium VARCHAR
) | SELECT MAX(capacity) FROM table_11208143_9 WHERE stadium = "Pittodrie" |
what is the standard when the pollutant is o 3 and averaging time is 8-hour? | CREATE TABLE table_44967 (
"Pollutant" text,
"Type" text,
"Standard" text,
"Averaging Time" text,
"Regulatory Citation" text
) | SELECT "Standard" FROM table_44967 WHERE "Pollutant" = 'o 3' AND "Averaging Time" = '8-hour' |
Where did the player who won in 1991 finish? | CREATE TABLE table_61462 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Finish" FROM table_61462 WHERE "Year(s) won" = '1991' |
What city or Raion (district) has 8,600 Bessarabian Bulgarians? | CREATE TABLE table_53048 (
"Raion (district) or City" text,
"Total" text,
"Ukrainians" text,
"Moldovans" text,
"Bessarabian Bulgarians" text,
"Russians" text,
"Gagauzians" text,
"Other ethnic groups\u00b2" text
) | SELECT "Raion (district) or City" FROM table_53048 WHERE "Bessarabian Bulgarians" = '8,600' |
What was the handicap when the prize money was 120s? | CREATE TABLE table_2896329_1 (
handicap VARCHAR,
prize_money VARCHAR
) | SELECT handicap FROM table_2896329_1 WHERE prize_money = "120s" |
What is the total number of losses of the team with games less than 14, wins less than 3, in the Maac Conference at Fairfield School? | CREATE TABLE table_44082 (
"School" text,
"Conference" text,
"Games" real,
"Wins" real,
"Losses" real,
"Winning Pct." real
) | SELECT COUNT("Losses") FROM table_44082 WHERE "Games" < '14' AND "Wins" < '3' AND "Conference" = 'maac' AND "School" = 'fairfield' |
Where was game 41 held, and how many people attended? | CREATE TABLE table_22883210_7 (
location_attendance VARCHAR,
game VARCHAR
) | SELECT location_attendance FROM table_22883210_7 WHERE game = 41 |
What is the party for the representative who was first elected before 2002 and the results were re-elected? | CREATE TABLE table_61823 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
) | SELECT "Party" FROM table_61823 WHERE "Results" = 're-elected' AND "First elected" < '2002' |
For outgoing manager is alberto malesani mention all the applicable replaced by person | CREATE TABLE table_3703 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Replaced by" FROM table_3703 WHERE "Outgoing manager" = 'Alberto Malesani' |
Show all majors and corresponding number of students. Plot them as scatter chart. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
) | SELECT Major, COUNT(*) FROM Student GROUP BY Major |
What was the score on February 21 when the home team was the Pittsburgh Penguins? | CREATE TABLE table_60623 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Score" FROM table_60623 WHERE "Home" = 'pittsburgh penguins' AND "Date" = 'february 21' |
which are they only two names that have spain as their country of origin ? | CREATE TABLE table_203_573 (
id number,
"name" text,
"rank - 2000" number,
"number" number,
"country of origin" text,
"england - 2001" text
) | SELECT "name" FROM table_203_573 WHERE "country of origin" = 'spain' |
who won the south after esc geretsried did during the 2006-07 season ? | CREATE TABLE table_204_1 (
id number,
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
) | SELECT "south" FROM table_204_1 WHERE id = (SELECT id FROM table_204_1 WHERE "south" = 'esc geretsried') + 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.