sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Skip FROM table WHERE Second = martin hejhal
CREATE TABLE INST, Here is a database schema( table schema);
Which skip's second is Martin Hejhal?.It is not neccessary to use all the tables.
SELECT MIN Total FROM table WHERE Position < 1
CREATE TABLE INST, Here is a database schema( table schema);
What's the total that the position is less than 1?.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_65 WHERE player = "greg norman"
CREATE TABLE INST, Here is a database schema( table schema);
What is To Par when Player is Greg Norman?It is not neccessary to use all the tables.
SELECT week FROM table_14656147_2 WHERE record = "0-1"
CREATE TABLE INST, Here is a database schema( table schema);
List the record of 0-1 from the table?It is not neccessary to use all the tables.
SELECT MAX(goals_against) FROM table_name_4 WHERE position = 15
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest goals against that has 15 as position?It is not neccessary to use all the tables.
SELECT MAX 1st RU FROM table WHERE 2nd RU < 0
CREATE TABLE INST, Here is a database schema( table schema);
What's the greatest 1st RU that has a 2nd RU less than 0?.It is not neccessary to use all the tables.
SELECT "Nation" FROM table_45289 WHERE "Bronze" < '17' AND "Gold" < '16'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Nation, when the number of Bronze is less than 17, and when the number of Gold is less than 16?It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Engine = judd
CREATE TABLE INST, Here is a database schema( table schema);
When is the earliest year that there's a judd engine?.It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_23 WHERE date = "september 16"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number in attendance on September 16?It is not neccessary to use all the tables.
SELECT method FROM table_name_37 WHERE round = 1 AND record = "4–2"
CREATE TABLE INST, Here is a database schema( table schema);
Which Method has a Round of 1 and a Record of 4–2?It is not neccessary to use all the tables.
SELECT year FROM table_name_74 WHERE notes = "87.17 m"
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has Notes of 87.17 m?It is not neccessary to use all the tables.
SELECT "Year" FROM table_67049 WHERE "Round" = '17'
CREATE TABLE INST, Here is a database schema( table schema);
Which year has a Round of 17?It is not neccessary to use all the tables.
SELECT State ranked in partisan order FROM table WHERE Percentage Democrats = 25% AND Republican/ Democratic = 6/2
CREATE TABLE INST, Here is a database schema( table schema);
What state is 25% Democrats has a ratio of 6/2 of Republicans to Democrats?.It is not neccessary to use all the tables.
SELECT episode_air_date FROM table_27615445_1 WHERE audition_venue = "Nego Quirido Sambadrome"
CREATE TABLE INST, Here is a database schema( table schema);
List all episode air dates that auditioned at Nego Quirido Sambadrome?It is not neccessary to use all the tables.
SELECT studio_analyst_s_ FROM table_2724704_5 WHERE network_s_ = "ESPN" AND sideline_reporter_s_ = "Erin Andrews and Tom Rinaldi"
CREATE TABLE INST, Here is a database schema( table schema);
Name the studio analysts for espn with erin andrews and tom rinaldiIt is not neccessary to use all the tables.
SELECT SUM(avg_g) FROM table_name_79 WHERE name = "blaine gabbert" AND long > 30
CREATE TABLE INST, Here is a database schema( table schema);
What is the amount of Avg/G with a Name of blaine gabbert and a Long greater than 30?It is not neccessary to use all the tables.
SELECT college FROM table_name_41 WHERE overall < 315 AND round = 17
CREATE TABLE INST, Here is a database schema( table schema);
Which college had an overall smaller than 315 in round 17?It is not neccessary to use all the tables.
SELECT silver FROM table_name_35 WHERE year = 1962
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE SILVER WITH A YEAR OF 1962?It is not neccessary to use all the tables.
SELECT composer FROM table_name_3 WHERE director = "john ramster"
CREATE TABLE INST, Here is a database schema( table schema);
Who was Director John Ramster's Composer?It is not neccessary to use all the tables.
SELECT MIN(Otl) FROM table_1888165_1
CREATE TABLE INST, Here is a database schema( table schema);
What was the minimum OTL amount?It is not neccessary to use all the tables.
SELECT County_name, Population FROM county ORDER BY Population DESC
CREATE TABLE INST, Here is a database schema( table schema);
Show me population by county name in a histogram, sort by the y-axis in desc please.It is not neccessary to use all the tables.
SELECT name FROM table_14624447_24 WHERE position = "FS"
CREATE TABLE INST, Here is a database schema( table schema);
What are all names for the position FS?It is not neccessary to use all the tables.
SELECT IS-3 M1945 FROM table WHERE KV-1S M1942 = 45
CREATE TABLE INST, Here is a database schema( table schema);
What's the IS-3 when the KV-1S is 45?.It is not neccessary to use all the tables.
SELECT intermediate_sprints_classification_klasyfikacja_najaktywniejszych FROM table_28092844_16 WHERE winner = "Daniel Martin"
CREATE TABLE INST, Here is a database schema( table schema);
What was the intermediate sprint classification for the race whose winner was Daniel Martin?It is not neccessary to use all the tables.
SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality
CREATE TABLE INST, Here is a database schema( table schema);
Show the different nationalities and the number of journalists of each nationality. Visualize by bar chart.It is not neccessary to use all the tables.
SELECT Silver FROM table WHERE Bronze > 0 AND Total < 54 AND Nation = spain
CREATE TABLE INST, Here is a database schema( table schema);
How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?.It is not neccessary to use all the tables.
SELECT HDTV FROM table WHERE Television service = rai nettuno sat uno
CREATE TABLE INST, Here is a database schema( table schema);
What is the HDTV for the Rai Nettuno Sat Uno Television service?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_14 WHERE score = "6–2, 4–6, 6–4"
CREATE TABLE INST, Here is a database schema( table schema);
What Tournament's Score was 6–2 4–6 6–4?It is not neccessary to use all the tables.
SELECT winner FROM table_name_71 WHERE week_of = "26 june 2 weeks" AND runner_up = "arantxa sánchez vicario"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the winner in the week listed as 26 June 2 weeks when the runner-up is Arantxa Sánchez Vicario?It is not neccessary to use all the tables.
SELECT MAX(bronze) FROM table_name_58 WHERE nation = "canada"
CREATE TABLE INST, Here is a database schema( table schema);
How many total bronze medals did Canada receive?It is not neccessary to use all the tables.
SELECT venue FROM table_name_63 WHERE year = 2005 AND result = "8th"
CREATE TABLE INST, Here is a database schema( table schema);
What is Venue when Year is 2005 and when Result is 8th?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Round = 5
CREATE TABLE INST, Here is a database schema( table schema);
Which player is in round 5?.It is not neccessary to use all the tables.
SELECT SUM Crowd FROM table WHERE Home team = richmond
CREATE TABLE INST, Here is a database schema( table schema);
What's the crowd population of the home team located in Richmond?.It is not neccessary to use all the tables.
SELECT Model name FROM table WHERE Engine code = D5244 T7
CREATE TABLE INST, Here is a database schema( table schema);
What is the model of the engine d5244 t7?.It is not neccessary to use all the tables.
SELECT customer_details FROM customers ORDER BY customer_details
CREATE TABLE INST, Here is a database schema( table schema);
List the names of all the customers in alphabetical order.It is not neccessary to use all the tables.
SELECT Qual 2 FROM table WHERE Best = 1:27.976
CREATE TABLE INST, Here is a database schema( table schema);
What is Qual 2, when Best is 1:27.976?.It is not neccessary to use all the tables.
SELECT COUNT Event 6 Atlas Stones FROM table WHERE Event 3 Dead Lift = 2 (6 in 30.89s)
CREATE TABLE INST, Here is a database schema( table schema);
What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?.It is not neccessary to use all the tables.
SELECT Democrat: Tom Harkin FROM table WHERE Poll Source = rasmussen reports AND Lead Margin = 14
CREATE TABLE INST, Here is a database schema( table schema);
What was Democrat: Tom Harkin's percentage when the poll source was Rasmussen Reports and the lead margin was 14?.It is not neccessary to use all the tables.
SELECT finalist FROM table_name_91 WHERE week = "march 12"
CREATE TABLE INST, Here is a database schema( table schema);
What is the finalist in the week of March 12?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Location = manly beach
CREATE TABLE INST, Here is a database schema( table schema);
Which event was held at Manly Beach?.It is not neccessary to use all the tables.
SELECT Target Version FROM table WHERE Last Release = 2009-08-09, 1.2.9
CREATE TABLE INST, Here is a database schema( table schema);
What is Target Version, when Last Release is 2009-08-09, 1.2.9?.It is not neccessary to use all the tables.
SELECT result FROM table_name_55 WHERE date = "1990-11-04"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result on 1990-11-04?It is not neccessary to use all the tables.
SELECT COUNT Season FROM table WHERE Season finale = May 26, 2010
CREATE TABLE INST, Here is a database schema( table schema);
How many seasons is the season finale on May 26, 2010?.It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_80 WHERE laps = 22 AND grid = 29
CREATE TABLE INST, Here is a database schema( table schema);
What is the time/retired with 22 laps and a grid of 29?It is not neccessary to use all the tables.
SELECT MAX(played) FROM table_14323347_1
CREATE TABLE INST, Here is a database schema( table schema);
Name the most playedIt is not neccessary to use all the tables.
SELECT country FROM table_name_9 WHERE player = "billy ray brown"
CREATE TABLE INST, Here is a database schema( table schema);
Billy Ray Brown plays for what country?It is not neccessary to use all the tables.
SELECT per_capita_income FROM table_name_9 WHERE county = "charles"
CREATE TABLE INST, Here is a database schema( table schema);
What is the per capital income for Charles county?It is not neccessary to use all the tables.
SELECT MAX Attendance FROM table WHERE Date = 16 august 2008 AND Home = deportes savio
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum number of people in attendance on 16 August 2008 when the home team was Deportes Savio?.It is not neccessary to use all the tables.
SELECT MIN March FROM table WHERE Record = 22-12-6
CREATE TABLE INST, Here is a database schema( table schema);
What's the smallest March when the record is 22-12-6?.It is not neccessary to use all the tables.
SELECT AVG(elected) FROM table_name_69 WHERE party = "democrat" AND district > 2 AND incumbent = "nydia velazquez"
CREATE TABLE INST, Here is a database schema( table schema);
What's the elected year of Nydia Velazquez in a district bigger than 2 and a democrat?It is not neccessary to use all the tables.
SELECT MAX Attendance FROM table WHERE Record = 8–1 AND Week > 9
CREATE TABLE INST, Here is a database schema( table schema);
Record of 8–1, and a Week larger than 9 had what highest attendance?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Result = l 14–24
CREATE TABLE INST, Here is a database schema( table schema);
When was the result l 14–24?.It is not neccessary to use all the tables.
SELECT episode FROM table_1579922_1 WHERE run_time = "24:25"
CREATE TABLE INST, Here is a database schema( table schema);
What episode had a run time of 24:25?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = cadott rock fest
CREATE TABLE INST, Here is a database schema( table schema);
When is Cadott Rock Fest taken place?.It is not neccessary to use all the tables.
SELECT T2.customer_first_name, T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = "900"
CREATE TABLE INST, Here is a database schema( table schema);
Show the first name and last name for the customer with account name 900.It is not neccessary to use all the tables.
SELECT score FROM table_name_7 WHERE opponent = "washington capitals" AND record = "24-34-17"
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has an Opponent of washington capitals and a Record of 24-34-17?It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Village = chassagne-montrachet
CREATE TABLE INST, Here is a database schema( table schema);
Which Reigon has a Village of Chassagne-Montrachet?.It is not neccessary to use all the tables.
SELECT AVG(top_10) FROM table_name_15 WHERE top_5 > 1 AND year = 2003 AND poles > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Top 10 has a Top 5 larger than 1 and a Year of 2003 and Poles larger than 0?It is not neccessary to use all the tables.
SELECT original_artist FROM table_21501565_1 WHERE order__number = "7" AND theme = "Motown"
CREATE TABLE INST, Here is a database schema( table schema);
With order number 7 and the theme is Motown who were the original artists?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Class = piw AND Program Title = the adventures of... AND Score > 94.6
CREATE TABLE INST, Here is a database schema( table schema);
What was the total number for the PIW Class' The Adventures Of... and had a score bigger than 94.6?.It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Player = tino schuster
CREATE TABLE INST, Here is a database schema( table schema);
What was the to par for Tino Schuster?.It is not neccessary to use all the tables.
SELECT COUNT(total) FROM table_name_48 WHERE bronze > 13 AND rank = "8" AND silver < 11
CREATE TABLE INST, Here is a database schema( table schema);
How many Total(s) are there when the number of Bronze is greater than 13 when the Rank is 8 and when the number of Silver is less than 11?It is not neccessary to use all the tables.
SELECT SUM Largest component, fractional share FROM table WHERE Constellation = e AND N, Golosov > 2.9
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the values for Largest Component, Fractional Share, when Constellation is E, and when N, Golosov is greater than 2.9?.It is not neccessary to use all the tables.
SELECT 2004/ 05 FROM table WHERE 2007/ 08 = not held AND 2012/ 13 = a AND 2011/ 12 = a AND 2010/ 11 = not held
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 2004/ 05 when 2007/ 08 shows not held, 2012/ 13 is A, 2011/ 12 of A, and a 2010/ 11 of not held?.It is not neccessary to use all the tables.
SELECT surface FROM table_name_3 WHERE opponent = "richard fromberg"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface tye during the match with the opponent of richard fromberg?It is not neccessary to use all the tables.
SELECT MIN No. in season FROM table WHERE U.S. viewers (millions) = 14.57
CREATE TABLE INST, Here is a database schema( table schema);
When is the first season there were 14.57 million U.S viewers?.It is not neccessary to use all the tables.
SELECT home_away FROM table_name_70 WHERE date = "april 27, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Which Home/Away was on April 27 2008?It is not neccessary to use all the tables.
SELECT COUNT(first_elected) FROM table_1342233_5 WHERE district = "Arkansas 4"
CREATE TABLE INST, Here is a database schema( table schema);
How many were first elected in the Arkansas 4 district?It is not neccessary to use all the tables.
SELECT score FROM table_name_15 WHERE game > 57 AND record = "4–55"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score of the game larger than 57 with a Record of 4–55?It is not neccessary to use all the tables.
SELECT high_assists FROM table_name_61 WHERE date = "january 2"
CREATE TABLE INST, Here is a database schema( table schema);
What were the high assist on january 2?It is not neccessary to use all the tables.
SELECT COUNT(branding) FROM table_14623167_1 WHERE physical = 31
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of branding for 31 physicalIt is not neccessary to use all the tables.
SELECT constituency_number FROM table_name_99 WHERE name = "timarni"
CREATE TABLE INST, Here is a database schema( table schema);
Which constituency number has a name of Timarni?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Place = t9 AND Player = jiyai shin
CREATE TABLE INST, Here is a database schema( table schema);
Which country placed t9 and had the player jiyai shin?.It is not neccessary to use all the tables.
SELECT MAX Earnings ( $ ) FROM table WHERE Money list rank = 143
CREATE TABLE INST, Here is a database schema( table schema);
Name the most earnings for money list rank being 143.It is not neccessary to use all the tables.
SELECT MAX Total passengers FROM table WHERE Cargo traffic > 96,519,698
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the highest Total passengers that has the Cargo traffic larger than 96,519,698?.It is not neccessary to use all the tables.
SELECT COUNT Weight (kg) FROM table WHERE Race = chelmsford stakes
CREATE TABLE INST, Here is a database schema( table schema);
What was the combined weight in kilograms of the horses in the race at Chelmsford stakes?.It is not neccessary to use all the tables.
SELECT COUNT Week FROM table WHERE Attendance = 61,985
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of week number(s) had an attendance of 61,985?.It is not neccessary to use all the tables.
SELECT season FROM table_2233872_1 WHERE gf = 244
CREATE TABLE INST, Here is a database schema( table schema);
What was the season where the team reached a GP of 244?It is not neccessary to use all the tables.
SELECT order FROM table_name_26 WHERE family = "vespertilionidae" AND name = "northern long-eared myotis"
CREATE TABLE INST, Here is a database schema( table schema);
which order of bat belongs to the family of vespertilionidae and includes the northern long-eared myotis?It is not neccessary to use all the tables.
SELECT date FROM table_name_3 WHERE week < 12 AND result = "bye"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game with a result of bye before week 12?It is not neccessary to use all the tables.
SELECT * FROM table_train_156 WHERE hemoglobin_a1c_hba1c < 7
CREATE TABLE INST, Here is a database schema( table schema);
hba1c levels less than 7 % ( normal range 4 _ 6 % ) .It is not neccessary to use all the tables.
SELECT total FROM table_name_33 WHERE player = "tony jacklin"
CREATE TABLE INST, Here is a database schema( table schema);
What is Tony Jacklin's total?It is not neccessary to use all the tables.
SELECT engine FROM table_name_45 WHERE chassis = "lola b02/00" AND rank = "1st"
CREATE TABLE INST, Here is a database schema( table schema);
What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st?It is not neccessary to use all the tables.
SELECT league_id FROM salary GROUP BY league_id ORDER BY sum(salary) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( hall of fame);
Which league gets paid the most?. It is not neccessary to use all the tables.
SELECT Model name FROM table WHERE Torque (Nm@rpm) = 230@4500
CREATE TABLE INST, Here is a database schema( table schema);
what's the model name with torque (nm@rpm) being 230@4500.It is not neccessary to use all the tables.
SELECT SUM(round) FROM table_name_37 WHERE pick = 109
CREATE TABLE INST, Here is a database schema( table schema);
What is the total round with pick of 109?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Player = max redfield
CREATE TABLE INST, Here is a database schema( table schema);
What position did Max Redfield play?.It is not neccessary to use all the tables.
SELECT pick FROM table_name_11 WHERE position = "catcher" AND player = "josh donaldson"
CREATE TABLE INST, Here is a database schema( table schema);
What is catcher Josh Donaldson's pick number?It is not neccessary to use all the tables.
SELECT COUNT(proto_austronesian) FROM table_15568886_14 WHERE proto_oceanic = "*natu"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of proto austronesian for *natuIt is not neccessary to use all the tables.
SELECT team_1 FROM table_name_13 WHERE team_2 = "slovan liberec"
CREATE TABLE INST, Here is a database schema( table schema);
Which Team 1 has Team 2 Slovan Liberec?It is not neccessary to use all the tables.
SELECT 1st Prize( $ ) FROM table WHERE Score = 271 (-9)
CREATE TABLE INST, Here is a database schema( table schema);
What was the value of 1st prize when the score was 271 (-9)?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_53 WHERE week = 14
CREATE TABLE INST, Here is a database schema( table schema);
Who were the opponents during week 14?It is not neccessary to use all the tables.
SELECT theme_song_s_ FROM table_18540104_1 WHERE romaji_title = "Magarikado no Kanojo"
CREATE TABLE INST, Here is a database schema( table schema);
What is the theme song for Magarikado no Kanojo?It is not neccessary to use all the tables.
SELECT gamecenter FROM table_name_48 WHERE attendance = "78,551"
CREATE TABLE INST, Here is a database schema( table schema);
Name the gamecenter with attendance of 78551It is not neccessary to use all the tables.
SELECT province FROM table_name_49 WHERE period = "1941-1946"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the province of 1941-1946It is not neccessary to use all the tables.
SELECT country FROM table_name_49 WHERE skip = "andy kapp"
CREATE TABLE INST, Here is a database schema( table schema);
For what country is the skip Andy Kapp?It is not neccessary to use all the tables.
SELECT Money ( $ ) FROM table WHERE Player = lawson little
CREATE TABLE INST, Here is a database schema( table schema);
What is Lawson Little's Money ($) amount?.It is not neccessary to use all the tables.
SELECT COUNT Event FROM table WHERE Qualifying Score = 60.750
CREATE TABLE INST, Here is a database schema( table schema);
how many times was the qualifying score 60.750?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_27700375_10 WHERE game = 69
CREATE TABLE INST, Here is a database schema( table schema);
who had high rebounds at game 69?It is not neccessary to use all the tables.
SELECT location FROM table_name_4 WHERE frequency = "102.5 fm"
CREATE TABLE INST, Here is a database schema( table schema);
Which Location has a Frequency of 102.5 fm?It is not neccessary to use all the tables.