instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
Name the least 2 credits for flush | CREATE TABLE table_19612 (
"Hand" text,
"1 credit" real,
"2 credits" real,
"3 credits" real,
"4 credits" real,
"5 credits" real
) | SELECT MIN("2 credits") FROM table_19612 WHERE "Hand" = 'Flush' |
Who was the incumbent in Virginia 3? | CREATE TABLE table_2668374_18 (
incumbent VARCHAR,
district VARCHAR
) | SELECT incumbent FROM table_2668374_18 WHERE district = "Virginia 3" |
Station Ownership of eicb tv, and a Call sign of ktcj-ld is what virtual network? | CREATE TABLE table_75027 (
"Call sign" text,
"Analog channel" text,
"Digital channel" text,
"Virtual channel" text,
"Network" text,
"Station Ownership" text
) | SELECT "Virtual channel" FROM table_75027 WHERE "Station Ownership" = 'eicb tv' AND "Call sign" = 'ktcj-ld' |
What was the minimum OTL amount? | CREATE TABLE table_1961 (
"Season" text,
"League" text,
"Division" text,
"GP" real,
"W" real,
"L" real,
"T" real,
"OTL" real,
"SOL" real,
"Pts" real,
"PCT" text,
"GF" real,
"GA" real,
"PIM" real,
"Coach(es)" text,
"Result" text
) | SELECT MIN("OTL") FROM table_1961 |
Show the position of players and the corresponding number of players with a bar chart. | CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL text,
Team int
)
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_language text
)
CREATE TABLE match_season (
Season real,
Player text,
Position text,
Country int,
Team int,
Draft_Pick_Number int,
Draft_Class text,
College text
)
CREATE TABLE team (
Team_id int,
Name text
) | SELECT Position, COUNT(*) FROM match_season GROUP BY Position |
What base pair has 832 genes? | CREATE TABLE table_name_79 (
base_pairs VARCHAR,
genes VARCHAR
) | SELECT base_pairs FROM table_name_79 WHERE genes = 832 |
What was the par for the t5 place player Steve Jones? | CREATE TABLE table_44634 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "To par" FROM table_44634 WHERE "Place" = 't5' AND "Player" = 'steve jones' |
What date has ny islanders as the visitor? | CREATE TABLE table_34997 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" text,
"Record" text
) | SELECT "Date" FROM table_34997 WHERE "Visitor" = 'ny islanders' |
When the Home team score was 15.18 (108), what's the lowest Crowd turnout? | CREATE TABLE table_77874 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_77874 WHERE "Home team score" = '15.18 (108)' |
List the name of the colleges whose enrollment is greater 18000 sorted by the college's name. | 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 cname FROM college WHERE enr > 18000 ORDER BY cname |
Who is the player from Japan? | CREATE TABLE table_name_9 (
player VARCHAR,
country VARCHAR
) | SELECT player FROM table_name_9 WHERE country = "japan" |
How long was the 16 staged event in 1997? | CREATE TABLE table_name_38 (
distance VARCHAR,
stages VARCHAR,
year VARCHAR
) | SELECT distance FROM table_name_38 WHERE stages = "16" AND year = "1997" |
What is the earliest first elected for district georgia 1? | CREATE TABLE table_72389 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT MIN("First elected") FROM table_72389 WHERE "District" = 'Georgia 1' |
Draw a bar chart for what are the destinations and number of flights to each one?, I want to list from high to low by the Y-axis. | 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)
)
CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
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)
) | SELECT destination, COUNT(*) FROM flight GROUP BY destination ORDER BY COUNT(*) DESC |
What Label released an album in August 1996? | CREATE TABLE table_77117 (
"Title" text,
"Release Date" text,
"Format" text,
"Release" text,
"Label" text,
"Code" text
) | SELECT "Label" FROM table_77117 WHERE "Release Date" = 'august 1996' |
Which Place that has Money of 150, and a Player of bobby cruickshank? | CREATE TABLE table_59954 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT "Place" FROM table_59954 WHERE "Money ( $ )" = '150' AND "Player" = 'bobby cruickshank' |
What is the award type for all Lowe awards? | CREATE TABLE table_69966 (
"Date" text,
"Country" text,
"Name" text,
"Award" text,
"Notes" text
) | SELECT "Award" FROM table_69966 WHERE "Name" = 'lowe' |
Find the average age of students living in each city with a bar chart. | CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
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 Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
) | SELECT city_code, AVG(Age) FROM Student GROUP BY city_code |
Return a bar chart on what is the state and enrollment of the colleges where have any students who got accepted in the tryout decision. | CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) | SELECT state, enr FROM College AS T1 JOIN Tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' |
What is the year the institution Tougaloo College joined? | CREATE TABLE table_16187 (
"Institution" text,
"Location" text,
"Mens Nickname" text,
"Womens Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text
) | SELECT "Joined" FROM table_16187 WHERE "Institution" = 'Tougaloo College' |
What is the frequency of the model whose part number is ado520biaa5do? | CREATE TABLE table_13869651_3 (
frequency VARCHAR,
part_number_s_ VARCHAR
) | SELECT frequency FROM table_13869651_3 WHERE part_number_s_ = "ADO520BIAA5DO" |
what's the cancelable with bubbles being yes | CREATE TABLE table_1507852_5 (
cancelable VARCHAR,
bubbles VARCHAR
) | SELECT cancelable FROM table_1507852_5 WHERE bubbles = "Yes" |
What Partner has a Construction Start of 2008 january? | CREATE TABLE table_name_2 (
partner VARCHAR,
construction_start VARCHAR
) | SELECT partner FROM table_name_2 WHERE construction_start = "2008 january" |
What date did the away team Mansfield Town play? | CREATE TABLE table_name_56 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_56 WHERE away_team = "mansfield town" |
What was the net capacity with a gross capacity of 1,126 mw, and a Unit of tianwan-4? | CREATE TABLE table_name_74 (
net_capacity VARCHAR,
gross_capacity VARCHAR,
unit VARCHAR
) | SELECT net_capacity FROM table_name_74 WHERE gross_capacity = "1,126 mw" AND unit = "tianwan-4" |
Who's in the high rebounds in the verizon center 9,263 location attendance? | CREATE TABLE table_27721131_2 (
high_rebounds VARCHAR,
location_attendance VARCHAR
) | SELECT high_rebounds FROM table_27721131_2 WHERE location_attendance = "Verizon Center 9,263" |
WHAT IS 'DAVE MOVES OUT' PRODUCTION CODE? | CREATE TABLE table_17387 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT "Production code" FROM table_17387 WHERE "Title" = 'Dave Moves Out' |
What is listed as the highest Year that's also got a Bronze of Wataru Haraguchi? | CREATE TABLE table_name_1 (
year INTEGER,
bronze VARCHAR
) | SELECT MAX(year) FROM table_name_1 WHERE bronze = "wataru haraguchi" |
how many points scored by sportivo luque o | CREATE TABLE table_21068 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) | SELECT COUNT("Points") FROM table_21068 WHERE "Team" = 'Sportivo Luqueño' |
What is the smallest ansi code? | CREATE TABLE table_18600760_13 (
ansi_code INTEGER
) | SELECT MIN(ansi_code) FROM table_18600760_13 |
Which Name had the Source, World Bank, and a Rank smaller than 110, Out of a number smaller than 199? | CREATE TABLE table_name_48 (
name VARCHAR,
out_of VARCHAR,
source VARCHAR,
rank VARCHAR
) | SELECT name FROM table_name_48 WHERE source = "world bank" AND rank < 110 AND out_of < 199 |
which composer is listed below pete doherty ? | CREATE TABLE table_204_969 (
id number,
"composer" text,
"title" text,
"genre" text,
"date" number,
"notes" text
) | SELECT "composer" FROM table_204_969 WHERE id = (SELECT id FROM table_204_969 WHERE "composer" = 'pete doherty') + 1 |
What date is week 3? | CREATE TABLE table_name_77 (
date VARCHAR,
week VARCHAR
) | SELECT date FROM table_name_77 WHERE week = 3 |
What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook Category:Articles with hCards and has a Total thats less than 11? | CREATE TABLE table_name_64 (
fa_cup VARCHAR,
total VARCHAR,
play_offs VARCHAR,
name VARCHAR
) | SELECT COUNT(fa_cup) FROM table_name_64 WHERE play_offs = 3 AND name = "mitch cook category:articles with hcards" AND total < 11 |
display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a T . | CREATE TABLE employees (
employee_id VARCHAR,
first_name VARCHAR,
last_name VARCHAR,
department_id VARCHAR
) | SELECT employee_id, first_name, last_name FROM employees WHERE department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%T%') |
If the passengers are 15,505,566, what is the iata code? | CREATE TABLE table_22096 (
"Rank" real,
"Airport Name" text,
"Location" text,
"IATA Code" text,
"Passengers" text,
"% Chg. 2009/10" text
) | SELECT "IATA Code" FROM table_22096 WHERE "Passengers" = '15,505,566' |
Score of 0 0, and a Date of 02-jan-64 had what result? | CREATE TABLE table_35093 (
"Date" text,
"Result" text,
"Score" text,
"Venue" text,
"Competition" text
) | SELECT "Result" FROM table_35093 WHERE "Score" = '0–0' AND "Date" = '02-jan-64' |
Windy hill is the home to what team? | CREATE TABLE table_name_85 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team FROM table_name_85 WHERE venue = "windy hill" |
Name the windows builders for apache gump | CREATE TABLE table_25529 (
"Name" text,
"Platform" text,
"License" text,
"Windows builders" text,
"Java builders" text,
"Other builders" text,
"SCM system" text,
"Notification" text,
"IDE Integration" text,
"Other Integration" text
) | SELECT "Windows builders" FROM table_25529 WHERE "Name" = 'Apache Gump' |
Show the industries shared by companies whose headquarters are 'USA' and companies whose headquarters are 'China'. | CREATE TABLE Companies (
Industry VARCHAR,
Headquarters VARCHAR
) | SELECT Industry FROM Companies WHERE Headquarters = "USA" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = "China" |
how many championships are listed ? | CREATE TABLE table_204_287 (
id number,
"outcome" text,
"no." number,
"date" number,
"championship" text,
"surface" text,
"opponent in the final" text,
"score in the final" text
) | SELECT COUNT("championship") FROM table_204_287 |
which club in group stage 4 had member association iran | CREATE TABLE table_19412902_1 (
clubs VARCHAR,
group_stage VARCHAR,
member_association VARCHAR
) | SELECT clubs FROM table_19412902_1 WHERE group_stage = 4 AND member_association = "Iran" |
For the game on 13 December 1975 with Halifax Town as the away team what was the score? | CREATE TABLE table_name_4 (
score VARCHAR,
date VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_4 WHERE date = "13 december 1975" AND away_team = "halifax town" |
how many bosnian in cook islands is sri lankan | CREATE TABLE table_24807774_1 (
bosnian VARCHAR,
cook_islands VARCHAR
) | SELECT bosnian FROM table_24807774_1 WHERE cook_islands = "Sri Lankan" |
Return the characters and durations for each actor. | CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
)
CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
) | SELECT character, duration FROM actor |
Tell me the lowest kazakhstan for kyrghizstan of 4.62 and belarus less than 2.46 | CREATE TABLE table_74485 (
"Year" real,
"Azerbaijan" real,
"Armenia" real,
"Belarus" real,
"Georgia" real,
"Kazakhstan" real,
"Kyrghizstan" real,
"Latvia" real,
"Lithuania" real,
"Moldova" real,
"Russia" real,
"Tajikistan" real,
"Turkmenikstan" real,
"Uzbekistan" real,
"Ukraine" real,
"Estonia" real
) | SELECT MIN("Kazakhstan") FROM table_74485 WHERE "Kyrghizstan" = '4.62' AND "Belarus" < '2.46' |
What is the earliest year with less than 3 points and Parmalat Forti Ford was the entrant? | CREATE TABLE table_name_40 (
year INTEGER,
points VARCHAR,
entrant VARCHAR
) | SELECT MIN(year) FROM table_name_40 WHERE points < 3 AND entrant = "parmalat forti ford" |
List all the MCs with 5 appearances who were inducted in 2007? | CREATE TABLE table_29160596_1 (
top_mc VARCHAR,
appearances VARCHAR,
year_inducted VARCHAR
) | SELECT top_mc FROM table_29160596_1 WHERE appearances = 5 AND year_inducted = 2007 |
Name the colors for north canton | CREATE TABLE table_28737 (
"School" text,
"Nickname" text,
"Location" text,
"Colors" text,
"Join Date" real
) | SELECT "Colors" FROM table_28737 WHERE "Location" = 'North Canton' |
What was the crowd size when the away team scored 7.19 (61)? | CREATE TABLE table_33397 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT COUNT("Crowd") FROM table_33397 WHERE "Away team score" = '7.19 (61)' |
how many episodes only had one performer ? | CREATE TABLE table_203_784 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"performer" text,
"appearance" text,
"air date" text
) | SELECT COUNT(*) FROM table_203_784 |
How many were Wounded while in a Unit with a Complement of 83 off 9 Men? | CREATE TABLE table_name_79 (
wounded VARCHAR,
complement VARCHAR
) | SELECT wounded FROM table_name_79 WHERE complement = "83 off 9 men" |
What is the rd number where the reg GP is 0 and the pick is 150? | CREATE TABLE table_name_24 (
rd__number VARCHAR,
reg_gp VARCHAR,
pick__number VARCHAR
) | SELECT COUNT(rd__number) FROM table_name_24 WHERE reg_gp = 0 AND pick__number = 150 |
What did Melbourne score as the home team? | CREATE TABLE table_53627 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_53627 WHERE "Home team" = 'melbourne' |
what is the place where the person is luke donald | CREATE TABLE table_28498999_6 (
country VARCHAR,
player VARCHAR
) | SELECT country FROM table_28498999_6 WHERE player = "Luke Donald" |
Return a bar chart on what are the id and name of the mountains that have at least 2 photos?, and could you order in desc by the id please? | CREATE TABLE mountain (
id int,
name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE camera_lens (
id int,
brand text,
name text,
focal_length_mm real,
max_aperture real
)
CREATE TABLE photos (
id int,
camera_lens_id int,
mountain_id int,
color text,
name text
) | SELECT T1.name, T1.id FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id ORDER BY T1.id DESC |
What was the minimum population in 2011? | CREATE TABLE table_25852 (
"Mother Tongue" text,
"Population (2006)" real,
"Percentage (2006)" text,
"Population (2011)" real,
"Percentage (2011)" text
) | SELECT MIN("Population (2011)") FROM table_25852 |
What is Jeremy Hill's hometown? | CREATE TABLE table_11677691_1 (
hometown VARCHAR,
player VARCHAR
) | SELECT hometown FROM table_11677691_1 WHERE player = "Jeremy Hill" |
What is the against percentage in the Vest-Agder constituency? | CREATE TABLE table_17861 (
"Constituency" text,
"Electorate" real,
"s Spoilt vote" real,
"Total poll (%)" text,
"For (%)" text,
"Against (%)" text
) | SELECT "Against (%)" FROM table_17861 WHERE "Constituency" = 'Vest-Agder' |
What competition was the World Championships before 2011? | CREATE TABLE table_31874 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) | SELECT "Event" FROM table_31874 WHERE "Competition" = 'world championships' AND "Year" < '2011' |
What team raced with a Foyt engine in the Texas Grand Prix? | CREATE TABLE table_1405704_1 (
team VARCHAR,
race_name VARCHAR,
engine VARCHAR
) | SELECT team FROM table_1405704_1 WHERE race_name = "Texas Grand Prix" AND engine = "Foyt" |
what is the total days held on # 1st ? | CREATE TABLE table_204_23 (
id number,
"#" number,
"wrestlers" text,
"reign" number,
"date" text,
"days held" number,
"location" text,
"event" text,
"notes" text
) | SELECT "days held" FROM table_204_23 WHERE "#" = 1 |
What is the 2011 when the 2010 shows grand slam tournaments? | CREATE TABLE table_name_36 (
Id VARCHAR
) | SELECT 2011 FROM table_name_36 WHERE 2010 = "grand slam tournaments" |
What was the position has a played entry of more than 24? | CREATE TABLE table_name_68 (
position VARCHAR,
played INTEGER
) | SELECT COUNT(position) FROM table_name_68 WHERE played > 24 |
What is the average bronze for less than 0 gold? | CREATE TABLE table_60715 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Bronze") FROM table_60715 WHERE "Gold" < '0' |
List all the participant ids and their details using a bar chart, and rank from high to low by the X-axis. | CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
) | SELECT Participant_Details, Participant_ID FROM Participants ORDER BY Participant_Details DESC |
List the number of companies for each building in a bar chart. | CREATE TABLE Companies (
id int,
name text,
Headquarters text,
Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value_billion text
)
CREATE TABLE Office_locations (
building_id int,
company_id int,
move_in_year int
)
CREATE TABLE buildings (
id int,
name text,
City text,
Height int,
Stories int,
Status text
) | SELECT T2.name, COUNT(T2.name) FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T2.name |
How many times was #7 Oregon a visiting team? | CREATE TABLE table_26842217_6 (
time VARCHAR,
visiting_team VARCHAR
) | SELECT time FROM table_26842217_6 WHERE visiting_team = "#7 Oregon" |
What is the number of played when points against 645? | CREATE TABLE table_13018116_1 (
played VARCHAR,
pts_agst VARCHAR
) | SELECT COUNT(played) FROM table_13018116_1 WHERE pts_agst = 645 |
which location has the most km ? | CREATE TABLE table_204_498 (
id number,
"location" text,
"building" text,
"year" number,
"km" number,
"monument" number
) | SELECT "location" FROM table_204_498 ORDER BY "km" DESC LIMIT 1 |
What was the school type for Los Angeles, California? | CREATE TABLE table_name_51 (
type VARCHAR,
location VARCHAR
) | SELECT type FROM table_name_51 WHERE location = "los angeles, california" |
How many 2007's have a 2000 greater than 56,6, 23,2 as 2006, and a 1998 greater than 61,1? | CREATE TABLE table_75780 (
"Capital/Region" text,
"1997" real,
"1998" real,
"1999" real,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real
) | SELECT SUM("2007") FROM table_75780 WHERE "2000" > '56,6' AND "2006" = '23,2' AND "1998" > '61,1' |
If the rating is 9.1, what was the total viewers? | CREATE TABLE table_26323 (
"Episode number Production number" text,
"Title" text,
"Original airing" text,
"Rating" text,
"Share" real,
"Rating/share (18\u201349)" text,
"Total viewers (in millions)" text
) | SELECT "Total viewers (in millions)" FROM table_26323 WHERE "Rating" = '9.1' |
What was the TO par for the player who scored 70-68-74-70=282? | CREATE TABLE table_name_26 (
to_par VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_26 WHERE score = 70 - 68 - 74 - 70 = 282 |
What is the lowest number of laps obtained by driver Nick Heidfeld? | CREATE TABLE table_name_32 (
laps INTEGER,
driver VARCHAR
) | SELECT MIN(laps) FROM table_name_32 WHERE driver = "nick heidfeld" |
Who had a points average with 0 extra points and 0 field goals? | CREATE TABLE table_name_33 (
points INTEGER,
extra_points VARCHAR,
field_goals VARCHAR
) | SELECT AVG(points) FROM table_name_33 WHERE extra_points = 0 AND field_goals > 0 |
Who is from the united states, has a rank less than 9, and heat more than 5? | CREATE TABLE table_name_79 (
name VARCHAR,
nationality VARCHAR,
rank VARCHAR,
heat VARCHAR
) | SELECT name FROM table_name_79 WHERE rank < 9 AND heat > 5 AND nationality = "united states" |
patient age > 18 years | CREATE TABLE table_train_3 (
"id" int,
"pregnancy_or_lactation" bool,
"severe_sepsis" bool,
"systolic_blood_pressure_sbp" int,
"mean_arterial_pressure_map" int,
"leukocyte_count" int,
"renal_disease" bool,
"temperature" float,
"sepsis" bool,
"hypotension" bool,
"heart_rate" int,
"paco2" float,
"chronic_respiratory_disease" bool,
"hypoperfusion" bool,
"immature_form" int,
"organ_failure" bool,
"septic_shock" bool,
"respiratory_rate" int,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_3 WHERE age > 18 |
Which date had a sport of Academics? | CREATE TABLE table_name_70 (
date VARCHAR,
sport VARCHAR
) | SELECT date FROM table_name_70 WHERE sport = "academics" |
which stadium can hold more people than ballymena showgrounds , but less than windsor park ? | CREATE TABLE table_203_420 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"home team" text
) | SELECT "stadium" FROM table_203_420 WHERE "capacity" > (SELECT "capacity" FROM table_203_420 WHERE "stadium" = 'ballymena showgrounds') AND "capacity" < (SELECT "capacity" FROM table_203_420 WHERE "stadium" = 'windsor park') |
which is the only team that had more than 21 losses ? | CREATE TABLE table_204_135 (
id number,
"position" number,
"club" text,
"played" number,
"points" number,
"wins" number,
"draws" number,
"losses" number,
"goals for" number,
"goals against" number,
"goal difference" number
) | SELECT "club" FROM table_204_135 WHERE "losses" > 21 |
What is Muzzle energy, when Source is hornady? | CREATE TABLE table_name_16 (
muzzle_energy VARCHAR,
source VARCHAR
) | SELECT muzzle_energy FROM table_name_16 WHERE source = "hornady" |
what is the date when the round is qf? | CREATE TABLE table_name_80 (
date VARCHAR,
round VARCHAR
) | SELECT date FROM table_name_80 WHERE round = "qf" |
Find the number of amenities for each of the dorms that can accommodate more than 100 students. | CREATE TABLE has_amenity (
dormid VARCHAR
)
CREATE TABLE dorm (
dormid VARCHAR,
student_capacity INTEGER
) | SELECT COUNT(*), T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid |
What Artist has a Place of 3 or less with a Percentage of 38.60%? | CREATE TABLE table_name_50 (
artist VARCHAR,
place VARCHAR,
percentage VARCHAR
) | SELECT artist FROM table_name_50 WHERE place < 3 AND percentage = "38.60%" |
What is the country of Palmers Shipbuilding and Iron Company? | CREATE TABLE table_13011 (
"Country" text,
"Builder" text,
"Location" text,
"Ship" text,
"Class / type" text
) | SELECT "Country" FROM table_13011 WHERE "Builder" = 'palmers shipbuilding and iron company' |
Show me about the distribution of meter_300 and ID in a bar chart, could you show by the Y-axis in asc? | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
) | SELECT meter_300, ID FROM swimmer ORDER BY ID |
What is the least total? | CREATE TABLE table_30711 (
"Sl. No" real,
"Category wise" text,
"Single lane" real,
"Intermediate lane" real,
"Double lane" real,
"Multi lane" real,
"Total" real
) | SELECT MIN("Total") FROM table_30711 |
Tell me the director nominated for best actor in a leading role | CREATE TABLE table_name_73 (
director VARCHAR,
nomination VARCHAR
) | SELECT director FROM table_name_73 WHERE nomination = "best actor in a leading role" |
In what stadium did a game result in a final scoreline reading 27-34? | CREATE TABLE table_name_30 (
stadium VARCHAR,
final_score VARCHAR
) | SELECT stadium FROM table_name_30 WHERE final_score = "27-34" |
What is the B Score when the total is more than 16.125, and position is 3rd? | CREATE TABLE table_65946 (
"Position" text,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
) | SELECT SUM("B Score") FROM table_65946 WHERE "Total" > '16.125' AND "Position" = '3rd' |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and code , and group by attribute headquarter. | 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 Headquarter, T1.Name |
How many terms did the governor that left office on August 4, 1825 serve? | CREATE TABLE table_name_46 (
terms VARCHAR,
left_office VARCHAR
) | SELECT terms FROM table_name_46 WHERE left_office = "august 4, 1825" |
What is the number of people who attended the game later than game 6? | CREATE TABLE table_69087 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
) | SELECT COUNT("Attendance") FROM table_69087 WHERE "Game" > '6' |
how many times after the year 1989 did she come in 1st position ? | CREATE TABLE table_203_651 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | SELECT COUNT(*) FROM table_203_651 WHERE "position" = 1 AND "year" > 1989 |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the sum of code , and group by attribute founder, show by the X from high to low 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 T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder DESC |
What is the highest game number where the team was Cleveland? | CREATE TABLE table_22883210_9 (
game INTEGER,
team VARCHAR
) | SELECT MAX(game) FROM table_22883210_9 WHERE team = "Cleveland" |
Give me a pie to show how many country from different country. | CREATE TABLE member (
Member_ID int,
Name text,
Country text,
College_ID int
)
CREATE TABLE college (
College_ID int,
Name text,
Leader_Name text,
College_Location text
)
CREATE TABLE round (
Round_ID int,
Member_ID int,
Decoration_Theme text,
Rank_in_Round int
) | SELECT Country, COUNT(Country) FROM member GROUP BY Country |
For the category of most popular star with a result of won for 2007, what was the award? | CREATE TABLE table_name_27 (
award VARCHAR,
year VARCHAR,
result VARCHAR,
category VARCHAR
) | SELECT award FROM table_name_27 WHERE result = "won" AND category = "most popular star" AND year = 2007 |
What award was Denis Lawson nominated for in the Best Actor in a Musical category? | CREATE TABLE table_55031 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
) | SELECT "Award" FROM table_55031 WHERE "Category" = 'best actor in a musical' AND "Nominee" = 'denis lawson' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.