instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
can you find the top entered service ? | CREATE TABLE table_204_882 (
id number,
"number" number,
"builder" text,
"entered service" text,
"withdrawn" text,
"notes" text
) | SELECT "entered service" FROM table_204_882 WHERE id = 1 |
What is the rank of American Pie 2? | CREATE TABLE table_name_4 (
rank INTEGER,
title VARCHAR
) | SELECT MIN(rank) FROM table_name_4 WHERE title = "american pie 2" |
What is canada's margin? | CREATE TABLE table_name_40 (
margin INTEGER,
country VARCHAR
) | SELECT SUM(margin) FROM table_name_40 WHERE country = "canada" |
On March 23, what is the site/stadium? | CREATE TABLE table_name_21 (
site_stadium VARCHAR,
date VARCHAR
) | SELECT site_stadium FROM table_name_21 WHERE date = "march 23" |
What Meet has a Time of 1:04.84? | CREATE TABLE table_name_5 (
meet VARCHAR,
time VARCHAR
) | SELECT meet FROM table_name_5 WHERE time = "1:04.84" |
list names of all departments ordered by their names. | CREATE TABLE department (
dept_name VARCHAR
) | SELECT dept_name FROM department ORDER BY dept_name |
Which nation finished with a time of 47.049? | CREATE TABLE table_75224 (
"Sport" text,
"Record" text,
"Nation" text,
"Date" text,
"Time (sec.)" real
) | SELECT "Nation" FROM table_75224 WHERE "Time (sec.)" = '47.049' |
Which manufacturer has a grid of 6? | CREATE TABLE table_name_25 (
manufacturer VARCHAR,
grid VARCHAR
) | SELECT manufacturer FROM table_name_25 WHERE grid = "6" |
What is the crystal structure for the formula yba 2 cu 3 o 7? | CREATE TABLE table_15972 (
"Formula" text,
"Notation" text,
"T c (K)" real,
"No. of Cu-O planes in unit cell" real,
"Crystal structure" text
) | SELECT "Crystal structure" FROM table_15972 WHERE "Formula" = 'YBa 2 Cu 3 O 7' |
If the Plain stop is , what is the Non- stop? | CREATE TABLE table_9325 (
"Articulatory class" text,
"Non- stop" text,
"Plain stop" text,
"Aspirated stop" text,
"\"Muddy\" voice" text
) | SELECT "Non- stop" FROM table_9325 WHERE "Plain stop" = 'ㄷ' |
What is the Score with a Team that is @ portland? | CREATE TABLE table_name_1 (
score VARCHAR,
team VARCHAR
) | SELECT score FROM table_name_1 WHERE team = "@ portland" |
Which Language Director of nagisa oshima use in his film? | CREATE TABLE table_name_54 (
language VARCHAR,
director VARCHAR
) | SELECT language FROM table_name_54 WHERE director = "nagisa oshima" |
What type of surface was played on July 27, 2013? | CREATE TABLE table_9191 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Surface" FROM table_9191 WHERE "Date" = 'july 27, 2013' |
What is the attendance when the opponent was the Houston Oilers? | CREATE TABLE table_name_47 (
attendance VARCHAR,
opponent VARCHAR
) | SELECT attendance FROM table_name_47 WHERE opponent = "houston oilers" |
What episoe number in the season originally aired on February 11, 1988? | CREATE TABLE table_2818164_5 (
no_in_season VARCHAR,
original_air_date VARCHAR
) | SELECT no_in_season FROM table_2818164_5 WHERE original_air_date = "February 11, 1988" |
What is the original air date of the episode that had a week ranking of 21? | CREATE TABLE table_23177573_1 (
original_air_date VARCHAR,
rank__week_ VARCHAR
) | SELECT original_air_date FROM table_23177573_1 WHERE rank__week_ = 21 |
Show each county along with the number of schools and total enrollment in each county. | CREATE TABLE school (
county VARCHAR,
enrollment INTEGER
) | SELECT county, COUNT(*), SUM(enrollment) FROM school GROUP BY county |
What is the production number of From Hare to Heir? | CREATE TABLE table_name_33 (
production_number INTEGER,
title VARCHAR
) | SELECT SUM(production_number) FROM table_name_33 WHERE title = "from hare to heir" |
Name the % yes for yes votes for 78961 | CREATE TABLE table_3352 (
"meas. num" real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
) | SELECT "% YES" FROM table_3352 WHERE "YES votes" = '78961' |
Name the religion that has a growth rate of 1.56% | CREATE TABLE table_30291 (
"Religion" text,
"Births" real,
"Conversions" text,
"New adherents per year" real,
"Growth rate" text
) | SELECT "Religion" FROM table_30291 WHERE "Growth rate" = '1.56%' |
How many new entries this round have clubs 2 1? | CREATE TABLE table_75454 (
"Round" text,
"Date" text,
"Matches" real,
"Clubs" text,
"New entries this round" text,
"Prize money" text
) | SELECT "New entries this round" FROM table_75454 WHERE "Clubs" = '2 → 1' |
What is the low lap total for a grid larger than 16 and has a Time/Retired of + 3:27.3? | CREATE TABLE table_78184 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT MIN("Laps") FROM table_78184 WHERE "Time/Retired" = '+ 3:27.3' AND "Grid" > '16' |
What is the Catalog Number is for the Japan region? | CREATE TABLE table_name_59 (
catalog VARCHAR,
region VARCHAR
) | SELECT catalog FROM table_name_59 WHERE region = "japan" |
What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd? | CREATE TABLE table_69839 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
) | SELECT MIN("Year") FROM table_69839 WHERE "Class" = '125cc' AND "Points" > '102' AND "Rank" = '2nd' |
What is the Year born (Age) for the player who is taller than 2.04 and currently plays for the Los Angeles Clippers? | CREATE TABLE table_name_93 (
year_born__age_ VARCHAR,
height VARCHAR,
current_club VARCHAR
) | SELECT year_born__age_ FROM table_name_93 WHERE height > 2.04 AND current_club = "los angeles clippers" |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of founder and the sum of manufacturer , and group by attribute founder, and I want to sort X-axis in asc order. | 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, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder |
What are the total enrollments of universities of each affiliation type Plot them as bar chart, and I want to show by the sum enrollment in desc. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT Affiliation, SUM(Enrollment) FROM university GROUP BY Affiliation ORDER BY SUM(Enrollment) DESC |
Name the percentage for ole miss | CREATE TABLE table_22825679_1 (
percentage VARCHAR,
team VARCHAR
) | SELECT percentage FROM table_22825679_1 WHERE team = "Ole Miss" |
Who was the young rider classification when Alessandro Petacchi won? | CREATE TABLE table_30586 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text
) | SELECT "Young rider classification" FROM table_30586 WHERE "Winner" = 'Alessandro Petacchi' |
What was the qualifying 2 time for the team with a qualifying 1 time of 1:01.630? | CREATE TABLE table_5195 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
) | SELECT "Qual 2" FROM table_5195 WHERE "Qual 1" = '1:01.630' |
What lowest games have 20 goals and a Goal Ratio smaller than 0.14? | CREATE TABLE table_name_51 (
games INTEGER,
goals VARCHAR,
goal_ratio VARCHAR
) | SELECT MIN(games) FROM table_name_51 WHERE goals = 20 AND goal_ratio < 0.14 |
What was the most recent year the venue was Barcelona, Spain? | CREATE TABLE table_7804 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Event" text
) | SELECT MAX("Year") FROM table_7804 WHERE "Venue" = 'barcelona, spain' |
List the names of courses in alphabetical order? | CREATE TABLE courses (
course_name VARCHAR
) | SELECT course_name FROM courses ORDER BY course_name |
What is the highest value for Byes, when Wins is less than 16, when Benalla DFL is 'Swanpool', and when Against is less than 2177? | CREATE TABLE table_name_64 (
byes INTEGER,
against VARCHAR,
wins VARCHAR,
benalla_dfl VARCHAR
) | SELECT MAX(byes) FROM table_name_64 WHERE wins < 16 AND benalla_dfl = "swanpool" AND against < 2177 |
What is the total number of Losses that Melton had when they had fewer Draws than 0? | CREATE TABLE table_name_35 (
losses INTEGER,
ballarat_fl VARCHAR,
draws VARCHAR
) | SELECT SUM(losses) FROM table_name_35 WHERE ballarat_fl = "melton" AND draws < 0 |
Who is the replaced by when the date of vacancy is 27 december 2010? | CREATE TABLE table_26998135_2 (
replaced_by VARCHAR,
date_of_vacancy VARCHAR
) | SELECT replaced_by FROM table_26998135_2 WHERE date_of_vacancy = "27 December 2010" |
In what Weeks is the game against the Tampa Bay Buccaneers with less than 44,506 in Attendance? | CREATE TABLE table_47699 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT SUM("Week") FROM table_47699 WHERE "Opponent" = 'tampa bay buccaneers' AND "Attendance" < '44,506' |
What year was the Line of Gardermobanen completed? | CREATE TABLE table_77992 (
"Name" text,
"Location" text,
"Length in km (mi)" text,
"Year Completed" text,
"Line" text
) | SELECT "Year Completed" FROM table_77992 WHERE "Line" = 'gardermobanen' |
Which Date has a Rockets score of 94, and a Game of 66? | CREATE TABLE table_46831 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Rockets score" real,
"Opponents" real,
"Record" text,
"Streak" text
) | SELECT "Date" FROM table_46831 WHERE "Rockets score" = '94' AND "Game" = '66' |
What U.S. Rap has life in the concrete jungle as the album? | CREATE TABLE table_63575 (
"Year" real,
"U.S. Hot 100" text,
"U.S. R&B" text,
"U.S. Rap" text,
"Album" text
) | SELECT "U.S. Rap" FROM table_63575 WHERE "Album" = 'life in the concrete jungle' |
Who was the driver when the time in part 3 was 1:31.386? | CREATE TABLE table_2233 (
"Pos" text,
"No" text,
"Driver" text,
"Constructor" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Grid" text
) | SELECT "Driver" FROM table_2233 WHERE "Part 1" = '1:31.386' |
what is the y = 2008 when the expression is easter day (julian calendar)? | CREATE TABLE table_214479_8 (
y_ VARCHAR,
_2008 VARCHAR,
expression VARCHAR
) | SELECT y_ = _2008 FROM table_214479_8 WHERE expression = "Easter Day (Julian calendar)" |
what was the score when goran ivani evi was runner up and the tournament was in algarve? | CREATE TABLE table_name_53 (
score VARCHAR,
runner_up VARCHAR,
tournament VARCHAR
) | SELECT score FROM table_name_53 WHERE runner_up = "goran ivanišević" AND tournament = "algarve" |
What is Score, when Visitor is 'Pittsburgh', and when Points is greater than 18? | CREATE TABLE table_47364 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Score" FROM table_47364 WHERE "Visitor" = 'pittsburgh' AND "Points" > '18' |
Name the most derby county | CREATE TABLE table_15201666_3 (
derby_county INTEGER
) | SELECT MAX(derby_county) FROM table_15201666_3 |
What party was Lane Evans? | CREATE TABLE table_1341568_14 (
party VARCHAR,
incumbent VARCHAR
) | SELECT party FROM table_1341568_14 WHERE incumbent = "Lane Evans" |
What is the traffic direction of 97th street? | CREATE TABLE table_name_94 (
traffic_direction VARCHAR,
street VARCHAR
) | SELECT traffic_direction FROM table_name_94 WHERE street = "97th street" |
WHAT HOME TEAM SCORED 9.11 (65)? | CREATE TABLE table_33339 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_33339 WHERE "Home team score" = '9.11 (65)' |
Name the high rebounds for 17-33 | CREATE TABLE table_25833 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High rebounds" FROM table_25833 WHERE "Record" = '17-33' |
Please show the songs that have result 'nominated' at music festivals. | CREATE TABLE artist (
artist_id number,
artist text,
age number,
famous_title text,
famous_release_date text
)
CREATE TABLE music_festival (
id number,
music_festival text,
date_of_ceremony text,
category text,
volume number,
result text
)
CREATE TABLE volume (
volume_id number,
volume_issue text,
issue_date text,
weeks_on_top number,
song text,
artist_id number
) | SELECT T2.song FROM music_festival AS T1 JOIN volume AS T2 ON T1.volume = T2.volume_id WHERE T1.result = "Nominated" |
Count the hometown by hometown, and sort from high to low by the y-axis. | CREATE TABLE membership_register_branch (
Member_ID int,
Branch_ID text,
Register_Year text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,
Year text,
Total_pounds real
)
CREATE TABLE branch (
Branch_ID int,
Name text,
Open_year text,
Address_road text,
City text,
membership_amount text
)
CREATE TABLE member (
Member_ID int,
Card_Number text,
Name text,
Hometown text,
Level int
) | SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY COUNT(Hometown) DESC |
How many races had the pole position Alain Prost and the race winner Keke Rosberg? | CREATE TABLE table_16730 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT COUNT("Race") FROM table_16730 WHERE "Pole Position" = 'Alain Prost' AND "Race Winner" = 'Keke Rosberg' |
Show party names and the number of events for each party. Visualize by pie chart. | CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office 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
) | SELECT Party_name, COUNT(*) FROM party_events AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID |
what's the winner with purse( $ ) value of bigger than 964017.2297960471 and date value of may 28 | CREATE TABLE table_11621915_1 (
winner VARCHAR,
purse__$__ VARCHAR,
date VARCHAR
) | SELECT winner FROM table_11621915_1 WHERE purse__$__ > 964017.2297960471 AND date = "May 28" |
What time in eastern standard time was game held at denver broncos? | CREATE TABLE table_14433719_1 (
time___et__ VARCHAR,
opponent VARCHAR
) | SELECT time___et__ FROM table_14433719_1 WHERE opponent = "at Denver Broncos" |
What 2009 has 39th as the 2011? | CREATE TABLE table_name_45 (
Id VARCHAR
) | SELECT 2009 FROM table_name_45 WHERE 2011 = "39th" |
what is the date when the opponent# is iowa? | CREATE TABLE table_name_42 (
date VARCHAR,
opponent_number VARCHAR
) | SELECT date FROM table_name_42 WHERE opponent_number = "iowa" |
On average, when were vineyard schools founded? | CREATE TABLE table_name_13 (
founded INTEGER,
suburb_town VARCHAR
) | SELECT AVG(founded) FROM table_name_13 WHERE suburb_town = "vineyard" |
Where does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside? | CREATE TABLE table_26758262_1 (
judges_residence VARCHAR,
municipalities_served VARCHAR
) | SELECT judges_residence FROM table_26758262_1 WHERE municipalities_served = "Beacon Falls , Naugatuck , Middlebury , Prospect" |
What is Segment A where Segment C is Sushi (part 1)? | CREATE TABLE table_15187735_15 (
segment_a VARCHAR,
segment_c VARCHAR
) | SELECT segment_a FROM table_15187735_15 WHERE segment_c = "Sushi (Part 1)" |
What's the 1949/50 expenditure (in $ millions) in the country where the 1948/49 expenditure was 232$ millions? | CREATE TABLE table_2155 (
"Country" text,
"1948/49 ($ millions)" real,
"1949/50 ($ millions)" real,
"1950/51 ($ millions)" real,
"Cumulative ($ millions)" real
) | SELECT MAX("1949/50 ($ millions)") FROM table_2155 WHERE "1948/49 ($ millions)" = '232' |
Which School/Club Team has a Round smaller than 5, a Pick larger than 1, and a Player of reggie mckenzie? | CREATE TABLE table_name_97 (
school_club_team VARCHAR,
player VARCHAR,
round VARCHAR,
pick VARCHAR
) | SELECT school_club_team FROM table_name_97 WHERE round < 5 AND pick > 1 AND player = "reggie mckenzie" |
On what Date was the Opponent the Tennessee Titans? | CREATE TABLE table_name_47 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_47 WHERE opponent = "tennessee titans" |
Which bi-directional route has a terminus at Ecat/Rosa Park Transit Center? | CREATE TABLE table_name_50 (
name VARCHAR,
direction VARCHAR,
terminus VARCHAR
) | SELECT name FROM table_name_50 WHERE direction = "bi-directional" AND terminus = "ecat/rosa park transit center" |
What is the broadcast date for the episode titled, 'From Hong Kong to Ulaanbaatar'? | CREATE TABLE table_5301 (
"Episode No." text,
"Episode Title" text,
"UK Broadcast Date" text,
"Presenter" text,
"Countries Visited" text
) | SELECT "UK Broadcast Date" FROM table_5301 WHERE "Episode Title" = 'from hong kong to ulaanbaatar' |
I want the years for marathon distance and wins of 3 | CREATE TABLE table_name_15 (
years VARCHAR,
distance VARCHAR,
wins VARCHAR
) | SELECT years FROM table_name_15 WHERE distance = "marathon" AND wins = 3 |
Name the total number of domestic mail for 7853 for total frieght and mail | CREATE TABLE table_1754531_4 (
domestic_mail VARCHAR,
total_freight_and_mail VARCHAR
) | SELECT COUNT(domestic_mail) FROM table_1754531_4 WHERE total_freight_and_mail = 7853 |
what's the result with incumbent being william h. ayres | CREATE TABLE table_1342013_34 (
result VARCHAR,
incumbent VARCHAR
) | SELECT result FROM table_1342013_34 WHERE incumbent = "William H. Ayres" |
What is the % of points possible of the winner from Penn State? | CREATE TABLE table_42499 (
"Year" real,
"Winner" text,
"School" text,
"Position" text,
"Points" text,
"% of Points Possible" text
) | SELECT "% of Points Possible" FROM table_42499 WHERE "School" = 'penn state' |
Return the number of music festivals of each category in a bar chart, and could you order x axis in descending order? | CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE volume (
Volume_ID int,
Volume_Issue text,
Issue_Date text,
Weeks_on_Top real,
Song text,
Artist_ID int
)
CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
) | SELECT Category, COUNT(*) FROM music_festival GROUP BY Category ORDER BY Category DESC |
What was the away team's score in Junction Oval? | CREATE TABLE table_56111 (
"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_56111 WHERE "Venue" = 'junction oval' |
Which Game has a Score of 4 1? | CREATE TABLE table_75443 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT SUM("Game") FROM table_75443 WHERE "Score" = '4–1' |
What is the athlete muna lee lowest time? | CREATE TABLE table_name_45 (
time INTEGER,
athlete VARCHAR
) | SELECT MIN(time) FROM table_name_45 WHERE athlete = "muna lee" |
Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes? | CREATE TABLE table_68016 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
) | SELECT "Adelaide" FROM table_68016 WHERE "Melbourne" = 'yes' AND "Auckland" = 'yes' AND "Perth" = 'yes' |
What is the total number of Points that Peter Whitehead earned in a Ferrari 125? | CREATE TABLE table_name_42 (
points INTEGER,
entrant VARCHAR,
chassis VARCHAR
) | SELECT SUM(points) FROM table_name_42 WHERE entrant = "peter whitehead" AND chassis = "ferrari 125" |
What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5? | CREATE TABLE table_49483 (
"Rifle" text,
"Danish Krag-J\u00f8rgensen 1889" text,
"US Krag-J\u00f8rgensen M1892" text,
"Norwegian Krag-J\u00f8rgensen M1894" text,
"Japanese Type 38 Rifle" text,
"German Gewehr 98" text,
"British Lee-Enfield (data for late model)" text
) | SELECT "British Lee-Enfield (data for late model)" FROM table_49483 WHERE "Japanese Type 38 Rifle" = '5' |
What is Teleplay, when Director is 'George McCowan', when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981? | CREATE TABLE table_48778 (
"Title" text,
"Season" real,
"Director" text,
"Teleplay" text,
"First Broadcast" text
) | SELECT "Teleplay" FROM table_48778 WHERE "Director" = 'george mccowan' AND "Season" < '1.1400000000000001' AND "First Broadcast" = 'april 3, 1981' |
How many games were played on october 16? | CREATE TABLE table_3875 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("High points") FROM table_3875 WHERE "Date" = 'October 16' |
What is the smallest number of extra points for a left halfback? | CREATE TABLE table_25517718_3 (
extra_points INTEGER,
position VARCHAR
) | SELECT MIN(extra_points) FROM table_25517718_3 WHERE position = "Left halfback" |
What is the total average for the England team when the wickets are less than 18, the best bowling is 4/138, and there are less than 3 matches? | CREATE TABLE table_49940 (
"Player" text,
"Team" text,
"Matches" real,
"Wickets" real,
"Average" real,
"Best Bowling" text
) | SELECT COUNT("Average") FROM table_49940 WHERE "Team" = 'england' AND "Wickets" < '18' AND "Best Bowling" = '4/138' AND "Matches" < '3' |
Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year? | CREATE TABLE table_67776 (
"Year" real,
"Role" text,
"Author" text,
"Radio Station/Production Company" text,
"Release/Air Date" text
) | SELECT SUM("Year") FROM table_67776 WHERE "Role" = 'narrator' AND "Radio Station/Production Company" = 'bbc audiobooks' AND "Release/Air Date" = '13 november 2008' |
When 2010 is the first elected and Florida 7 is the district who are the candidates? | CREATE TABLE table_25030512_12 (
candidates VARCHAR,
district VARCHAR,
first_elected VARCHAR
) | SELECT candidates FROM table_25030512_12 WHERE district = "Florida 7" AND first_elected = "2010" |
current alcohol abuse | CREATE TABLE table_train_185 (
"id" int,
"dyscrasia" bool,
"bleeding" int,
"panic_disorder" bool,
"renal_disease" bool,
"anxiety" bool,
"creatinine_clearance_cl" float,
"alcohol_abuse" bool,
"retinopathy" bool,
"NOUSE" float
) | SELECT * FROM table_train_185 WHERE alcohol_abuse = 1 |
What away is there for the q3 round? | CREATE TABLE table_name_68 (
away VARCHAR,
round VARCHAR
) | SELECT away FROM table_name_68 WHERE round = "q3" |
What is the verb for Khola? | CREATE TABLE table_76514 (
"Verb" text,
"2 (VF)" text,
"2 (F)" text,
"3 (F)" text,
"2/3 (P)" text
) | SELECT "3 (F)" FROM table_76514 WHERE "Verb" = 'khola' |
In what year was Lindenwood University founded? | CREATE TABLE table_15916 (
"School" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
) | SELECT MIN("Founded") FROM table_15916 WHERE "School" = 'Lindenwood University' |
What year did a school leave that was founded in 1880? | CREATE TABLE table_17010 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real,
"Left" real,
"Current Conference" text
) | SELECT "Left" FROM table_17010 WHERE "Founded" = '1880' |
plasma creatinine > 2 mg / dl. | CREATE TABLE table_train_119 (
"id" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"diastolic_blood_pressure_dbp" int,
"hypotension" bool,
"allergy_to_milk" bool,
"allergy_to_soy" bool,
"body_mass_index_bmi" float,
"plasma_creatinine" float,
"NOUSE" float
) | SELECT * FROM table_train_119 WHERE plasma_creatinine > 2 |
What is the Season with an Acquisition via of rookie draft, and the number is 15? | CREATE TABLE table_43168 (
"Name" text,
"Position" text,
"Number" text,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
) | SELECT "Season" FROM table_43168 WHERE "Acquisition via" = 'rookie draft' AND "Number" = '15' |
in which date the strea was w 2 | CREATE TABLE table_31445 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Series" text,
"Streak" text
) | SELECT "Date" FROM table_31445 WHERE "Streak" = 'W 2' |
Show the employee ids and the number of documents destroyed by each employee. | CREATE TABLE Documents_to_be_destroyed (
Destroyed_by_Employee_ID VARCHAR
) | SELECT Destroyed_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID |
Which highest 'goals against' number had wins of 19 and a 'goals for' number that was bigger than 53? | CREATE TABLE table_53525 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MAX("Goals against") FROM table_53525 WHERE "Wins" = '19' AND "Goals for" > '53' |
Before 1956, what Chassis has Gordini Straight-4 engine with 3 points? | CREATE TABLE table_80101 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Chassis" FROM table_80101 WHERE "Year" < '1956' AND "Engine" = 'gordini straight-4' AND "Points" = '3' |
WHich Partner has a Outcome of winner, and a Opponents in the final of rick leach jim pugh? | CREATE TABLE table_name_3 (
partner VARCHAR,
outcome VARCHAR,
opponents_in_the_final VARCHAR
) | SELECT partner FROM table_name_3 WHERE outcome = "winner" AND opponents_in_the_final = "rick leach jim pugh" |
What is the highest position Talk on Corners, which had an issue date greater than 1, had? | CREATE TABLE table_38374 (
"Issue Date" real,
"Album Title" text,
"Artist" text,
"Sales" real,
"Highest Position" real
) | SELECT COUNT("Highest Position") FROM table_38374 WHERE "Album Title" = 'talk on corners' AND "Issue Date" > '1' |
renal insufficiency: serum creatinine > 1.3 mg / dl ( male ) or > 1.2 mg / dl ( female ) | CREATE TABLE table_train_184 (
"id" int,
"gender" string,
"systolic_blood_pressure_sbp" int,
"heart_disease" bool,
"renal_disease" bool,
"hematocrit_hct" float,
"allergy_to_insulin_lispro" bool,
"diastolic_blood_pressure_dbp" int,
"serum_creatinine" float,
"hypertension" bool,
"NOUSE" float
) | SELECT * FROM table_train_184 WHERE renal_disease = 1 OR ((gender = 'male' AND serum_creatinine > 1.3) OR (gender = 'female' AND serum_creatinine > 1.2)) |
Which Result has a Game smaller than 37, and a Streak of lost 1, and a Record of 4-9? | CREATE TABLE table_name_40 (
result VARCHAR,
record VARCHAR,
game VARCHAR,
streak VARCHAR
) | SELECT result FROM table_name_40 WHERE game < 37 AND streak = "lost 1" AND record = "4-9" |
Who is the opponent in the Tournament of Lahore final? | CREATE TABLE table_57816 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Opponent in the final" FROM table_57816 WHERE "Tournament" = 'lahore' |
weight > 200 kg | CREATE TABLE table_train_66 (
"id" int,
"pregnancy_or_lactation" bool,
"white_blood_cell_count_wbc" int,
"acute_pyelonephritis" bool,
"intrabdominal_infection" bool,
"body_weight" float,
"oxygen_therapy_by_face_mask" bool,
"temperature" float,
"heart_rate" int,
"paco2" float,
"band_form" int,
"respiratory_rate" int,
"bacteremia_by_gram_negative_bacteria" bool,
"NOUSE" float
) | SELECT * FROM table_train_66 WHERE body_weight > 200 |
Show details of all investors if they make any transaction with share count greater than 100. | CREATE TABLE TRANSACTIONS (
investor_id VARCHAR,
share_count INTEGER
)
CREATE TABLE INVESTORS (
Investor_details VARCHAR,
investor_id VARCHAR
) | SELECT T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.share_count > 100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.