sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT turbine_manufacturer FROM table_24837750_1 WHERE date_in_service = "2005"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the turbine manufacturer of the wind farm that started service on 2005?It is not neccessary to use all the tables.
SELECT SUM Crowd FROM table WHERE Away team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended Melbourne's away game?.It is not neccessary to use all the tables.
SELECT SUM(fa_cup) FROM table_name_13 WHERE championship < 5 AND league_cup = 0 AND total > 3
CREATE TABLE INST, Here is a database schema( table schema);
How many FA cups for the player with under 5 champs 0 league cups and over 3 total?It is not neccessary to use all the tables.
SELECT lowest_elevation FROM table_1416612_1 WHERE highest_point = "Charles Mound"
CREATE TABLE INST, Here is a database schema( table schema);
what's the lowest elevation with highest point being charles moundIt is not neccessary to use all the tables.
SELECT AVG(wins) FROM table_name_86 WHERE draws < 4 AND goals_for < 15
CREATE TABLE INST, Here is a database schema( table schema);
What is the average win total associated with under 4 draws and under 15 goals?It is not neccessary to use all the tables.
SELECT platform FROM table_25474825_1 WHERE software = "GeWorkbench"
CREATE TABLE INST, Here is a database schema( table schema);
What is the platform of Geworkbench?It is not neccessary to use all the tables.
SELECT Serial FROM table WHERE Total footage (mm:ss) = 00:21
CREATE TABLE INST, Here is a database schema( table schema);
When 00:21 is the total footage (mm:ss) what is the serial?.It is not neccessary to use all the tables.
SELECT result FROM table_1859855_2 WHERE candidate = "Stacy Schneider"
CREATE TABLE INST, Here is a database schema( table schema);
When stacy schneider is the candidate what are the results?It is not neccessary to use all the tables.
SELECT COUNT Year (Ceremony) FROM table WHERE Original title = স্বপ্নডানায় (Swopnodanay)
CREATE TABLE INST, Here is a database schema( table schema);
How many years was the original title was স্বপ্নডানায় (swopnodanay)?.It is not neccessary to use all the tables.
SELECT AVG(laps) FROM table_name_96 WHERE driver = "ricardo sperafico"
CREATE TABLE INST, Here is a database schema( table schema);
Driver Ricardo Sperafico has what as his average laps?It is not neccessary to use all the tables.
SELECT AVG Episodes FROM table WHERE Region 1 release = september 11, 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the average episode that has September 11, 2007 as a region 1?.It is not neccessary to use all the tables.
SELECT record FROM table_name_81 WHERE date = "june 26"
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has a Date of june 26?It is not neccessary to use all the tables.
SELECT Partner FROM table WHERE Date = 8 february 2009
CREATE TABLE INST, Here is a database schema( table schema);
Which Partner has a Date of 8 february 2009?.It is not neccessary to use all the tables.
SELECT place FROM table_name_3 WHERE to_par = "e" AND player = "mark wiebe"
CREATE TABLE INST, Here is a database schema( table schema);
What place has E as the to par with Mark Wiebe as the player?It is not neccessary to use all the tables.
SELECT sail FROM table_name_96 WHERE syndicate = "america 3 foundation" AND yacht = "america 3"
CREATE TABLE INST, Here is a database schema( table schema);
Which sail is in the America 3 Foundation syndicate on the America 3 yacht?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE U.S. viewers (million) = 9.89
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the episode that had 9.89 million U.S. viewers?.It is not neccessary to use all the tables.
SELECT result FROM table_21790203_1 WHERE language_s_ = "Japanese"
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for japaneseIt is not neccessary to use all the tables.
SELECT MAX Round FROM table WHERE School/Club Team = louisville AND Pick > 75
CREATE TABLE INST, Here is a database schema( table schema);
What's the highest round that louisville drafted into when their pick was over 75?.It is not neccessary to use all the tables.
SELECT date FROM table_name_17 WHERE tie_no = "15"
CREATE TABLE INST, Here is a database schema( table schema);
When has a Tie no of 15?It is not neccessary to use all the tables.
SELECT retitled_as_same FROM table_name_44 WHERE returning = "april 3" AND previous_network = "lifetime"
CREATE TABLE INST, Here is a database schema( table schema);
Which show returns april 3 with a Previous Network of lifetime?It is not neccessary to use all the tables.
SELECT player FROM table_name_93 WHERE score = 67 - 73 - 70 = 210
CREATE TABLE INST, Here is a database schema( table schema);
Who scored 67-73-70=210?It is not neccessary to use all the tables.
SELECT sprints_classification FROM table_26257223_13 WHERE general_classification = "Chris Horner"
CREATE TABLE INST, Here is a database schema( table schema);
Who led sprints classification when Chris Horner led general classification?It is not neccessary to use all the tables.
SELECT country FROM table_name_27 WHERE rank < 3 AND time = "7:28.66"
CREATE TABLE INST, Here is a database schema( table schema);
What country has a time of 7:28.66 and a rank less than 3?It is not neccessary to use all the tables.
SELECT COUNT Crowd FROM table WHERE Away team score = 20.11 (131)
CREATE TABLE INST, Here is a database schema( table schema);
Which number of Crowd has an Away team score of 20.11 (131)?.It is not neccessary to use all the tables.
SELECT incumbent FROM table_1341690_43 WHERE district = "Texas 12"
CREATE TABLE INST, Here is a database schema( table schema);
Name the incumbent for district texas 12It is not neccessary to use all the tables.
SELECT location FROM table_name_43 WHERE round = 1 AND opponent = "ricky shivers"
CREATE TABLE INST, Here is a database schema( table schema);
What location shows round was 1, and against Ricky Shivers?It is not neccessary to use all the tables.
SELECT country FROM table_name_58 WHERE score = 68 - 70 = 138
CREATE TABLE INST, Here is a database schema( table schema);
WHAT COUNTRY HAS A SCORE OF 68-70=138?It is not neccessary to use all the tables.
SELECT first_elected FROM table_name_15 WHERE incumbent = "none (new seat)"
CREATE TABLE INST, Here is a database schema( table schema);
Which First elected has a Incumbent of none (new seat)?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = 11 august 1992
CREATE TABLE INST, Here is a database schema( table schema);
What is Result, when Date is 11 August 1992?.It is not neccessary to use all the tables.
SELECT MIN(silver) FROM table_name_4 WHERE total > 2 AND bronze = 3 AND gold > 0 AND rank = "1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the least silver when the total is more than 2 bronze is 3 gold is more than 0 and rank is 1?It is not neccessary to use all the tables.
SELECT COUNT Mens Singles FROM table WHERE Womens Doubles = China
CREATE TABLE INST, Here is a database schema( table schema);
How many times was the womens doubles in china?.It is not neccessary to use all the tables.
SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4
CREATE TABLE INST, Here is a database schema( table schema);
what are the procedures that are the top four most commonly received?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Quarterfinal = did not advance AND Athlete = alireza rouzbahani
CREATE TABLE INST, Here is a database schema( table schema);
Alireza Rouzbahani did not advance to the quarterfinal in what event?.It is not neccessary to use all the tables.
SELECT Distance FROM table WHERE Jockey = Kent Desormeaux AND Date = 6/7/08
CREATE TABLE INST, Here is a database schema( table schema);
What is the distance for jockey Kent Desormeaux on 6/7/08?.It is not neccessary to use all the tables.
SELECT COUNT(voice_actor__english_1998___pioneer_) FROM table_1410384_1 WHERE voice_actor__japanese_ = "Shinobu Satouchi"
CREATE TABLE INST, Here is a database schema( table schema);
how many voice actor (englbeingh 1998 / pioneer) with voice actor (japanese) being shinobu satouchiIt is not neccessary to use all the tables.
SELECT date FROM table_name_56 WHERE city = "salford"
CREATE TABLE INST, Here is a database schema( table schema);
What day did they play in salford?It is not neccessary to use all the tables.
SELECT MIN Game FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What number was the first game?.It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Nationality = nor AND Overall WC points (Rank) = 374 (13) AND Rank < 4
CREATE TABLE INST, Here is a database schema( table schema);
How many Points have a Nationality of nor, and an Overall WC points (Rank) of 374 (13), and a Rank smaller than 4?.It is not neccessary to use all the tables.
SELECT Method FROM table WHERE Event = pride 33
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the method for pride 33.It is not neccessary to use all the tables.
SELECT Manufacturer FROM table WHERE Fleet numbers = wlwr 2, 4, 11
CREATE TABLE INST, Here is a database schema( table schema);
Who manufactured fleet numbers of wlwr 2, 4, 11?.It is not neccessary to use all the tables.
SELECT SUM Total FROM table WHERE Rank = total AND Silver < 10
CREATE TABLE INST, Here is a database schema( table schema);
what is the total when the rank is total and the silver is less than 10?.It is not neccessary to use all the tables.
SELECT Democratic ticket FROM table WHERE Office = u.s. senator
CREATE TABLE INST, Here is a database schema( table schema);
The person who is on the Democratic ticket for the position of Office of U.S. Senator was who?.It is not neccessary to use all the tables.
SELECT "Film/Show" FROM table_68099 WHERE "Year" = '2010'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Film/Show, when the Year is 2010?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Result = w 13–6
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Result of w 13–6?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_53 WHERE record = "56-59"
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent led to a 56-59 record?It is not neccessary to use all the tables.
SELECT wins FROM table_name_19 WHERE starts > 1 AND top_5 = 3
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Wins that has the Starts larger than 1 and the Top 5 of 3?It is not neccessary to use all the tables.
SELECT venue FROM table_name_50 WHERE away_team = "st kilda"
CREATE TABLE INST, Here is a database schema( table schema);
Where did St Kilda play as the away team?It is not neccessary to use all the tables.
SELECT AVG(wins) FROM table_name_77 WHERE rank = 3
CREATE TABLE INST, Here is a database schema( table schema);
Which Wins have a Rank of 3?It is not neccessary to use all the tables.
SELECT Format FROM table WHERE Frequency = fm 94.5
CREATE TABLE INST, Here is a database schema( table schema);
what is the format when the frequency is fm 94.5?.It is not neccessary to use all the tables.
SELECT period FROM table_24565004_21 WHERE name = "Nabatingue Toko"
CREATE TABLE INST, Here is a database schema( table schema);
During what years did nabatingue toko play.It is not neccessary to use all the tables.
SELECT MAX(operating_income_) AS $m_ FROM table_name_23 WHERE _percentage_change_on_year = "2" AND value__$m_ < 1 OFFSET 036
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest operating income that change by 2% and is less than $1036m?It is not neccessary to use all the tables.
SELECT MIN Tied FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the least tied.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Reporters = Lesley Visser and Robin Roberts
CREATE TABLE INST, Here is a database schema( table schema);
What is every year when the reporters were Lesley Visser and Robin Roberts?.It is not neccessary to use all the tables.
SELECT record FROM table_name_57 WHERE date = "april 1"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record on April 1?It is not neccessary to use all the tables.
SELECT title FROM table_2701851_2 WHERE no_in_series = "10a"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of episode # 10a?It is not neccessary to use all the tables.
SELECT score FROM table_name_88 WHERE visiting_team = "edmonton drillers" AND date = "january 6, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for Edmonton Drillers on January 6 2008?It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Episode # = 23
CREATE TABLE INST, Here is a database schema( table schema);
Who directed episode number 23 in the season?.It is not neccessary to use all the tables.
SELECT T1.id, COUNT(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id
CREATE TABLE INST, Here is a database schema( table schema);
Show me a scatter chart for how many games has each stadium held?It is not neccessary to use all the tables.
SELECT report FROM table_2175685_1 WHERE average_speed__mph_ = "87.599"
CREATE TABLE INST, Here is a database schema( table schema);
What was the report when the average speed (mph) was 87.599?It is not neccessary to use all the tables.
SELECT Number-one single(s) FROM table WHERE Weeks at #1 = 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the number one singles for week 1 being 5.It is not neccessary to use all the tables.
SELECT COUNT Arrival FROM table WHERE Operator = LNWR AND Calling at = Castor, Overton, Peterborough East
CREATE TABLE INST, Here is a database schema( table schema);
How many trains call at Castor, Overton, Peterborough East and are operated by LNWR?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = 16 august 2006
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game played on 16 August 2006?.It is not neccessary to use all the tables.
SELECT MAX(appearances) FROM table_name_21 WHERE flamengo_career = "1989–1993 1996–1998 2004–2005"
CREATE TABLE INST, Here is a database schema( table schema);
How many appearances did the flamengo player who was with flamengo during the years 1989–1993 1996–1998 2004–2005 have?It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Date = september 14, 2003
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest week that has September 14, 2003 as the date?.It is not neccessary to use all the tables.
SELECT elevator FROM table_name_25 WHERE elevated = "1378, september 18" AND order = "cardinal-priest" AND elector = "poncello orsini"
CREATE TABLE INST, Here is a database schema( table schema);
What's the Elevator that has Elevated: 1378, September 18, an Order of Cardinal-Priest, and an Elector of Poncello Orsini?It is not neccessary to use all the tables.
SELECT streak FROM table_name_35 WHERE game = 3
CREATE TABLE INST, Here is a database schema( table schema);
Which Streak has a Game of 3?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Race Name = i dessau autobahnspinne
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the I Dessau Autobahnspinne race?.It is not neccessary to use all the tables.
SELECT AVG(winner_rank) FROM matches
CREATE TABLE INST, Here is a database schema( table schema);
Find the average rank of winners in all matches.It is not neccessary to use all the tables.
SELECT MIN(average) FROM table_name_61 WHERE lowest > 288 AND team = "east stirlingshire"
CREATE TABLE INST, Here is a database schema( table schema);
Lowest larger than 288 and a Team of east stirlingshire has what lowest average?It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE District = Texas 12
CREATE TABLE INST, Here is a database schema( table schema);
Name the incumbent for district texas 12.It is not neccessary to use all the tables.
SELECT target FROM table_1661124_1 WHERE approval_date = 2006
CREATE TABLE INST, Here is a database schema( table schema);
What is the target with an approval date of 2006?It is not neccessary to use all the tables.
SELECT Channel FROM table WHERE Analogue terrestrial channel = n/a AND Internet = itv.com AND Position > 6 AND Digital terrestrial channel = 6 27 (+1)
CREATE TABLE INST, Here is a database schema( table schema);
What is the channel when the analogue terrestrial channel shows n/a, and the internet is itv.com, with a position larger than 6, and digital terrestrial channel is 6 27 (+1)?.It is not neccessary to use all the tables.
SELECT current_womens_lacrosse_conference FROM table_27378582_1 WHERE enrollment = 6000
CREATE TABLE INST, Here is a database schema( table schema);
Name the current womens lacrosse conference for 6000 enrollmentIt is not neccessary to use all the tables.
SELECT package_option FROM table_15887683_8 WHERE n° = 543
CREATE TABLE INST, Here is a database schema( table schema);
Name the package/option for number being 543It is not neccessary to use all the tables.
SELECT MAX(f_laps) FROM table_name_53 WHERE wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest f/laps with less than 0 wins?It is not neccessary to use all the tables.
SELECT Hometown FROM table WHERE Name = hasan shah
CREATE TABLE INST, Here is a database schema( table schema);
What is Hasan Shah's hometown?.It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_12 WHERE name = "svg burgkirchen" AND lost < 6
CREATE TABLE INST, Here is a database schema( table schema);
How many average points did svg burgkirchen have with a loss smaller than 6?It is not neccessary to use all the tables.
SELECT SALARY, MANAGER_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)
CREATE TABLE INST, Here is a database schema( table schema);
For those employees who did not have any job in the past, visualize the relationship between salary and manager_id .It is not neccessary to use all the tables.
SELECT Career SR FROM table WHERE 1985 = grand slams
CREATE TABLE INST, Here is a database schema( table schema);
What is the career SR when 1985 is Grand Slams?.It is not neccessary to use all the tables.
SELECT Steals FROM table WHERE Blocks = 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the steals for 5 blocks.It is not neccessary to use all the tables.
SELECT AVG(e_score) FROM table_name_69 WHERE t_score < 4
CREATE TABLE INST, Here is a database schema( table schema);
What was the average E score when the T score was less than 4?It is not neccessary to use all the tables.
SELECT Population (2005 est) FROM table WHERE 3-letter abbreviation = CYO
CREATE TABLE INST, Here is a database schema( table schema);
What was the 2005 established population in cyo?.It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Away team = north melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What was North Melbourne's score as an away team?.It is not neccessary to use all the tables.
SELECT Segment A FROM table WHERE Netflix = s05e22
CREATE TABLE INST, Here is a database schema( table schema);
Which segment a's Netflix is S05E22?.It is not neccessary to use all the tables.
SELECT COUNT(goal_difference) FROM table_name_51 WHERE club = "cf extremadura" AND played < 38
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of goal different when the club is cf extremadura and the played is less than 38?It is not neccessary to use all the tables.
SELECT MAX(grid) FROM table_name_11 WHERE time_retired = "+0.3"
CREATE TABLE INST, Here is a database schema( table schema);
Which grid is the highest and has a time/retired of +0.3?It is not neccessary to use all the tables.
SELECT MAX Steals FROM table WHERE Minutes = 324
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of steals for a player with 324 minutes?.It is not neccessary to use all the tables.
SELECT Air Date FROM table WHERE Episode Number < 11 AND Event 1 = atlasphere
CREATE TABLE INST, Here is a database schema( table schema);
What is the air date the had atlasphere for event 1 before episode 11?.It is not neccessary to use all the tables.
SELECT Bats FROM table WHERE Position = p AND D.O.B. = 18 april 1984
CREATE TABLE INST, Here is a database schema( table schema);
Which batter played P and was born 18 April 1984?.It is not neccessary to use all the tables.
SELECT other_names FROM table_name_36 WHERE death = "may 23, 1821"
CREATE TABLE INST, Here is a database schema( table schema);
what is other names when death is may 23 1821?It is not neccessary to use all the tables.
SELECT Latitude FROM table WHERE Name = Yuzut-Arkh Fossae
CREATE TABLE INST, Here is a database schema( table schema);
At what latitude can the name origin of yuzut-arkh fossae be found?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Written by = William M. Finkelstein
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the episode that William M. Finkelstein wrote?.It is not neccessary to use all the tables.
SELECT rank, fname, lname FROM faculty
CREATE TABLE INST, Here is a database schema( table schema);
What are the rank, first name, and last name of the faculty members?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 WHERE demographic.age < "67" AND prescriptions.drug = "DiphenhydrAMINE HCl"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose age is less than 67 and drug name is diphenhydramine hcl?It is not neccessary to use all the tables.
SELECT constructor FROM table_name_97 WHERE grand_prix = "canadian grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
Who constructed the car that won the Canadian Grand Prix?It is not neccessary to use all the tables.
SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "53707"
CREATE TABLE INST, Here is a database schema( table schema);
tell me the type of admission patient with patient id 53707 had.It is not neccessary to use all the tables.
SELECT directed_by FROM table_24910733_1 WHERE us_viewers__millions_ = "11.21"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the director when there is 11.21 million viewers?It is not neccessary to use all the tables.
SELECT SUM(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)
CREATE TABLE INST, Here is a database schema( table schema);
Find the total amount claimed in the most recently created document.It is not neccessary to use all the tables.
SELECT network FROM table_2899987_2 WHERE region = "Guerrero"
CREATE TABLE INST, Here is a database schema( table schema);
Which network serves the Guerrero regionIt is not neccessary to use all the tables.
SELECT president FROM table_name_57 WHERE c_span_2009 = "21"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the president when c-span 2009 is 21?It is not neccessary to use all the tables.