sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT AVG Year FROM table WHERE Role = alvin seville simon seville david 'dave' seville AND Title = the chipmunk adventure
CREATE TABLE INST, Here is a database schema( table schema);
What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure?.It is not neccessary to use all the tables.
SELECT nationality FROM table_name_22 WHERE player = "eugene mcdowell"
CREATE TABLE INST, Here is a database schema( table schema);
What country is Eugene McDowell from?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Away Team = b3 AND Date = august 12, 2014
CREATE TABLE INST, Here is a database schema( table schema);
How much did the away team b3 score on August 12, 2014?.It is not neccessary to use all the tables.
SELECT COUNT(lane) FROM table_name_55 WHERE nationality = "australia" AND reaction < 0.138
CREATE TABLE INST, Here is a database schema( table schema);
How many lanes does Australia have with a reaction smaller than 0.138?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Rank = 5
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a Rank of 5?.It is not neccessary to use all the tables.
SELECT MIN(game) FROM table_name_35 WHERE opponent = "boston bruins"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Game when Opponent is "Boston Bruins"?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Pyelonephritis NOS"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients are diagnosed for pyelonephritis nos?It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_39 WHERE lost = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Points with a Lost total of 8?It is not neccessary to use all the tables.
SELECT country_territory FROM table_name_33 WHERE miss_international = "małgorzata rożniecka"
CREATE TABLE INST, Here is a database schema( table schema);
What country or territory is małgorzata rożniecka from?It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Season = 2010-11 AND Score = 2–0
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance in the game in the 2010-11 season, when the score was 2–0?.It is not neccessary to use all the tables.
SELECT name FROM table_name_53 WHERE overs < 2047.3 AND wickets > 200 AND average > 29.02
CREATE TABLE INST, Here is a database schema( table schema);
Who has fewer than 2047.3 overs more than 200 wickets and an average of 29.02?It is not neccessary to use all the tables.
SELECT title FROM table_name_28 WHERE translation = "vesoul"
CREATE TABLE INST, Here is a database schema( table schema);
Which title has the Translation of vesoul?It is not neccessary to use all the tables.
SELECT primary_military_speciality FROM table_name_39 WHERE code_name = "moondancer"
CREATE TABLE INST, Here is a database schema( table schema);
What is Moondancer's Primary Military Speciality?It is not neccessary to use all the tables.
SELECT venue FROM table_name_22 WHERE balls = 148
CREATE TABLE INST, Here is a database schema( table schema);
What is Venue when Balls is "148"?It is not neccessary to use all the tables.
SELECT Hebrew word FROM table WHERE Strongs Words Compounded = 'adown [# 113] & Yahu
CREATE TABLE INST, Here is a database schema( table schema);
List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu.It is not neccessary to use all the tables.
SELECT AVG(gold) FROM table_name_84 WHERE bronze > 2 AND rank = 4 AND total > 7
CREATE TABLE INST, Here is a database schema( table schema);
Bronze larger than 2 and a Rank of 4 and a Total larger than 7 has how many numbers of gold?It is not neccessary to use all the tables.
SELECT T2.Party, SUM(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY T2.Party
CREATE TABLE INST, Here is a database schema( table schema);
Show the name of each party and the corresponding number of delegates from that party with a bar chart, and sort by the bar in asc.It is not neccessary to use all the tables.
SELECT COUNT Gold FROM table WHERE Silver < 3 AND Total = 9 AND Bronze < 1
CREATE TABLE INST, Here is a database schema( table schema);
How much Gold has a Silver smaller than 3, and a Total of 9, and a Bronze smaller than 1?.It is not neccessary to use all the tables.
SELECT COUNT(heat) FROM table_name_94 WHERE name = "chinyere pigot"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of heat for Chinyere Pigot?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Score in the final = 4–6, 3–6
CREATE TABLE INST, Here is a database schema( table schema);
Which surface has a score in the final of 4–6, 3–6?.It is not neccessary to use all the tables.
SELECT MIN(assumed_office) FROM table_name_60 WHERE name = "madeleine bordallo"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the loewst assume office for madeleine bordalloIt is not neccessary to use all the tables.
SELECT MAX Pick FROM table WHERE Overall < 217 AND Name = alfred morris AND Round < 6
CREATE TABLE INST, Here is a database schema( table schema);
what is the pick for alfred morris when the overall is less than 217, and the round is smaller than 6?.It is not neccessary to use all the tables.
SELECT Ends FROM table WHERE Transfer fee = free AND Moving from = middlesbrough
CREATE TABLE INST, Here is a database schema( table schema);
What is the ends with a free transfer fee and was moved from middlesbrough?.It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Score = 7-5, 2-6, [6-10]
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome in games where the score was 7-5, 2-6, [6-10]?.It is not neccessary to use all the tables.
SELECT Singapore Gross FROM table WHERE Director = 1991
CREATE TABLE INST, Here is a database schema( table schema);
For the directed by 1991, what was the gross in Singapore?.It is not neccessary to use all the tables.
SELECT money___$__ FROM table_name_72 WHERE score = 68 - 69 - 67 - 73 = 277
CREATE TABLE INST, Here is a database schema( table schema);
What is the money for the player with a score of 68-69-67-73=277?It is not neccessary to use all the tables.
SELECT AVG Field goals FROM table WHERE Position = right halfback AND Touchdowns > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of field goals scored by a right halfback who had more than 3 touchdowns?.It is not neccessary to use all the tables.
SELECT player FROM table_name_57 WHERE to_par < 7 AND country = "japan"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the player for Japan when the to par was smaller than 7?It is not neccessary to use all the tables.
SELECT No. in series FROM table WHERE Title = "Kevin's Big Score"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number in series for the episode titled "Kevin's Big Score"?.It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_name_71 WHERE date = "august 26"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest attendance total on August 26?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Location = athens AND Winners = panathinaikos
CREATE TABLE INST, Here is a database schema( table schema);
Which season's winner is Panathinaikos and is located in Athens?.It is not neccessary to use all the tables.
SELECT location_attendance FROM table_17103729_7 WHERE score = "68-85"
CREATE TABLE INST, Here is a database schema( table schema);
With a score of 68-85 what is the location and attendance?It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_70 WHERE engine = "maserati" AND entrant = "owen racing organisation"
CREATE TABLE INST, Here is a database schema( table schema);
What is the most points when Maserati made the engine and a Entrant of owen racing organisation?It is not neccessary to use all the tables.
SELECT 2009 FROM table_name_94 WHERE 2007 = "a" AND tournament = "us open"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2009 entry for the row that has a 2007 entry of A and a tournament entry of US Open?It is not neccessary to use all the tables.
SELECT MAX Games Played FROM table WHERE Position < 4 AND Goals For/Against = 29-24
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of games played of the club with a position number less than 4 and a 29-24 goals for/against?.It is not neccessary to use all the tables.
SELECT All_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home ORDER BY COUNT(All_Home)
CREATE TABLE INST, Here is a database schema( table schema);
Show me about the distribution of All_Home and the amount of All_Home , and group by attribute All_Home in a bar chart, and could you order by the y-axis from low to high?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team score = 9.11 (65)
CREATE TABLE INST, Here is a database schema( table schema);
In which venue did the away team score 9.11 (65)?.It is not neccessary to use all the tables.
SELECT Supplier FROM table WHERE Year = 2006-2008
CREATE TABLE INST, Here is a database schema( table schema);
Which Supplier has a Year of 2006-2008?.It is not neccessary to use all the tables.
SELECT Albedo feature name FROM table WHERE Name = neruda
CREATE TABLE INST, Here is a database schema( table schema);
What is the Albedo name for Neruda?.It is not neccessary to use all the tables.
SELECT score FROM table_name_88 WHERE losing_semifinalists = "toluca unam"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Score when the Losing Semifinalists were Toluca Unam?It is not neccessary to use all the tables.
SELECT MIN(erp_w) FROM table_name_26 WHERE frequency_mhz = 94.9
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest ERP W with a frequency MHz of 94.9?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Score in the final = 6–2, 6–3
CREATE TABLE INST, Here is a database schema( table schema);
What type of surface was used where the final score was 6–2, 6–3?.It is not neccessary to use all the tables.
SELECT Ends AS lost FROM table_1505809_2 WHERE blank_ends = 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the value of Ends Lost when Blank Ends is 9.It is not neccessary to use all the tables.
SELECT Gloss FROM table WHERE Pronunciation = [χdəm]
CREATE TABLE INST, Here is a database schema( table schema);
Name the gloss for [χdəm].It is not neccessary to use all the tables.
SELECT % Hindu 2010 FROM table WHERE % Hindu 2000 = 0.01% AND Hindu > 136
CREATE TABLE INST, Here is a database schema( table schema);
What % Hindu 2010 has a 0.01% % Hindu 2000, and a greater than 136 Hindu?.It is not neccessary to use all the tables.
SELECT AVG Gold FROM table WHERE Bronze = 1 AND Type = winter AND Silver < 3 AND Total < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the average gold of the winter athlete with 1 bronze, less than 3 silver, and less than 4 total medals?.It is not neccessary to use all the tables.
SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING COUNT(*) >= 5
CREATE TABLE INST, Here is a database schema( table schema);
Show card type codes with at least 5 cards.It is not neccessary to use all the tables.
SELECT opponents_in_the_final FROM table_name_2 WHERE date = "march 14, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the match played against in the final on March 14 2008?It is not neccessary to use all the tables.
SELECT gold FROM table_name_58 WHERE silver = "czech republic" AND venue = "bratislava"
CREATE TABLE INST, Here is a database schema( table schema);
Who received the gold at the tournament at bratislava where the Czech Republic received the silver?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "BASE" AND lab.label = "Calculated Bicarbonate, Whole Blood"
CREATE TABLE INST, Here is a database schema( table schema);
find the number of patients taking base type drug prescription who had whole blood calculated bicarbonate lab test.It is not neccessary to use all the tables.
SELECT MAX(played) FROM table_name_25 WHERE season = "2003-04"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest amount of games played in the 2003-04 season?It is not neccessary to use all the tables.
SELECT COUNT(team) FROM table_23285761_11 WHERE high_rebounds = "Channing Frye, Jason Richardson (8)"
CREATE TABLE INST, Here is a database schema( table schema);
How many teams have channing frye jason richardson (8) as high rebounds?It is not neccessary to use all the tables.
SELECT COUNT(year_)[e_] AS __ceremony_ FROM table_18069789_1 WHERE film_title_used_in_nomination = "27 Missing Kisses"
CREATE TABLE INST, Here is a database schema( table schema);
how many times was 27 missing kisses used in nominationIt is not neccessary to use all the tables.
SELECT total FROM table_name_70 WHERE finish = "t66"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total for the player whose finish was t66?It is not neccessary to use all the tables.
SELECT package_option FROM table_name_84 WHERE country = "italy" AND content = "general television" AND television_service = "cielo"
CREATE TABLE INST, Here is a database schema( table schema);
What was the option from Italy with general television content and the Cielo television service?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 6–4, 6–4 AND Opponent = leonardo tavares
CREATE TABLE INST, Here is a database schema( table schema);
What date was the match against leonardo tavares with a score of 6–4, 6–4?.It is not neccessary to use all the tables.
SELECT COUNT(nhl_team) FROM table_2781227_2 WHERE player = "Maxim Bets"
CREATE TABLE INST, Here is a database schema( table schema);
How many teams does Maxim Bets play for?It is not neccessary to use all the tables.
SELECT MAX No. FROM table WHERE School/Club Team = Delta State
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the player who attended Delta State?.It is not neccessary to use all the tables.
SELECT male FROM table_name_26 WHERE female = "amy winehouse"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the male partner for amy winehouse?It is not neccessary to use all the tables.
SELECT April FROM table WHERE June = candice cassidy
CREATE TABLE INST, Here is a database schema( table schema);
Name the april for candice cassidy.It is not neccessary to use all the tables.
SELECT Period FROM table WHERE Built < 241 AND Model = fokker 70
CREATE TABLE INST, Here is a database schema( table schema);
Between which years were there 241 fokker 70 model cabins built?.It is not neccessary to use all the tables.
SELECT Catalog number FROM table WHERE Format = album AND Label = seed records AND Formats = cd AND Title = grey
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the catalog number for album and seed records label for cd and title of grey.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_66 WHERE away_team = "collingwood"
CREATE TABLE INST, Here is a database schema( table schema);
When collingwood was the away team what was the home team?It is not neccessary to use all the tables.
SELECT AVG("Week") FROM table_9546 WHERE "Opponent" = 'bye'
CREATE TABLE INST, Here is a database schema( table schema);
What week was the bye week?It is not neccessary to use all the tables.
SELECT nalchik FROM table_name_32 WHERE played = 4 AND qual = "rl" AND jermuk = "100"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nalchik with 4 played a rl qual. and 100 jermuk?It is not neccessary to use all the tables.
SELECT MAX(number_of_households) FROM table_name_1 WHERE median_household_income = "$32,806" AND population > 11 OFFSET 291
CREATE TABLE INST, Here is a database schema( table schema);
Which Number of households has a Median household income of $32806 and a Population larger than 11291?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Acute diastolic heart failure" AND lab.flag = "delta"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose diagnoses long title is acute diastolic heart failure and lab test abnormal status is delta?It is not neccessary to use all the tables.
SELECT DISTINCT (BillingCountry) FROM INVOICE
CREATE TABLE INST, Here is a database schema( table schema);
What are the distinct billing countries of the invoices?It is not neccessary to use all the tables.
SELECT EPA rated combined fuel economy FROM table WHERE Vehicle = Nissan Leaf
CREATE TABLE INST, Here is a database schema( table schema);
What is the epa rated combined fuel economy for the Nissan Leaf?.It is not neccessary to use all the tables.
SELECT location_attendance FROM table_11959669_4 WHERE high_points = "Pierce (22)"
CREATE TABLE INST, Here is a database schema( table schema);
What was the location attendance when High points was by Pierce (22)?It is not neccessary to use all the tables.
SELECT First used FROM table WHERE Quantity = 26
CREATE TABLE INST, Here is a database schema( table schema);
Which First used has a Quantity of 26?.It is not neccessary to use all the tables.
SELECT Developer FROM table WHERE Platform = xbox 360
CREATE TABLE INST, Here is a database schema( table schema);
Which developer has xbox 360 as the platform?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Result = W 21–7
CREATE TABLE INST, Here is a database schema( table schema);
what's the record with result being w 21–7.It is not neccessary to use all the tables.
SELECT party FROM table_name_47 WHERE elected = 2003 AND incumbent = "mark obenshain"
CREATE TABLE INST, Here is a database schema( table schema);
Which party was elected in 2003 with incumbent Mark Obenshain?It is not neccessary to use all the tables.
SELECT COUNT Denominations (Gold weight) FROM table WHERE Country = Austria
CREATE TABLE INST, Here is a database schema( table schema);
How many catagories for denominations does Austria have? .It is not neccessary to use all the tables.
SELECT film FROM table_name_1 WHERE year < 2002
CREATE TABLE INST, Here is a database schema( table schema);
Which film was made before 2002?It is not neccessary to use all the tables.
SELECT SUM(laps) FROM table_name_8 WHERE team = "dale coyne racing" AND points = 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of lap for the Dale Coyne Racing Team and 0 points?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_32 WHERE venue = "victoria park"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team that played in Victoria Park?It is not neccessary to use all the tables.
SELECT Loss FROM table WHERE Record = 52-36
CREATE TABLE INST, Here is a database schema( table schema);
Who got the loss on the game that ended in a 52-36 record?.It is not neccessary to use all the tables.
SELECT COUNT(result) FROM table_14945608_1 WHERE attendance = 60225
CREATE TABLE INST, Here is a database schema( table schema);
How many games had the attendance of 60225?It is not neccessary to use all the tables.
SELECT record FROM table_27537518_9 WHERE opponent = "Carolina Hurricanes"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record for the game where the opponent was the Carolina Hurricanes?It is not neccessary to use all the tables.
SELECT "Record" FROM table_44553 WHERE "Date" = 'may 1, 2004'
CREATE TABLE INST, Here is a database schema( table schema);
What was the record after the game on May 1, 2004?It is not neccessary to use all the tables.
SELECT Builder FROM table WHERE Location = govan , scotland
CREATE TABLE INST, Here is a database schema( table schema);
What is Builder, when Location is "Govan , Scotland"?.It is not neccessary to use all the tables.
SELECT "Home team" FROM table_52429 WHERE "Away team" = 'south melbourne'
CREATE TABLE INST, Here is a database schema( table schema);
When the Away team was south melbourne what was the home team?It is not neccessary to use all the tables.
SELECT School/Club Team FROM table WHERE Player = roy de walt
CREATE TABLE INST, Here is a database schema( table schema);
Which team was Roy de Walt a player on?.It is not neccessary to use all the tables.
SELECT MIN("CR no.") FROM table_22640
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest cr number?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_98 WHERE result = "9th"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the highest year for result of 9thIt is not neccessary to use all the tables.
SELECT result FROM table_name_15 WHERE event = "strikeforce" AND method = "ko (spinning back fist)"
CREATE TABLE INST, Here is a database schema( table schema);
Which Result has the Event Strikeforce and the Method Ko (spinning back fist)?It is not neccessary to use all the tables.
SELECT athlete FROM table_1231316_7 WHERE location = "Edwardsville"
CREATE TABLE INST, Here is a database schema( table schema);
What is the athlete from Edwardsville?It is not neccessary to use all the tables.
SELECT date FROM table_name_18 WHERE week = 3
CREATE TABLE INST, Here is a database schema( table schema);
What date was the Week 3 game played?It is not neccessary to use all the tables.
SELECT COUNT(constructor) FROM table_1140114_5 WHERE winning_driver = "Paul Thiel"
CREATE TABLE INST, Here is a database schema( table schema);
How many different constructors had Paul Thiel as a winning driver?It is not neccessary to use all the tables.
SELECT song FROM table_name_39 WHERE place > 7 AND points > 13 AND draw = 5
CREATE TABLE INST, Here is a database schema( table schema);
Which song has a place greater than 7 more than 13 points and draw of 5?It is not neccessary to use all the tables.
SELECT COUNT Attendance FROM table WHERE Home = buffalo
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of attendance for games where buffalo was the home team?.It is not neccessary to use all the tables.
SELECT COUNT Location FROM table WHERE Week = 7
CREATE TABLE INST, Here is a database schema( table schema);
How many locations did the team play at on week 7?.It is not neccessary to use all the tables.
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of the county that the delegates on "Appropriations" committee belong to?It is not neccessary to use all the tables.
SELECT award_ceremony FROM table_name_75 WHERE result = "nominated" AND category = "best revival of a musical"
CREATE TABLE INST, Here is a database schema( table schema);
Which Award Ceremony has a Result of nominated, and a Category of best revival of a musical?It is not neccessary to use all the tables.
SELECT 2012 FROM table_name_83 WHERE 2002 = "q1" AND 2010 = "1r"
CREATE TABLE INST, Here is a database schema( table schema);
What was the value in 2012 when 2002 was Q1 and 2010 was 1R?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Year < 2001 AND Competition = world race walking cup
CREATE TABLE INST, Here is a database schema( table schema);
Where was the world race walking cup held before 2001?.It is not neccessary to use all the tables.
SELECT 18-49 (Rating/Share) FROM table WHERE Viewers (m) > 8.88 AND Weekly Rank (#) = 27
CREATE TABLE INST, Here is a database schema( table schema);
What is the rating/share with more than 8.88 million viewers and a weekly rant of 27?.It is not neccessary to use all the tables.
SELECT MIN Floors FROM table WHERE Feet > 262 AND Name = standard bank building AND Metres > 138.8
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest Floors with Feet that's larger htan 262, has a Name of Standard Bank Building, and Metres that's larger htan 138.8?.It is not neccessary to use all the tables.