instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
What is the highest To Par, when Score is '72-73=145'? | CREATE TABLE table_47826 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
) | SELECT MAX("To par") FROM table_47826 WHERE "Score" = '72-73=145' |
What music is in the film before 1962? | CREATE TABLE table_55094 (
"Title" text,
"Year" real,
"Country" text,
"Music" text,
"Uncut run time" text
) | SELECT "Music" FROM table_55094 WHERE "Year" = '1962' |
What is the average number of laps for grid 8? | CREATE TABLE table_11351 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Laps") FROM table_11351 WHERE "Grid" = '8' |
What is the year that has points larger than 20? | CREATE TABLE table_name_84 (
year VARCHAR,
points INTEGER
) | SELECT COUNT(year) FROM table_name_84 WHERE points > 20 |
If essendon is the home team, what venue did they play at? | CREATE TABLE table_56514 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_56514 WHERE "Home team" = 'essendon' |
Who did the Giants play before week 7 in Tulane Stadium? | CREATE TABLE table_name_25 (
opponent VARCHAR,
week VARCHAR,
game_site VARCHAR
) | SELECT opponent FROM table_name_25 WHERE week < 7 AND game_site = "tulane stadium" |
What is the address for the school that has the coyotes mascot? | CREATE TABLE table_name_44 (
address VARCHAR,
mascot VARCHAR
) | SELECT address FROM table_name_44 WHERE mascot = "coyotes" |
On what date was the score 6 4? | CREATE TABLE table_12350 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Date" FROM table_12350 WHERE "Score" = '6–4' |
Available in 2-CD format, what is the title of story number 026? | CREATE TABLE table_8020 (
"Story #" text,
"Title" text,
"Doctor" text,
"Narrator" text,
"Format" text,
"release date" text
) | SELECT "Title" FROM table_8020 WHERE "Format" = '2-cd' AND "Story #" = '026' |
Name the kaz hayashi with block A of Shuji Kondo | CREATE TABLE table_name_47 (
kaz_hayashi VARCHAR,
block_a VARCHAR
) | SELECT kaz_hayashi FROM table_name_47 WHERE block_a = "shuji kondo" |
What are the districts represented by the Democratic Party and a Committee in Economic Matters? | CREATE TABLE table_17748 (
"District" text,
"Counties Represented" text,
"Delegate" text,
"Party" text,
"First Elected" real,
"Committee" text
) | SELECT "District" FROM table_17748 WHERE "Committee" = 'Economic Matters' AND "Party" = 'Democratic' |
What school is the player who has a hometown of Chicago, IL from? | CREATE TABLE table_52465 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "School" FROM table_52465 WHERE "Hometown" = 'chicago, il' |
was the the score when the tries was 743 | CREATE TABLE table_14070062_4 (
points_against VARCHAR,
points_for VARCHAR
) | SELECT points_against FROM table_14070062_4 WHERE points_for = "743" |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the average of price , and group by attribute headquarter, rank by the Y-axis in asc. | 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 Headquarter, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG(Price) |
Which schools do not have any player? Give me the school locations. | CREATE TABLE school (
school_id number,
school text,
location text,
enrollment number,
founded number,
denomination text,
boys_or_girls text,
day_or_boarding text,
year_entered_competition number,
school_colors text
)
CREATE TABLE school_details (
school_id number,
nickname text,
colors text,
league text,
class text,
division text
)
CREATE TABLE player (
player_id number,
player text,
team text,
age number,
position text,
school_id number
)
CREATE TABLE school_performance (
school_id number,
school_year text,
class_a text,
class_aa text
) | SELECT location FROM school WHERE NOT school_id IN (SELECT school_id FROM player) |
For franklin of class aa, which school years does this occur? | CREATE TABLE table_19435 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
) | SELECT "School Year" FROM table_19435 WHERE "Class AA" = 'Franklin' |
What was Craig Wood's score? | CREATE TABLE table_name_22 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_22 WHERE player = "craig wood" |
with a record of 73-82 what was the date? | CREATE TABLE table_11261 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Date" FROM table_11261 WHERE "Record" = '73-82' |
How many picks did the College of USC wind up getting? | CREATE TABLE table_34338 (
"Pick #" real,
"Round" text,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("Pick #") FROM table_34338 WHERE "College" = 'usc' |
who is the driver for the car constructed by ferrari with a time/retired of +1:06.683? | CREATE TABLE table_name_43 (
driver VARCHAR,
constructor VARCHAR,
time_retired VARCHAR
) | SELECT driver FROM table_name_43 WHERE constructor = "ferrari" AND time_retired = "+1:06.683" |
What Played has a Lost smaller than 3, and a Drawn smaller than 0? | CREATE TABLE table_name_13 (
played INTEGER,
lost VARCHAR,
drawn VARCHAR
) | SELECT AVG(played) FROM table_name_13 WHERE lost < 3 AND drawn < 0 |
How many annual interchanges in the millions occurred in 2011-12 when the number of annual entry/exits was 36.609 million? | CREATE TABLE table_18118221_1 (
annual_interchanges__millions__2011_12 VARCHAR,
annual_entry_exit__millions__2011_12 VARCHAR
) | SELECT annual_interchanges__millions__2011_12 FROM table_18118221_1 WHERE annual_entry_exit__millions__2011_12 = "36.609" |
Tell me the fastest lapf or jim clark being the winning driver for prince george | CREATE TABLE table_10968 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Fastest lap" FROM table_10968 WHERE "Winning driver" = 'jim clark' AND "Circuit" = 'prince george' |
Which Floors is the highest one that has a Name of one indiana square? | CREATE TABLE table_name_84 (
floors INTEGER,
name VARCHAR
) | SELECT MAX(floors) FROM table_name_84 WHERE name = "one indiana square" |
impaired renal function with a creatinine level > 1.5 . | CREATE TABLE table_train_236 (
"id" int,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"hba1c" float,
"fbg" int,
"NOUSE" float
) | SELECT * FROM table_train_236 WHERE renal_disease = 1 AND creatinine_clearance_cl > 1.5 |
Give me a histogram for how many books fall into each category? | CREATE TABLE book_club (
book_club_id int,
Year int,
Author_or_Editor text,
Book_Title text,
Publisher text,
Category text,
Result text
)
CREATE TABLE culture_company (
Company_name text,
Type text,
Incorporated_in text,
Group_Equity_Shareholding real,
book_club_id text,
movie_id text
)
CREATE TABLE movie (
movie_id int,
Title text,
Year int,
Director text,
Budget_million real,
Gross_worldwide int
) | SELECT Category, COUNT(*) FROM book_club GROUP BY Category |
What is Brown Motors best point total using the Offenhauser L4 engine since 1950? | CREATE TABLE table_name_72 (
points INTEGER,
entrant VARCHAR,
year VARCHAR,
engine VARCHAR
) | SELECT MAX(points) FROM table_name_72 WHERE year > 1950 AND engine = "offenhauser l4" AND entrant = "brown motors" |
How many wildfires in Gloucester county have been larger than 10 acres? | CREATE TABLE fires (
fire_year number,
discovery_date number,
discovery_doy number,
discovery_time text,
stat_cause_code number,
stat_cause_descr text,
cont_date text,
cont_doy text,
cont_time text,
fire_size number,
fire_size_class text,
latitude number,
longitude number,
owner_code number,
owner_descr text,
state text,
county text,
fips_code text,
fips_name text
) | SELECT COUNT(*) FROM fires WHERE county = "Gloucester" AND fire_size > 10 |
What is the Flagship of the Show Hosted by Rover (Shane French)? | CREATE TABLE table_50180 (
"Show" text,
"Host(s)" text,
"Flagship" text,
"Market" text,
"iHeartRadio" text
) | SELECT "Flagship" FROM table_50180 WHERE "Host(s)" = 'rover (shane french)' |
What was Barreto's song choice when the theme was samba? | CREATE TABLE table_27614571_1 (
song_choice VARCHAR,
theme VARCHAR
) | SELECT song_choice FROM table_27614571_1 WHERE theme = "Samba" |
What's the highest capacity for a position of 5 in 2004? | CREATE TABLE table_name_81 (
capacity INTEGER,
position_in_2004 VARCHAR
) | SELECT MAX(capacity) FROM table_name_81 WHERE position_in_2004 = "5" |
What was the grid for Bruno Junqueira for Dale Coyne Racing? | CREATE TABLE table_name_45 (
grid VARCHAR,
team VARCHAR,
driver VARCHAR
) | SELECT grid FROM table_name_45 WHERE team = "dale coyne racing" AND driver = "bruno junqueira" |
What is the most amount of ministries? | CREATE TABLE table_2453 (
"N\u00ba" real,
"Cabinet (Nickname)" text,
"Took office" text,
"Left office" text,
"Duration" text,
"Coalition parties" text,
"ministers" text,
"ministries" real,
"King" text
) | SELECT MAX("ministries") FROM table_2453 |
How big was the crowd in game that featured the visiting team of north melbourne? | CREATE TABLE table_name_76 (
crowd VARCHAR,
away_team VARCHAR
) | SELECT crowd FROM table_name_76 WHERE away_team = "north melbourne" |
What is the date of birth for the player from Ulster and plays at Centre position? | CREATE TABLE table_37218 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
) | SELECT "Date of Birth (Age)" FROM table_37218 WHERE "Club/province" = 'ulster' AND "Position" = 'centre' |
Which stage was being played in Romania? | CREATE TABLE table_58274 (
"Competition" text,
"Stage" text,
"Venue" text,
"Date" text,
"Result" text
) | SELECT "Stage" FROM table_58274 WHERE "Venue" = 'romania' |
Which format has january 21, 2002 as the date? | CREATE TABLE table_44036 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Format" FROM table_44036 WHERE "Date" = 'january 21, 2002' |
What amount of points for were there when there was 52 points? | CREATE TABLE table_13399573_3 (
points_for VARCHAR,
points VARCHAR
) | SELECT points_for FROM table_13399573_3 WHERE points = "52" |
Return a scatter chart about the correlation between People_ID and Height , and group by attribute Sex. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
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
) | SELECT People_ID, Height FROM people GROUP BY Sex |
What languages are spoken when call sign XEJAM is used? | CREATE TABLE table_14670060_1 (
languages VARCHAR,
call_sign VARCHAR
) | SELECT languages FROM table_14670060_1 WHERE call_sign = "XEJAM" |
Which home team played in front of 18,345 people in Adelaide Oval? | CREATE TABLE table_53611 (
"Round" real,
"Date" text,
"Home Team" text,
"Score" text,
"Away Team" text,
"Crowd" real,
"Stadium" text,
"Match Details" text
) | SELECT "Home Team" FROM table_53611 WHERE "Crowd" > '18,345' AND "Stadium" = 'adelaide oval' |
On what date were Perth Wildcats the away team? | CREATE TABLE table_49863 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
) | SELECT "Date" FROM table_49863 WHERE "Away team" = 'perth wildcats' |
What is the amount of trees, that require replacement when district is leninsky? | CREATE TABLE table_72090 (
"District" text,
"Total amount of trees" real,
"Prevailing types, %" text,
"Amount of old trees" text,
"Amount of trees, that require replacement" text
) | SELECT "Amount of trees, that require replacement" FROM table_72090 WHERE "District" = 'Leninsky' |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and revenue , and group by attribute headquarter, display by the bars in asc. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name |
which producers produced the majority of songs on this record ? | CREATE TABLE table_204_74 (
id number,
"#" number,
"title" text,
"producers" text,
"guest performers" text,
"length" text
) | SELECT "producers" FROM table_204_74 GROUP BY "producers" ORDER BY COUNT("title") DESC LIMIT 1 |
Car number 15 earned what time? | CREATE TABLE table_17244483_1 (
time_retired VARCHAR,
car_no VARCHAR
) | SELECT time_retired FROM table_17244483_1 WHERE car_no = 15 |
What was the title of the episode directed by John T. Kretchmer? | CREATE TABLE table_22358 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
) | SELECT "Title" FROM table_22358 WHERE "Directed by" = 'John T. Kretchmer' |
Which home team played against the away team Carlton? | CREATE TABLE table_56902 (
"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_56902 WHERE "Away team" = 'carlton' |
What country did the player who scored 73-73-65=211 come from? | CREATE TABLE table_name_6 (
country VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_6 WHERE score = 73 - 73 - 65 = 211 |
Name the normal with que of 24 | CREATE TABLE table_70945 (
"Date enacted" text,
"Normal total" text,
"\u00a726 total" text,
"Ont." text,
"Que." text,
"N.S." text,
"N.B." text
) | SELECT "Normal total" FROM table_70945 WHERE "Que." = '24' |
Which Genre has a Developer(s) of naughty dog? | CREATE TABLE table_14156 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT "Genre" FROM table_14156 WHERE "Developer(s)" = 'naughty dog' |
Which Record has a Kickoff of 12:00pm cst, and a Game site of arrowhead stadium, and a Week of 15? | CREATE TABLE table_name_41 (
record VARCHAR,
week VARCHAR,
kickoff VARCHAR,
game_site VARCHAR
) | SELECT record FROM table_name_41 WHERE kickoff = "12:00pm cst" AND game_site = "arrowhead stadium" AND week = "15" |
Show the capacity for each cinema in a bar chart, list x axis from high to low order. | 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 cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
) | SELECT Name, Capacity FROM cinema ORDER BY Name DESC |
What is the qual with a rank 9? | CREATE TABLE table_name_9 (
qual VARCHAR,
rank VARCHAR
) | SELECT qual FROM table_name_9 WHERE rank = "9" |
What genre was Music in the Air? | CREATE TABLE table_name_7 (
genre VARCHAR,
title VARCHAR
) | SELECT genre FROM table_name_7 WHERE title = "music in the air" |
how many countries have at least 10 gold medals in the asian youth games ? | CREATE TABLE table_203_747 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT COUNT("nation") FROM table_203_747 WHERE "gold" >= 10 |
What loss has 26-9 as a loss? | CREATE TABLE table_name_96 (
loss VARCHAR,
record VARCHAR
) | SELECT loss FROM table_name_96 WHERE record = "26-9" |
What is the lowest average score where the evening gown score was 8.811? | CREATE TABLE table_name_48 (
average INTEGER,
evening_gown VARCHAR
) | SELECT MIN(average) FROM table_name_48 WHERE evening_gown = 8.811 |
Which character has a French voice actor of Marc Saez and a German voice actor of Dirk Fenselau? | CREATE TABLE table_5919 (
"Character" text,
"French voice actor" text,
"Italian voice actor" text,
"German voice actor" text,
"Spanish voice actor" text
) | SELECT "Character" FROM table_5919 WHERE "French voice actor" = 'marc saez' AND "German voice actor" = 'dirk fenselau' |
what is team 2 when team 1 is fc rouen (d1)? | CREATE TABLE table_7911 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
) | SELECT "Team 2" FROM table_7911 WHERE "Team 1" = 'fc rouen (d1)' |
What is the Panthers' Division Record? | CREATE TABLE table_68043 (
"School" text,
"Team" text,
"Division Record" text,
"Overall Record" text,
"Season Outcome" text
) | SELECT "Division Record" FROM table_68043 WHERE "Team" = 'panthers' |
What tournament has a 2010 of 1r, and a 2008 of 1r? | CREATE TABLE table_name_4 (
tournament VARCHAR
) | SELECT tournament FROM table_name_4 WHERE 2010 = "1r" AND 2008 = "1r" |
Which year has a Round of 17? | CREATE TABLE table_67049 (
"Quarter" text,
"Score" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
) | SELECT "Year" FROM table_67049 WHERE "Round" = '17' |
What is the smallest number of gold medals a country with 7 medals has? | CREATE TABLE table_60858 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Gold") FROM table_60858 WHERE "Total" = '7' |
How many under the category of Against have a Difference of 11 | CREATE TABLE table_20032 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"For" real,
"Against" real,
"Difference" real
) | SELECT COUNT("Against") FROM table_20032 WHERE "Difference" = '11' |
What is the name of the head coach of 1974? | CREATE TABLE table_name_96 (
name VARCHAR,
years VARCHAR
) | SELECT name FROM table_name_96 WHERE years = "1974" |
Who were the winner and nominees in 2001? | CREATE TABLE table_name_27 (
winner_nominee_s_ VARCHAR,
year VARCHAR
) | SELECT winner_nominee_s_ FROM table_name_27 WHERE year = 2001 |
How many wins happened when there were fewer than 2 draws? | CREATE TABLE table_8680 (
"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("Wins") FROM table_8680 WHERE "Draws" < '2' |
Name The Score of Player of seve ballesteros? | CREATE TABLE table_58745 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
) | SELECT "Score" FROM table_58745 WHERE "Player" = 'seve ballesteros' |
Average frequency with ERP W of 62? | CREATE TABLE table_47008 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" text,
"FCC info" text
) | SELECT AVG("Frequency MHz") FROM table_47008 WHERE "ERP W" = '62' |
Return a pie chart on what is the average base price of different bed type? List bed type and average base price. | CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
) | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType |
Who is the main contestant with scores by each individual judge of 8 + 7 + 7 = 21? | CREATE TABLE table_78850 (
"Main contestant" text,
"Co-contestant (Yaar vs. Pyaar)" text,
"Date performed" text,
"Scores by each individual judge" text,
"Total score/week" text,
"Position" text,
"Status" text
) | SELECT "Main contestant" FROM table_78850 WHERE "Scores by each individual judge" = '8 + 7 + 7 = 21' |
For entries with lost larger than 21 and goals for smaller than 36, what is the average drawn? | CREATE TABLE table_name_79 (
drawn INTEGER,
goals_for VARCHAR,
lost VARCHAR
) | SELECT AVG(drawn) FROM table_name_79 WHERE goals_for < 36 AND lost > 21 |
Which player has less than 2 in the 100s category, more than 4 matches, and an average greater than 42.75? | CREATE TABLE table_9310 (
"Player" text,
"Team" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" real,
"Highest Score" text,
"100s" real
) | SELECT "Player" FROM table_9310 WHERE "100s" < '2' AND "Average" > '42.75' AND "Matches" > '4' |
How old was the horse when the SP was 200/1? | CREATE TABLE table_2582 (
"Position" text,
"Horse" text,
"Jockey" text,
"Age" real,
"Handicap (st-lb)" text,
"SP" text,
"Distance" text,
"Prize money" text
) | SELECT COUNT("Age") FROM table_2582 WHERE "SP" = '200/1' |
Can you tell me the sum of Goals against that has the Goals for larger than 10, and the Position of 3, and the Wins smaller than 6? | CREATE TABLE table_76289 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT SUM("Goals against") FROM table_76289 WHERE "Goals for" > '10' AND "Position" = '3' AND "Wins" < '6' |
What is the 2007 value for the 2006 wta premier tournaments? | CREATE TABLE table_48544 (
"Tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"Career SR" text,
"Career W\u2013L" text
) | SELECT "2007" FROM table_48544 WHERE "2006" = 'wta premier tournaments' |
Which is located in Angola and entered service in 1988? | CREATE TABLE table_name_98 (
name VARCHAR,
location VARCHAR,
entered_service VARCHAR
) | SELECT name FROM table_name_98 WHERE location = "angola" AND entered_service = "1988" |
What is the title of the film that has the highest high market estimation. | CREATE TABLE film (
Film_ID VARCHAR
)
CREATE TABLE film_market_estimation (
Film_ID VARCHAR
) | SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1 |
Please give me a bar chart showing institution types, along with the total enrollment for each type, and show Y-axis from low to high order. | CREATE TABLE protein (
common_name text,
protein_name text,
divergence_from_human_lineage real,
accession_number text,
sequence_length real,
sequence_identity_to_human_protein text,
Institution_id text
)
CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest text,
Height_feet int,
Floors int
)
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Primary_Conference text,
building_id text
) | SELECT Type, SUM(Enrollment) FROM Institution GROUP BY Type ORDER BY SUM(Enrollment) |
How many games did they play on january 7? | CREATE TABLE table_29880 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("High points") FROM table_29880 WHERE "Date" = 'January 7' |
How many days in April has a record of 42 22 12 3, and less than 99 points? | CREATE TABLE table_name_98 (
april VARCHAR,
record VARCHAR,
points VARCHAR
) | SELECT COUNT(april) FROM table_name_98 WHERE record = "42–22–12–3" AND points < 99 |
Which Margin of victory has a Runner(s)-up of mark o'meara? | CREATE TABLE table_name_19 (
margin_of_victory VARCHAR,
runner_s__up VARCHAR
) | SELECT margin_of_victory FROM table_name_19 WHERE runner_s__up = "mark o'meara" |
Who's the opponent when Diegomar Markwell is the loss? | CREATE TABLE table_37119 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) | SELECT "Opponent" FROM table_37119 WHERE "Loss" = 'diegomar markwell' |
What is the average pjehun measured by female enrollment? | CREATE TABLE table_60569 (
"Measure" text,
"Bombali" real,
"Bonthe" real,
"Kailahun" real,
"Kambia" text,
"Kenema" real,
"Koinadugu" real,
"Kono" real,
"Moyamba" text,
"Port Loko" text,
"Pujehun" real,
"Tonkolili" real
) | SELECT AVG("Pujehun") FROM table_60569 WHERE "Measure" = 'female enrollment' |
What district did Joe Waggonner belong to? | CREATE TABLE table_18389 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_18389 WHERE "Incumbent" = 'Joe Waggonner' |
What is the average number of bronze medals for total of all nations? | CREATE TABLE table_76045 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Bronze") FROM table_76045 WHERE "Nation" = 'total' |
How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere? | CREATE TABLE table_23474 (
"#" real,
"Title" text,
"Maneater" text,
"Television Premiere" text,
"DVD release" text,
"Writer" text,
"Director" text,
"Producer" text
) | SELECT MIN("#") FROM table_23474 WHERE "Producer" = 'Charles Salmon' AND "Television Premiere" = 'January 27, 2007' |
Name the point with points for of 255 | CREATE TABLE table_name_67 (
points VARCHAR,
points_for VARCHAR
) | SELECT points FROM table_name_67 WHERE points_for = "255" |
List the names of buildings in descending order of building height. | CREATE TABLE buildings (
id number,
name text,
city text,
height number,
stories number,
status text
)
CREATE TABLE office_locations (
building_id number,
company_id number,
move_in_year number
)
CREATE TABLE companies (
id number,
name text,
headquarters text,
industry text,
sales_billion number,
profits_billion number,
assets_billion number,
market_value_billion text
) | SELECT name FROM buildings ORDER BY height DESC |
Loss of finley (8-7) had what record? | CREATE TABLE table_name_99 (
record VARCHAR,
loss VARCHAR
) | SELECT record FROM table_name_99 WHERE loss = "finley (8-7)" |
What year was the expansion in the city of San Juan? | CREATE TABLE table_66099 (
"Continent" text,
"Location" text,
"City" text,
"Date" text,
"Year" real
) | SELECT COUNT("Year") FROM table_66099 WHERE "City" = 'san juan' |
What is the lowest number of participants in 2013 when there were more than 5 participants in 2010, less than 4 participants in 2012 and country was germany? | CREATE TABLE table_name_34 (
country VARCHAR
) | SELECT MIN(2013) FROM table_name_34 WHERE 2010 > 5 AND country = "germany" AND 2012 < 4 |
How many campuses exist are in the county of LA? | CREATE TABLE degrees (
year number,
campus number,
degrees number
)
CREATE TABLE faculty (
campus number,
year number,
faculty number
)
CREATE TABLE enrollments (
campus number,
year number,
totalenrollment_ay number,
fte_ay number
)
CREATE TABLE discipline_enrollments (
campus number,
discipline number,
year number,
undergraduate number,
graduate number
)
CREATE TABLE campuses (
id number,
campus text,
location text,
county text,
year number
)
CREATE TABLE csu_fees (
campus number,
year number,
campusfee number
) | SELECT COUNT(*) FROM campuses WHERE county = "Los Angeles" |
What is the highest 2010-03, when 2008-03 is less than 9.9, when 2011-03 is less than 11.8, and when Unemployment is Czech Republic? | CREATE TABLE table_7497 (
"Unemployment" text,
"2007-03" real,
"2008-03" real,
"2009-03" real,
"2010-03" real,
"2011-03" real,
"2012-03" real
) | SELECT MAX("2010-03") FROM table_7497 WHERE "2008-03" < '9.9' AND "2011-03" < '11.8' AND "Unemployment" = 'czech republic' |
Return a bar chart about the distribution of ACC_Road and the amount of ACC_Road , and group by attribute ACC_Road, and list in descending by the Y-axis. | 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, COUNT(ACC_Road) FROM basketball_match GROUP BY ACC_Road ORDER BY COUNT(ACC_Road) DESC |
What is the draw number that has 59 points? | CREATE TABLE table_54761 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" text
) | SELECT AVG("Draw") FROM table_54761 WHERE "Points" = '59' |
I want to know the events for 106 bands | CREATE TABLE table_31778 (
"Year" real,
"Date" text,
"Event" text,
"Days" text,
"Stages" text,
"Acts" text
) | SELECT "Event" FROM table_31778 WHERE "Acts" = '106 bands' |
List the name of physicians who took some appointment. | CREATE TABLE appointment (
Physician VARCHAR
)
CREATE TABLE physician (
name VARCHAR,
EmployeeID VARCHAR
) | SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID |
What is the number of silver when bronze is less than 0? | CREATE TABLE table_name_10 (
silver VARCHAR,
bronze INTEGER
) | SELECT COUNT(silver) FROM table_name_10 WHERE bronze < 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.