instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
Which Score has a Result of 0 2?
|
CREATE TABLE table_name_81 (
score VARCHAR,
result VARCHAR
)
|
SELECT score FROM table_name_81 WHERE result = "0 – 2"
|
How many viewers watched the episode with a story by david simon & mari kornhauser?
|
CREATE TABLE table_29122 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Story by" text,
"Teleplay by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
|
SELECT "U.S. viewers (millions)" FROM table_29122 WHERE "Story by" = 'David Simon & Mari Kornhauser'
|
what is the mascot for moores hill that joined later than 1952?
|
CREATE TABLE table_name_19 (
mascot VARCHAR,
year_joined VARCHAR,
school VARCHAR
)
|
SELECT mascot FROM table_name_19 WHERE year_joined > 1952 AND school = "moores hill"
|
What rank is He Yingqin who was born before 1890?
|
CREATE TABLE table_name_75 (
rank INTEGER,
name VARCHAR,
birth VARCHAR
)
|
SELECT AVG(rank) FROM table_name_75 WHERE name = "he yingqin" AND birth < 1890
|
What is the name of the song that was released in the most recent year?
|
CREATE TABLE song (
song_name VARCHAR,
releasedate VARCHAR
)
|
SELECT song_name, releasedate FROM song ORDER BY releasedate DESC LIMIT 1
|
What is the Att-Cmp-Int for the player with a efficiency of 117.4?
|
CREATE TABLE table_39313 (
"Name" text,
"GP-GS" text,
"Effic" real,
"Att-Cmp-Int" text,
"Avg/G" real
)
|
SELECT "Att-Cmp-Int" FROM table_39313 WHERE "Effic" = '117.4'
|
bmi 25 to 35 inclusive
|
CREATE TABLE table_train_234 (
"id" int,
"orthostatic_hypotension" bool,
"systolic_blood_pressure_sbp" int,
"estimated_glomerular_filtration_rate_egfr" int,
"postural_fall_of_dbp" int,
"diastolic_blood_pressure_dbp" int,
"postural_fall_of_sbp" int,
"allergy_to_sglt_2_inhibitors" bool,
"body_mass_index_bmi" float,
"NOUSE" float
)
|
SELECT * FROM table_train_234 WHERE body_mass_index_bmi >= 25 AND body_mass_index_bmi <= 35
|
Name the total number of awardees for best screenplay
|
CREATE TABLE table_3059 (
"Name of Award" text,
"Name of Film" text,
"Language" text,
"Awardee(s)" text,
"Cash Prize" text
)
|
SELECT COUNT("Awardee(s)") FROM table_3059 WHERE "Name of Award" = 'Best Screenplay'
|
What is the smallest crowd for a game when Melbourne is the home team?
|
CREATE TABLE table_name_38 (
crowd INTEGER,
home_team VARCHAR
)
|
SELECT MIN(crowd) FROM table_name_38 WHERE home_team = "melbourne"
|
What was the decision of the Kings game when Chicago was the visiting team?
|
CREATE TABLE table_name_71 (
decision VARCHAR,
visitor VARCHAR
)
|
SELECT decision FROM table_name_71 WHERE visitor = "chicago"
|
Who has the Home Score of 52-54?
|
CREATE TABLE table_name_76 (
home VARCHAR,
score VARCHAR
)
|
SELECT home FROM table_name_76 WHERE score = "52-54"
|
What is the frequency of the model whose part number is ado520biaa5do?
|
CREATE TABLE table_895 (
"Model Number" text,
"Stepping" text,
"Frequency" text,
"L2 Cache" text,
"HT" text,
"Multi 1" text,
"V Core" text,
"TDP" text,
"Socket" text,
"Release Date" text,
"Part Number(s)" text
)
|
SELECT "Frequency" FROM table_895 WHERE "Part Number(s)" = 'ADO520BIAA5DO'
|
what is the number of fans who attended the december 7 , 1969 game against the broncos ?
|
CREATE TABLE table_204_670 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" number
)
|
SELECT "attendance" FROM table_204_670 WHERE "date" = 'december 7, 1969'
|
Which Record has a Year larger than 1974, and a Finish of 3rd?
|
CREATE TABLE table_65323 (
"Year" real,
"Record" text,
"Finish" text,
"Manager" text,
"Playoffs" text
)
|
SELECT "Record" FROM table_65323 WHERE "Year" > '1974' AND "Finish" = '3rd'
|
What is the group B region with a Group E region of Georgia?
|
CREATE TABLE table_name_17 (
group_b VARCHAR,
group_e VARCHAR
)
|
SELECT group_b FROM table_name_17 WHERE group_e = "georgia"
|
Name the gdp per capita for haiti
|
CREATE TABLE table_26313243_1 (
gdp__ppp__per_capita___intl_$___2011 VARCHAR,
country VARCHAR
)
|
SELECT gdp__ppp__per_capita___intl_$___2011 FROM table_26313243_1 WHERE country = "Haiti"
|
If the player is Hashan Tillakaratne, what is the catches minimum?
|
CREATE TABLE table_26041144_16 (
catches INTEGER,
player VARCHAR
)
|
SELECT MIN(catches) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne"
|
what is the difference in height between key tower and 55 public square
|
CREATE TABLE table_204_649 (
id number,
"rank" number,
"name" text,
"image" number,
"height\nft (m)" text,
"floors" number,
"year" number,
"notes" text
)
|
SELECT ABS((SELECT "height\nft (m)" FROM table_204_649 WHERE "name" = 'key tower') - (SELECT "height\nft (m)" FROM table_204_649 WHERE "name" = '55 public square'))
|
Which Inflation Index (2000=100) has a Per Capita Income (as % of USA) of 10.65, and a Year smaller than 1990?
|
CREATE TABLE table_66385 (
"Year" real,
"Gross Domestic Product" real,
"US Dollar Exchange" text,
"Inflation Index (2000=100)" real,
"Per Capita Income (as % of USA)" real
)
|
SELECT MAX("Inflation Index (2000=100)") FROM table_66385 WHERE "Per Capita Income (as % of USA)" = '10.65' AND "Year" < '1990'
|
what team scored 65-87
|
CREATE TABLE table_6309 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
|
SELECT "Date" FROM table_6309 WHERE "Record" = '65-87'
|
Draw a bar chart of operating system versus the total number
|
CREATE TABLE browser (
id int,
name text,
market_share real
)
CREATE TABLE accelerator_compatible_browser (
accelerator_id int,
browser_id int,
compatible_since_year int
)
CREATE TABLE Web_client_accelerator (
id int,
name text,
Operating_system text,
Client text,
Connection text
)
|
SELECT Operating_system, COUNT(*) FROM Web_client_accelerator GROUP BY Operating_system
|
What kind of the Winning driver has a Circuit of saint-rapha l?
|
CREATE TABLE table_62007 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
|
SELECT "Winning driver" FROM table_62007 WHERE "Circuit" = 'saint-raphaël'
|
Which Services have a Local authority of chiltern, and a Zone 2010 of 9?
|
CREATE TABLE table_75339 (
"Station" text,
"Services" text,
"Local authority" text,
"Zone 2007" text,
"Zone 2008" text,
"Zone 2010" text,
"Zone 2013" text
)
|
SELECT "Services" FROM table_75339 WHERE "Local authority" = 'chiltern' AND "Zone 2010" = '9'
|
Create a bar chart showing how many allergytype across allergytype, and show Y from low to high order.
|
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_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
|
SELECT AllergyType, COUNT(AllergyType) FROM Allergy_Type GROUP BY AllergyType ORDER BY COUNT(AllergyType)
|
What are the home team scores when fremantle is the away team?
|
CREATE TABLE table_16388506_1 (
home_team VARCHAR,
away_team VARCHAR
)
|
SELECT home_team AS score FROM table_16388506_1 WHERE away_team = "Fremantle"
|
What is the total number of goals scored of the club with more than 3 draws, more than 1 loses, and less than 26 points?
|
CREATE TABLE table_name_15 (
goals_scored VARCHAR,
points VARCHAR,
draws VARCHAR,
loses VARCHAR
)
|
SELECT COUNT(goals_scored) FROM table_name_15 WHERE draws > 3 AND loses > 1 AND points < 26
|
What was the best top five result when the average start is 28.5?
|
CREATE TABLE table_2506 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
|
SELECT MAX("Top 5") FROM table_2506 WHERE "Avg. Start" = '28.5'
|
Which HMO has a conventional plan of 3% in 2005?
|
CREATE TABLE table_7114 (
"Year" real,
"Conventional plans" text,
"HMOs" text,
"PPOs" text,
"POS plans" text
)
|
SELECT "HMOs" FROM table_7114 WHERE "Conventional plans" = '3%' AND "Year" = '2005'
|
What is the name/designation for the 1200kg payload?
|
CREATE TABLE table_name_81 (
name_designation VARCHAR,
payload VARCHAR
)
|
SELECT name_designation FROM table_name_81 WHERE payload = "1200kg"
|
What is the molecular target listed under the compounded name of hemiasterlin (e7974)
|
CREATE TABLE table_12715053_1 (
molecular_target VARCHAR,
compound_name VARCHAR
)
|
SELECT molecular_target FROM table_12715053_1 WHERE compound_name = "Hemiasterlin (E7974)"
|
What Year has a Result smaller than 20.31, and a World Rank of 5th?
|
CREATE TABLE table_42964 (
"Year" real,
"Result" real,
"World Rank" text,
"Location" text,
"Date" text
)
|
SELECT AVG("Year") FROM table_42964 WHERE "Result" < '20.31' AND "World Rank" = '5th'
|
What College/Junior/Club Team (League) has a round of 3?
|
CREATE TABLE table_name_32 (
college_junior_club_team__league_ VARCHAR,
round VARCHAR
)
|
SELECT college_junior_club_team__league_ FROM table_name_32 WHERE round = 3
|
How many nuclear power plants were shut down now?
|
CREATE TABLE nuclear_power_plants (
id text,
name text,
latitude text,
longitude text,
country text,
status text,
reactortype text,
reactormodel text,
constructionstartat text,
operationalfrom text,
operationalto text,
capacity text,
lastupdatedat text,
source text
)
|
SELECT COUNT(*) FROM nuclear_power_plants WHERE status = "Shutdown"
|
When was terry cook picked?
|
CREATE TABLE table_51891 (
"Pick" real,
"Round" text,
"Player" text,
"Position" text,
"School" text
)
|
SELECT AVG("Pick") FROM table_51891 WHERE "Player" = 'terry cook'
|
What is the highest attendance of the match with a 2:0 score and vida as the away team?
|
CREATE TABLE table_name_59 (
attendance INTEGER,
score VARCHAR,
away VARCHAR
)
|
SELECT MAX(attendance) FROM table_name_59 WHERE score = "2:0" AND away = "vida"
|
What was the surface for the opponent Marcos Baghdatis?
|
CREATE TABLE table_name_3 (
surface VARCHAR,
opponent VARCHAR
)
|
SELECT surface FROM table_name_3 WHERE opponent = "marcos baghdatis"
|
What is the 1952 rate when the 1954 is more than 4.2?
|
CREATE TABLE table_65970 (
"Country" text,
"1951" real,
"1952" real,
"1953" real,
"1954" real,
"1955" real,
"1956" real,
"1957" real,
"1958" real,
"1959" real
)
|
SELECT SUM("1952") FROM table_65970 WHERE "1954" > '4.2'
|
how many zogby international polls took place in the month of august ?
|
CREATE TABLE table_203_43 (
id number,
"polling firm" text,
"month" text,
"link" text,
"favor" number,
"oppose" number
)
|
SELECT COUNT("polling firm") FROM table_203_43 WHERE "polling firm" = 'zogby international' AND "month" = 8
|
If a radius is 10, what is the lowest possible mass?
|
CREATE TABLE table_10432351_1 (
mass__m___ INTEGER,
radius__r___ VARCHAR
)
|
SELECT MIN(mass__m___) FROM table_10432351_1 WHERE radius__r___ = 10
|
Who was the away team when bournemouth was the home team?
|
CREATE TABLE table_8021 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
|
SELECT "Away team" FROM table_8021 WHERE "Home team" = 'bournemouth'
|
Show the Result of inger miller?
|
CREATE TABLE table_12669 (
"Rank" real,
"Result" text,
"Wind" text,
"Athlete" text,
"Date" text,
"Location" text
)
|
SELECT "Result" FROM table_12669 WHERE "Athlete" = 'inger miller'
|
What is the date with the distance of km (mi) at the course of roccaraso to san giorgio del sannio?
|
CREATE TABLE table_name_20 (
date VARCHAR,
distance VARCHAR,
course VARCHAR
)
|
SELECT date FROM table_name_20 WHERE distance = "km (mi)" AND course = "roccaraso to san giorgio del sannio"
|
what's the area (km 2 ) with population census 2009 being 939370
|
CREATE TABLE table_1404456_1 (
area__km_2__ VARCHAR,
population_census_2009 VARCHAR
)
|
SELECT area__km_2__ FROM table_1404456_1 WHERE population_census_2009 = 939370
|
What is the average year for Team Oreca?
|
CREATE TABLE table_40097 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
|
SELECT AVG("Year") FROM table_40097 WHERE "Team" = 'team oreca'
|
What's the title of the song by Winger?
|
CREATE TABLE table_69010 (
"Year" real,
"Song title" text,
"Artist" text,
"Master recording?" text,
"Tier" text
)
|
SELECT "Song title" FROM table_69010 WHERE "Artist" = 'winger'
|
Mideast region host University of Tennessee is in what state?
|
CREATE TABLE table_40695 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
)
|
SELECT "State" FROM table_40695 WHERE "Region" = 'mideast' AND "Host" = 'university of tennessee'
|
What is the away team's score when south melbourne is the away team?
|
CREATE TABLE table_4823 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Away team score" FROM table_4823 WHERE "Away team" = 'south melbourne'
|
Which Country has a Network of channel 1?
|
CREATE TABLE table_name_97 (
country VARCHAR,
network VARCHAR
)
|
SELECT country FROM table_name_97 WHERE network = "channel 1"
|
Namethe school team for season 2008
|
CREATE TABLE table_1261 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
)
|
SELECT "School/Club Team" FROM table_1261 WHERE "Season" = '2008'
|
Tell me the Europe for z.h.p. unlosing ranger vs darkdeath evilman
|
CREATE TABLE table_name_79 (
europe VARCHAR,
title VARCHAR
)
|
SELECT europe FROM table_name_79 WHERE title = "z.h.p. unlosing ranger vs darkdeath evilman"
|
how many songs are at most 3 minutes long ?
|
CREATE TABLE table_203_353 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"featured guest(s)" text,
"time" text
)
|
SELECT COUNT("title") FROM table_203_353 WHERE "time" < 3
|
What is the highest number of goals Eisb ren Berlin had along with 13 points and 10 assists?
|
CREATE TABLE table_48215 (
"Player" text,
"Club" text,
"Games" real,
"Goals" real,
"Assists" real,
"Points" real
)
|
SELECT MAX("Goals") FROM table_48215 WHERE "Points" = '13' AND "Assists" = '10' AND "Club" = 'eisbären berlin'
|
What was the Pick Number when the position was wide receiver, the college was Southern Miss with an overall less than 186?
|
CREATE TABLE table_6626 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
|
SELECT AVG("Pick #") FROM table_6626 WHERE "Position" = 'wide receiver' AND "College" = 'southern miss' AND "Overall" < '186'
|
Where is the historic place that was built in 1910?
|
CREATE TABLE table_44962 (
"Name" text,
"Built" text,
"Listed" text,
"Location" text,
"County" text
)
|
SELECT "Location" FROM table_44962 WHERE "Built" = '1910'
|
What is the latest year when Neal Baer was a nominee, and the result was nominated?
|
CREATE TABLE table_63635 (
"Year" real,
"Category" text,
"Nominee(s)" text,
"Episode" text,
"Result" text
)
|
SELECT MAX("Year") FROM table_63635 WHERE "Result" = 'nominated' AND "Nominee(s)" = 'neal baer'
|
Name the being qualities for having things of friendships, family, relationships with nature
|
CREATE TABLE table_68450 (
"Need" text,
"Being (qualities)" text,
"Having (things)" text,
"Doing (actions)" text,
"Interacting (settings)" text
)
|
SELECT "Being (qualities)" FROM table_68450 WHERE "Having (things)" = 'friendships, family, relationships with nature'
|
what is the sum of bronze when the rank is 5, the nation is poland and gold is less than 0?
|
CREATE TABLE table_60198 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
|
SELECT SUM("Bronze") FROM table_60198 WHERE "Rank" = '5' AND "Nation" = 'poland' AND "Gold" < '0'
|
What is the safari value with a 28.0% internet explorer?
|
CREATE TABLE table_name_70 (
safari VARCHAR,
internet_explorer VARCHAR
)
|
SELECT safari FROM table_name_70 WHERE internet_explorer = "28.0%"
|
What is the sum for December against the vancouver canucks earlier than game 33?
|
CREATE TABLE table_name_59 (
december INTEGER,
opponent VARCHAR,
game VARCHAR
)
|
SELECT SUM(december) FROM table_name_59 WHERE opponent = "vancouver canucks" AND game < 33
|
What was the original title of the Hindi film?
|
CREATE TABLE table_71313 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original title" text,
"Director" text
)
|
SELECT "Original title" FROM table_71313 WHERE "Language" = 'hindi'
|
Who won the Women's singles, in the year that Raymond M. White won the Men's singles and that W. Hamilton Ian Maconachie won the Men's doubles?
|
CREATE TABLE table_80381 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
|
SELECT "Women's singles" FROM table_80381 WHERE "Men's singles" = 'raymond m. white' AND "Men's doubles" = 'w. hamilton ian maconachie'
|
What is the lowest Industry, when Year is greater than 2005, and when Agriculture is greater than 11?
|
CREATE TABLE table_name_96 (
industry INTEGER,
year VARCHAR,
agriculture VARCHAR
)
|
SELECT MIN(industry) FROM table_name_96 WHERE year > 2005 AND agriculture > 11
|
What was the finish with less than 200 laps in 1953?
|
CREATE TABLE table_14816 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
|
SELECT "Finish" FROM table_14816 WHERE "Laps" < '200' AND "Year" = '1953'
|
Show me about the distribution of ACC_Road and the average of School_ID , and group by attribute ACC_Road in a bar chart, I want to display Y in desc order.
|
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
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
)
|
SELECT ACC_Road, AVG(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY AVG(School_ID) DESC
|
Where were jamie cox & scott kremerskothen paired?
|
CREATE TABLE table_48312 (
"Wicket" text,
"Runs" text,
"Batsmen" text,
"Opponent" text,
"Venue" text,
"Season" text
)
|
SELECT "Venue" FROM table_48312 WHERE "Batsmen" = 'jamie cox & scott kremerskothen'
|
Who are the hosts for the 2004 event?
|
CREATE TABLE table_name_2 (
hosts VARCHAR,
year VARCHAR
)
|
SELECT hosts FROM table_name_2 WHERE year = "2004"
|
What player is from France?
|
CREATE TABLE table_name_63 (
player VARCHAR,
country VARCHAR
)
|
SELECT player FROM table_name_63 WHERE country = "france"
|
What is the total number of captains in each rank and class? Let class as X-axis, and categorize by rank with a stacked bar chart, show names from high to low order please.
|
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
|
SELECT Class, COUNT(Class) FROM captain GROUP BY Rank, Class ORDER BY Class DESC
|
When Brett Lancaster won the general classification, who won the team calssification?
|
CREATE TABLE table_73724 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Youth Classification" text,
"Mountains Classification" text,
"Sprint Classification" text,
"Most Courageous" text,
"Team Classification" text
)
|
SELECT "Team Classification" FROM table_73724 WHERE "General Classification" = 'Brett Lancaster'
|
What is the sum of rank with years 1996 2012 and apps greater than 340?
|
CREATE TABLE table_32243 (
"Rank" real,
"Name" text,
"Years" text,
"Goals" real,
"Apps" real
)
|
SELECT SUM("Rank") FROM table_32243 WHERE "Years" = '1996–2012' AND "Apps" > '340'
|
Show the name, home city, and age for all drivers.
|
CREATE TABLE driver (
name VARCHAR,
home_city VARCHAR,
age VARCHAR
)
|
SELECT name, home_city, age FROM driver
|
What is GDP (PPP) Per Capita 2012 EU27 = 100, when GDP 2012 Millions Of Euro is 309,900?
|
CREATE TABLE table_name_27 (
gdp__ppp__per_capita_2012_eu27_ VARCHAR,
_100 VARCHAR,
gdp_2012_millions_of_euro VARCHAR
)
|
SELECT gdp__ppp__per_capita_2012_eu27_ = _100 FROM table_name_27 WHERE gdp_2012_millions_of_euro = "309,900"
|
Who did they play on August 12?
|
CREATE TABLE table_79956 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
|
SELECT "Opponent" FROM table_79956 WHERE "Date" = 'august 12'
|
what is the total when the league is less than 1?
|
CREATE TABLE table_7916 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Total" real
)
|
SELECT "Total" FROM table_7916 WHERE "League" < '1'
|
What is the highest number of ends lost?
|
CREATE TABLE table_21220 (
"Province" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
)
|
SELECT MAX("Ends Lost") FROM table_21220
|
What provinces were formed from New Munster?
|
CREATE TABLE table_275023_1 (
province VARCHAR,
formed_from VARCHAR
)
|
SELECT province FROM table_275023_1 WHERE formed_from = "New Munster"
|
What is the most money for the score 75-74-72-67=288?
|
CREATE TABLE table_name_16 (
money___ INTEGER,
score VARCHAR
)
|
SELECT MAX(money___) AS $__ FROM table_name_16 WHERE score = 75 - 74 - 72 - 67 = 288
|
Who was the runner up the season that Sagawa Express came in fourth?
|
CREATE TABLE table_31143 (
"Season" real,
"Winner" text,
"Runner-up" text,
"Third place" text,
"Fourth place" text
)
|
SELECT "Runner-up" FROM table_31143 WHERE "Fourth place" = 'Sagawa Express'
|
What is the Hadeda Ibis when the Ostrich is Dark Chanting Goshawk?
|
CREATE TABLE table_23493 (
"Ostrich" text,
"Hamerkop" text,
"Hadeda Ibis" text,
"African Spoonbill" text,
"Whitefaced Duck" text,
"Knobbilled Duck" text
)
|
SELECT "Hadeda Ibis" FROM table_23493 WHERE "Ostrich" = 'Dark Chanting Goshawk'
|
What is the highest interview for Louisiana with an average above 9.324?
|
CREATE TABLE table_11650 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
|
SELECT MAX("Interview") FROM table_11650 WHERE "Average" > '9.324' AND "State" = 'louisiana'
|
Tell me the lowest gold for rank of 6 and total less than 2
|
CREATE TABLE table_name_16 (
gold INTEGER,
rank VARCHAR,
total VARCHAR
)
|
SELECT MIN(gold) FROM table_name_16 WHERE rank = "6" AND total < 2
|
Which teams had more than 3 eliminations?
|
CREATE TABLE elimination (
elimination_id text,
wrestler_id text,
team text,
eliminated_by text,
elimination_move text,
time text
)
CREATE TABLE wrestler (
wrestler_id number,
name text,
reign text,
days_held text,
location text,
event text
)
|
SELECT team FROM elimination GROUP BY team HAVING COUNT(*) > 3
|
Tell me the country for san juan
|
CREATE TABLE table_31773 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
|
SELECT "Country" FROM table_31773 WHERE "City" = 'san juan'
|
What is Fractievoorzitter, when Lijsttrekker is 'No Elections', and when Year is after 2005?
|
CREATE TABLE table_9582 (
"Year" real,
"Lijsttrekker" text,
"Fractievoorzitter" text,
"Cabinet" text,
"Chair" text
)
|
SELECT "Fractievoorzitter" FROM table_9582 WHERE "Lijsttrekker" = 'no elections' AND "Year" > '2005'
|
How many teams have skyhawks as a nickname?
|
CREATE TABLE table_2105 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real,
"Division" text
)
|
SELECT COUNT("Division") FROM table_2105 WHERE "Nickname" = 'Skyhawks'
|
Who had the lowest field goals if they had 12 touchdowns and more than 72 points?
|
CREATE TABLE table_name_40 (
field_goals INTEGER,
touchdowns VARCHAR,
points VARCHAR
)
|
SELECT MIN(field_goals) FROM table_name_40 WHERE touchdowns = 12 AND points > 72
|
state all spokesperson for the channel where dual commentator was elena batinova
|
CREATE TABLE table_2192 (
"Year(s)" real,
"Commentator" text,
"Dual Commentator" text,
"Spokesperson" text,
"Channel" text
)
|
SELECT "Spokesperson" FROM table_2192 WHERE "Dual Commentator" = 'Elena Batinova'
|
what is the record when the round is before 3 and the time si 4:59?
|
CREATE TABLE table_48174 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
|
SELECT "Record" FROM table_48174 WHERE "Round" < '3' AND "Time" = '4:59'
|
What are the names of customers who do not have saving accounts?
|
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABLE loan (
loan_id text,
loan_type text,
cust_id text,
branch_id text,
amount number
)
|
SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving'
|
Which score was associated with an attendance of 275?
|
CREATE TABLE table_8670 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
)
|
SELECT "Score" FROM table_8670 WHERE "Attendance" = '275'
|
history of severe hypoglycemia ( seizure )
|
CREATE TABLE table_train_178 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"hiv_infection" bool,
"hepatitis_c" bool,
"renal_disease" bool,
"hypoglycemia" bool,
"serum_creatinine" float,
"seizure_disorder" bool,
"body_mass_index_bmi" float,
"NOUSE" float
)
|
SELECT * FROM table_train_178 WHERE hypoglycemia = 1 OR seizure_disorder = 1
|
Count the number of different teams involved in match season.
|
CREATE TABLE team (
team_id number,
name text
)
CREATE TABLE match_season (
season number,
player text,
position text,
country number,
team number,
draft_pick_number number,
draft_class text,
college text
)
CREATE TABLE player (
player_id number,
player text,
years_played text,
total_wl text,
singles_wl text,
doubles_wl text,
team number
)
CREATE TABLE country (
country_id number,
country_name text,
capital text,
official_native_language text
)
|
SELECT COUNT(DISTINCT team) FROM match_season
|
Find the name and account balance of the customer whose name includes the letter a Visualize them using a bar chart, show y-axis in descending order.
|
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
)
CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
)
CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
)
|
SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' ORDER BY acc_bal DESC
|
What is the Loan Club from Eng that ended on 22 February?
|
CREATE TABLE table_name_57 (
loan_club VARCHAR,
country VARCHAR,
ended VARCHAR
)
|
SELECT loan_club FROM table_name_57 WHERE country = "eng" AND ended = "22 february"
|
Name the place of action for the marine corps and corporal rank
|
CREATE TABLE table_54319 (
"Name" text,
"Service" text,
"Rank" text,
"Place of action" text,
"Unit" text
)
|
SELECT "Place of action" FROM table_54319 WHERE "Service" = 'marine corps' AND "Rank" = 'corporal'
|
In what grid did Richard Robarts make 36 laps?
|
CREATE TABLE table_54515 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
|
SELECT SUM("Grid") FROM table_54515 WHERE "Driver" = 'richard robarts' AND "Laps" < '36'
|
Find the average number of factories for the manufacturers that have more than 20 shops.
|
CREATE TABLE manufacturer (
manufacturer_id number,
open_year number,
name text,
num_of_factories number,
num_of_shops number
)
CREATE TABLE furniture_manufacte (
manufacturer_id number,
furniture_id number,
price_in_dollar number
)
CREATE TABLE furniture (
furniture_id number,
name text,
num_of_component number,
market_rate number
)
|
SELECT AVG(num_of_factories) FROM manufacturer WHERE num_of_shops > 20
|
What are the most bronze medals in a rank more than 1 with a total larger than 3?
|
CREATE TABLE table_79722 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
|
SELECT MAX("Bronze") FROM table_79722 WHERE "Total" > '3' AND "Rank" > '1'
|
Find the names of the channels that are broadcast in the morning.
|
CREATE TABLE broadcast (
channel_id VARCHAR,
time_of_day VARCHAR
)
CREATE TABLE channel (
name VARCHAR,
channel_id VARCHAR
)
|
SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning'
|
who is the founder where date is c. 1900
|
CREATE TABLE table_11256021_1 (
founder VARCHAR,
date VARCHAR
)
|
SELECT founder FROM table_11256021_1 WHERE date = "c. 1900"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.