instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
How many cop apps in the season with fewer than 12 league apps?
|
CREATE TABLE table_32374 (
"Season" text,
"Team" text,
"League Apps" real,
"League Goals" real,
"Cup Apps" real,
"Cup Goals" real
)
|
SELECT SUM("Cup Apps") FROM table_32374 WHERE "League Apps" < '12'
|
What is the nationality of the player from Buffalo Sabres?
|
CREATE TABLE table_1213511_2 (
nationality VARCHAR,
nhl_team VARCHAR
)
|
SELECT nationality FROM table_1213511_2 WHERE nhl_team = "Buffalo Sabres"
|
What mark has over 813 points in the United States, and a 0.152 react?
|
CREATE TABLE table_46201 (
"Lane" real,
"Name" text,
"Country" text,
"Mark" text,
"React" real,
"Points" real
)
|
SELECT "Mark" FROM table_46201 WHERE "Points" > '813' AND "Country" = 'united states' AND "React" > '0.152'
|
How much absorption in nm does the orange dye have?
|
CREATE TABLE table_26428602_1 (
absorb__nm_ INTEGER,
color VARCHAR
)
|
SELECT MIN(absorb__nm_) FROM table_26428602_1 WHERE color = "orange"
|
What was the largest crowd when Collingwood was the away team?
|
CREATE TABLE table_name_67 (
crowd INTEGER,
away_team VARCHAR
)
|
SELECT MAX(crowd) FROM table_name_67 WHERE away_team = "collingwood"
|
Name the date for score of 95-101
|
CREATE TABLE table_21679 (
"Date" text,
"Opponent" text,
"Home / Away" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
)
|
SELECT "Date" FROM table_21679 WHERE "Score" = '95-101'
|
How many episodes had a season premiere on December 11, 2010?
|
CREATE TABLE table_25405 (
"Season" real,
"Episodes" real,
"Timeslot (ET)" text,
"Season Premiere" text,
"Season Finale" text,
"TV Season" text,
"Rank" text,
"Viewers (in millions)" text
)
|
SELECT COUNT("Episodes") FROM table_25405 WHERE "Season Premiere" = 'December 11, 2010'
|
What was the team that scored 122 points?
|
CREATE TABLE table_22048 (
"Team" text,
"Average" text,
"Points" real,
"Played" real,
"1988-89" text,
"1989-90" text,
"1990-1991" real
)
|
SELECT "Team" FROM table_22048 WHERE "Points" = '122'
|
Who is the Visitor on march 16?
|
CREATE TABLE table_38907 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
|
SELECT "Visitor" FROM table_38907 WHERE "Date" = 'march 16'
|
how many drivers scored above 150 points ?
|
CREATE TABLE table_204_853 (
id number,
"pos" number,
"grid" number,
"no." number,
"driver" text,
"team" text,
"manufacturer" text,
"laps" number,
"points" number
)
|
SELECT COUNT("driver") FROM table_204_853 WHERE "points" > 150
|
What county has an IHSAA Football Class of A, and a Mascot of royals?
|
CREATE TABLE table_63746 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Football Class" text,
"Primary Conference" text,
"County" text
)
|
SELECT "County" FROM table_63746 WHERE "IHSAA Football Class" = 'a' AND "Mascot" = 'royals'
|
What player scored 68-66=134?
|
CREATE TABLE table_62407 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
|
SELECT "Player" FROM table_62407 WHERE "Score" = '68-66=134'
|
Which Losses have a Wimmera FL of minyip murtoa?
|
CREATE TABLE table_name_35 (
losses INTEGER,
wimmera_fl VARCHAR
)
|
SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa"
|
What is the area (km 2) where the population density (/mk2) is 84.3?
|
CREATE TABLE table_1480455_1 (
area__km_2__ VARCHAR,
population_density___km_2__ VARCHAR
)
|
SELECT area__km_2__ FROM table_1480455_1 WHERE population_density___km_2__ = "84.3"
|
Where the Vancouver Grizzlies is the awards, what is the conference?
|
CREATE TABLE table_name_29 (
conference VARCHAR,
awards VARCHAR
)
|
SELECT conference FROM table_name_29 WHERE awards = "vancouver grizzlies"
|
Name the reason for change for jonathan jennings
|
CREATE TABLE table_2628 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
|
SELECT COUNT("Reason for change") FROM table_2628 WHERE "Successor" = 'Jonathan Jennings'
|
how long did it take the german team to finish the race ?
|
CREATE TABLE table_203_160 (
id number,
"rank" number,
"heat" number,
"nation" text,
"competitors" text,
"time" text,
"notes" text
)
|
SELECT "time" FROM table_203_160 WHERE "nation" = 'germany'
|
How many tree species are in the kitechura reserve?
|
CREATE TABLE table_16577990_1 (
tree_species VARCHAR,
central_forest_reserve VARCHAR
)
|
SELECT tree_species FROM table_16577990_1 WHERE central_forest_reserve = "Kitechura"
|
What is the intergiro classification of stage 21?
|
CREATE TABLE table_12261926_2 (
intergiro_classification VARCHAR,
stage VARCHAR
)
|
SELECT intergiro_classification FROM table_12261926_2 WHERE stage = 21
|
What is the best time of the team that had a qualifying 1 time of 1:01.043?
|
CREATE TABLE table_5198 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
|
SELECT "Best" FROM table_5198 WHERE "Qual 1" = '1:01.043'
|
Who was the publisher of Martial Law: Dead Ringers?
|
CREATE TABLE table_name_56 (
publisher VARCHAR,
release_title VARCHAR
)
|
SELECT publisher FROM table_name_56 WHERE release_title = "martial law: dead ringers"
|
which district has the greatest total number of electorates ?
|
CREATE TABLE table_204_255 (
id number,
"constituency number" number,
"name" text,
"reserved for (sc/st/none)" text,
"district" text,
"number of electorates (2009)" number
)
|
SELECT "district" FROM table_204_255 GROUP BY "district" ORDER BY SUM("number of electorates (2009)") DESC LIMIT 1
|
Who is the winner of the European Poker Tour Grand Final?
|
CREATE TABLE table_name_11 (
winner VARCHAR,
event VARCHAR
)
|
SELECT winner FROM table_name_11 WHERE event = "european poker tour grand final"
|
Who won the Modena circuit?
|
CREATE TABLE table_16771 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
|
SELECT "Winning driver" FROM table_16771 WHERE "Circuit" = 'Modena'
|
What was the highest place result in 2010 with a Clean and Jerk weight of 224kg?
|
CREATE TABLE table_14265 (
"Year" real,
"Competition" text,
"Location" text,
"Weight Category" text,
"Snatch" text,
"Clean and Jerk" text,
"Total" text,
"Place" real
)
|
SELECT MAX("Place") FROM table_14265 WHERE "Year" = '2010' AND "Clean and Jerk" = '224kg'
|
what's party with district being tennessee 3
|
CREATE TABLE table_18406 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
|
SELECT "Party" FROM table_18406 WHERE "District" = 'Tennessee 3'
|
how many times has galaxy won the derby ?
|
CREATE TABLE table_204_801 (
id number,
"year" number,
"derby\nwinner" text,
"galaxy" number,
"draw" number,
"chivas" number
)
|
SELECT COUNT(*) FROM table_204_801 WHERE "derby\nwinner" = 'galaxy'
|
What is the Opponent of the game in Week 3?
|
CREATE TABLE table_name_21 (
opponent VARCHAR,
week VARCHAR
)
|
SELECT opponent FROM table_name_21 WHERE week = 3
|
what is the rating when the rank (timeslot) is less than 3 and the rank (night) is less than 8?
|
CREATE TABLE table_name_92 (
rating INTEGER,
rank__timeslot_ VARCHAR,
rank__night_ VARCHAR
)
|
SELECT SUM(rating) FROM table_name_92 WHERE rank__timeslot_ < 3 AND rank__night_ < 8
|
What shows for 2000 when 2013 shows 3rd?
|
CREATE TABLE table_name_19 (
Id VARCHAR
)
|
SELECT 2000 FROM table_name_19 WHERE 2013 = "3rd"
|
Which country in the 2008 summer olympics is vadim devyatovskiy from?
|
CREATE TABLE table_name_16 (
country VARCHAR,
olympics VARCHAR,
name VARCHAR
)
|
SELECT country FROM table_name_16 WHERE olympics = "2008 summer olympics" AND name = "vadim devyatovskiy"
|
What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647?
|
CREATE TABLE table_11829 (
"State" text,
"Preliminaries" real,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
|
SELECT COUNT("Evening Gown") FROM table_11829 WHERE "Preliminaries" < '8.647' AND "State" = 'district of columbia'
|
What was the placing when the jockey was Damien Oliver?
|
CREATE TABLE table_24915874_1 (
placing VARCHAR,
jockey VARCHAR
)
|
SELECT placing FROM table_24915874_1 WHERE jockey = "Damien Oliver"
|
Who are the villains in 'the others'?
|
CREATE TABLE table_25688 (
"Episode Number" text,
"Title" text,
"Villains" text,
"Director" text,
"Writer" text,
"Original airdate" text
)
|
SELECT "Villains" FROM table_25688 WHERE "Title" = 'The Others'
|
How many maximum points did Curtis scored?
|
CREATE TABLE table_28031 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
|
SELECT MAX("Points") FROM table_28031 WHERE "Player" = 'Curtis'
|
Which venue was used 11 february 1996?
|
CREATE TABLE table_name_45 (
venue VARCHAR,
date VARCHAR
)
|
SELECT venue FROM table_name_45 WHERE date = "11 february 1996"
|
What year was Zona Sur nominated?
|
CREATE TABLE table_76393 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Language(s)" text,
"Director" text,
"Result" text
)
|
SELECT "Year (Ceremony)" FROM table_76393 WHERE "Original title" = 'zona sur'
|
What is the Musical Guest/Song with an original airdate of january 2008?
|
CREATE TABLE table_40938 (
"Pilot" text,
"Original Airdate" text,
"Musical Guest/Song performed" text,
"YouTube Hero" text,
"MySpace Band" text
)
|
SELECT "Musical Guest/Song performed" FROM table_40938 WHERE "Original Airdate" = 'january 2008'
|
What is Team 2, when Score is 2 - 1?
|
CREATE TABLE table_name_86 (
team_2 VARCHAR,
score VARCHAR
)
|
SELECT team_2 FROM table_name_86 WHERE score = "2 - 1"
|
What is the average total with a nation of thailand with a gold smaller than 17?
|
CREATE TABLE table_5497 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
|
SELECT AVG("Total") FROM table_5497 WHERE "Nation" = 'thailand' AND "Gold" < '17'
|
Which games had Philadelphia as home team?
|
CREATE TABLE table_name_20 (
game VARCHAR,
home_team VARCHAR
)
|
SELECT game FROM table_name_20 WHERE home_team = "philadelphia"
|
What was the evening gown score when the swimsuit was 9.61?
|
CREATE TABLE table_11884814_3 (
evening_gown VARCHAR,
swimsuit VARCHAR
)
|
SELECT evening_gown FROM table_11884814_3 WHERE swimsuit = "9.61"
|
What is the constructor where the circuit is Silverstone?
|
CREATE TABLE table_52704 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
|
SELECT "Constructor" FROM table_52704 WHERE "Circuit" = 'silverstone'
|
I want the score for 23 july 1992
|
CREATE TABLE table_name_86 (
score VARCHAR,
date VARCHAR
)
|
SELECT score FROM table_name_86 WHERE date = "23 july 1992"
|
What's the IS-3 when the KV-1S is 45?
|
CREATE TABLE table_14222 (
"T-35" text,
"T-100" text,
"KV-1 M1940" text,
"KV-1 M1941" text,
"KV-1 M1942" text,
"KV-1S M1942" text,
"KV-85 M1943" text,
"IS-2 M1945" text,
"IS-3 M1945" text
)
|
SELECT "IS-3 M1945" FROM table_14222 WHERE "KV-1S M1942" = '45'
|
uncontrolled diabetes defined as a fpg level of > 240 mg / dl at screening
|
CREATE TABLE table_train_179 (
"id" int,
"systolic_blood_pressure_sbp" int,
"fasting_plasma_glucose_fpg" float,
"diastolic_blood_pressure_dbp" int,
"diabetes" bool,
"body_mass_index_bmi" float,
"triglyceride_tg" float,
"hypertension" bool,
"age" float,
"NOUSE" float
)
|
SELECT * FROM table_train_179 WHERE diabetes = 1 OR fasting_plasma_glucose_fpg > 240
|
What series number had an original airdate of March 1, 1991?
|
CREATE TABLE table_26540 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
|
SELECT MIN("No. in series") FROM table_26540 WHERE "Original air date" = 'March 1, 1991'
|
What is the lowest dye absoprtion in nm?
|
CREATE TABLE table_26428602_1 (
absorb__nm_ INTEGER
)
|
SELECT MIN(absorb__nm_) FROM table_26428602_1
|
WHAT MANUFACTURER AFTER 1966 HAD A START SMALLER THAN 5, A WOOD TEAM AND FINISHED 35?
|
CREATE TABLE table_58848 (
"Year" real,
"Manufacturer" text,
"Start" real,
"Finish" real,
"Team" text
)
|
SELECT "Manufacturer" FROM table_58848 WHERE "Year" > '1966' AND "Start" < '5' AND "Team" = 'wood' AND "Finish" = '35'
|
What is the highest React that has a 7.61 Mark and a heat bigger than 1?
|
CREATE TABLE table_name_84 (
react INTEGER,
mark VARCHAR,
heat VARCHAR
)
|
SELECT MAX(react) FROM table_name_84 WHERE mark = "7.61" AND heat > 1
|
What game in February 10, 2009 has the most points and a game number larger than 54?
|
CREATE TABLE table_48148 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
|
SELECT MAX("Points") FROM table_48148 WHERE "Date" = 'february 10, 2009' AND "Game" > '54'
|
Who is the driver with 1 grid?
|
CREATE TABLE table_44914 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
|
SELECT "Driver" FROM table_44914 WHERE "Grid" = '1'
|
how many countries other than spain placed 2nd in the national final category ?
|
CREATE TABLE table_204_809 (
id number,
"draw" number,
"country" text,
"language" text,
"artist" text,
"song" text,
"english translation" text,
"national final" text,
"place" number,
"points" number
)
|
SELECT COUNT("country") FROM table_204_809 WHERE "country" <> 'spain' AND "national final" = 2
|
Where was South Melbourne played?
|
CREATE TABLE table_name_13 (
venue VARCHAR,
home_team VARCHAR
)
|
SELECT venue FROM table_name_13 WHERE home_team = "south melbourne"
|
What is the average Season, when F/Laps is 1, and when Poles is less than 0?
|
CREATE TABLE table_42825 (
"Season" real,
"Series" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
)
|
SELECT AVG("Season") FROM table_42825 WHERE "F/Laps" = '1' AND "Poles" < '0'
|
What is the area of the appelation that produces the highest number of wines before the year of 2010?
|
CREATE TABLE APPELLATIONS (
Area VARCHAR,
Appelation VARCHAR
)
CREATE TABLE WINE (
Appelation VARCHAR,
year VARCHAR
)
|
SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY COUNT(*) DESC LIMIT 1
|
Which 3rd run has rank of 8?
|
CREATE TABLE table_name_55 (
rank VARCHAR
)
|
SELECT 3 AS rd_run FROM table_name_55 WHERE rank = 8
|
What is the Away Team score of North Melbourne?
|
CREATE TABLE table_name_24 (
away_team VARCHAR
)
|
SELECT away_team AS score FROM table_name_24 WHERE away_team = "north melbourne"
|
What is the tie number when Wigan Athletic is the home team?
|
CREATE TABLE table_8010 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
|
SELECT "Tie no" FROM table_8010 WHERE "Home team" = 'wigan athletic'
|
What circuit had rnd 3?
|
CREATE TABLE table_26503 (
"Rnd" real,
"Circuit" text,
"LMP Winning Team" text,
"LMPC Winning Team" text,
"GT Winning Team" text,
"GTC Winning Team" text,
"Results" text
)
|
SELECT "Circuit" FROM table_26503 WHERE "Rnd" = '3'
|
nejat konuk and dervi ş ero ğ lu are from which party ?
|
CREATE TABLE table_203_694 (
id number,
"#" number,
"name" text,
"took office" text,
"left office" text,
"party" text
)
|
SELECT "party" FROM table_203_694 WHERE "name" IN ('nejat konuk', 'dervis eroglu')
|
Who was runner-up in the 2006 Pacific Life Open?
|
CREATE TABLE table_name_62 (
runner_up VARCHAR,
name VARCHAR,
year VARCHAR
)
|
SELECT runner_up FROM table_name_62 WHERE name = "pacific life open" AND year = "2006"
|
What was the date when the attendance was 63995
|
CREATE TABLE table_14875671_1 (
date VARCHAR,
attendance VARCHAR
)
|
SELECT date FROM table_14875671_1 WHERE attendance = 63995
|
What was the method of resolution when Mikhail Ilyukhin's record was 4-0?
|
CREATE TABLE table_name_92 (
method VARCHAR,
record VARCHAR
)
|
SELECT method FROM table_name_92 WHERE record = "4-0"
|
What was the To par of Jack Nicklaus?
|
CREATE TABLE table_45304 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
|
SELECT "To par" FROM table_45304 WHERE "Player" = 'jack nicklaus'
|
What is the Capacity of the Venue of Head Coach Farhad Kazemi?
|
CREATE TABLE table_78872 (
"Team" text,
"City" text,
"Venue" text,
"Capacity" real,
"Head Coach" text,
"Team Captain" text,
"Past Season" text
)
|
SELECT SUM("Capacity") FROM table_78872 WHERE "Head Coach" = 'farhad kazemi'
|
When was the delevery date when there were 12 ways of delivery?
|
CREATE TABLE table_16878 (
"Yard Name" text,
"Location (city, state)" text,
"1st Ship Delivery Date" text,
"Ship Types Delivered" text,
"Total Number of Ways" text,
"total vessels built" text
)
|
SELECT "1st Ship Delivery Date" FROM table_16878 WHERE "Total Number of Ways" = '12 ways'
|
what is the region when the location is 49.7462 n 117.1419 w?
|
CREATE TABLE table_47378 (
"Rank" real,
"Mountain Peak" text,
"Region" text,
"Mountain Range" text,
"Location" text
)
|
SELECT "Region" FROM table_47378 WHERE "Location" = '49.7462°n 117.1419°w'
|
Show id from each meter 400, and sort y-axis in ascending order.
|
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 event (
ID int,
Name text,
Stadium_ID int,
Year 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
)
|
SELECT meter_400, ID FROM swimmer ORDER BY ID
|
What's the T-100 when the IS-3 is 150 (225)?
|
CREATE TABLE table_14223 (
"T-35" text,
"T-100" text,
"KV-1 M1940" text,
"KV-1 M1941" text,
"KV-1 M1942" text,
"KV-1S M1942" text,
"KV-85 M1943" text,
"IS-2 M1945" text,
"IS-3 M1945" text
)
|
SELECT "T-100" FROM table_14223 WHERE "IS-3 M1945" = '150 (225)'
|
What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2?
|
CREATE TABLE table_64018 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
|
SELECT AVG("Gold") FROM table_64018 WHERE "Bronze" = '1' AND "Total" > '2' AND "Silver" < '3'
|
What is the Name of the Junior from Fayetteville, NC?
|
CREATE TABLE table_name_69 (
name VARCHAR,
year VARCHAR,
home_town VARCHAR
)
|
SELECT name FROM table_name_69 WHERE year = "junior" AND home_town = "fayetteville, nc"
|
sitting blood pressure > 160 / 100 mm hg. physician evaluation
|
CREATE TABLE table_train_104 (
"id" int,
"migraines" bool,
"depression" bool,
"mini_mental_state_examination_mmse" int,
"systolic_blood_pressure_sbp" int,
"renal_disease" bool,
"alzheimer" bool,
"estimated_glomerular_filtration_rate_egfr" int,
"diastolic_blood_pressure_dbp" int,
"clinical_dementia_rating_cdr" float,
"NOUSE" float
)
|
SELECT * FROM table_train_104 WHERE systolic_blood_pressure_sbp >= 160 OR diastolic_blood_pressure_dbp >= 100
|
What is the surface for the Volos tournament?
|
CREATE TABLE table_79662 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in final" text,
"Score" text,
"Prize Money" text
)
|
SELECT "Surface" FROM table_79662 WHERE "Tournament" = 'volos'
|
Which Website has a Frequency smaller than 760 and a Callsign of kkyx?
|
CREATE TABLE table_33863 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"City of License" text,
"Website" text,
"Webcast" text
)
|
SELECT "Website" FROM table_33863 WHERE "Frequency" < '760' AND "Callsign" = 'kkyx'
|
What is varricchio's unit?
|
CREATE TABLE table_name_75 (
unit VARCHAR,
authors VARCHAR
)
|
SELECT unit FROM table_name_75 WHERE authors = "varricchio"
|
who is the the opponent with district being ohio12
|
CREATE TABLE table_1341522_38 (
opponent VARCHAR,
district VARCHAR
)
|
SELECT opponent FROM table_1341522_38 WHERE district = "Ohio12"
|
If the score is 62-70, what are the high points?
|
CREATE TABLE table_21330 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
)
|
SELECT "High points" FROM table_21330 WHERE "Score" = '62-70'
|
Return a scatter chart about the correlation between Body_Builder_ID and Clean_Jerk .
|
CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
)
|
SELECT Body_Builder_ID, Clean_Jerk FROM body_builder
|
What is the Score with a Home with hornets?
|
CREATE TABLE table_name_54 (
score VARCHAR,
home VARCHAR
)
|
SELECT score FROM table_name_54 WHERE home = "hornets"
|
renal failure
|
CREATE TABLE table_train_258 (
"id" int,
"gender" string,
"autoimmune_disease" bool,
"renal_disease" bool,
"hepatic_disease" bool,
"immune_deficiency_disorder" bool,
"active_hepatitis" bool,
"body_mass_index_bmi" float,
"NOUSE" float
)
|
SELECT * FROM table_train_258 WHERE renal_disease = 1
|
How many climbers are from each country, and sort by the Y in ascending.
|
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
|
SELECT Country, COUNT(*) FROM climber GROUP BY Country ORDER BY COUNT(*)
|
Find the name of scientists who are not assigned to any project.
|
CREATE TABLE scientists (
ssn number,
name text
)
CREATE TABLE projects (
code text,
name text,
hours number
)
CREATE TABLE assignedto (
scientist number,
project text
)
|
SELECT name FROM scientists WHERE NOT ssn IN (SELECT scientist FROM assignedto)
|
What are the average, maximum and total revenues of all companies?
|
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
|
SELECT AVG(revenue), MAX(revenue), SUM(revenue) FROM manufacturers
|
Name the most released for apologize
|
CREATE TABLE table_24600706_1 (
released INTEGER,
song VARCHAR
)
|
SELECT MAX(released) FROM table_24600706_1 WHERE song = "Apologize"
|
Which Game has a Record of 27-11-10?
|
CREATE TABLE table_38452 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text
)
|
SELECT AVG("Game") FROM table_38452 WHERE "Record" = '27-11-10'
|
Name the post poles for 4 podiums
|
CREATE TABLE table_29650 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" real,
"Poles" real,
"Wins" real,
"Podiums" real,
"F/Laps" real,
"Points" real,
"Final Placing" text
)
|
SELECT MAX("Poles") FROM table_29650 WHERE "Podiums" = '4'
|
What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail?
|
CREATE TABLE table_45338 (
"Year" real,
"Domestic freight" real,
"Domestic mail" real,
"International freight" real,
"International mail" real,
"Total freight and mail" real,
"Change" text
)
|
SELECT MAX("International mail") FROM table_45338 WHERE "Change" = '+0,2%' AND "Domestic mail" < '0'
|
what is the total population for aberdeen in 2011 ?
|
CREATE TABLE table_204_43 (
id number,
"name" text,
"rural\nmunicipality (rm)" text,
"population\n(2011)" number,
"population\n(2006)" number,
"change\n(%)" number,
"land\narea\n(km2)" number,
"population\ndensity\n(per km2)" number
)
|
SELECT "population\n(2011)" FROM table_204_43 WHERE "name" = 'aberdeen'
|
Give me the comparison about the amount of ACC_Road over the ACC_Road , and group by attribute ACC_Road, display x-axis in desc order.
|
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 ACC_Road, COUNT(ACC_Road) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road DESC
|
Who is the opponent in 1992?
|
CREATE TABLE table_68868 (
"Rank" text,
"Score" text,
"Player" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
)
|
SELECT "Opponent" FROM table_68868 WHERE "Year" = '1992'
|
With a per capita income of $30,298, what was the total number of households?
|
CREATE TABLE table_1840495_2 (
number_of_households VARCHAR,
per_capita_income VARCHAR
)
|
SELECT COUNT(number_of_households) FROM table_1840495_2 WHERE per_capita_income = "$30,298"
|
Name the total number of round for wide receiver for kent state
|
CREATE TABLE table_74833 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
|
SELECT COUNT("Round") FROM table_74833 WHERE "Position" = 'wide receiver' AND "College" = 'kent state'
|
Which model number has a GVM (kg) Technical Capacity of 16000 and a Torque Nm@rpm of 600 @ 1700?
|
CREATE TABLE table_241 (
"Model" text,
"Engine make/Capacity" text,
"Power kW@rpm" text,
"Torque Nm@rpm" text,
"Transmission Make/Type/Speed" text,
"GVM (kg) Technical Capacity" text,
"GCM (kg) Technical Capacity" text
)
|
SELECT "Model" FROM table_241 WHERE "GVM (kg) Technical Capacity" = '16000' AND "Torque Nm@rpm" = '600 @ 1700'
|
Which Opposition has a Year smaller than 1977, and a City of manchester?
|
CREATE TABLE table_5401 (
"Score" real,
"Opposition" text,
"Venue" text,
"City" text,
"Year" real
)
|
SELECT "Opposition" FROM table_5401 WHERE "Year" < '1977' AND "City" = 'manchester'
|
What is Money ( $ ), when Score is '75-71-72-70=288'?
|
CREATE TABLE table_name_35 (
money___$__ VARCHAR,
score VARCHAR
)
|
SELECT money___$__ FROM table_name_35 WHERE score = 75 - 71 - 72 - 70 = 288
|
Who is the home side when the away side scores 11.15 (81)?
|
CREATE TABLE table_33617 (
"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_33617 WHERE "Away team score" = '11.15 (81)'
|
What was the result of rank 1?
|
CREATE TABLE table_57194 (
"Rank" real,
"Constituency" text,
"Winning party 2007" text,
"Swing to gain" real,
"Labour's place 2007" text,
"Result" text
)
|
SELECT "Result" FROM table_57194 WHERE "Rank" = '1'
|
Which year has a total of 0 points and a chassis of Toleman tg181?
|
CREATE TABLE table_name_88 (
year INTEGER,
points VARCHAR,
chassis VARCHAR
)
|
SELECT AVG(year) FROM table_name_88 WHERE points = 0 AND chassis = "toleman tg181"
|
Find the captain rank that has no captain in Third-rate ship of the line class.
|
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
|
SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE class = 'Third-rate ship of the line'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.