instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
Which Round has a Method of ko, and a Date of 1958? | CREATE TABLE table_48846 (
"Result" text,
"Opponent" text,
"Method" text,
"Date" text,
"Round" real
) | SELECT MIN("Round") FROM table_48846 WHERE "Method" = 'ko' AND "Date" = '1958' |
Who was the owner in 1996 of trainer Nick Zito? | CREATE TABLE table_53832 (
"Year" text,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Distance" text,
"Time" text,
"Purse" text
) | SELECT "Owner" FROM table_53832 WHERE "Trainer" = 'nick zito' AND "Year" = '1996' |
what was the difference , in years between the founding of st. agnes and the founding of good shepherd ? | CREATE TABLE table_204_540 (
id number,
"name" text,
"town" text,
"deanery" text,
"vicariate" text,
"founded" number,
"original ethnic community" text
) | SELECT ABS((SELECT "founded" FROM table_204_540 WHERE "name" = 'st. agnes') - (SELECT "founded" FROM table_204_540 WHERE "name" = 'good shepherd')) |
What years had 134 orbital flights? | CREATE TABLE table_179174_2 (
years VARCHAR,
flights VARCHAR
) | SELECT years FROM table_179174_2 WHERE flights = "134 Orbital" |
What episode in the season was episode us18 in the series? | CREATE TABLE table_23398 (
"No. in series" text,
"No. in season" real,
"Family/families" text,
"Location(s)" text,
"Original air date" text
) | SELECT COUNT("No. in season") FROM table_23398 WHERE "No. in series" = 'US18' |
how many times was hancock % considered when starky % was 20.96% | CREATE TABLE table_23141 (
"County" text,
"Starky #" real,
"Starky %" text,
"Hancock #" real,
"Hancock %" text,
"McCain #" real,
"McCain %" text,
"Total" real
) | SELECT COUNT("Hancock %") FROM table_23141 WHERE "Starky %" = '20.96%' |
What was the final score when the game was @ roughriders? | CREATE TABLE table_24603 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
) | SELECT "Final Score" FROM table_24603 WHERE "Opponent" = '@ Roughriders' |
What is the score for the match that had a home team of Kidderminster Harriers? | CREATE TABLE table_47393 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_47393 WHERE "Home team" = 'kidderminster harriers' |
neutropenia as < 500 neutrophils / ul | CREATE TABLE table_train_67 (
"id" int,
"corticosteroid_therapy" bool,
"viral_infection" bool,
"active_infection" bool,
"hiv_infection" bool,
"neutropenia" int,
"receiving_prednisolone" int,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_67 WHERE neutropenia < 500 |
How many cup goals for the season with more than 34 league apps? | CREATE TABLE table_name_9 (
cup_goals INTEGER,
league_apps INTEGER
) | SELECT AVG(cup_goals) FROM table_name_9 WHERE league_apps > 34 |
When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006? | CREATE TABLE table_70957 (
"Parties and voter communities" text,
"% 2006" real,
"seats 2006" real,
"% 2001" real,
"seats 2001" real
) | SELECT AVG("% 2006") FROM table_70957 WHERE "seats 2001" > '15' AND "% 2001" > '100' |
What was the result of week 11? | CREATE TABLE table_46493 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text
) | SELECT "Result" FROM table_46493 WHERE "Week" = '11' |
what is the number of riders listed ? | CREATE TABLE table_203_244 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"time/retired" text,
"points" number
) | SELECT COUNT("rider") FROM table_203_244 |
Which Record that has a Loss of mays (0-3)? | CREATE TABLE table_14565 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Record" FROM table_14565 WHERE "Loss" = 'mays (0-3)' |
Attendance larger than 55,189 is which average game? | CREATE TABLE table_69496 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
) | SELECT AVG("Game") FROM table_69496 WHERE "Attendance" > '55,189' |
Which home team plays in the Corio Oval venue? | CREATE TABLE table_55670 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) | SELECT "Home team" FROM table_55670 WHERE "Venue" = 'corio oval' |
Which Team #2 has a 1st leg of 70 - 44? | CREATE TABLE table_42161 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team #2" FROM table_42161 WHERE "1st leg" = '70 - 44' |
Which main developer made their first release in 1991 and created the Mega Drive/Genesis console? | CREATE TABLE table_12887260_1 (
main_developer VARCHAR,
first_release VARCHAR,
console VARCHAR
) | SELECT main_developer FROM table_12887260_1 WHERE first_release = 1991 AND console = "Mega Drive/Genesis" |
What was the report at State Sports Centre? | CREATE TABLE table_name_43 (
report VARCHAR,
venue VARCHAR
) | SELECT report FROM table_name_43 WHERE venue = "state sports centre" |
daniel martin and joost posthuma both withdrew from the race because of what reason ? | CREATE TABLE table_204_530 (
id number,
"type" text,
"stage" number,
"cyclist" text,
"team" text,
"reason" text
) | SELECT "reason" FROM table_204_530 WHERE "cyclist" = 'daniel martin' |
How many site entries are there at 3:30pm and the visiting team is coastal carolina? | CREATE TABLE table_28298589_2 (
site VARCHAR,
time VARCHAR,
visiting_team VARCHAR
) | SELECT COUNT(site) FROM table_28298589_2 WHERE time = "3:30pm" AND visiting_team = "Coastal Carolina" |
how many songs were remixed by garraund ? | CREATE TABLE table_204_804 (
id number,
"version" text,
"length" text,
"album" text,
"remixed by" text,
"year" number,
"comment" text
) | SELECT COUNT(*) FROM table_204_804 WHERE "remixed by" = 'joachim garraud' |
Name the outcome for aliz cornet janette hus rov being opponent in final | CREATE TABLE table_name_97 (
outcome VARCHAR,
opponent_in_final VARCHAR
) | SELECT outcome FROM table_name_97 WHERE opponent_in_final = "alizé cornet janette husárová" |
How many conversions had 0 pens and 0 tries? | CREATE TABLE table_name_39 (
conv VARCHAR,
pens VARCHAR,
tries VARCHAR
) | SELECT conv FROM table_name_39 WHERE pens = "0" AND tries = "0" |
how many wiaa classifications does fort vancouver high school have? | CREATE TABLE table_2546 (
"High School" text,
"Type" text,
"Established" real,
"Enrollment" real,
"Mascot" text,
"WIAA Classification" text
) | SELECT COUNT("WIAA Classification") FROM table_2546 WHERE "High School" = 'Fort Vancouver' |
Which School/Club Team has a Pick of 198? | CREATE TABLE table_name_7 (
school_club_team VARCHAR,
pick VARCHAR
) | SELECT school_club_team FROM table_name_7 WHERE pick = 198 |
Who had less than 7 goals, was ranked under 7, and had more than 8 appearances? | CREATE TABLE table_name_86 (
name VARCHAR,
appearances VARCHAR,
goals VARCHAR,
rank VARCHAR
) | SELECT name FROM table_name_86 WHERE goals < 7 AND rank < 7 AND appearances > 8 |
Which team had a final stage when Claudio Chiappucci had the points? | CREATE TABLE table_11218 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Trofeo Fast Team" text
) | SELECT "Trofeo Fast Team" FROM table_11218 WHERE "Points classification" = 'claudio chiappucci' AND "Stage" = 'final' |
What is the label for a CD released in 2004? | CREATE TABLE table_name_25 (
label VARCHAR,
media VARCHAR,
release_date VARCHAR
) | SELECT label FROM table_name_25 WHERE media = "cd" AND release_date = 2004 |
What is the Author of the Title with a First Issue of September 2010? | CREATE TABLE table_name_87 (
author VARCHAR,
first_issue VARCHAR
) | SELECT author FROM table_name_87 WHERE first_issue = "september 2010" |
What was the attendance in week 6? | CREATE TABLE table_33181 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Attendance" FROM table_33181 WHERE "Week" = '6' |
What is the function of 1.4 version of Windows live messenger? | CREATE TABLE table_22163 (
"Title" text,
"Developer" text,
"Category" text,
"Function" text,
"Release date" text,
"Version" text
) | SELECT "Function" FROM table_22163 WHERE "Version" = '1.4' AND "Title" = 'Windows Live Messenger' |
What is the Opponent at the Honda Center on March 29? | CREATE TABLE table_61636 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
) | SELECT "Opponent" FROM table_61636 WHERE "Arena" = 'honda center' AND "Date" = 'march 29' |
what is the most recent year gardnar mulloy played as a partner and score was 12 10, 8 10, 12 10, 6 2? | CREATE TABLE table_name_29 (
year INTEGER,
partner VARCHAR,
score VARCHAR
) | SELECT MAX(year) FROM table_name_29 WHERE partner = "gardnar mulloy" AND score = "12–10, 8–10, 12–10, 6–2" |
what is the capacity when the acceleration 1-100km/h is 11.1 s? | CREATE TABLE table_name_39 (
capacity VARCHAR,
acceleration_0_100km_h VARCHAR
) | SELECT capacity FROM table_name_39 WHERE acceleration_0_100km_h = "11.1 s" |
What was the result of the election in the Texas 4 district? | CREATE TABLE table_1342149_43 (
result VARCHAR,
district VARCHAR
) | SELECT result FROM table_1342149_43 WHERE district = "Texas 4" |
Who was the color commentator for Eric Dickerson and Melissa Stark in 2001? | CREATE TABLE table_name_42 (
color_commentator_s_ VARCHAR,
sideline_reporter_s_ VARCHAR,
year VARCHAR
) | SELECT color_commentator_s_ FROM table_name_42 WHERE sideline_reporter_s_ = "eric dickerson and melissa stark" AND year = 2001 |
What is the launch designation of the satellite with a 2009-001a COSPAR ID? | CREATE TABLE table_56836 (
"Name" text,
"COSPAR ID SATCAT \u2116" text,
"Launch date (UTC)" text,
"Launch vehicle" text,
"Launch site" text,
"Launch designation" text,
"Longitude" text
) | SELECT "Launch designation" FROM table_56836 WHERE "COSPAR ID SATCAT \u2116" = '2009-001a' |
With a To par of 1, what is Player Henrik Stenson's Score? | CREATE TABLE table_60674 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_60674 WHERE "To par" = '–1' AND "Player" = 'henrik stenson' |
what's the pole position with location being hockenheimring | CREATE TABLE table_16713 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT "Pole Position" FROM table_16713 WHERE "Location" = 'Hockenheimring' |
What is the title released on 24 July 2005? | CREATE TABLE table_48668 (
"Cat. #" text,
"Artist" text,
"Title" text,
"Release date" text,
"Format" text,
"Other information" text
) | SELECT "Title" FROM table_48668 WHERE "Release date" = '24 july 2005' |
What is Player, when Country is United States, and when Score is 70-72-70=212? | CREATE TABLE table_name_1 (
player VARCHAR,
country VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_1 WHERE country = "united states" AND score = 70 - 72 - 70 = 212 |
Which runner-up has a 10 strokes margin of victory? | CREATE TABLE table_71517 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner-up" text
) | SELECT "Runner-up" FROM table_71517 WHERE "Margin of victory" = '10 strokes' |
What office is Jon Huntsman a candidate for? | CREATE TABLE table_20246201_9 (
office VARCHAR,
candidate VARCHAR
) | SELECT office FROM table_20246201_9 WHERE candidate = "Jon Huntsman" |
Who's the writer for the episode with a production code 2395114? | CREATE TABLE table_16371 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production code" text
) | SELECT "Writer(s)" FROM table_16371 WHERE "Production code" = '2395114' |
March 0.41 in July? | CREATE TABLE table_1382 (
"Year" real,
"January" text,
"February" text,
"March" text,
"April" text,
"May" text,
"June" text,
"July" text,
"August" text,
"September" text,
"October" text,
"November" text,
"December" text,
"Annual Additions(in millions)" text,
"Average Monthly Additions(in millions)" text
) | SELECT "July" FROM table_1382 WHERE "March" = '0.41' |
What are the fewest seats with a -3.7% change and more than 4.7% votes? | CREATE TABLE table_name_28 (
seats INTEGER,
_percentage_change VARCHAR,
_percentage_votes VARCHAR
) | SELECT MIN(seats) FROM table_name_28 WHERE _percentage_change = -3.7 AND _percentage_votes > 4.7 |
Which Name has Games of 105? | CREATE TABLE table_name_53 (
name VARCHAR,
games VARCHAR
) | SELECT name FROM table_name_53 WHERE games = 105 |
What was the ticket price on September 16, 1986? | CREATE TABLE table_64443 (
"Date(s)" text,
"Venue" text,
"City" text,
"Ticket price(s)" text,
"Ticket sold / available" text,
"Ticket grossing" text
) | SELECT "Ticket price(s)" FROM table_64443 WHERE "Date(s)" = 'september 16, 1986' |
What is the first season written by joseph hampton & dani renee? | CREATE TABLE table_11630008_4 (
season_no INTEGER,
written_by VARCHAR
) | SELECT MIN(season_no) FROM table_11630008_4 WHERE written_by = "Joseph Hampton & Dani Renee" |
what was the first record broken ? | CREATE TABLE table_203_843 (
id number,
"record" text,
"date and time" text,
"competition" text,
"home or away" text,
"opponent" text,
"score" text
) | SELECT "record" FROM table_203_843 WHERE id = 1 |
Which shooter was the olympic bronze medalist? | CREATE TABLE table_name_75 (
shooter VARCHAR,
total VARCHAR
) | SELECT shooter FROM table_name_75 WHERE total = "olympic bronze medalist" |
What is the total capacity of dorms for each gender? Give me a bar chart. | 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)
)
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 Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
) | SELECT gender, SUM(student_capacity) FROM Dorm GROUP BY gender |
How many CFL teams drafted someone from mount allison college? | CREATE TABLE table_26996293_3 (
cfl_team VARCHAR,
college VARCHAR
) | SELECT COUNT(cfl_team) FROM table_26996293_3 WHERE college = "Mount Allison" |
Who was the home team when the away team scored 5.9 (39)? | CREATE TABLE table_33414 (
"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_33414 WHERE "Away team score" = '5.9 (39)' |
What was the score on January 12? | CREATE TABLE table_name_27 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_27 WHERE date = "january 12" |
Which team has a qualifying 2 time under 59.612 and a best of 59.14? | CREATE TABLE table_38485 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" real,
"Best" real
) | SELECT "Team" FROM table_38485 WHERE "Qual 2" < '59.612' AND "Best" = '59.14' |
Show the budget type code and description and the corresponding document id. | CREATE TABLE Documents_with_expenses (
document_id VARCHAR,
budget_type_code VARCHAR
)
CREATE TABLE Ref_budget_codes (
budget_type_code VARCHAR,
budget_type_description VARCHAR
) | SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code |
Who is the owner of the Raglan Road winner? | CREATE TABLE table_53835 (
"Year" text,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Distance" text,
"Time" text,
"Purse" text
) | SELECT "Owner" FROM table_53835 WHERE "Winner" = 'raglan road' |
Name the vacator for resigned february 26, 1836 because of ill health | CREATE TABLE table_25103 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) | SELECT "Vacator" FROM table_25103 WHERE "Reason for change" = 'Resigned February 26, 1836 because of ill health' |
How many different scores did Team Europe get when Mika Koivuniemi played for them? | CREATE TABLE table_22788 (
"Match no." real,
"Match Type" text,
"Team Europe" text,
"Score" text,
"Team USA" text,
"Progressive Total" text
) | SELECT COUNT("Score") FROM table_22788 WHERE "Team Europe" = 'Mika Koivuniemi' |
What is the value for model if processor is Kentsfield and brand name is Xeon? | CREATE TABLE table_2467150_2 (
model__list_ VARCHAR,
processor VARCHAR,
brand_name VARCHAR
) | SELECT model__list_ FROM table_2467150_2 WHERE processor = "Kentsfield" AND brand_name = "Xeon" |
Digital channel of 32 belongs to what analog channel? | CREATE TABLE table_name_3 (
analog_channel VARCHAR,
digital_channel VARCHAR
) | SELECT analog_channel FROM table_name_3 WHERE digital_channel = "32" |
What is the winning score of the match with a margin of 3 strokes? | CREATE TABLE table_name_39 (
winning_score VARCHAR,
margin VARCHAR
) | SELECT winning_score FROM table_name_39 WHERE margin = "3 strokes" |
What is the original artist when the vocal percussionist is Alexei Kalveks? | CREATE TABLE table_28715942_5 (
original_artist VARCHAR,
vocal_percussionist VARCHAR
) | SELECT original_artist FROM table_28715942_5 WHERE vocal_percussionist = "Alexei Kalveks" |
Which Win percentage has a Name of red kelly? | CREATE TABLE table_34190 (
"Name" text,
"Term" text,
"Games" real,
"Record (W\u2013L\u2013T / OTL)" text,
"Points" real,
"Win percentage" real
) | SELECT SUM("Win percentage") FROM table_34190 WHERE "Name" = 'red kelly' |
What is the 2004 value with 2r in 1994? | CREATE TABLE table_name_60 (
Id VARCHAR
) | SELECT 2004 FROM table_name_60 WHERE 1994 = "2r" |
Give me the comparison about All_Games_Percent over the All_Neutral by a bar chart, I want to order by the x axis 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 All_Neutral, All_Games_Percent FROM basketball_match ORDER BY All_Neutral DESC |
What is the type of allergy Cat? | CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT allergytype FROM allergy_type WHERE allergy = "Cat" |
What country is Yerevan located in? | CREATE TABLE table_name_21 (
country VARCHAR,
city VARCHAR
) | SELECT country FROM table_name_21 WHERE city = "yerevan" |
What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? | CREATE TABLE enzyme (
name VARCHAR,
location VARCHAR,
product VARCHAR,
id VARCHAR
)
CREATE TABLE medicine_enzyme_interaction (
enzyme_id VARCHAR,
interaction_type VARCHAR
) | SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor' |
What is the transfer fee for Jimmy Gibson? | CREATE TABLE table_8154 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text
) | SELECT "Transfer fee" FROM table_8154 WHERE "Name" = 'jimmy gibson' |
What is the Locality of the Penarth Group School for Ages 8-16? | CREATE TABLE table_name_90 (
locality VARCHAR,
ages VARCHAR,
school VARCHAR
) | SELECT locality FROM table_name_90 WHERE ages = "8-16" AND school = "penarth group school" |
What's the production code of the episode seen by 7.49 million people in the US? | CREATE TABLE table_23242950_1 (
production_code VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT production_code FROM table_23242950_1 WHERE us_viewers__millions_ = "7.49" |
What is maximum and minimum RAM size of phone produced by company named 'Nokia Corporation'? | CREATE TABLE screen_mode (
graphics_mode number,
char_cells text,
pixels text,
hardware_colours number,
used_kb number,
map text,
type text
)
CREATE TABLE chip_model (
model_name text,
launch_year number,
ram_mib number,
rom_mib number,
slots text,
wifi text,
bluetooth text
)
CREATE TABLE phone (
company_name text,
hardware_model_name text,
accreditation_type text,
accreditation_level text,
date text,
chip_model text,
screen_mode text
) | SELECT MAX(T1.ram_mib), MIN(T1.ram_mib) FROM chip_model AS T1 JOIN phone AS T2 ON T1.model_name = T2.chip_model WHERE T2.company_name = "Nokia Corporation" |
Name the team for arco arena 13,685 | CREATE TABLE table_17102076_5 (
team VARCHAR,
location_attendance VARCHAR
) | SELECT team FROM table_17102076_5 WHERE location_attendance = "ARCO Arena 13,685" |
Who is the Wednesday presenter of the show Big Brother 13? | CREATE TABLE table_17166 (
"Series" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text,
"Saturday" text,
"Sunday" text
) | SELECT "Wednesday" FROM table_17166 WHERE "Series" = 'Big Brother 13' |
Return a histogram on how many hosts does each nationality have? List the nationality and the count. | CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
)
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
) | SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality |
What is the competition when aggregate is 1 4? | CREATE TABLE table_1233026_4 (
competition VARCHAR,
aggregate VARCHAR
) | SELECT competition FROM table_1233026_4 WHERE aggregate = "1–4" |
In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'? | CREATE TABLE injury_accident (
game_id VARCHAR,
injury VARCHAR
)
CREATE TABLE stadium (
name VARCHAR,
id VARCHAR
)
CREATE TABLE game (
season VARCHAR,
stadium_id VARCHAR,
id VARCHAR
) | SELECT T1.season, T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem' |
How many games were on May 20? | CREATE TABLE table_17441 (
"Date" text,
"Winning Team" text,
"Score" text,
"Winning Pitcher" text,
"Losing Pitcher" text,
"Attendance" real,
"Location" text
) | SELECT COUNT("Attendance") FROM table_17441 WHERE "Date" = 'May 20' |
What is the type of electronic with the Gamecube Platform? | CREATE TABLE table_name_10 (
type VARCHAR,
platform VARCHAR
) | SELECT type FROM table_name_10 WHERE platform = "gamecube" |
how many more passengers flew to los angeles than to saskatoon from manzanillo airport in 2013 ? | CREATE TABLE table_203_515 (
id number,
"rank" number,
"city" text,
"passengers" number,
"ranking" number,
"airline" text
) | SELECT (SELECT "passengers" FROM table_203_515 WHERE "city" = 'los angeles') - (SELECT "passengers" FROM table_203_515 WHERE "city" = 'saskatoon') |
What was Spring Creek School's area when the decile was 4? | CREATE TABLE table_name_67 (
area VARCHAR,
decile VARCHAR,
name VARCHAR
) | SELECT area FROM table_name_67 WHERE decile = 4 AND name = "spring creek school" |
What was the population of a country with a population density of 14.3/km (/sqmi)? | CREATE TABLE table_26769_1 (
population__july_2009_est_ VARCHAR,
population_density_per_km² VARCHAR
) | SELECT population__july_2009_est_ FROM table_26769_1 WHERE population_density_per_km² = "14.3/km² (/sqmi)" |
Name the least position | CREATE TABLE table_20499 (
"Position" real,
"Club" text,
"Games played" real,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
) | SELECT MIN("Position") FROM table_20499 |
How many different numbers of cantons does the province with the Armenian name have? | CREATE TABLE table_23887174_1 (
number_of_cantons__gavars_ VARCHAR,
armenian_name VARCHAR
) | SELECT COUNT(number_of_cantons__gavars_) FROM table_23887174_1 WHERE armenian_name = "Վասպուրական" |
Show the ids and names of festivals that have at least two nominations for artworks Plot them as bar chart, and could you list by the total number in asc please? | CREATE TABLE nomination (
Artwork_ID int,
Festival_ID int,
Result text
)
CREATE TABLE festival_detail (
Festival_ID int,
Festival_Name text,
Chair_Name text,
Location text,
Year int,
Num_of_Audience int
)
CREATE TABLE artwork (
Artwork_ID int,
Type text,
Name text
) | SELECT T3.Festival_Name, T1.Festival_ID FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T1.Festival_ID |
What is the pick # for player wes lysack? | CREATE TABLE table_21321804_1 (
pick__number INTEGER,
player VARCHAR
) | SELECT MAX(pick__number) FROM table_21321804_1 WHERE player = "Wes Lysack" |
How many people attended the game at Jahn-sportpark? | CREATE TABLE table_3141 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
) | SELECT MIN("Attendance") FROM table_3141 WHERE "Game site" = 'Jahn-Sportpark' |
What format is catalogue WPCR13504 in? | CREATE TABLE table_57961 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue" text
) | SELECT "Format" FROM table_57961 WHERE "Catalogue" = 'wpcr13504' |
tell me the number of summer olympics on the list . | CREATE TABLE table_204_266 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
) | SELECT COUNT(*) FROM table_204_266 WHERE "season" = 'summer' |
What is the high capacity that has an average under 489 and a highest over 778? | CREATE TABLE table_53809 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
) | SELECT MAX("Capacity") FROM table_53809 WHERE "Average" < '489' AND "Highest" > '778' |
what is the least number of points that daly won in a single seasons | CREATE TABLE table_204_722 (
id number,
"season" text,
"series" text,
"team" text,
"races" number,
"wins" number,
"poles" number,
"f/lap" number,
"podiums" number,
"points" number,
"position" text
) | SELECT MIN("points") FROM table_204_722 |
where was mazouz ghaouti executed? | CREATE TABLE table_2861364_1 (
place_of_execution VARCHAR,
executed_person VARCHAR
) | SELECT place_of_execution FROM table_2861364_1 WHERE executed_person = "Mazouz Ghaouti" |
What was the place in season 8 with a rank by average at 139? | CREATE TABLE table_40464 (
"Rank by average" text,
"Place" text,
"Perfect 40s" text,
"Total" text,
"Number of dances" text,
"Season" text,
"Average" text
) | SELECT "Place" FROM table_40464 WHERE "Season" = '8' AND "Rank by average" = '139' |
what's the transmission where turbo is yes (mitsubishi td04-16t ) | CREATE TABLE table_16484 (
"Trim" text,
"Engine" text,
"Turbo" text,
"Fuel Delivery" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Performance" text
) | SELECT "Transmission" FROM table_16484 WHERE "Turbo" = 'Yes (Mitsubishi TD04-16t )' |
Name the total number of rank for percentage change yoy 13.1% | CREATE TABLE table_30153 (
"State Rank" real,
"National Rank" real,
"Institution" text,
"Location" text,
"Public or Private" text,
"Endowment Funds" text,
"Percentage Change YOY" text
) | SELECT COUNT("National Rank") FROM table_30153 WHERE "Percentage Change YOY" = '13.1%' |
What is Eftychia Karagianni Pos.? | CREATE TABLE table_60545 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
) | SELECT "Pos." FROM table_60545 WHERE "Name" = 'eftychia karagianni' |
What is the kickoff time for the Hubert H. Humphrey Metrodome? | CREATE TABLE table_55183 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
) | SELECT "Kickoff [a ]" FROM table_55183 WHERE "Game site" = 'hubert h. humphrey metrodome' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.