instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
What is the position of the player from round 2 from Sweden? | CREATE TABLE table_name_21 (
position VARCHAR,
round VARCHAR,
nationality VARCHAR
) | SELECT position FROM table_name_21 WHERE round = 2 AND nationality = "sweden" |
Who wrote the episode that originally aired on March 1, 1998? | CREATE TABLE table_name_42 (
written_by VARCHAR,
original_airdate VARCHAR
) | SELECT written_by FROM table_name_42 WHERE original_airdate = "march 1, 1998" |
What is John Edwards, when John Kerry is '70%'? | CREATE TABLE table_name_41 (
john_edwards VARCHAR,
john_kerry VARCHAR
) | SELECT john_edwards FROM table_name_41 WHERE john_kerry = "70%" |
Show different carriers of phones together with the number of phones with each carrier Plot them as bar chart, I want to list from high to low by the X-axis. | CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
) | SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier ORDER BY Carrier DESC |
Which opponent has a Club of essendon, and a Score of 13.4.82? | CREATE TABLE table_67050 (
"Quarter" text,
"Score" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
) | SELECT "Opponent" FROM table_67050 WHERE "Club" = 'essendon' AND "Score" = '13.4.82' |
What country has the score og 66-70-69-71=276? | CREATE TABLE table_76821 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Country" FROM table_76821 WHERE "Score" = '66-70-69-71=276' |
What is the Date of Issue with a Theme with mental health? | CREATE TABLE table_57513 (
"Date of Issue" text,
"Theme" text,
"Design" text,
"Illustration" text,
"Paper Type" text,
"First Day Cover Cancellation" text
) | SELECT "Date of Issue" FROM table_57513 WHERE "Theme" = 'mental health' |
What series episode has deli meats under segment B? | CREATE TABLE table_name_98 (
series_ep VARCHAR,
segment_b VARCHAR
) | SELECT series_ep FROM table_name_98 WHERE segment_b = "deli meats" |
what are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality. | CREATE TABLE pilot_record (
Record_ID int,
Pilot_ID int,
Aircraft_ID int,
Date text
)
CREATE TABLE pilot (
Pilot_ID int,
Pilot_name text,
Rank int,
Age int,
Nationality text,
Position text,
Join_Year int,
Team text
)
CREATE TABLE aircraft (
Aircraft_ID int,
Order_Year int,
Manufacturer text,
Model text,
Fleet_Series text,
Powertrain text,
Fuel_Propulsion text
) | SELECT Nationality, COUNT(*) FROM pilot GROUP BY Nationality |
What are radio electricals when secretariat is wtr i? | CREATE TABLE table_18772 (
"Serial & Branch" real,
"Seaman" text,
"Mechanical" text,
"Secretariat" text,
"Supply" text,
"Electrical" text,
"Radio Electrical" text,
"Regulating" text,
"Medical" text
) | SELECT "Radio Electrical" FROM table_18772 WHERE "Secretariat" = 'WTR I' |
Name the sum of Laps for lance reventlow with grid more than 16 | CREATE TABLE table_name_56 (
laps INTEGER,
driver VARCHAR,
grid VARCHAR
) | SELECT SUM(laps) FROM table_name_56 WHERE driver = "lance reventlow" AND grid > 16 |
If the grand average is 12.76-202, who is the player? | CREATE TABLE table_27533947_1 (
players VARCHAR,
grand_average VARCHAR
) | SELECT players FROM table_27533947_1 WHERE grand_average = "12.76-202" |
In the year 2009 who was the under-13? | CREATE TABLE table_26368963_1 (
under_13 VARCHAR,
year VARCHAR
) | SELECT under_13 FROM table_26368963_1 WHERE year = 2009 |
What is the to par score from Brad Faxon of the United States with a score of 73-68=141? | CREATE TABLE table_44993 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "To par" FROM table_44993 WHERE "Country" = 'united states' AND "Score" = '73-68=141' AND "Player" = 'brad faxon' |
What year was the comp 33? | CREATE TABLE table_54933 (
"Year" text,
"Team" text,
"Comp" text,
"Rate" text,
"RAtt" text,
"RYds" text,
"RAvg" text
) | SELECT "Year" FROM table_54933 WHERE "Comp" = '33' |
What is the place of plyaer Tim Herron from the United States with a to par of +1? | CREATE TABLE table_9918 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_9918 WHERE "Country" = 'united states' AND "To par" = '+1' AND "Player" = 'tim herron' |
How many total points did roman Koudelka have | CREATE TABLE table_19338 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" text,
"2nd (m)" text,
"Points" text,
"Overall FHT points" text,
"Overall WC points (Rank)" text
) | SELECT "Overall WC points (Rank)" FROM table_19338 WHERE "Name" = 'Roman Koudelka' |
what is the difference between the obama # and mccain # in benton county ? | CREATE TABLE table_203_660 (
id number,
"county" text,
"obama%" text,
"obama#" number,
"mccain%" text,
"mccain#" number,
"total" number
) | SELECT ABS("obama#" - "mccain#") FROM table_203_660 WHERE "county" = 'benton' |
What was the score of the game when the attendance was 1,644? | CREATE TABLE table_name_38 (
score VARCHAR,
attendance VARCHAR
) | SELECT score FROM table_name_38 WHERE attendance = "1,644" |
Who made the comments for radio broadcast when Jan Gabrielsson made them for television broadcast? | CREATE TABLE table_2794180_11 (
radio_commentator VARCHAR,
television_commentator VARCHAR
) | SELECT radio_commentator FROM table_2794180_11 WHERE television_commentator = "Jan Gabrielsson" |
What was Craig Stadler's lowest score for United states? | CREATE TABLE table_name_35 (
score INTEGER,
country VARCHAR,
player VARCHAR
) | SELECT MIN(score) FROM table_name_35 WHERE country = "united states" AND player = "craig stadler" |
Which Free polite has a Genitive 1 of *=ku? | CREATE TABLE table_name_13 (
free VARCHAR,
ku VARCHAR,
genitive_1 VARCHAR
) | SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku |
Name the number of new adherents per year for confucianism | CREATE TABLE table_30288 (
"Religion" text,
"Births" real,
"Conversions" text,
"New adherents per year" real,
"Growth rate" text
) | SELECT COUNT("New adherents per year") FROM table_30288 WHERE "Religion" = 'Confucianism' |
What Try bonus has a Points against of 488? | CREATE TABLE table_name_61 (
try_bonus VARCHAR,
points_against VARCHAR
) | SELECT try_bonus FROM table_name_61 WHERE points_against = "488" |
What was the second qualification time with a first qualification time of 1:02.813? | CREATE TABLE table_name_29 (
qual_2 VARCHAR,
qual_1 VARCHAR
) | SELECT qual_2 FROM table_name_29 WHERE qual_1 = "1:02.813" |
What is the phone number of the station located at 53 Dayton Road? | CREATE TABLE table_56724 (
"Station" text,
"Engine Company" text,
"Ambulance" text,
"Address" text,
"Phone" text
) | SELECT "Phone" FROM table_56724 WHERE "Address" = '53 dayton road' |
Which Giro di Lombardia has a Paris Roubaix of servais knaven ( ned )? | CREATE TABLE table_name_38 (
giro_di_lombardia VARCHAR,
paris_roubaix VARCHAR
) | SELECT giro_di_lombardia FROM table_name_38 WHERE paris_roubaix = "servais knaven ( ned )" |
Bar chart of how many openning year from each openning year, and could you show in descending by the bars? | CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
) | SELECT Openning_year, COUNT(Openning_year) FROM cinema GROUP BY Openning_year ORDER BY Openning_year DESC |
What is Equipment, when Points is less than 6, and when Position is 53? | CREATE TABLE table_50489 (
"Position" real,
"Equipment" text,
"Points" real,
"Wins" text,
"Second" text,
"Third" text
) | SELECT "Equipment" FROM table_50489 WHERE "Points" < '6' AND "Position" = '53' |
Give me the comparison about All_Games_Percent over the ACC_Regular_Season , and I want to display by the Y in desc. | 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_Regular_Season, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent DESC |
When was the game played at glenferrie oval? | CREATE TABLE table_10130 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_10130 WHERE "Venue" = 'glenferrie oval' |
What player has 477 runs? | CREATE TABLE table_21100348_11 (
player VARCHAR,
runs VARCHAR
) | SELECT player FROM table_21100348_11 WHERE runs = 477 |
which year did she work on the most films ? | CREATE TABLE table_203_239 (
id number,
"year" number,
"title" text,
"chinese title" text,
"role" text,
"notes" text
) | SELECT "year" FROM table_203_239 GROUP BY "year" ORDER BY COUNT("title") DESC LIMIT 1 |
What is the census ranking for the community with an area smaller than 9.94 km2 and a population smaller than 817? | CREATE TABLE table_name_93 (
census_ranking VARCHAR,
area_km_2 VARCHAR,
population VARCHAR
) | SELECT census_ranking FROM table_name_93 WHERE area_km_2 < 9.94 AND population < 817 |
For each director, how many reviews have they received Visualize by bar chart, and order in asc by the names. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
) | SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY director |
WHAT IS THE PLACE WITH THE SCORE 69-71-66-73=279? | CREATE TABLE table_name_11 (
place VARCHAR,
score VARCHAR
) | SELECT place FROM table_name_11 WHERE score = 69 - 71 - 66 - 73 = 279 |
What's the abbreviation for libya? | CREATE TABLE table_name_88 (
abbreviation VARCHAR,
country VARCHAR
) | SELECT abbreviation FROM table_name_88 WHERE country = "libya" |
Name the finish for lee janzen | CREATE TABLE table_name_94 (
finish VARCHAR,
player VARCHAR
) | SELECT finish FROM table_name_94 WHERE player = "lee janzen" |
Visualize a pie chart about the proportion of Sex and the amount of Sex. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
) | SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex |
With an aggregate of 0-2, what is listed for home? | CREATE TABLE table_17968229_1 (
home__2nd_leg_ VARCHAR,
aggregate VARCHAR
) | SELECT home__2nd_leg_ FROM table_17968229_1 WHERE aggregate = "0-2" |
Return a bar chart about the distribution of All_Games and School_ID , list by the School_ID in descending. | 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 All_Games, School_ID FROM basketball_match ORDER BY School_ID DESC |
What is the mean year number where there are more than 0 wins, the class is 250cc, and the points are 95? | CREATE TABLE table_74984 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | SELECT AVG("Year") FROM table_74984 WHERE "Wins" > '0' AND "Class" = '250cc' AND "Points" = '95' |
Who is the opponent for the game with 37,845 people in attendance? | CREATE TABLE table_42384 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Opponent" FROM table_42384 WHERE "Attendance" = '37,845' |
What is the name of party with most number of members? | CREATE TABLE party (
party_name VARCHAR,
party_id VARCHAR
)
CREATE TABLE Member (
party_id VARCHAR
) | SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY COUNT(*) DESC LIMIT 1 |
who was the winner in the first year of 1992 ? | CREATE TABLE table_204_874 (
id number,
"year" number,
"winner" text,
"runner-up" text,
"final score" text,
"third" text
) | SELECT "winner" FROM table_204_874 WHERE "year" = 1992 |
If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification? | CREATE TABLE table_19834 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Combination classification" text,
"Team classification" text
) | SELECT "Mountains classification" FROM table_19834 WHERE "Winner" = 'Alejandro Valverde' AND "Points classification" = 'Erik Zabel' |
What surface has indian wells as the championship, with winner as the outcome? | CREATE TABLE table_name_63 (
surface VARCHAR,
championship VARCHAR,
outcome VARCHAR
) | SELECT surface FROM table_name_63 WHERE championship = "indian wells" AND outcome = "winner" |
What is the highest value in April with a record of 35 37 11 and more than 81 points? | CREATE TABLE table_name_99 (
april INTEGER,
record VARCHAR,
points VARCHAR
) | SELECT MAX(april) FROM table_name_99 WHERE record = "35–37–11" AND points > 81 |
Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 8 7? | CREATE TABLE table_39013 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT "Record" FROM table_39013 WHERE "Points" < '62' AND "February" > '16' AND "Score" = '8–7' |
Which artist speaks croatian? | CREATE TABLE table_13383 (
"Draw" real,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Place" real,
"Points" real
) | SELECT "Artist" FROM table_13383 WHERE "Language" = 'croatian' |
What is Downstream, when Upstream is '384 kbit'? | CREATE TABLE table_name_88 (
downstream VARCHAR,
upstream VARCHAR
) | SELECT downstream FROM table_name_88 WHERE upstream = "384 kbit" |
During 2003 what was open cup qualifying status? | CREATE TABLE table_1570003_2 (
open_cup VARCHAR,
year VARCHAR
) | SELECT open_cup FROM table_1570003_2 WHERE year = 2003 |
When was the game number 3 played? | CREATE TABLE table_23286112_6 (
date VARCHAR,
game VARCHAR
) | SELECT date FROM table_23286112_6 WHERE game = 3 |
What scores happened on February 9? | CREATE TABLE table_23486853_7 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_23486853_7 WHERE date = "February 9" |
In the match as corio oval, who was the away team? | CREATE TABLE table_57131 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_57131 WHERE "Venue" = 'corio oval' |
List the names of all songs that have 4 minute duration or are in English. | CREATE TABLE song (
song_name VARCHAR,
f_id VARCHAR
)
CREATE TABLE files (
f_id VARCHAR,
duration VARCHAR
) | SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages = "english" |
What stamp design has a denomination of $1.18? | CREATE TABLE table_58443 (
"Date of Issue" text,
"Denomination" text,
"Design" text,
"Paper Type" text,
"First Day Cover Cancellation" text
) | SELECT "Design" FROM table_58443 WHERE "Denomination" = '$1.18' |
What is the sum of Events when the top-25 is more than 5, and the top-10 is less than 4, and wins is more than 2? | CREATE TABLE table_40561 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT SUM("Events") FROM table_40561 WHERE "Top-25" > '5' AND "Top-10" < '4' AND "Wins" > '2' |
patients with no indication for enteral feeding or in the imminence of receiving parenteral nutrition | CREATE TABLE table_train_64 (
"id" int,
"hiv_infection" bool,
"receiving_parenteral_nutrition" bool,
"hypertriglyceridemia" bool,
"enteral_feeding" bool,
"body_mass_index_bmi" float,
"diarrhea" bool,
"NOUSE" float
) | SELECT * FROM table_train_64 WHERE enteral_feeding = 0 OR receiving_parenteral_nutrition = 1 |
What is the Power (kW) for the station with a frequency of 95.1mhz? | CREATE TABLE table_name_72 (
power__kw_ VARCHAR,
frequency VARCHAR
) | SELECT power__kw_ FROM table_name_72 WHERE frequency = "95.1mhz" |
What was the result of the match in Penrith that featured a score of 48-12? | CREATE TABLE table_4661 (
"Date" text,
"Result" text,
"Score" text,
"Stadium" text,
"City" text,
"Crowd" real
) | SELECT "Result" FROM table_4661 WHERE "Score" = '48-12' AND "City" = 'penrith' |
What is the number of the player who attended Delta State? | CREATE TABLE table_20200 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | SELECT MAX("No.") FROM table_20200 WHERE "School/Club Team" = 'Delta State' |
List the last name of the students who do not have any food type allergy and count them in a bart chart. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
) | SELECT LName, COUNT(LName) FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.AllergyType = "food") GROUP BY LName |
Find the average age of male students (with sex M) from each city, and rank 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 Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
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)
) | SELECT city_code, AVG(Age) FROM Student WHERE Sex = 'M' GROUP BY city_code ORDER BY AVG(Age) |
Who used Gordini Straight-6 in 1956? | CREATE TABLE table_80084 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Entrant" FROM table_80084 WHERE "Engine" = 'gordini straight-6' AND "Year" = '1956' |
What is the week 12 opponent for the year that had a week 3 opponent of South Florida (3-0)? | CREATE TABLE table_name_6 (
week_12_nov_16 VARCHAR,
week_3_sept_14 VARCHAR
) | SELECT week_12_nov_16 FROM table_name_6 WHERE week_3_sept_14 = "south florida (3-0)" |
What is the Record with a Score with 80 87, and a Visitor with bucks? | CREATE TABLE table_name_12 (
record VARCHAR,
score VARCHAR,
visitor VARCHAR
) | SELECT record FROM table_name_12 WHERE score = "80–87" AND visitor = "bucks" |
What 2009 has statistics by surface in 2012? | CREATE TABLE table_9537 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2009" FROM table_9537 WHERE "2012" = 'statistics by surface' |
What is Larry Centers' average number when there were less than 600 yards? | CREATE TABLE table_name_23 (
number INTEGER,
player VARCHAR,
yards VARCHAR
) | SELECT AVG(number) FROM table_name_23 WHERE player = "larry centers" AND yards < 600 |
How many gas station are opened between 2000 and 2005? | CREATE TABLE gas_station (
station_id number,
open_year number,
location text,
manager_name text,
vice_manager_name text,
representative_name text
)
CREATE TABLE company (
company_id number,
rank number,
company text,
headquarters text,
main_industry text,
sales_billion number,
profits_billion number,
assets_billion number,
market_value number
)
CREATE TABLE station_company (
station_id number,
company_id number,
rank_of_the_year number
) | SELECT COUNT(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005 |
Which Current Club has a Player of bassem balaa? | CREATE TABLE table_62126 (
"Player" text,
"Height" real,
"Position" text,
"Year born (Age)" text,
"Current Club" text
) | SELECT "Current Club" FROM table_62126 WHERE "Player" = 'bassem balaa' |
Show the draft pick numbers and draft classes of players whose positions are defenders in a bar chart. | CREATE TABLE match_season (
Season real,
Player text,
Position text,
Country int,
Team int,
Draft_Pick_Number int,
Draft_Class text,
College text
)
CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL text,
Team int
)
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_language text
)
CREATE TABLE team (
Team_id int,
Name text
) | SELECT Draft_Class, Draft_Pick_Number FROM match_season WHERE Position = "Defender" |
What is the total sum of points for songs performed by Partners in Crime? | CREATE TABLE table_name_16 (
points INTEGER,
performer VARCHAR
) | SELECT SUM(points) FROM table_name_16 WHERE performer = "partners in crime" |
List all ship names in the order of built year and class. | CREATE TABLE ship (
name VARCHAR,
built_year VARCHAR,
CLASS VARCHAR
) | SELECT name FROM ship ORDER BY built_year, CLASS |
Which Division does the City being jacksonville, florida belong to? | CREATE TABLE table_36704 (
"Conference" text,
"Division" text,
"Team" text,
"City" text,
"Home Stadium" text
) | SELECT "Division" FROM table_36704 WHERE "City" = 'jacksonville, florida' |
What average week has shea stadium as the game site, and 1979-12-09 as the date? | CREATE TABLE table_name_11 (
week INTEGER,
game_site VARCHAR,
date VARCHAR
) | SELECT AVG(week) FROM table_name_11 WHERE game_site = "shea stadium" AND date = "1979-12-09" |
What is Prize, when Name is 'Valdemar Kwaysser'? | CREATE TABLE table_43940 (
"Rank" text,
"Event" text,
"Place" text,
"Name" text,
"Prize" text
) | SELECT "Prize" FROM table_43940 WHERE "Name" = 'valdemar kwaysser' |
What are the names and dates of races, and the names of the tracks where they are held? | 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 T1.name, T1.date, T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id |
What time was the race for the country of france? | CREATE TABLE table_66483 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Time" FROM table_66483 WHERE "Country" = 'france' |
What's the cores with the part number cl8064701477202? | CREATE TABLE table_13573 (
"Model number" text,
"sSpec number" text,
"Cores" text,
"Frequency" text,
"Turbo" text,
"L2 cache" text,
"L3 cache" text,
"GPU model" text,
"GPU frequency" text,
"Socket" text,
"I/O bus" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) | SELECT "Cores" FROM table_13573 WHERE "Part number(s)" = 'cl8064701477202' |
What is the total of blank ends at Prince Edward Island? | CREATE TABLE table_73254 (
"Locale" 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("Blank Ends") FROM table_73254 WHERE "Locale" = 'Prince Edward Island' |
How many nominees had a net voice of 15.17% | CREATE TABLE table_19869 (
"Eviction No." real,
"Nominee" text,
"Vote to Save" text,
"Vote to Evict" text,
"Net vote" text,
"Eviction result" text
) | SELECT COUNT("Nominee") FROM table_19869 WHERE "Net vote" = '15.17%' |
Draw a bar chart for what are the average prices of products, grouped by manufacturer name?, and I want to show by the Y from high to low. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY AVG(T1.Price) DESC |
What is the smallest crowd for victoria park? | CREATE TABLE table_name_89 (
crowd INTEGER,
venue VARCHAR
) | SELECT MIN(crowd) FROM table_name_89 WHERE venue = "victoria park" |
What is the lowest population (2000 Census) that has a population (2010 Census) larger than 1,071,913 and municipality of Suwon? | CREATE TABLE table_41124 (
"Rank" real,
"Municipality" text,
"Population (2010 Census)" real,
"Population (2005 Census)" real,
"Population (2000 Census)" real
) | SELECT MIN("Population (2000 Census)") FROM table_41124 WHERE "Municipality" = 'suwon' AND "Population (2010 Census)" > '1,071,913' |
what is the goals when the goal difference is more than -3, the club is real avil s cf and the goals against is more than 60? | CREATE TABLE table_45558 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT SUM("Goals for") FROM table_45558 WHERE "Goal Difference" > '-3' AND "Club" = 'real avilés cf' AND "Goals against" > '60' |
What are the types of film market estimations in year 1995? | CREATE TABLE film_market_estimation (
estimation_id number,
low_estimate number,
high_estimate number,
film_id number,
type text,
market_id number,
year number
)
CREATE TABLE film (
film_id number,
title text,
studio text,
director text,
gross_in_dollar number
)
CREATE TABLE market (
market_id number,
country text,
number_cities number
) | SELECT type FROM film_market_estimation WHERE year = 1995 |
How many seasons have a production code of 204? | CREATE TABLE table_16581695_3 (
no_in_season VARCHAR,
production_code VARCHAR
) | SELECT COUNT(no_in_season) FROM table_16581695_3 WHERE production_code = 204 |
What was the result in a week lower than 10 with an opponent of Chicago Bears? | CREATE TABLE table_name_21 (
result VARCHAR,
week VARCHAR,
opponent VARCHAR
) | SELECT result FROM table_name_21 WHERE week < 10 AND opponent = "chicago bears" |
Bar chart x axis time y axis id, and order by the x axis in asc. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
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
) | SELECT Time, ID FROM swimmer ORDER BY Time |
who was king right before kang ? | CREATE TABLE table_204_125 (
id number,
"state" text,
"type" text,
"name" text,
"title" text,
"royal house" text,
"from" text,
"to" text
) | SELECT "name" FROM table_204_125 WHERE id = (SELECT id FROM table_204_125 WHERE "name" = 'kang') - 1 |
Which Date has Opponents in the final of valeria casillo lilly raffa? | CREATE TABLE table_name_59 (
date VARCHAR,
opponents_in_the_final VARCHAR
) | SELECT date FROM table_name_59 WHERE opponents_in_the_final = "valeria casillo lilly raffa" |
What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11? | CREATE TABLE table_name_77 (
league_cup INTEGER,
total VARCHAR,
fa_cup VARCHAR,
premier_league VARCHAR
) | SELECT MAX(league_cup) FROM table_name_77 WHERE fa_cup > 0 AND premier_league < 34 AND total = 11 |
in what year was the last design of passenger baseplates for vehicle registration issued in vermont ? | CREATE TABLE table_203_498 (
id number,
"first issued" text,
"design" text,
"slogan" text,
"serial format" text,
"serials issued" text,
"notes" text
) | SELECT MAX("first issued") FROM table_203_498 |
Name the driver passenger for 394 points | CREATE TABLE table_16941304_4 (
driver___passenger VARCHAR,
points VARCHAR
) | SELECT driver___passenger FROM table_16941304_4 WHERE points = 394 |
What was the date of the premiere that had a 20.9 rating? | CREATE TABLE table_45539 (
"Season" real,
"Premiere" text,
"Finale" text,
"Rank" text,
"Rating" text
) | SELECT "Premiere" FROM table_45539 WHERE "Rating" = '20.9' |
What's the winner of the Painewebber Invitational tournament? | CREATE TABLE table_11622562_1 (
winner VARCHAR,
tournament VARCHAR
) | SELECT winner FROM table_11622562_1 WHERE tournament = "PaineWebber Invitational" |
What segment d is associated with an episode number above 16 and a segment c of laser eye surgery? | CREATE TABLE table_37923 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Segment D" FROM table_37923 WHERE "Episode" > '16' AND "Segment C" = 'laser eye surgery' |
who was running where the winner is daniel montgomery | CREATE TABLE table_2668378_13 (
candidates VARCHAR,
incumbent VARCHAR
) | SELECT candidates FROM table_2668378_13 WHERE incumbent = "Daniel Montgomery" |
What is the highest NFL Draft that has jeff robinson as the player, with an overall pick less than 98? | CREATE TABLE table_35497 (
"Player" text,
"Position" text,
"Overall Pick" real,
"Round" text,
"NFL Draft" real,
"Franchise" text
) | SELECT MAX("NFL Draft") FROM table_35497 WHERE "Player" = 'jeff robinson' AND "Overall Pick" < '98' |