sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT League FROM table WHERE Number < 122 AND Record = least wins
CREATE TABLE INST, Here is a database schema( table schema);
What league has a number less than 122, and least wins as the record?.It is not neccessary to use all the tables.
SELECT score FROM table_name_89 WHERE tie_no = 6
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when the Tie no was 6?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE 3rd Place = Unicaja Málaga
CREATE TABLE INST, Here is a database schema( table schema);
What seasons did unicaja málaga finish in 3rd?.It is not neccessary to use all the tables.
SELECT SUM(rank) FROM table_name_7 WHERE period = "1973–89" AND games < 423
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank for the period of 1973–89 with less than 423 games.It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_34 WHERE total < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank for the total less than 1?It is not neccessary to use all the tables.
SELECT COUNT(longitude) FROM table_name_20 WHERE ansi_code < 1036534 AND water__sqmi_ = 0 AND geo_id > 3809959540
CREATE TABLE INST, Here is a database schema( table schema);
What is the longitude for the Township that has a ANSI code less than 1036534 a water (sqmi) of 0 and a GEO ID greater than 3809959540?It is not neccessary to use all the tables.
SELECT Team captain FROM table WHERE Stadium = regenboogstadion
CREATE TABLE INST, Here is a database schema( table schema);
Who is the team captain of Regenboogstadion?.It is not neccessary to use all the tables.
SELECT Losing Pitcher FROM table WHERE Attendance = 40583
CREATE TABLE INST, Here is a database schema( table schema);
Who was the losing pitcher when 40583 attended?.It is not neccessary to use all the tables.
SELECT county FROM table_20453681_1 WHERE obama_percentage = "37.1%"
CREATE TABLE INST, Here is a database schema( table schema);
Where did Obama get 37.1%?It is not neccessary to use all the tables.
SELECT Polling Firm FROM table WHERE T. Papadopoulos = 31%
CREATE TABLE INST, Here is a database schema( table schema);
Which polling firm put T. Papadopoulos at 31%?.It is not neccessary to use all the tables.
SELECT Teams FROM table WHERE Season = 1995-96
CREATE TABLE INST, Here is a database schema( table schema);
What team(s) played in the 1995-96 season?.It is not neccessary to use all the tables.
SELECT AVG Wins FROM table WHERE Byes < 2
CREATE TABLE INST, Here is a database schema( table schema);
How many wins for the team with fewer than 2 byes?.It is not neccessary to use all the tables.
SELECT team_captain FROM table_23214833_1 WHERE capacity = 17800
CREATE TABLE INST, Here is a database schema( table schema);
Who's captain of the team whose stadium has a capacity of 17800 people?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Pick # = 94
CREATE TABLE INST, Here is a database schema( table schema);
What position did the #94 pick play?.It is not neccessary to use all the tables.
SELECT Foochow FROM table WHERE English Name = Pingnan County
CREATE TABLE INST, Here is a database schema( table schema);
Name the foochow for pingnan county.It is not neccessary to use all the tables.
SELECT date FROM table_name_86 WHERE road_team = "boston" AND result = "126-105"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE DATE WITH BOSTON ROAD TEAM AND 126-105 RESULT?It is not neccessary to use all the tables.
SELECT account_id, date_account_opened, account_name, other_account_details FROM Accounts
CREATE TABLE INST, Here is a database schema( table schema);
Show the id the date of account opened the account name and other account detail for all accounts.It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Title = "They Shoot Gilmores, Don't They?"
CREATE TABLE INST, Here is a database schema( table schema);
What was the original air date of "they shoot gilmores, don't they?".It is not neccessary to use all the tables.
SELECT original_airdate FROM table_26139378_1 WHERE viewers__in_millions_ = "8.23"
CREATE TABLE INST, Here is a database schema( table schema);
What is the original airdate of the episode that had 8.23 million viewers?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Type of game = euro '64 qualifying
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the Euro '64 qualifying game?.It is not neccessary to use all the tables.
SELECT major, COUNT(*) FROM Student GROUP BY major
CREATE TABLE INST, Here is a database schema( table schema);
Show all majors and corresponding number of students.It is not neccessary to use all the tables.
SELECT Tie no FROM table WHERE Home team = middlesbrough
CREATE TABLE INST, Here is a database schema( table schema);
What is the tie number for Middlesbrough?.It is not neccessary to use all the tables.
SELECT Manager FROM table WHERE Losses < 287 AND Wins < 80 AND Years = 1904 AND WPct = 0.296
CREATE TABLE INST, Here is a database schema( table schema);
Which manager had less than 287 losses, less than 80 wins, a win percentage of 0.296, and was employed in 1904?.It is not neccessary to use all the tables.
SELECT record FROM table_name_2 WHERE attendance = "19,887"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when attendance was 19887?It is not neccessary to use all the tables.
SELECT Trinidad FROM table WHERE Common name = Yellow-bellied puffing snake
CREATE TABLE INST, Here is a database schema( table schema);
Name the trinidad for yellow-bellied puffing snake.It is not neccessary to use all the tables.
SELECT points FROM table_24489942_10 WHERE name = "Thomas Morgenstern"
CREATE TABLE INST, Here is a database schema( table schema);
Name the points for thomas morgensternIt is not neccessary to use all the tables.
SELECT Sulphur Dioxide, 15 minute mean (μg/m 3 ) FROM table WHERE Ozone, Running 8 hourly mean (μg/m 3 ) = 121-140
CREATE TABLE INST, Here is a database schema( table schema);
What's the sulphur dioxide count when the ozone is at 121-140?.It is not neccessary to use all the tables.
SELECT Group FROM table WHERE Population = see hoy
CREATE TABLE INST, Here is a database schema( table schema);
What group has a Population of see hoy?.It is not neccessary to use all the tables.
SELECT Speed FROM table WHERE Team = bmw AND Rank = 7
CREATE TABLE INST, Here is a database schema( table schema);
What was #7 BMW's speed?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_26 WHERE champion = "steve gotsche"
CREATE TABLE INST, Here is a database schema( table schema);
Where did Steve Gotsche win?It is not neccessary to use all the tables.
SELECT score FROM table_name_51 WHERE player = "bob tway"
CREATE TABLE INST, Here is a database schema( table schema);
What's bob tway's score?It is not neccessary to use all the tables.
SELECT COUNT(field_goals) FROM table_24906653_5 WHERE points = 171
CREATE TABLE INST, Here is a database schema( table schema);
List the number of long range shors where the score is 171.It is not neccessary to use all the tables.
SELECT surface FROM table_name_94 WHERE date = "2 june 2003"
CREATE TABLE INST, Here is a database schema( table schema);
What Surface was used on 2 June 2003?It is not neccessary to use all the tables.
SELECT COUNT Incumbent FROM table WHERE First elected = 1797 AND Candidates = Abram Trigg (DR)
CREATE TABLE INST, Here is a database schema( table schema);
How many incumbents were first elected in 1797 with the candidates abram trigg (dr)?.It is not neccessary to use all the tables.
SELECT location FROM table_24136365_2 WHERE opponent = "Tiger-Cats"
CREATE TABLE INST, Here is a database schema( table schema);
When tiger-cats is the opponent what is the location?It is not neccessary to use all the tables.
SELECT District FROM table WHERE Name = rajnagar
CREATE TABLE INST, Here is a database schema( table schema);
What is district has a name of Rajnagar?.It is not neccessary to use all the tables.
SELECT MAX Draws FROM table WHERE Ballarat FL = sebastapol AND Against < 1802
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest number of Draws scored by Sebastapol when the value for Against was less than 1802?.It is not neccessary to use all the tables.
SELECT * FROM Posts WHERE CreationDate < '2011-01-02' AND CreationDate > '2011-01-01'
CREATE TABLE INST, Here is a database schema( table schema);
posts related with Java in 2011.It is not neccessary to use all the tables.
SELECT t1.color_code, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = "chervil"
CREATE TABLE INST, Here is a database schema( table schema);
What is the color code and description of the product named "chervil"?It is not neccessary to use all the tables.
SELECT meter_500, ID FROM swimmer ORDER BY meter_500 DESC
CREATE TABLE INST, Here is a database schema( table schema);
Draw a bar chart about the distribution of meter_500 and ID , list by the meter_500 in descending.It is not neccessary to use all the tables.
SELECT Report FROM table WHERE Race Name = Long Beach Grand Prix
CREATE TABLE INST, Here is a database schema( table schema);
what is the name of the report that lists the race name as long beach grand prix?.It is not neccessary to use all the tables.
SELECT title FROM table_26952212_1 WHERE no_in_total = "30"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title for episode number 30?It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_19 WHERE actor = "idris elba"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average year that Idris Elba was nominated for or won an award?It is not neccessary to use all the tables.
SELECT date FROM table_name_74 WHERE venue = "junction oval"
CREATE TABLE INST, Here is a database schema( table schema);
What day did the VFL play at Junction Oval?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.dod_year <= "2173.0" AND lab.itemid = "51082"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose year of death is less than or equal to 2173 and item id is 51082?It is not neccessary to use all the tables.
SELECT city FROM table_28719193_19 WHERE stadium = "Gerald J. Ford stadium"
CREATE TABLE INST, Here is a database schema( table schema);
What was the city whose stadium is Gerald J. Ford Stadium?It is not neccessary to use all the tables.
SELECT Musical Guest (Song performed) FROM table WHERE Guest Host = Elle Macpherson
CREATE TABLE INST, Here is a database schema( table schema);
Name the musical guest where guest host is elle macpherson.It is not neccessary to use all the tables.
SELECT MAX Goals scored FROM table WHERE Wins < 13 AND Goals conceded > 86 AND Loses > 32
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum goals score with less than 13 wins, greater than 86 goals were conceded, and more than 32 games lost?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_30 WHERE round = 3
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Opponent that has the Round of 3?It is not neccessary to use all the tables.
SELECT MAX Championships FROM table WHERE League = evergreen premier league
CREATE TABLE INST, Here is a database schema( table schema);
How many championships does Evergreen Premier League have?.It is not neccessary to use all the tables.
SELECT champion__seed_ FROM table_name_78 WHERE score = "65–56"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Champion of the Game with a Score of 65–56?It is not neccessary to use all the tables.
SELECT Representative FROM table WHERE Appointed by = george w. bush AND Presentation of credentials = 9 november 2007
CREATE TABLE INST, Here is a database schema( table schema);
Name the representative appointed by george w. bush with presentation of credentials 9 november 2007.It is not neccessary to use all the tables.
SELECT MIN(latitude) FROM table_name_97 WHERE land___sqmi__ < 32.696 AND water__sqmi_ < 0
CREATE TABLE INST, Here is a database schema( table schema);
what is the lowest latitude for the land sqmi less than 32.696 and a water sqmi less than 0It is not neccessary to use all the tables.
SELECT Download FROM table WHERE Catch-up period = varies
CREATE TABLE INST, Here is a database schema( table schema);
What is the download of the varies catch-up period?.It is not neccessary to use all the tables.
SELECT Bruxelles , Belgium FROM table WHERE 26 August 2005 = 24 August 2003
CREATE TABLE INST, Here is a database schema( table schema);
Name the belgium for 26 august 2005 being 24 august 2003.It is not neccessary to use all the tables.
SELECT score FROM table_name_35 WHERE team = "@ houston"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score with a Team with @ houston?It is not neccessary to use all the tables.
SELECT date FROM table_name_78 WHERE record = "9–5–2"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game when the record was 9–5–2?It is not neccessary to use all the tables.
SELECT Production code FROM table WHERE Original title = "Down to Earth"
CREATE TABLE INST, Here is a database schema( table schema);
What was the production code for "down to earth"?.It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Rider = michael russell
CREATE TABLE INST, Here is a database schema( table schema);
How many ranks have michael russell as the rider?.It is not neccessary to use all the tables.
SELECT rider FROM table_name_70 WHERE laps = "22" AND time_retired = "+1:44.775"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the rider with 22 laps and a +1:44.775 time/retired?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.short_title = "Sec neuroendo tumor-bone" AND lab."CATEGORY" = "Blood Gas"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients diagnosed with short title sec neuroendo tumor-bone have blood gas lab test category?It is not neccessary to use all the tables.
SELECT school_club_team FROM table_15621965_14 WHERE player = "Jawann Oldham"
CREATE TABLE INST, Here is a database schema( table schema);
Name the school/club team for jawann oldhamIt is not neccessary to use all the tables.
SELECT COUNT Scores FROM table WHERE Davids team = David Baddiel and Maureen Lipman
CREATE TABLE INST, Here is a database schema( table schema);
Name the scores for david baddiel and maureen lipman.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Opponent = cronulla sharks
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue of the match with the cronulla sharks as the opponent?.It is not neccessary to use all the tables.
SELECT Poles FROM table WHERE Season = 2006 AND Wins < 2
CREATE TABLE INST, Here is a database schema( table schema);
How many poles did he have in 2006 with under 2 wins?.It is not neccessary to use all the tables.
SELECT no_in_series FROM table_25276528_2 WHERE written_by = "Kim Weiskopf and Jeff Franklin"
CREATE TABLE INST, Here is a database schema( table schema);
Kim Weiskopf and Jeff Franklin wrote all the no. in series.It is not neccessary to use all the tables.
SELECT status FROM table_1341568_6 WHERE party = "Democratic" AND elected = "1989"
CREATE TABLE INST, Here is a database schema( table schema);
What is the elected status of the Democratic party in 1989?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_24 WHERE player = "jim les"
CREATE TABLE INST, Here is a database schema( table schema);
What's the nationality of jim les?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Date = March 17
CREATE TABLE INST, Here is a database schema( table schema);
At what location was the March 17 race held?.It is not neccessary to use all the tables.
SELECT Pick FROM table WHERE Year = 1948
CREATE TABLE INST, Here is a database schema( table schema);
What was 1948's pick?.It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Catalog = magik muzik 806-5
CREATE TABLE INST, Here is a database schema( table schema);
Which Region has a Catalog of magik muzik 806-5?.It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Balance sheet total = €125,359,000
CREATE TABLE INST, Here is a database schema( table schema);
What year did the company have a balance sheet total of €125,359,000?.It is not neccessary to use all the tables.
SELECT COUNT(long) FROM table_name_30 WHERE avg_g > 0.2 AND loss < 2 AND gain < 8
CREATE TABLE INST, Here is a database schema( table schema);
What's the total long for an avg/g over 0.2 fewer than 2 loss and a gain less than 8?It is not neccessary to use all the tables.
SELECT MIN(fa_cup_goals) FROM table_27086613_5 WHERE fa_cup_apps = 2 AND position = "FW"
CREATE TABLE INST, Here is a database schema( table schema);
Name the least fa cup goals with fa cup apps being 2 and fwIt is not neccessary to use all the tables.
SELECT MAX(to_par) FROM table_name_31 WHERE year_s__won = "1988" AND total < 148
CREATE TABLE INST, Here is a database schema( table schema);
Name the To par that has a Year(s) won of 1988 and a Total smaller than 148?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Event = november reign
CREATE TABLE INST, Here is a database schema( table schema);
What is the location when the event was November reign?.It is not neccessary to use all the tables.
SELECT Directedby FROM table WHERE Production code = 4WAB05
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode with a production code of 4WAB05?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = january 10
CREATE TABLE INST, Here is a database schema( table schema);
What's the record for january 10?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = april 23
CREATE TABLE INST, Here is a database schema( table schema);
Who did the Indians play on April 23?.It is not neccessary to use all the tables.
SELECT * FROM table_train_30 WHERE hyperkalemia = 1 OR serum_potassium > 5.5
CREATE TABLE INST, Here is a database schema( table schema);
known hyperkalemia ( serum potassium > 5.5 ) ;It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Replacement = lieve wierinck
CREATE TABLE INST, Here is a database schema( table schema);
Who was replaced by Lieve Wierinck?.It is not neccessary to use all the tables.
SELECT AVG(Gold) FROM club_rank
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of gold medals for clubs?It is not neccessary to use all the tables.
SELECT city, _region FROM table_name_35 WHERE arena = "dalhús"
CREATE TABLE INST, Here is a database schema( table schema);
What is the city and region of the team in the dalhús arena?It is not neccessary to use all the tables.
SELECT MIN("Start") FROM table_27295 WHERE "Owner" = 'Cumulus'
CREATE TABLE INST, Here is a database schema( table schema);
In what year was cumulus founded?It is not neccessary to use all the tables.
SELECT record FROM table_name_22 WHERE game = 58
CREATE TABLE INST, Here is a database schema( table schema);
What's the record for Game 58?It is not neccessary to use all the tables.
SELECT Color commentator FROM table WHERE Year = 2010
CREATE TABLE INST, Here is a database schema( table schema);
What color commentator(s) were in 2010?.It is not neccessary to use all the tables.
SELECT no_6 FROM table_name_56 WHERE no_10 = "joshua" AND no_8 = "andrew"
CREATE TABLE INST, Here is a database schema( table schema);
What is the No. 6 of the person with a No. 10 of Joshua and a No. 8 of Andrew?It is not neccessary to use all the tables.
SELECT Took office FROM table WHERE Minister = giorgia meloni
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of taking office for Giorgia Meloni?.It is not neccessary to use all the tables.
SELECT AVG(ties) FROM table_name_21 WHERE wins < 5 AND goals_against > 37 AND games_played < 8
CREATE TABLE INST, Here is a database schema( table schema);
For teams with fewer than 5 wins goals against over 37 and fewer than 8 games played what is the average number of ties?It is not neccessary to use all the tables.
SELECT loss FROM table_name_96 WHERE record = "22-35"
CREATE TABLE INST, Here is a database schema( table schema);
What was the loss of the Mariners game when they had a record of 22-35?It is not neccessary to use all the tables.
SELECT nationality FROM table_11803648_17 WHERE player = "Andre Petersson"
CREATE TABLE INST, Here is a database schema( table schema);
WHERE IS ANDRE PETERSSON FROM?It is not neccessary to use all the tables.
SELECT club FROM table_12792876_2 WHERE points_against = "714"
CREATE TABLE INST, Here is a database schema( table schema);
Which club gave up 714 points?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_73 WHERE years = "1979"
CREATE TABLE INST, Here is a database schema( table schema);
What is Nationality when Years is 1979?It is not neccessary to use all the tables.
SELECT Density (inhabitants/km 2 ) FROM table WHERE Area (km 2 ) = 20.4
CREATE TABLE INST, Here is a database schema( table schema);
What is the density of the common with an area of 20.4 km^2?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Result = 0–2 AND Opponent = aberdeen
CREATE TABLE INST, Here is a database schema( table schema);
When has a Result of 0–2 and a Opponent of aberdeen?.It is not neccessary to use all the tables.
SELECT CrimeID FROM GreaterManchesterCrime WHERE Type = "Violence and sexual offences" ORDER BY CrimeTS DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( greater manchester crime);
When was the last instance of a violent or sexual offense in Manchester?. It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Partner = robert haybittel
CREATE TABLE INST, Here is a database schema( table schema);
What is the surface when the partner was Robert Haybittel?.It is not neccessary to use all the tables.
SELECT sat_29_aug FROM table_23465864_4 WHERE tues_25_aug = "23' 18.82 97.102mph"
CREATE TABLE INST, Here is a database schema( table schema);
What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August?It is not neccessary to use all the tables.
SELECT "Party" FROM table_55579 WHERE "Ipsos 6/3/09" = '27%'
CREATE TABLE INST, Here is a database schema( table schema);
Who had an Ipsos of 27%?It is not neccessary to use all the tables.
SELECT SUM("Winners") FROM table_50336 WHERE "Runners-Up" > '0'
CREATE TABLE INST, Here is a database schema( table schema);
When the Runners-Up is larger than 0, what's the sum of winners?It is not neccessary to use all the tables.