instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
What Tournament had a Winning score of 6 (73-68-72-69=282)?
|
CREATE TABLE table_9999 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
|
SELECT "Tournament" FROM table_9999 WHERE "Winning score" = '–6 (73-68-72-69=282)'
|
What is the 9:00 show that will be aired on the station that airs Dawson's Creek at 8:00?
|
CREATE TABLE table_35272 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text,
"10:30" text
)
|
SELECT "9:00" FROM table_35272 WHERE "8:00" = 'dawson''s creek'
|
Which study included autoimmune disease and inflammation?
|
CREATE TABLE table_name_41 (
name VARCHAR,
indication VARCHAR
)
|
SELECT name FROM table_name_41 WHERE indication = "autoimmune disease and inflammation"
|
What year and where was the tournament when fan ying won the womens singles?
|
CREATE TABLE table_28138035_26 (
year_location VARCHAR,
womens_singles VARCHAR
)
|
SELECT year_location FROM table_28138035_26 WHERE womens_singles = "Fan Ying"
|
what is the home team when the opposition is east coast?
|
CREATE TABLE table_26847237_3 (
home_team VARCHAR,
opposition VARCHAR
)
|
SELECT home_team FROM table_26847237_3 WHERE opposition = "East Coast"
|
How many laps are associated with a time of + 1:39.591?
|
CREATE TABLE table_11391 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
|
SELECT "Laps" FROM table_11391 WHERE "Time/Retired" = '+ 1:39.591'
|
What is the average crowd size when the home team is North Melbourne?
|
CREATE TABLE table_name_36 (
crowd INTEGER,
home_team VARCHAR
)
|
SELECT AVG(crowd) FROM table_name_36 WHERE home_team = "north melbourne"
|
who was miss uk 2005 and miss universe 2005 2nd runner up ?
|
CREATE TABLE table_203_727 (
id number,
"year" number,
"miss northern ireland" text,
"hometown" text,
"placement at miss world" text,
"notes" text
)
|
SELECT "miss northern ireland" FROM table_203_727 WHERE "notes" = 'later miss united kingdom 2005 and miss universe united kingdom 2005 2nd runner-up'
|
Margin of victory on no. 4 was?
|
CREATE TABLE table_24524 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
)
|
SELECT "Margin of victory" FROM table_24524 WHERE "No." = '4'
|
For each manufacturer, what are the names and prices of their most expensive product?, and order y axis in descending order.
|
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 T1.Name, MAX(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY MAX(T1.Price) DESC
|
Orbital period of 89 to 128 min has what specific orbital energy?
|
CREATE TABLE table_name_73 (
specific_orbital_energy VARCHAR,
orbital_period VARCHAR
)
|
SELECT specific_orbital_energy FROM table_name_73 WHERE orbital_period = "89 to 128 min"
|
who placed first in the race ?
|
CREATE TABLE table_203_131 (
id number,
"pos." number,
"car #" number,
"driver" text,
"make" text,
"team" text
)
|
SELECT "driver" FROM table_203_131 WHERE "pos." = 1
|
What is the Outcome of the Doubles played on Carpet?
|
CREATE TABLE table_name_35 (
outcome VARCHAR,
surface VARCHAR
)
|
SELECT outcome FROM table_name_35 WHERE surface = "carpet"
|
When the Total is less than 1, and Bronze is 0, how many Gold medals are there?
|
CREATE TABLE table_51383 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
|
SELECT SUM("Gold") FROM table_51383 WHERE "Bronze" = '0' AND "Total" < '1'
|
The semifinal score of vergeer ( ned ) l 0-6, 1-6 follows a round of 16 result of what?
|
CREATE TABLE table_18602462_22 (
round_of_16 VARCHAR,
semifinals VARCHAR
)
|
SELECT round_of_16 FROM table_18602462_22 WHERE semifinals = "Vergeer ( NED ) L 0-6, 1-6"
|
What's the sum of Top-10 that has Events that's larger than 16, and has a Top-5 that's also larger than 5?
|
CREATE TABLE table_name_87 (
top_10 VARCHAR,
events VARCHAR,
top_5 VARCHAR
)
|
SELECT COUNT(top_10) FROM table_name_87 WHERE events > 16 AND top_5 > 5
|
What was the tie number for the game with an away team of Hartlepool United?
|
CREATE TABLE table_60420 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
|
SELECT "Tie no" FROM table_60420 WHERE "Away team" = 'hartlepool united'
|
Visualize a pie chart with what is average age of male for different job title?
|
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
|
SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job
|
What is the lowest height for Parent grasmoor when it has a Prom larger than 117?
|
CREATE TABLE table_78228 (
"Peak" text,
"Height (m)" real,
"Prom. (m)" real,
"Class" text,
"Parent" text
)
|
SELECT MIN("Height (m)") FROM table_78228 WHERE "Parent" = 'grasmoor' AND "Prom. (m)" > '117'
|
estimated glomerular filtration rate ( egfr ) < 30 ml / min / 1.73 m2 using the mdrd formula at visit 1.
|
CREATE TABLE table_test_4 (
"id" int,
"ejection_fraction_ef" int,
"systolic_blood_pressure_sbp" int,
"active_infection" bool,
"heart_disease" bool,
"renal_disease" bool,
"estimated_glomerular_filtration_rate_egfr" int,
"cardiogenic_shock" bool,
"diastolic_blood_pressure_dbp" int,
"symptomatic_hypotension" bool,
"severe_refractory_hypertension" bool,
"severe_left_ventricular_dysfunction" bool,
"NOUSE" float
)
|
SELECT * FROM table_test_4 WHERE estimated_glomerular_filtration_rate_egfr < 30
|
Which player has a last name of baron?
|
CREATE TABLE table_75276 (
"Surname" text,
"First" text,
"D.O.B." text,
"Uni#" real,
"Bats" text,
"Throws" text,
"Position" text
)
|
SELECT "Bats" FROM table_75276 WHERE "Surname" = 'baron'
|
Which network returns april 3, and a Show of shop 'til you drop?
|
CREATE TABLE table_50874 (
"Show" text,
"Last Aired" real,
"Previous Network" text,
"Retitled as/Same" text,
"New/Returning/Same Network" text,
"Returning" text
)
|
SELECT "New/Returning/Same Network" FROM table_50874 WHERE "Returning" = 'april 3' AND "Show" = 'shop ''til you drop'
|
What is the smallest numbered episode in the series listed?
|
CREATE TABLE table_29630 (
"#" real,
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Viewers" real,
"Original airdate" text,
"Prod. code" real
)
|
SELECT MIN("#") FROM table_29630
|
What is the district with the result mac collins (r) unopposed?
|
CREATE TABLE table_29254 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Result" text
)
|
SELECT "District" FROM table_29254 WHERE "Result" = 'Mac Collins (R) unopposed'
|
Who was the away team against the home team Sheffield United?
|
CREATE TABLE table_76354 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
|
SELECT "Away team" FROM table_76354 WHERE "Home team" = 'sheffield united'
|
How many Professors are in building NEB?
|
CREATE TABLE Faculty (
Rank VARCHAR,
building VARCHAR
)
|
SELECT COUNT(*) FROM Faculty WHERE Rank = "Professor" AND building = "NEB"
|
How many spectators were at the game when the away team scored 15.8 (98)?
|
CREATE TABLE table_78053 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Crowd" FROM table_78053 WHERE "Away team score" = '15.8 (98)'
|
What is the High rebounds with a Team that is charlotte?
|
CREATE TABLE table_name_68 (
high_rebounds VARCHAR,
team VARCHAR
)
|
SELECT high_rebounds FROM table_name_68 WHERE team = "charlotte"
|
What is the Attendance on august 15?
|
CREATE TABLE table_name_99 (
attendance VARCHAR,
date VARCHAR
)
|
SELECT attendance FROM table_name_99 WHERE date = "august 15"
|
What is the innings when the average is 36.48?
|
CREATE TABLE table_2245 (
"Rank" real,
"Runs" real,
"Player" text,
"Matches" real,
"Innings" real,
"Not Out" real,
"Average" text
)
|
SELECT MAX("Innings") FROM table_2245 WHERE "Average" = '36.48'
|
Name the district for others being 18.3
|
CREATE TABLE table_23214055_2 (
district VARCHAR,
others VARCHAR
)
|
SELECT district FROM table_23214055_2 WHERE others = "18.3"
|
What is the platform if the weight is 131.5g?
|
CREATE TABLE table (
platform VARCHAR,
weight VARCHAR
)
|
SELECT platform FROM table WHERE weight = "131.5g"
|
How many family friendly games are in the 1990s?
|
CREATE TABLE table_14160327_4 (
family_friendly VARCHAR,
decade VARCHAR
)
|
SELECT COUNT(family_friendly) FROM table_14160327_4 WHERE decade = "1990s"
|
How many teams are #2 on the list?
|
CREATE TABLE table_72667 (
"#" real,
"Minnesota River Conference" text,
"Records" text,
"Pct." text,
"MRC Championships" real,
"Solo" real,
"Co-Champions" real,
"State Champions" real
)
|
SELECT COUNT("Records") FROM table_72667 WHERE "#" = '2'
|
Which name has a USGS Map of clear lake?
|
CREATE TABLE table_71533 (
"name" text,
"type" text,
"elevation" text,
"USGS Map" text,
"GNIS ID" real
)
|
SELECT "name" FROM table_71533 WHERE "USGS Map" = 'clear lake'
|
when was the first start date that actually began on august 6, 1969
|
CREATE TABLE table_291768_1 (
launched VARCHAR,
commissioned VARCHAR
)
|
SELECT launched FROM table_291768_1 WHERE commissioned = "August 6, 1969"
|
Show weight from each name
|
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 Name, Weight FROM people
|
which team has had the most queensland cup premierships ?
|
CREATE TABLE table_204_661 (
id number,
"team" text,
"location" text,
"home ground" text,
"first year in\nqld cup" number,
"last year in\nqld cup" number,
"qld cup\npremierships" text
)
|
SELECT "team" FROM table_204_661 ORDER BY "qld cup\npremierships" DESC LIMIT 1
|
how many records were made on february 22
|
CREATE TABLE table_23483 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
|
SELECT COUNT("Record") FROM table_23483 WHERE "Date" = 'February 22'
|
what is the only department witj 5 total deputies
|
CREATE TABLE table_204_246 (
id number,
"department" text,
"total deputies" number,
"uninominal deputies" number,
"plurinominal deputies" number,
"special indigenous\nor campesino deputies" number,
"senators" number
)
|
SELECT "department" FROM table_204_246 WHERE "total deputies" = 5
|
How may overall episodes had the title 'this is what they want'?
|
CREATE TABLE table_24223834_3 (
overall VARCHAR,
title VARCHAR
)
|
SELECT COUNT(overall) FROM table_24223834_3 WHERE title = "This is What They Want"
|
Which Zone has a Champion of surozh sudak?
|
CREATE TABLE table_name_30 (
zone INTEGER,
champion VARCHAR
)
|
SELECT SUM(zone) FROM table_name_30 WHERE champion = "surozh sudak"
|
What is the Date of Tie no 9?
|
CREATE TABLE table_name_61 (
date VARCHAR,
tie_no VARCHAR
)
|
SELECT date FROM table_name_61 WHERE tie_no = "9"
|
What is the other value associated with a Christianity value of 10.24%?
|
CREATE TABLE table_name_21 (
other VARCHAR,
christianity VARCHAR
)
|
SELECT other FROM table_name_21 WHERE christianity = "10.24%"
|
What Winner had a Prize of z 2,153,999?
|
CREATE TABLE table_name_22 (
winner VARCHAR,
prize VARCHAR
)
|
SELECT winner FROM table_name_22 WHERE prize = "zł2,153,999"
|
Which Display size (in) has a Model of vaio pcg-u3?
|
CREATE TABLE table_50134 (
"Model" text,
"Manufacturer" text,
"Weight (kg)" real,
"Display size (in)" real,
"Processor model" text,
"Storage type" text
)
|
SELECT COUNT("Display size (in)") FROM table_50134 WHERE "Model" = 'vaio pcg-u3'
|
Which FAT32 has yes v1.0/v1.1 for NTFS?
|
CREATE TABLE table_name_31 (
fat32 VARCHAR,
ntfs VARCHAR
)
|
SELECT fat32 FROM table_name_31 WHERE ntfs = "yes v1.0/v1.1"
|
During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures?
|
CREATE TABLE table_name_43 (
bowling_figures_wickets_runs__overs_ VARCHAR,
venue VARCHAR,
versus VARCHAR
)
|
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_43 WHERE venue = "port elizabeth" AND versus = "australia"
|
Name the mountain peak with location of 46.7000 n 60.5992 w
|
CREATE TABLE table_70048 (
"Rank" real,
"Mountain Peak" text,
"Province" text,
"Mountain Range" text,
"Location" text
)
|
SELECT "Mountain Peak" FROM table_70048 WHERE "Location" = '46.7000°n 60.5992°w'
|
What's the losing bonus count for the club with 9 won games?
|
CREATE TABLE table_14070062_3 (
losing_bonus VARCHAR,
won VARCHAR
)
|
SELECT losing_bonus FROM table_14070062_3 WHERE won = "9"
|
What are the naems of all the projects, and how many scientists were assigned to each of them.
|
CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
)
CREATE TABLE Scientists (
SSN int,
Name Char(30)
)
|
SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project GROUP BY T1.Name
|
Who was the finalist when the MVP was Romain Sato?
|
CREATE TABLE table_2095 (
"Season" text,
"Final Venue" text,
"Champion" text,
"Result" text,
"Finalist" text,
"MVP" text
)
|
SELECT "Finalist" FROM table_2095 WHERE "MVP" = 'Romain Sato'
|
What city has channel tv (dt) 25 (31)?
|
CREATE TABLE table_18791 (
"City of license /Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Owned since" text,
"Primary affiliation" text
)
|
SELECT "City of license /Market" FROM table_18791 WHERE "Channel TV ( DT )" = '25 (31)'
|
Show the transaction type descriptions and dates if the share count is smaller than 10.
|
CREATE TABLE Ref_Transaction_Types (
transaction_type_description VARCHAR,
transaction_type_code VARCHAR
)
CREATE TABLE TRANSACTIONS (
date_of_transaction VARCHAR,
transaction_type_code VARCHAR,
share_count INTEGER
)
|
SELECT T1.transaction_type_description, T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10
|
What is the total number of Years when the LLWS is 4th place, and when the City is Westport?
|
CREATE TABLE table_70445 (
"Year" real,
"Champion" text,
"City" text,
"LLWS" text,
"Record" text
)
|
SELECT COUNT("Year") FROM table_70445 WHERE "LLWS" = '4th place' AND "City" = 'westport'
|
What are the highest losses that have points agaisnt less than 956, high park demons as the club, and points less than 16?
|
CREATE TABLE table_name_93 (
loses INTEGER,
points VARCHAR,
points_against VARCHAR,
club VARCHAR
)
|
SELECT MAX(loses) FROM table_name_93 WHERE points_against < 956 AND club = "high park demons" AND points < 16
|
Name the general classification of stage 15
|
CREATE TABLE table_17566 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text,
"Trofeo Fast Team" text
)
|
SELECT COUNT("General classification") FROM table_17566 WHERE "Stage" = '15'
|
Show the minimum, maximum, average price for all products.
|
CREATE TABLE products (
product_price INTEGER
)
|
SELECT MIN(product_price), MAX(product_price), AVG(product_price) FROM products
|
What is the most apps that a has a total season and 3 goals?
|
CREATE TABLE table_name_22 (
apps INTEGER,
season VARCHAR,
goals VARCHAR
)
|
SELECT MAX(apps) FROM table_name_22 WHERE season = "total" AND goals > 3
|
Which player is from south africa?
|
CREATE TABLE table_62584 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
|
SELECT "Player" FROM table_62584 WHERE "Country" = 'south africa'
|
Name the nationality of the player with round more than 4
|
CREATE TABLE table_name_46 (
nationality VARCHAR,
round INTEGER
)
|
SELECT nationality FROM table_name_46 WHERE round > 4
|
On which date was the position less than 4 at Piraeus?
|
CREATE TABLE table_name_27 (
date VARCHAR,
pos VARCHAR,
venue VARCHAR
)
|
SELECT date FROM table_name_27 WHERE pos < 4 AND venue = "piraeus"
|
tell the score when the times gone was 75
|
CREATE TABLE table_19121 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
|
SELECT "Points against" FROM table_19121 WHERE "Tries against" = '75'
|
Who was the visiting team in the game against the Dallas Cowboys?
|
CREATE TABLE table_52747 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
|
SELECT "Visiting Team" FROM table_52747 WHERE "Host Team" = 'dallas cowboys'
|
what is the name of the movement in the 7th position
|
CREATE TABLE table_29697744_1 (
movements VARCHAR,
position VARCHAR
)
|
SELECT movements FROM table_29697744_1 WHERE position = "7th"
|
Which state was Dai from?
|
CREATE TABLE table_name_9 (
state VARCHAR,
name VARCHAR
)
|
SELECT state FROM table_name_9 WHERE name = "dai"
|
What is the number of 'to par' in Mexico with a winning score of 67-67-69-70=273?
|
CREATE TABLE table_13388681_1 (
to_par VARCHAR,
country VARCHAR,
winning_score VARCHAR
)
|
SELECT to_par FROM table_13388681_1 WHERE country = "Mexico" AND winning_score = 67 - 67 - 69 - 70 = 273
|
How many points total are there later than 2003?
|
CREATE TABLE table_7468 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
|
SELECT SUM("Points") FROM table_7468 WHERE "Year" > '2003'
|
how many years did ulysses grant serve ?
|
CREATE TABLE table_203_800 (
id number,
"#" number,
"president" text,
"president's party" text,
"senate with" number,
"senate opposed" number,
"house with" number,
"house opposed" number,
"years served" number,
"elections won" number
)
|
SELECT "years served" FROM table_203_800 WHERE "president" = 'ulysses grant'
|
Where did Scott Fitzgerald rank on the UK charts?
|
CREATE TABLE table_65325 (
"Year" real,
"Artist" text,
"Song" text,
"UK Chart" text,
"At Eurovision" text
)
|
SELECT "UK Chart" FROM table_65325 WHERE "Artist" = 'scott fitzgerald'
|
What machine did Keith T. Gawler ride?
|
CREATE TABLE table_name_76 (
machine VARCHAR,
rider VARCHAR
)
|
SELECT machine FROM table_name_76 WHERE rider = "keith t. gawler"
|
how many teams won at least 85 games ?
|
CREATE TABLE table_204_905 (
id number,
"team" text,
"wins" number,
"losses" number,
"win %" number,
"gb" number
)
|
SELECT COUNT("team") FROM table_204_905 WHERE "wins" >= 85
|
What is the lowest # in Atlanta, GA with the Georgia Bulldogs as an opponent?
|
CREATE TABLE table_20212 (
"#" real,
"Season" real,
"Bowl game" text,
"Result" text,
"Opponent" text,
"Stadium" text,
"Location" text,
"Attendance" text
)
|
SELECT MIN("#") FROM table_20212 WHERE "Location" = 'Atlanta, GA' AND "Opponent" = 'Georgia Bulldogs'
|
When did the team play an away game against the Toronto Eagles?
|
CREATE TABLE table_7343 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
)
|
SELECT "Date" FROM table_7343 WHERE "Away" = 'toronto eagles'
|
Draw a bar chart about the distribution of Name and Height , and rank y-axis in descending order.
|
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 Name, Height FROM people ORDER BY Height DESC
|
What is shown for ends lost when pa is 44?
|
CREATE TABLE table_25689740_2 (
Ends VARCHAR,
pa VARCHAR
)
|
SELECT Ends AS lost FROM table_25689740_2 WHERE pa = 44
|
What league has a value of 0 29 (152) for Europe?
|
CREATE TABLE table_15444 (
"Name" text,
"Years" text,
"League" text,
"FA Cup" text,
"League Cup" text,
"Europe" text,
"Other [C ]" text,
"Total" text
)
|
SELECT "League" FROM table_15444 WHERE "Europe" = '0 29 (152)'
|
Which opponent has 63 points?
|
CREATE TABLE table_name_98 (
opponent VARCHAR,
points VARCHAR
)
|
SELECT opponent FROM table_name_98 WHERE points = 63
|
What is every value for first year in QLD Cup if home ground is Corbett Park, Crosby Park, Lang Park, ANZ Stadium?
|
CREATE TABLE table_26355 (
"Team" text,
"Location" text,
"Home Ground" text,
"First year in Qld Cup" real,
"Last year in Qld Cup" real,
"Qld Cup Premierships" text
)
|
SELECT "First year in Qld Cup" FROM table_26355 WHERE "Home Ground" = 'Corbett Park, Crosby Park, Lang Park, ANZ Stadium'
|
What is the record where high assists is pierce (6)?
|
CREATE TABLE table_17290 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
|
SELECT "Record" FROM table_17290 WHERE "High assists" = 'Pierce (6)'
|
What team plays at home at Windy Hill?
|
CREATE TABLE table_33255 (
"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_33255 WHERE "Venue" = 'windy hill'
|
What is the average number of wins for the Terang Club, when there are less than 0 draws?
|
CREATE TABLE table_name_43 (
wins INTEGER,
club VARCHAR,
draws VARCHAR
)
|
SELECT AVG(wins) FROM table_name_43 WHERE club = "terang" AND draws < 0
|
Which School Colors has an Enrollment larger than 15,664, and Founded of 1910, and a Location of bowling green?
|
CREATE TABLE table_8218 (
"University" text,
"Common short form and abbreviation" text,
"Location" text,
"Enrollment" real,
"Athletics nickname" text,
"School Colors" text,
"Founded" text,
"Student newspaper" text
)
|
SELECT "School Colors" FROM table_8218 WHERE "Enrollment" > '15,664' AND "Founded" = '1910' AND "Location" = 'bowling green'
|
What's the stepping amount for adh4450iaa5do?
|
CREATE TABLE table_33932 (
"Model Number" text,
"Stepping" text,
"Frequency" text,
"L2 Cache" text,
"Multi 1" text,
"V Core" text,
"Socket" text,
"Release Date" text,
"Part Number(s)" text
)
|
SELECT "Stepping" FROM table_33932 WHERE "Part Number(s)" = 'adh4450iaa5do'
|
What is the best time for a team with a first-qualifying time of 59.448?
|
CREATE TABLE table_44711 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
|
SELECT "Best" FROM table_44711 WHERE "Qual 1" = '59.448'
|
For High Assists of Raymond Felton (12), who were the High rebounds?
|
CREATE TABLE table_21194 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
|
SELECT "High rebounds" FROM table_21194 WHERE "High assists" = 'Raymond Felton (12)'
|
Show me the average of baseprice by bedtype in a histogram, and sort by the bars from high to low.
|
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 ORDER BY bedType DESC
|
what title is before dhol in 2007 ?
|
CREATE TABLE table_204_620 (
id number,
"title" text,
"year" number,
"language" text,
"role" text,
"notes" text
)
|
SELECT "title" FROM table_204_620 WHERE id = (SELECT id FROM table_204_620 WHERE "title" = 'dhol') - 1
|
How many rounds have School/club team of pan american?
|
CREATE TABLE table_name_91 (
round INTEGER,
school_club_team VARCHAR
)
|
SELECT SUM(round) FROM table_name_91 WHERE school_club_team = "pan american"
|
What locomotive built after 1895 has the highest SLM number?
|
CREATE TABLE table_name_26 (
SLM INTEGER,
built INTEGER
)
|
SELECT MAX(SLM) AS number FROM table_name_26 WHERE built > 1895
|
How many figures for 08 A points for the team with 1.1863 average?
|
CREATE TABLE table_25887826_17 (
avg VARCHAR
)
|
SELECT COUNT(08 AS _a_pts) FROM table_25887826_17 WHERE avg = "1.1863"
|
When the Away team is south melbourne, what's the Home team score?
|
CREATE TABLE table_77872 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Home team score" FROM table_77872 WHERE "Away team" = 'south melbourne'
|
Which player has a 92.58 3-dart average?
|
CREATE TABLE table_24015 (
"Player" text,
"Played" real,
"Legs Won" real,
"Legs Lost" real,
"LWAT" real,
"100+" real,
"140+" real,
"180s" real,
"High Checkout" real,
"3-dart Average" text
)
|
SELECT "Player" FROM table_24015 WHERE "3-dart Average" = '92.58'
|
Who is in February where has September is kristine hanson?
|
CREATE TABLE table_name_13 (
february VARCHAR,
september VARCHAR
)
|
SELECT february FROM table_name_13 WHERE september = "kristine hanson"
|
Name the date for eastern creek raceway
|
CREATE TABLE table_2446333_2 (
date VARCHAR,
circuit VARCHAR
)
|
SELECT date FROM table_2446333_2 WHERE circuit = "Eastern Creek Raceway"
|
What was the aggregate total for the match against Koper?
|
CREATE TABLE table_name_49 (
agg VARCHAR,
opponent VARCHAR
)
|
SELECT agg FROM table_name_49 WHERE opponent = "koper"
|
Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver?
|
CREATE TABLE table_name_10 (
crew_chief VARCHAR,
team VARCHAR,
driver_s_ VARCHAR
)
|
SELECT crew_chief FROM table_name_10 WHERE team = "chip ganassi racing with felix sabates" AND driver_s_ = "casey mears"
|
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the sum of code , and group by attribute name.
|
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 T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name
|
Which player scored 76-68=144?
|
CREATE TABLE table_name_28 (
player VARCHAR,
score VARCHAR
)
|
SELECT player FROM table_name_28 WHERE score = 76 - 68 = 144
|
Name the pinyin for 657 date
|
CREATE TABLE table_20574 (
"Date (CE)" text,
"Text" text,
"Simplified characters" text,
"Traditional characters" text,
"Pinyin" text,
"Wade-Giles" text,
"Literal meaning" text
)
|
SELECT "Pinyin" FROM table_20574 WHERE "Date (CE)" = '657'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.