instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
Which Surface has a Round of 4th round, and a Player of maria sharapova? | CREATE TABLE table_name_57 (
surface VARCHAR,
round VARCHAR,
player VARCHAR
) | SELECT surface FROM table_name_57 WHERE round = "4th round" AND player = "maria sharapova" |
Return a bar chart on what are the countries of perpetrators? Show each country and the corresponding number of perpetrators there, and list in descending by the y axis please. | CREATE TABLE perpetrator (
Perpetrator_ID int,
People_ID int,
Date text,
Year real,
Location text,
Country text,
Killed int,
Injured int
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
"Home Town" text
) | SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC |
In season number 3, who were the writers? | CREATE TABLE table_21313327_1 (
written_by VARCHAR,
no_in_season VARCHAR
) | SELECT written_by FROM table_21313327_1 WHERE no_in_season = 3 |
How many season 3 appearances by Morgan the Dog? | CREATE TABLE table_28473 (
"Character" text,
"Played by" text,
"Season 1" real,
"Season 2" real,
"Season 3" real,
"Season 4" real,
"First Appearance" text
) | SELECT MAX("Season 3") FROM table_28473 WHERE "Played by" = 'Morgan the Dog' |
What is the lowest number of silver medals with a rank of 4 and total medals greater than 1? | CREATE TABLE table_name_68 (
silver INTEGER,
rank VARCHAR,
total VARCHAR
) | SELECT MIN(silver) FROM table_name_68 WHERE rank = 4 AND total > 1 |
previous gastrointestinal bleeding within 6 months, bleeding diathesis, platelet count < 100000 / mm3 or hemoglobin < 10 g / dl | CREATE TABLE table_test_24 (
"id" int,
"history_of_bleeding_diathesis" bool,
"bleeding" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"blood_draw" bool,
"renal_disease" bool,
"allergy_to_aspirin" bool,
"allergy_to_clopidogrel" bool,
"cardiogenic_shock" bool,
"allergy_to_prasugrel" bool,
"platelet_count" float,
"diastolic_blood_pressure_dbp" int,
"symptomatic_hypotension" bool,
"serum_total_cholesterol" int,
"gastrointestinal_disease" bool,
"serum_creatinine" float,
"hypertension" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_test_24 WHERE gastrointestinal_disease = 1 OR bleeding = 1 OR platelet_count < 100000 OR hemoglobin_a1c_hba1c < 10 |
Which Position has a Played larger than 9? | CREATE TABLE table_name_32 (
position INTEGER,
played INTEGER
) | SELECT SUM(position) FROM table_name_32 WHERE played > 9 |
What is the name of the artist that issued the single on 23 February? | CREATE TABLE table_9850 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" text,
"Song" text,
"Artist" text
) | SELECT "Artist" FROM table_9850 WHERE "Issue Date(s)" = '23 february' |
The event WC Rio De Janeiro with a total of 16 has what as rank points? | CREATE TABLE table_name_85 (
rank_points VARCHAR,
event VARCHAR,
total VARCHAR
) | SELECT rank_points FROM table_name_85 WHERE event = "wc rio de janeiro" AND total = "16" |
Name the women's doubles for frederik kj rholm elsner | CREATE TABLE table_15026 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Women's doubles" FROM table_15026 WHERE "Men's singles" = 'frederik kjærholm elsner' |
How many submissions are there? | CREATE TABLE acceptance (
submission_id number,
workshop_id number,
result text
)
CREATE TABLE workshop (
workshop_id number,
date text,
venue text,
name text
)
CREATE TABLE submission (
submission_id number,
scores number,
author text,
college text
) | SELECT COUNT(*) FROM submission |
What venue has a Result of 3-0? | CREATE TABLE table_name_73 (
venue VARCHAR,
result VARCHAR
) | SELECT venue FROM table_name_73 WHERE result = "3-0" |
How many ERP W is it that has a Call sign of w273bs? | CREATE TABLE table_name_40 (
erp_w INTEGER,
call_sign VARCHAR
) | SELECT SUM(erp_w) FROM table_name_40 WHERE call_sign = "w273bs" |
on how many dates was the sum of the scores at most 10 ? | CREATE TABLE table_204_418 (
id number,
"date" text,
"opponent" text,
"score" text,
"overall record" text,
"scba record" text
) | SELECT COUNT("date") FROM table_204_418 WHERE "score" + "score" <= 10 |
How much parking is in Van Nuys at the Sepulveda station? | CREATE TABLE table_24011 (
"Stations" text,
"Connections" text,
"City/ Neighborhood" text,
"Parking" text,
"Date Opened" text
) | SELECT "Parking" FROM table_24011 WHERE "City/ Neighborhood" = 'Van Nuys' AND "Stations" = 'Sepulveda' |
who is the the womens doubles with mens doubles being reinhold pum karl buchart and mixed doubles being hermann fr hlich lore voit | CREATE TABLE table_19791 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT "Womens doubles" FROM table_19791 WHERE "Mens doubles" = 'Reinhold Pum Karl Buchart' AND "Mixed doubles" = 'Hermann Fröhlich Lore Voit' |
How many points have a difference of 23, with a drawn less than 5? | CREATE TABLE table_name_62 (
points VARCHAR,
difference VARCHAR,
drawn VARCHAR
) | SELECT COUNT(points) FROM table_name_62 WHERE difference = "23" AND drawn < 5 |
What is the nationality of the player on the Jazz from 1974-79? | CREATE TABLE table_name_60 (
nationality VARCHAR,
years_for_jazz VARCHAR
) | SELECT nationality FROM table_name_60 WHERE years_for_jazz = "1974-79" |
What is the season # for the episode with air date february 2, 1970? | CREATE TABLE table_28113 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Airdate" text
) | SELECT MAX("Season #") FROM table_28113 WHERE "Airdate" = 'February 2, 1970' |
male aged from 18 to 85 and postmenopausal female aged up to 85 years, | CREATE TABLE table_test_3 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"severe_hemodynamic_instability" bool,
"consent" bool,
"hemoglobin_a1c_hba1c" float,
"metallic_implants" bool,
"allergy_to_aspirin" bool,
"creatinine_clearance_cl" float,
"post_menopausal" bool,
"clinical_evidence_of_active_bleeding" bool,
"cardiogenic_shock" bool,
"platelet_count" float,
"contraindication_for_nmr" bool,
"kidney_disease" bool,
"claustrophobia" bool,
"hypertension" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_test_3 WHERE (gender = 'male' AND (age >= 18 AND age <= 85)) OR (gender = 'female' AND post_menopausal = 1 AND age <= 85) |
Which Incumbent has a District of massachusetts 8? | CREATE TABLE table_name_47 (
incumbent VARCHAR,
district VARCHAR
) | SELECT incumbent FROM table_name_47 WHERE district = "massachusetts 8" |
What is the Network, when Title is 'Epik High's Love And Delusion'? | CREATE TABLE table_name_86 (
network VARCHAR,
title VARCHAR
) | SELECT network FROM table_name_86 WHERE title = "epik high's love and delusion" |
What was the record after the game on November 10? | CREATE TABLE table_27755784_6 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_27755784_6 WHERE date = "November 10" |
In what position was the driver who won $60,000? | CREATE TABLE table_25146455_1 (
position INTEGER,
winnings VARCHAR
) | SELECT MIN(position) FROM table_25146455_1 WHERE winnings = "$60,000" |
When was the song by Andy Gibb issued? | CREATE TABLE table_39490 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" real,
"Song" text,
"Artist" text
) | SELECT "Issue Date(s)" FROM table_39490 WHERE "Artist" = 'andy gibb' |
What is the result of Waldemar 27 s freestyle test? | CREATE TABLE table_name_99 (
result VARCHAR,
horse VARCHAR,
event VARCHAR
) | SELECT COUNT(result) FROM table_name_99 WHERE horse = "waldemar 27" AND event = "freestyle test" |
If the arrival date is January 2059, what is the total amount of signal power? | CREATE TABLE table_1820752_1 (
signal_power___kw__ VARCHAR,
arrival_date VARCHAR
) | SELECT COUNT(signal_power___kw__) FROM table_1820752_1 WHERE arrival_date = "January 2059" |
In what year did the Lions join? | CREATE TABLE table_2116 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real
) | SELECT MIN("Joined") FROM table_2116 WHERE "Nickname" = 'Lions' |
What club received a DF player for free? | CREATE TABLE table_name_52 (
to_club VARCHAR,
transfer_fee VARCHAR,
pos VARCHAR
) | SELECT to_club FROM table_name_52 WHERE transfer_fee = "free" AND pos = "df" |
Draw a pie chart for what are the proportion of the teams in elimination? | CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
) | SELECT Team, COUNT(Team) FROM Elimination GROUP BY Team |
What's the release price of a processor that has a frequency of 3.2 ghz and 1 6.4 gt/s qpi I/O? | CREATE TABLE table_63644 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"Turbo" text,
"Cores" real,
"L2 cache" text,
"L3 cache" text,
"I/O bus" text,
"Mult." text,
"Memory" text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) | SELECT "Release price ( USD )" FROM table_63644 WHERE "Frequency" = '3.2 ghz' AND "I/O bus" = '1 × 6.4 gt/s qpi' |
Name the game for l 111 126 | CREATE TABLE table_30049462_8 (
game VARCHAR,
score VARCHAR
) | SELECT game FROM table_30049462_8 WHERE score = "L 111–126" |
What date did the team play on week 8? | CREATE TABLE table_26723 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
) | SELECT "Date" FROM table_26723 WHERE "Week" = '8' |
Which television service has italian for its language? | CREATE TABLE table_40746 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
) | SELECT "Television service" FROM table_40746 WHERE "Language" = 'italian' |
What date did season 12 premiere? | CREATE TABLE table_28768 (
"Season #" real,
"Series #" real,
"Episode title" text,
"Original air date" text,
"Nick prod. #" real
) | SELECT "Original air date" FROM table_28768 WHERE "Season #" = '12' |
What is the lowest win% in the 1999-2013 season? | CREATE TABLE table_57570 (
"Coach" text,
"Season" text,
"Record" text,
"Home" text,
"Away" text,
"Win %" real,
"Average (Total) Home Attendance" text
) | SELECT MIN("Win %") FROM table_57570 WHERE "Season" = '1999-2013' |
which grid did less than 20 laps in a time of +58.353? | CREATE TABLE table_name_82 (
grid INTEGER,
time VARCHAR,
laps VARCHAR
) | SELECT MIN(grid) FROM table_name_82 WHERE time = "+58.353" AND laps < 20 |
What is fuzzy zoeller's to par? | CREATE TABLE table_name_12 (
to_par VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_12 WHERE player = "fuzzy zoeller" |
What is the lowest number of matches played that has more than 0 draws, a percentage of 12.50%, and fewer than 3 losses? | CREATE TABLE table_name_14 (
played INTEGER,
lost VARCHAR,
drawn VARCHAR,
percentage VARCHAR
) | SELECT MIN(played) FROM table_name_14 WHERE drawn > 0 AND percentage = "12.50%" AND lost < 3 |
Show the name of track with most number of races. | CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
)
CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
) | SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY COUNT(*) DESC LIMIT 1 |
Tell me the sum of top 5 with events less than 12 and top 25 less than 0 | CREATE TABLE table_name_98 (
top_5 INTEGER,
events VARCHAR,
top_25 VARCHAR
) | SELECT SUM(top_5) FROM table_name_98 WHERE events < 12 AND top_25 < 0 |
What is the engine configuration & notes 0-100km/h with a model with 2.3 t5? | CREATE TABLE table_name_65 (
engine_configuration_ VARCHAR,
_notes_0_100km_h VARCHAR,
model VARCHAR
) | SELECT engine_configuration_ & _notes_0_100km_h FROM table_name_65 WHERE model = "2.3 t5" |
How many object dates does episode #16 have? | CREATE TABLE table_29635868_1 (
object_date VARCHAR,
episode_number VARCHAR
) | SELECT COUNT(object_date) FROM table_29635868_1 WHERE episode_number = 16 |
What is the location for the game with a score of w 106-81? | CREATE TABLE table_66089 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Location/Attendance" FROM table_66089 WHERE "Score" = 'w 106-81' |
What is every total for the University of the Cordilleras UC Dance Squad? | CREATE TABLE table_2523 (
"Rank" real,
"School" text,
"Basic Elements" real,
"Tumbling" real,
"Stunts" text,
"Pyramids" text,
"Tosses" text,
"Deductions" text,
"Total" text
) | SELECT "Total" FROM table_2523 WHERE "School" = 'University of the Cordilleras UC Dance Squad' |
when points were 36 and points against 489 what is the lost? | CREATE TABLE table_name_58 (
lost VARCHAR,
points VARCHAR,
points_against VARCHAR
) | SELECT lost FROM table_name_58 WHERE points = "36" AND points_against = "489" |
What is the issue date of the volume with the minimum weeks on top? | CREATE TABLE artist (
artist_id number,
artist text,
age number,
famous_title text,
famous_release_date text
)
CREATE TABLE volume (
volume_id number,
volume_issue text,
issue_date text,
weeks_on_top number,
song text,
artist_id number
)
CREATE TABLE music_festival (
id number,
music_festival text,
date_of_ceremony text,
category text,
volume number,
result text
) | SELECT issue_date FROM volume ORDER BY weeks_on_top LIMIT 1 |
Who was the arranger of ' '? | CREATE TABLE table_76990 (
"Title" text,
"Lyricist(s)" text,
"Composer(s)" text,
"Arranger(s)" text,
"Length" text
) | SELECT "Arranger(s)" FROM table_76990 WHERE "Title" = 'ขอโทษ' |
which year had the most competitions ? | CREATE TABLE table_204_395 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | SELECT "year" FROM table_204_395 GROUP BY "year" ORDER BY COUNT("competition") DESC LIMIT 1 |
What date was the Home team fitzroy? | CREATE TABLE table_name_18 (
date VARCHAR,
home_team VARCHAR
) | SELECT date FROM table_name_18 WHERE home_team = "fitzroy" |
The school of Portage was in what conference previous? | CREATE TABLE table_name_41 (
previous_conference VARCHAR,
school VARCHAR
) | SELECT previous_conference FROM table_name_41 WHERE school = "portage" |
What is the maximum 2006 census population of LGA name Opobo/Nkoro? | CREATE TABLE table_23155 (
"LGA Name" text,
"Area (km 2 )" real,
"Census 2006 population" real,
"Administrative capital" text,
"Postal Code" real
) | SELECT MAX("Census 2006 population") FROM table_23155 WHERE "LGA Name" = 'Opobo/Nkoro' |
Tell me the highest laps for time/retired of +2 laps and driver of felice bonetto | CREATE TABLE table_name_24 (
laps INTEGER,
time_retired VARCHAR,
driver VARCHAR
) | SELECT MAX(laps) FROM table_name_24 WHERE time_retired = "+2 laps" AND driver = "felice bonetto" |
Which player had a total of 152? | CREATE TABLE table_name_60 (
player VARCHAR,
total VARCHAR
) | SELECT player FROM table_name_60 WHERE total = "152" |
Find the address and staff number of the shops that do not have any happy hour. Visualize by bar chart. | CREATE TABLE shop (
Shop_ID int,
Address text,
Num_of_staff text,
Score real,
Open_Year text
)
CREATE TABLE member (
Member_ID int,
Name text,
Membership_card text,
Age int,
Time_of_purchase int,
Level_of_membership int,
Address text
)
CREATE TABLE happy_hour (
HH_ID int,
Shop_ID int,
Month text,
Num_of_shaff_in_charge int
)
CREATE TABLE happy_hour_member (
HH_ID int,
Member_ID int,
Total_amount real
) | SELECT Address, Num_of_staff FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM happy_hour) |
What is the original of the ipa ( rio de janeiro )translation ki mo t a w n t t i t n ? | CREATE TABLE table_26383 (
"Original" text,
"IPA ( Lisbon )" text,
"IPA ( Rio de Janeiro )" text,
"IPA ( S\u00e3o Paulo )" text,
"IPA ( Santiago de Compostela )" text,
"Translation" text
) | SELECT "Translation" FROM table_26383 WHERE "IPA ( Rio de Janeiro )" = 'ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə' |
What years did the player with a t71 finish win? | CREATE TABLE table_60790 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Year(s) won" FROM table_60790 WHERE "Finish" = 't71' |
What date did the episode with a weekly ranking of 14 air? | CREATE TABLE table_70458 (
"Episode No." real,
"Airdate" text,
"Total Viewers" real,
"Share" text,
"BBC One Weekly Ranking" real
) | SELECT "Airdate" FROM table_70458 WHERE "BBC One Weekly Ranking" = '14' |
What is the Opponent at the game with Attendance of 68,436? | CREATE TABLE table_name_97 (
opponent VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_name_97 WHERE attendance = "68,436" |
recent stroke ( within the last six month ) | CREATE TABLE table_test_16 (
"id" int,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"severe_hypertension" bool,
"adrenaline" bool,
"stroke" bool,
"renal_disease" bool,
"severe_uncontrolled_arterial_hypertension" bool,
"hepatic_disease" bool,
"dobutamine" bool,
"temperature" float,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"cardiogenic_shock" bool,
"diastolic_blood_pressure_dbp" int,
"liver_disease" bool,
"intravenous_vasoactive_agents" bool,
"kidney_disease" bool,
"hypertension" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_test_16 WHERE stroke = 1 |
What is the position of the player from Fort Lauderdale, Florida? | CREATE TABLE table_name_3 (
position VARCHAR,
hometown VARCHAR
) | SELECT position FROM table_name_3 WHERE hometown = "fort lauderdale, florida" |
Who was the runner-up when the year was 2008? | CREATE TABLE table_80303 (
"Year" text,
"Winner" text,
"Country" text,
"Score" text,
"Margin" text,
"Runner(s)-up" text
) | SELECT "Runner(s)-up" FROM table_80303 WHERE "Year" = '2008' |
Name the number of points for field goals being 1 | CREATE TABLE table_72529 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT COUNT("Points") FROM table_72529 WHERE "Field goals" = '1' |
What is the registration of the station with a retained type and a station number of c03? | CREATE TABLE table_name_27 (
registrations VARCHAR,
type VARCHAR,
station_number VARCHAR
) | SELECT registrations FROM table_name_27 WHERE type = "retained" AND station_number = "c03" |
What Playoffs were held during the years of 2007-08? | CREATE TABLE table_name_70 (
playoffs VARCHAR,
year VARCHAR
) | SELECT playoffs FROM table_name_70 WHERE year = "2007-08" |
What is the lowest league goals that have 0 as the FA Cup Apps, with 1 (3) as totals apps? | CREATE TABLE table_name_46 (
league_goals INTEGER,
fa_cup_apps VARCHAR,
total_apps VARCHAR
) | SELECT MIN(league_goals) FROM table_name_46 WHERE fa_cup_apps = "0" AND total_apps = "1 (3)" |
What rank were the Buckeyes when there were 68,586 in attendance? | CREATE TABLE table_name_90 (
rank__number VARCHAR,
attendance VARCHAR
) | SELECT rank__number FROM table_name_90 WHERE attendance = "68,586" |
Which conference held at School of whiting? | CREATE TABLE table_80168 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Joined" text,
"Previous Conference" text,
"Left" text,
"Conference joined" text
) | SELECT "Previous Conference" FROM table_80168 WHERE "School" = 'whiting' |
what city was the race held before montreal on august 24 ? | CREATE TABLE table_204_845 (
id number,
"round" number,
"circuit" text,
"location" text,
"date" text,
"pole position" text,
"fastest lap" text,
"winning driver" text,
"headline event" text
) | SELECT "location" FROM table_204_845 WHERE "date" < (SELECT "date" FROM table_204_845 WHERE "location" = 'montreal' AND "date" = 'august 24') ORDER BY "date" DESC LIMIT 1 |
What is the Result with a Venue that is n? | CREATE TABLE table_7187 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
) | SELECT "Result" FROM table_7187 WHERE "Venue" = 'n' |
What is the highest goal difference that the club with 33-5 points and less than 12 wins? | CREATE TABLE table_14735 (
"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("Goal Difference") FROM table_14735 WHERE "Points" = '33-5' AND "Wins" < '12' |
Who is the second member more recently than 1790 when John Williams is the first member? | CREATE TABLE table_name_10 (
second_member VARCHAR,
year VARCHAR,
first_member VARCHAR
) | SELECT second_member FROM table_name_10 WHERE year > 1790 AND first_member = "john williams" |
Show different types of ships and the average tonnage of ships of each type Show bar chart, sort Y in asc order. | CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
) | SELECT Type, AVG(Tonnage) FROM ship GROUP BY Type ORDER BY AVG(Tonnage) |
Tell mem the opponent for result of w 31-21 | CREATE TABLE table_name_52 (
opponent VARCHAR,
result VARCHAR
) | SELECT opponent FROM table_name_52 WHERE result = "w 31-21" |
Name the driver for race time being 2:34:21 | CREATE TABLE table_20856 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race time" text,
"Average speed (mph)" text,
"Report" text
) | SELECT "Driver" FROM table_20856 WHERE "Race time" = '2:34:21' |
What was the swimsuit score for Illinois? | CREATE TABLE table_17521433_1 (
swimsuit VARCHAR,
country VARCHAR
) | SELECT swimsuit FROM table_17521433_1 WHERE country = "Illinois" |
pre existing kidney failure requiring dialysis or serum creatinine value > 320 mmol / l ( 3.6 mg / dl ) | CREATE TABLE table_train_22 (
"id" int,
"pre_treatment_with_hydroxyethyl_starch" int,
"requiring_dialysis" bool,
"intracerebral_hemorrhage" bool,
"serum_creatinine" float,
"kidney_disease" bool,
"allergy_to_hydroxyethyl_starch" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_22 WHERE (kidney_disease = 1 AND requiring_dialysis = 1) OR serum_creatinine > 320 |
which opponent had the lowest amount of points in one game ? | CREATE TABLE table_204_123 (
id number,
"week" number,
"date" text,
"kickoff" text,
"opponent" text,
"results\nfinal score" text,
"results\nteam record" text,
"game site" text,
"attendance" number
) | SELECT "opponent" FROM table_204_123 ORDER BY "results\nfinal score" LIMIT 1 |
Which Set 2 has a Date of 25 may, and a Set 3 of 21 25? | CREATE TABLE table_name_45 (
set_2 VARCHAR,
date VARCHAR,
set_3 VARCHAR
) | SELECT set_2 FROM table_name_45 WHERE date = "25 may" AND set_3 = "21–25" |
What are the names and ages of artists? Show the result in a bar graph, and sort by the total number in ascending. | CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
) | SELECT Name, Age FROM artist ORDER BY Age |
Show me team_id by all road in a histogram, I want to list by the X-axis in ascending please. | 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 All_Road, Team_ID FROM basketball_match ORDER BY All_Road |
A bar chart for what are the number of the countries of mountains with height bigger than 5000?, could you show in descending by the Country? | CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
) | SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country ORDER BY Country DESC |
What format has conference iii as the conference? | CREATE TABLE table_name_42 (
format VARCHAR,
conference VARCHAR
) | SELECT format FROM table_name_42 WHERE conference = "conference iii" |
Which Team #1 had a 2nd leg score of 88-83? | CREATE TABLE table_48967 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team #1" FROM table_48967 WHERE "2nd leg" = '88-83' |
What circuit did Innes Ireland win at for the I lombank trophy? | CREATE TABLE table_77805 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
) | SELECT "Circuit" FROM table_77805 WHERE "Winning driver" = 'innes ireland' AND "Race Name" = 'i lombank trophy' |
Which Frequency has a Website of , and a Webcast of in san antonio? | CREATE TABLE table_33865 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"City of License" text,
"Website" text,
"Webcast" text
) | SELECT AVG("Frequency") FROM table_33865 WHERE "Website" = '•' AND "Webcast" = '•' AND "City of License" = 'san antonio' |
Return a histogram on how many students are from each city, and which cities have more than one cities? | 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_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
) | SELECT city_code, COUNT(*) FROM Student GROUP BY city_code |
What label is after 2004? | CREATE TABLE table_53217 (
"Year" real,
"Tracks" text,
"Title" text,
"Format, Special Notes" text,
"Label" text
) | SELECT "Label" FROM table_53217 WHERE "Year" > '2004' |
Mean attendance for December 22, 1980? | CREATE TABLE table_40300 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Attendance") FROM table_40300 WHERE "Date" = 'december 22, 1980' |
positive pregnancy test in female of childbearing potential ( at screening and visit 2 / periods 1 _ 3 / day 1 ) ; | CREATE TABLE table_train_150 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"hiv_infection" bool,
"hepatic_disease" bool,
"liver_disease" bool,
"abnormality" bool,
"triglyceride_tg" float,
"NOUSE" float
) | SELECT * FROM table_train_150 WHERE gender = 'female' AND pregnancy_or_lactation = 1 |
Which Extra points is the lowest one that has a Player of ross kidston, and Points smaller than 5? | CREATE TABLE table_38958 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MIN("Extra points") FROM table_38958 WHERE "Player" = 'ross kidston' AND "Points" < '5' |
What was the final score in game 15? | CREATE TABLE table_21198 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_21198 WHERE "Game" = '15' |
What is the toll for light vehicles at the plaza where the toll for heavy vehicles with 2 axles is r87.00? | CREATE TABLE table_1211545_2 (
light_vehicle VARCHAR,
heavy_vehicle__2_axles_ VARCHAR
) | SELECT light_vehicle FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = "R87.00" |
Name the missouri for 2002 | CREATE TABLE table_22844 (
"Year" real,
"Iowa" text,
"Kansas" text,
"Minnesota" text,
"Missouri" text,
"Nebraska" text,
"North/South Dakota" text
) | SELECT "Missouri" FROM table_22844 WHERE "Year" = '2002' |
Name the 1st place for limoges csp | CREATE TABLE table_24144 (
"Season" text,
"1st Place" text,
"2nd Place" text,
"3rd Place" text,
"4th Place" text
) | SELECT "1st Place" FROM table_24144 WHERE "3rd Place" = 'Limoges CSP' |
How many outputs are there for solid state, battery operated for portable use listed in notes? | CREATE TABLE table_25276250_3 (
outputs VARCHAR,
notes VARCHAR
) | SELECT COUNT(outputs) FROM table_25276250_3 WHERE notes = "Solid state, battery operated for portable use" |
What is the average rank of Great Britain when their total is over 4? | CREATE TABLE table_57342 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Rank") FROM table_57342 WHERE "Total" > '4' AND "Nation" = 'great britain' |
The U.S. airdate of 8 august 2008 also had canadian airdates of what? | CREATE TABLE table_10935205_1 (
canadian_airdate VARCHAR,
us_airdate VARCHAR
) | SELECT canadian_airdate FROM table_10935205_1 WHERE us_airdate = "8 August 2008" |
What is the share of votes with 3,567,021 NDC votes? | CREATE TABLE table_9551 (
"Election" real,
"Number of NDC votes" text,
"Share of votes" text,
"Seats" real,
"Outcome of election" text
) | SELECT "Share of votes" FROM table_9551 WHERE "Number of NDC votes" = '3,567,021' |
Does the s35 model have bluetooth? | CREATE TABLE table_name_31 (
bluetooth VARCHAR,
model VARCHAR
) | SELECT bluetooth FROM table_name_31 WHERE model = "s35" |