sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT 2011 FROM table_name_56 WHERE 2010 = "8–4"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2011 when the 2010 is 8–4?It is not neccessary to use all the tables.
SELECT nat FROM table_name_50 WHERE moving_from = "bordeaux"
CREATE TABLE INST, Here is a database schema( table schema);
In what nation is Bordeaux?It is not neccessary to use all the tables.
SELECT MIN Total FROM table WHERE Country = united states AND Silver > 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest total medals for the united states who had more than 11 silver medals?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Award = drama desk award AND Nominee = patricia mcgourty
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of nominee, Patricia McGourty, for the drama desk award?.It is not neccessary to use all the tables.
SELECT Runner-up FROM table WHERE Year < 2008 AND Arena = broadmoor arena
CREATE TABLE INST, Here is a database schema( table schema);
Who was the runner-up at the Broadmoor Arena before 2008?.It is not neccessary to use all the tables.
SELECT name FROM table_15700367_2 WHERE overs_bowled = "31.2"
CREATE TABLE INST, Here is a database schema( table schema);
Name the name for when overs bowled is 31.2It is not neccessary to use all the tables.
SELECT "Rank (Week)" FROM table_20260 WHERE "Viewers (millions)" = '6.45'
CREATE TABLE INST, Here is a database schema( table schema);
what rank has viewers at 6.45?It is not neccessary to use all the tables.
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COUNT(HIRE_DATE)
CREATE TABLE INST, Here is a database schema( table schema);
For those employees who do not work in departments with managers that have ids between 100 and 200, find hire_date and the amount of hire_date bin hire_date by time, and visualize them by a bar chart, and list y-axis in asc order.It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Capacity > 10,000 AND City = pizzighettone
CREATE TABLE INST, Here is a database schema( table schema);
What Club in Pizzighettone has a Capacity of 10,000 or greater?.It is not neccessary to use all the tables.
SELECT college FROM table_name_22 WHERE player = "paul seiler"
CREATE TABLE INST, Here is a database schema( table schema);
what college has paul seiler as a player?It is not neccessary to use all the tables.
SELECT MIN(opponents) FROM table_24560733_1 WHERE opponent = "at Michigan State"
CREATE TABLE INST, Here is a database schema( table schema);
What is the minimum number of opponents' points for the game at Michigan State?It is not neccessary to use all the tables.
SELECT Episode FROM table WHERE Jasons team = Duncan James and Johnny Vegas
CREATE TABLE INST, Here is a database schema( table schema);
Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team..It is not neccessary to use all the tables.
SELECT breeders_cup_friday FROM table_24089503_1 WHERE breeders_cup_saturday = "52,987"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Breeder's Cup Friday attendance for the year the Breeder's Cup Saturday had 52987?It is not neccessary to use all the tables.
SELECT iata_code FROM table_18047346_4 WHERE passengers = "15,505,566"
CREATE TABLE INST, Here is a database schema( table schema);
If the passengers are 15505566 what is the iata code?It is not neccessary to use all the tables.
SELECT COUNT(date) FROM table_27734769_8 WHERE high_assists = "Andre Miller (7)"
CREATE TABLE INST, Here is a database schema( table schema);
How many times was the high assists andre miller (7)?It is not neccessary to use all the tables.
SELECT "Runner-up" FROM table_4472 WHERE "Year" = '1887'
CREATE TABLE INST, Here is a database schema( table schema);
Who was the runner-up in 1887 competition for 'Articles with HCards'?It is not neccessary to use all the tables.
SELECT 1994 FROM table WHERE 1995 = 1r
CREATE TABLE INST, Here is a database schema( table schema);
What's the 1994 if 1995 has a 1R?.It is not neccessary to use all the tables.
SELECT MIN Game FROM table WHERE Record = 23–6–4
CREATE TABLE INST, Here is a database schema( table schema);
What was the earliest game with a record of 23–6–4?.It is not neccessary to use all the tables.
SELECT COUNT Heat FROM table WHERE Lane = 5 AND Rank > 110 AND Nationality = honduras
CREATE TABLE INST, Here is a database schema( table schema);
How many heats had 5 lanes and a rank less than 110 for the nationality of Honduras?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_86 WHERE week < 15 AND attendance = "64,900" AND result = "l 38-31"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Opponent at the game with an Attendance of 64900 in Week prior to 15 with a Result of L 38-31?It is not neccessary to use all the tables.
SELECT School Year FROM table WHERE Class AAAA = dickinson
CREATE TABLE INST, Here is a database schema( table schema);
What School Year has a Class AAAA of Dickinson?.It is not neccessary to use all the tables.
SELECT surface FROM table_name_83 WHERE opponent = "bethanie mattek-sands"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface of the match against bethanie mattek-sands?It is not neccessary to use all the tables.
SELECT record FROM table_name_82 WHERE february = 23
CREATE TABLE INST, Here is a database schema( table schema);
What is the record on February 23?It is not neccessary to use all the tables.
SELECT population FROM table_name_65 WHERE former_local_authority = "audenshaw urban district"
CREATE TABLE INST, Here is a database schema( table schema);
What was the population of the area that was formerly under the authority of the Audenshaw Urban District?It is not neccessary to use all the tables.
SELECT E / vap FROM table_2683116_1 WHERE turnout = "85.7%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the e/vap value for a turnout of exactly 85.7%?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Event = junior race AND Position = 8th
CREATE TABLE INST, Here is a database schema( table schema);
What year did she place 8th in the junior race?.It is not neccessary to use all the tables.
SELECT SUM(rank) FROM table_name_96 WHERE country = "china"
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank for China?It is not neccessary to use all the tables.
SELECT MIN Pick # FROM table WHERE NHL team = Montreal Canadiens AND College/junior/club team = Trois-Rivières Draveurs (QMJHL)
CREATE TABLE INST, Here is a database schema( table schema);
what is the pick # when the nhl team is montreal canadiens and the college/junior/club team is trois-rivières draveurs (qmjhl)?.It is not neccessary to use all the tables.
SELECT draw FROM table_name_23 WHERE lost < 6 AND points = 28
CREATE TABLE INST, Here is a database schema( table schema);
What draw has a lost less than 6 with 28 as the points?It is not neccessary to use all the tables.
SELECT COUNT Canton FROM table WHERE Commune = Waldbillig
CREATE TABLE INST, Here is a database schema( table schema);
how many canton with commune being waldbillig.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_19 WHERE venue = "mcg"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the home team that played at MCG?It is not neccessary to use all the tables.
SELECT railway FROM table_name_63 WHERE built = "1909"
CREATE TABLE INST, Here is a database schema( table schema);
Which railway was built in 1909?It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Team = @ milwaukee
CREATE TABLE INST, Here is a database schema( table schema);
What is High Assists, when Team is "@ Milwaukee"?.It is not neccessary to use all the tables.
SELECT MIN(game) FROM table_name_98 WHERE location_attendance = "alexander memorial coliseum" AND date = "october 16"
CREATE TABLE INST, Here is a database schema( table schema);
What is the least game that was played in Alexander Memorial Coliseum on October 16?It is not neccessary to use all the tables.
SELECT 2 AS nd_leg FROM table_name_47 WHERE team__number2 = "žalgiris kaunas"
CREATE TABLE INST, Here is a database schema( table schema);
what is the 2nd leg when team #2 is žalgiris kaunas?It is not neccessary to use all the tables.
SELECT digital_channel FROM table_1404984_1 WHERE network = "JCTV"
CREATE TABLE INST, Here is a database schema( table schema);
What is JCTV's digital channel?It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Album = live love in london
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Year with an Album that is live love in London?.It is not neccessary to use all the tables.
SELECT latitude FROM table_18600760_19 WHERE water__sqmi_ = "0.288"
CREATE TABLE INST, Here is a database schema( table schema);
what is the latitude in the township where wate is 0.288It is not neccessary to use all the tables.
SELECT outcome_description, COUNT(outcome_description) FROM Research_Outcomes AS T1 JOIN Project_Outcomes AS T2 ON T1.outcome_code = T2.outcome_code GROUP BY outcome_description ORDER BY outcome_description
CREATE TABLE INST, Here is a database schema( table schema);
List the description of the outcomes for all projects, and count them by a bar chart, rank bars from low to high order.It is not neccessary to use all the tables.
SELECT position FROM table_name_12 WHERE pick__number < 23 AND player = "garrett sutherland"
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has a Pick # smaller than 23 and a Player of garrett sutherland?It is not neccessary to use all the tables.
SELECT First elected FROM table WHERE Result = Lost renomination Democratic loss
CREATE TABLE INST, Here is a database schema( table schema);
Name the first elected for lost renomination democratic loss.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "Creatine Kinase (CK)"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose gender is f and lab test name is creatine kinase (ck)?It is not neccessary to use all the tables.
SELECT set_1 FROM table_name_92 WHERE score = "3–0" AND set_3 = "15–12"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Set 1 with a Score of 3–0 and has a Set 3 of 15–12?It is not neccessary to use all the tables.
SELECT MIN Dances FROM table WHERE Celebrity = John Barnes
CREATE TABLE INST, Here is a database schema( table schema);
How many dances did John Barnes have? .It is not neccessary to use all the tables.
SELECT Package/Option FROM table WHERE Country = Giappone
CREATE TABLE INST, Here is a database schema( table schema);
Name the package/option for giappone.It is not neccessary to use all the tables.
SELECT "Spanish" FROM table_28812 WHERE "Central" = 'cas [ˈkas]'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Spanish word for cas [ kas]?It is not neccessary to use all the tables.
SELECT FCC info FROM table WHERE Frequency MHz = 104.5 fm
CREATE TABLE INST, Here is a database schema( table schema);
What is the FCC information of 104.5 fm frequency?.It is not neccessary to use all the tables.
SELECT time FROM table_name_24 WHERE heat > 3 AND lane < 5 AND rank = 5
CREATE TABLE INST, Here is a database schema( table schema);
What was the time of the 5th ranked swimmer who swam after heat 3 and was in a lane under 5?It is not neccessary to use all the tables.
SELECT Date (From) FROM table WHERE Location = zaltbommel
CREATE TABLE INST, Here is a database schema( table schema);
On what date did the event at Zaltbommel begin?.It is not neccessary to use all the tables.
SELECT "Region" FROM table_67394 WHERE "Format" = 'cd' AND "Catalog" = 'alca-9203'
CREATE TABLE INST, Here is a database schema( table schema);
Name the region for cd with catalog of alca-9203It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients with death status 1 had primary disease as aortic valve insuffiency\aortic valve replacement /sda?It is not neccessary to use all the tables.
SELECT MIN 4-car sets FROM table WHERE 6-car sets = 44
CREATE TABLE INST, Here is a database schema( table schema);
Name the 4 car sets for 6 car sets being 44.It is not neccessary to use all the tables.
SELECT Grand FinalDate FROM table WHERE Score = 30-24
CREATE TABLE INST, Here is a database schema( table schema);
What is the grand final date for the game with a score or 30-24?.It is not neccessary to use all the tables.
SELECT MIN Laps FROM table WHERE Grid = 17
CREATE TABLE INST, Here is a database schema( table schema);
What are the lowest laps of grid 17?.It is not neccessary to use all the tables.
SELECT "Away team" FROM table_52363 WHERE "Home team" = 'st kilda'
CREATE TABLE INST, Here is a database schema( table schema);
in a game against st kilda, what was the away team's score?It is not neccessary to use all the tables.
SELECT Ground FROM table WHERE Date = 31 jul 2007
CREATE TABLE INST, Here is a database schema( table schema);
On what ground was the game on 31 Jul 2007?.It is not neccessary to use all the tables.
SELECT party FROM table_2668243_19 WHERE incumbent = "Joseph Vance"
CREATE TABLE INST, Here is a database schema( table schema);
What is the party of Joseph Vance?It is not neccessary to use all the tables.
SELECT Basketball FROM table WHERE Track & Field = Ashland AND Cross Country = Ashland
CREATE TABLE INST, Here is a database schema( table schema);
who won basketball when ashland won track & field and cross country.It is not neccessary to use all the tables.
SELECT SUM(distance__km_) FROM table_name_19 WHERE station = "kawage"
CREATE TABLE INST, Here is a database schema( table schema);
What is the distance of Kawage station?It is not neccessary to use all the tables.
SELECT score FROM table_name_88 WHERE country = "united states" AND place = "t5"
CREATE TABLE INST, Here is a database schema( table schema);
What did the United States score in the T5?It is not neccessary to use all the tables.
SELECT MAX("No.") FROM table_72793 WHERE "Years for Grizzlies" = '2000-2001'
CREATE TABLE INST, Here is a database schema( table schema);
what's the highest player number from the list from 2000-2001It is not neccessary to use all the tables.
SELECT "Place" FROM table_80184 WHERE "Score" = '67-70=137' AND "Player" = 'stuart appleby'
CREATE TABLE INST, Here is a database schema( table schema);
Name the place for score of 67-70=137 and stuart applebyIt is not neccessary to use all the tables.
SELECT position FROM table_name_83 WHERE round = "3"
CREATE TABLE INST, Here is a database schema( table schema);
In round 3 what was the position?It is not neccessary to use all the tables.
SELECT pick FROM table_name_68 WHERE nba_years_[a_] = "2" AND previous_team = "utah jazz"
CREATE TABLE INST, Here is a database schema( table schema);
What is the pick for the player with 2 years in the NBA and who plays for the Utah Jazz?It is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Record = loss AND Date = march 16, 1990
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance sum of the game on March 16, 1990 with a loss record?.It is not neccessary to use all the tables.
SELECT takuu FROM table_name_83 WHERE north_marquesan = "/vehine/"
CREATE TABLE INST, Here is a database schema( table schema);
What kind of Takuu has a North Marquesan of /vehine/?It is not neccessary to use all the tables.
SELECT COUNT Silver FROM table WHERE Rank = 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of silver with rank number 6?.It is not neccessary to use all the tables.
SELECT MAX Tropical Lows FROM table WHERE Season = 1990–91 AND Tropical Cyclones > 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest number for tropical Lows for the 1990–91 season with more than 10 tropical cyclones?.It is not neccessary to use all the tables.
SELECT format FROM table_1949994_7 WHERE end_date = "June 25"
CREATE TABLE INST, Here is a database schema( table schema);
What's the format of the season that ended on June 25?It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Title = "Hell Hath No Fury"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the director of the episode titled "Hell hath no fury"?.It is not neccessary to use all the tables.
SELECT Cooper FROM table WHERE Ashmolean < 21 AND Hahland < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the cooper with an Ashmolean less than 21, and hahland smaller than 4?.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_69 WHERE date = "january 10"
CREATE TABLE INST, Here is a database schema( table schema);
Which team was the visitor on January 10?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Week = 1
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game on week 1?.It is not neccessary to use all the tables.
SELECT "Score" FROM table_12706 WHERE "Home team" = 'maine road'
CREATE TABLE INST, Here is a database schema( table schema);
What is home team Maine Road's score?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent = at edmonton oilers
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Score that has the Opponent of at edmonton oilers?.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 MAX(against) FROM table_name_71 WHERE opposing_teams = "wales"
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest Against with an Opposing Teams of wales?It is not neccessary to use all the tables.
SELECT modern_title_of_house FROM table_name_46 WHERE translation = "prison"
CREATE TABLE INST, Here is a database schema( table schema);
Which modern house title translates to prison?It is not neccessary to use all the tables.
'seems like a list question'
CREATE TABLE INST, Here is a database schema( table schema);
post with text like 'seems like a list question'.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_59 WHERE tournament = "eastbourne" AND score = "6–0, 5–7, 3–6"
CREATE TABLE INST, Here is a database schema( table schema);
Tell the opponent of eastbourne with score of 6–0 5–7 3–6It is not neccessary to use all the tables.
SELECT Exhibition* FROM table WHERE Game 2 = andrew farrar
CREATE TABLE INST, Here is a database schema( table schema);
Which Exhibition has a Game 2 of andrew farrar?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Opponent = kathy horvath
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the tournament for kathy horvath opponent.It is not neccessary to use all the tables.
SELECT blagojevich__d_ FROM table_name_70 WHERE source = "zogby/wsj" AND date = "october 16, 2006"
CREATE TABLE INST, Here is a database schema( table schema);
Which Blagojevich (D) has a Source of zogby/wsj and a Date of october 16 2006?It is not neccessary to use all the tables.
SELECT U.S. Viewers (in millions) FROM table WHERE Title = "The Way Through"
CREATE TABLE INST, Here is a database schema( table schema);
How many US viewers watched the episode titled "The Way through"?.It is not neccessary to use all the tables.
SELECT MAX Pick # FROM table WHERE CFL Team = Calgary Stampeders
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum number of picks for the CFL team Calgary Stampeders?.It is not neccessary to use all the tables.
SELECT Stage FROM table WHERE Mountains Classification = no award
CREATE TABLE INST, Here is a database schema( table schema);
Name the stage for no award.It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_86 WHERE date = "april 24"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average attendance on april 24?It is not neccessary to use all the tables.
SELECT Votes FROM table WHERE Place = 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the Votes for the Song in Place 9?.It is not neccessary to use all the tables.
SELECT Damage (millions USD ) FROM table WHERE Storm name = three
CREATE TABLE INST, Here is a database schema( table schema);
What is the damage of storm three?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Loss = weaver (9-9)
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has a Loss of weaver (9-9)?.It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Copies sold = 1,695,900+ AND Oricon position > 1
CREATE TABLE INST, Here is a database schema( table schema);
What year sold 1,695,900+ copies with an Oricon position larger than 1?.It is not neccessary to use all the tables.
SELECT total_tenure_rank FROM table_name_6 WHERE uninterrupted_time = "49 years, 349 days"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total tenure rank of the person with an uninterrupted time of 49 years 349 days?It is not neccessary to use all the tables.
SELECT MIN Season 3 FROM table WHERE Played by = Stefan van Ray
CREATE TABLE INST, Here is a database schema( table schema);
How many season 3 appearances by the character played by Stefan Van Ray?.It is not neccessary to use all the tables.
SELECT driver FROM table_name_11 WHERE grid = 10
CREATE TABLE INST, Here is a database schema( table schema);
Which driver had a grid number of 10?It is not neccessary to use all the tables.
SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average age of the members of the club "Bootup Baltimore"?It is not neccessary to use all the tables.
SELECT MIN(round) FROM table_name_96 WHERE college_team = "kansas" AND pick < 56
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Round when College/Team is "Kansas" and when Pick is less than 56?It is not neccessary to use all the tables.
SELECT Points for FROM table WHERE Points against = 450
CREATE TABLE INST, Here is a database schema( table schema);
Name the points for when points against is of 450.It is not neccessary to use all the tables.
SELECT 2007 FROM table WHERE 2009 = qf AND 2000 = a
CREATE TABLE INST, Here is a database schema( table schema);
Which 2007 had a 2009 taht was qf when its 2000 was a?.It is not neccessary to use all the tables.
SELECT Democratic ticket FROM table WHERE Liberal ticket = erastus corning 2nd
CREATE TABLE INST, Here is a database schema( table schema);
What is the name on the Democratic ticket when the Liberal ticket is erastus corning 2nd?.It is not neccessary to use all the tables.
SELECT engine_s_ FROM table_name_19 WHERE year = 1983
CREATE TABLE INST, Here is a database schema( table schema);
What are the engines for 1983?It is not neccessary to use all the tables.