sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT shipyard FROM table_name_72 WHERE laid_down = "april 21, 1962" | CREATE TABLE INST, Here is a database schema( table schema); | Which shipyard has a fleet that was laid down on April 21 1962?It is not neccessary to use all the tables. |
SELECT program FROM table_12591022_2 WHERE focus = "Risk Management and Regulation" | CREATE TABLE INST, Here is a database schema( table schema); | What is the program where the focus is risk management and regulation?It is not neccessary to use all the tables. |
SELECT "2007" FROM table_6270 WHERE "2004" = 'olympic games' | CREATE TABLE INST, Here is a database schema( table schema); | What is in 2007 has 2004 olympic games?It is not neccessary to use all the tables. |
SELECT player FROM table_name_32 WHERE position = "full back" AND apps = 0 | CREATE TABLE INST, Here is a database schema( table schema); | What Full Back Player has 0 Apps?It is not neccessary to use all the tables. |
SELECT Reason for change FROM table WHERE State (class) = Massachusetts (2) | CREATE TABLE INST, Here is a database schema( table schema); | Why did the change happened in Massachusetts (2)?.It is not neccessary to use all the tables. |
SELECT away_team AS score FROM table_name_53 WHERE away_team = "geelong" | CREATE TABLE INST, Here is a database schema( table schema); | How much did the away team Geelong score?It is not neccessary to use all the tables. |
SELECT result FROM table_name_29 WHERE week = 14 | CREATE TABLE INST, Here is a database schema( table schema); | What was the result for week 14?It is not neccessary to use all the tables. |
SELECT MAX(took_office) FROM table_name_22 WHERE left_office = "1998" | CREATE TABLE INST, Here is a database schema( table schema); | What was the greatest Took Office dates that Left Office in 1998?It is not neccessary to use all the tables. |
SELECT MAX Average attendance FROM table WHERE Season = 2009 | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest average attendance in the 2009 season?.It is not neccessary to use all the tables. |
SELECT format FROM table_name_78 WHERE catalogue = "148615" | CREATE TABLE INST, Here is a database schema( table schema); | What format is catalogue 148615 in?It is not neccessary to use all the tables. |
SELECT race_leader FROM table_name_66 WHERE stage = "5" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the race leader for stage 5?It is not neccessary to use all the tables. |
SELECT COUNT(earnings__) AS $__ FROM table_name_28 WHERE country = "united states" AND wins < 24 AND player = "george archer" AND rank > 5 | CREATE TABLE INST, Here is a database schema( table schema); | In total how much did the United States player George Archer earn with Wins lower than 24 and a rank that was higher than 5?It is not neccessary to use all the tables. |
SELECT MIN(col__m_) FROM table_18946749_2 WHERE peak = "Bewani Mountains High Point" | CREATE TABLE INST, Here is a database schema( table schema); | What is the col (m) of the Bewani Mountains High Point peak?It is not neccessary to use all the tables. |
SELECT date FROM table_name_43 WHERE record = "21–10" | CREATE TABLE INST, Here is a database schema( table schema); | Which Date has a Record of 21–10?It is not neccessary to use all the tables. |
SELECT re_entered_service__p_ FROM table_name_22 WHERE entered_service__t_ = "18 june 1956" AND pre_conversion = "t328" | CREATE TABLE INST, Here is a database schema( table schema); | What date did the T328 that entered service on 18 June 1956 re-enter service?It is not neccessary to use all the tables. |
SELECT City of License /Market FROM table WHERE Station = kdka-tv | CREATE TABLE INST, Here is a database schema( table schema); | What is the city containing the KDKA-TV station?.It is not neccessary to use all the tables. |
SELECT COUNT(year) FROM table_name_76 WHERE name = "prof. aditya naraian purohit" | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of years that prof. aditya naraian purohit won?It is not neccessary to use all the tables. |
SELECT MIN(position) FROM table_name_45 WHERE points > 40 AND wins = 16 AND loses < 3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest positioned club with points greater than 40 16 wins and losses less than 3?It is not neccessary to use all the tables. |
SELECT Name FROM teacher WHERE NOT Teacher_id IN (SELECT Teacher_id FROM course_arrange) | CREATE TABLE INST, Here is a database schema( table schema); | List the names of teachers who have not been arranged to teach courses.It is not neccessary to use all the tables. |
SELECT drawn FROM table_20396710_1 WHERE "points_against" = "points_against" | CREATE TABLE INST, Here is a database schema( table schema); | when points against is points again which are the drawn?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Away team = west ham united | CREATE TABLE INST, Here is a database schema( table schema); | What was the score for the game when West Ham United was the away team?.It is not neccessary to use all the tables. |
SELECT country FROM table_21690339_1 WHERE _percentage_cut = "100%" | CREATE TABLE INST, Here is a database schema( table schema); | What country had a 100% cut?It is not neccessary to use all the tables. |
SELECT ihsaa_class FROM table_name_84 WHERE school = "shakamak" | CREATE TABLE INST, Here is a database schema( table schema); | Which IHSAA Class has a School of shakamak?It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Area in m² = 7,914 | CREATE TABLE INST, Here is a database schema( table schema); | What country has area of 7,914 m²?.It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_20 WHERE runner_up = "vijay singh" | CREATE TABLE INST, Here is a database schema( table schema); | In which tournament was vijay singh a runner-up?It is not neccessary to use all the tables. |
SELECT COUNT(division) FROM table_name_89 WHERE regular_season = "2nd, northeast" AND year < 2008 | CREATE TABLE INST, Here is a database schema( table schema); | When the regular season of 2nd Northeast and the year was less than 2008 what was the total number of Division?It is not neccessary to use all the tables. |
SELECT name, LOCATION, seating FROM track ORDER BY year_opened DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name location and seating for the most recently opened track?It is not neccessary to use all the tables. |
SELECT Being (qualities) FROM table WHERE Having (things) = friendships, family, relationships with nature | CREATE TABLE INST, Here is a database schema( table schema); | Name the being qualities for having things of friendships, family, relationships with nature.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Opponent = sydney roosters | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the match with the sydney roosters as the opponent?.It is not neccessary to use all the tables. |
SELECT country FROM table_166346_1 WHERE production___bbl__day_ = "2,494,000 (10th)" | CREATE TABLE INST, Here is a database schema( table schema); | Which country had a production (bbl/day) of 2494000 (10th)?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Nominee = jason pennycooke | CREATE TABLE INST, Here is a database schema( table schema); | Did Jason Pennycooke win the award he was nominated for?.It is not neccessary to use all the tables. |
SELECT AVG(enrollment) FROM table_name_34 WHERE ihsaa_class = "a" AND location = "wolcott" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average enrollment of the IHSAA A class in wolcott?It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE District = tennessee 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is Party, when District is "Tennessee 8"?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Terminus = pine forest | CREATE TABLE INST, Here is a database schema( table schema); | Which route has a terminus of pine Forest?.It is not neccessary to use all the tables. |
SELECT Away team score FROM table WHERE Home team = brisbane lions | CREATE TABLE INST, Here is a database schema( table schema); | What was the away team score when the home team was the Brisbane Lions?.It is not neccessary to use all the tables. |
SELECT event FROM table_name_33 WHERE method = "submission (triangle choke)" AND opponent = "thiago tavares" | CREATE TABLE INST, Here is a database schema( table schema); | Which event has a Method of submission (triangle choke) and an Opponent of thiago tavares?It is not neccessary to use all the tables. |
SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType | CREATE TABLE INST, Here is a database schema( table schema); | Draw a bar chart for how many students are affected by each allergy type?It is not neccessary to use all the tables. |
SELECT MAX(opponents) FROM table_18847736_2 WHERE opponent = "at Minnesota Vikings" | CREATE TABLE INST, Here is a database schema( table schema); | How many opponents are at Minnesota Vikings?It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE College = grambling | CREATE TABLE INST, Here is a database schema( table schema); | What position is drafted from Grambling?.It is not neccessary to use all the tables. |
SELECT match_report FROM table_name_23 WHERE date = "28 february 2009" | CREATE TABLE INST, Here is a database schema( table schema); | What is the match report from the game played on 28 february 2009?It is not neccessary to use all the tables. |
SELECT COUNT(attendance) FROM table_name_72 WHERE round = "f" | CREATE TABLE INST, Here is a database schema( table schema); | How many people attended round f?It is not neccessary to use all the tables. |
SELECT height_in_ft FROM table_name_47 WHERE years_for_rockets = "1999-2004" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the height in ft for 1999-2004It is not neccessary to use all the tables. |
SELECT record FROM table_name_91 WHERE score = "4–4" AND points = 17 | CREATE TABLE INST, Here is a database schema( table schema); | Which Record has a Score of 4–4 and Points of 17?It is not neccessary to use all the tables. |
SELECT episodes FROM table_18173916_6 WHERE tuesday = "224 Assassin's Creed: Brotherhood Circus Training" | CREATE TABLE INST, Here is a database schema( table schema); | What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa' | CREATE TABLE INST, Here is a database schema( table schema); | How many car models are produced in the usa?It is not neccessary to use all the tables. |
SELECT City FROM table WHERE Venue = united spirit arena | CREATE TABLE INST, Here is a database schema( table schema); | In what city is the United Spirit Arena located?.It is not neccessary to use all the tables. |
SELECT candidates FROM table_1341738_6 WHERE incumbent = "Don Edwards" | CREATE TABLE INST, Here is a database schema( table schema); | Who were the candidates in the election that featured incumbent don edwards?It is not neccessary to use all the tables. |
SELECT 2007 FROM table_name_16 WHERE 2011 = "f" AND 2009 = "w" | CREATE TABLE INST, Here is a database schema( table schema); | What was the result in 2007 when the 2011 was F and 2009 was W?It is not neccessary to use all the tables. |
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code | CREATE TABLE INST, Here is a database schema( table schema); | For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the average of code , and group by attribute name, order in asc by the total number.It is not neccessary to use all the tables. |
SELECT "No. in season" FROM table_16373 WHERE "Production code" = '2395118' | CREATE TABLE INST, Here is a database schema( table schema); | What's the number of the episode with production code 2395118?It is not neccessary to use all the tables. |
SELECT unit_price FROM tracks WHERE name = "Fast As a Shark" | CREATE TABLE INST, Here is a database schema( table schema); | How much is the track Fast As a Shark?It is not neccessary to use all the tables. |
SELECT AVG(births__000s_) FROM table_name_14 WHERE total_fertility_rate = "na" AND natural_growth < 2.5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average birth rate that has a total fertility rate of na, and a natural growth smaller than 2.5?It is not neccessary to use all the tables. |
SELECT MAX Season # FROM table WHERE Title = "Harlequin" | CREATE TABLE INST, Here is a database schema( table schema); | What season was the episode titled "Harlequin" in?.It is not neccessary to use all the tables. |
SELECT School FROM table WHERE National Championships < 2 AND Nickname = lions | CREATE TABLE INST, Here is a database schema( table schema); | Which school has National Championships smaller than 2, and a Nickname of lions?.It is not neccessary to use all the tables. |
SELECT notes FROM table_name_31 WHERE rank = 4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Notes of the Country with a Rank of 4?It is not neccessary to use all the tables. |
SELECT SUM(total) FROM table_name_34 WHERE gold > 97 AND silver < 332 | CREATE TABLE INST, Here is a database schema( table schema); | What nation had more than 97 Gold Medals and fewer than 332 Silver Medals?It is not neccessary to use all the tables. |
SELECT viewers__millions_ FROM table_21025437_5 WHERE episode_no = 20 | CREATE TABLE INST, Here is a database schema( table schema); | How many million viewers watched episode number 20?It is not neccessary to use all the tables. |
SELECT MAX(winners_share___) AS $__ FROM table_17335602_1 WHERE tournament = "Wegmans LPGA Championship" | CREATE TABLE INST, Here is a database schema( table schema); | What was the winner's share in the wegmans lpga championship?It is not neccessary to use all the tables. |
SELECT date_of_notes FROM assessment_notes | CREATE TABLE INST, Here is a database schema( table schema); | What are the dates of the assessment notes?It is not neccessary to use all the tables. |
SELECT Assets (billion $) FROM table WHERE Company = Wells Fargo | CREATE TABLE INST, Here is a database schema( table schema); | What are Wells Fargo's assets?.It is not neccessary to use all the tables. |
SELECT high_points FROM table_name_36 WHERE date = "june 20" | CREATE TABLE INST, Here is a database schema( table schema); | What were the high points on june 20?It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Country = belgian congo tanganyika | CREATE TABLE INST, Here is a database schema( table schema); | Which location is in the Belgian Congo Tanganyika?.It is not neccessary to use all the tables. |
SELECT electorate FROM table_name_37 WHERE member = "dingley brittin category:articles with hcards" | CREATE TABLE INST, Here is a database schema( table schema); | What electorate does Member dingley brittin category:articles with hcards represent?It is not neccessary to use all the tables. |
SELECT COUNT Gold FROM table WHERE Rank = 1 AND Total > 16 | CREATE TABLE INST, Here is a database schema( table schema); | How many gold are a rank 1 and larger than 16?.It is not neccessary to use all the tables. |
SELECT MIN(assists) FROM table_name_53 WHERE rank = 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the least number of assists among players ranked 2?It is not neccessary to use all the tables. |
SELECT MAX(population__total_) FROM table_name_96 WHERE year = 1976 AND _barcaldine_ < 1 OFFSET 780 | CREATE TABLE INST, Here is a database schema( table schema); | What is the high Population (total) from 1976 with a (Barcaldine) smaller than 1780?It is not neccessary to use all the tables. |
SELECT date FROM table_name_42 WHERE host_team = "new york giants" | CREATE TABLE INST, Here is a database schema( table schema); | On what date did the New York Giants host a game?It is not neccessary to use all the tables. |
SELECT MAX(pick__number) FROM table_name_14 WHERE overall > 21 AND college = "north carolina" AND round < 3 | CREATE TABLE INST, Here is a database schema( table schema); | Which Pick # is the highest one that has an Overall larger than 21 and a College of north carolina and a Round smaller than 3?It is not neccessary to use all the tables. |
SELECT COUNT No. in series FROM table WHERE Title = "Fly" | CREATE TABLE INST, Here is a database schema( table schema); | What is the series number of the episode "Fly"?.It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM enzyme WHERE NOT id IN (SELECT enzyme_id FROM medicine_enzyme_interaction) | CREATE TABLE INST, Here is a database schema( table schema); | How many enzymes do not have any interactions?It is not neccessary to use all the tables. |
SELECT COUNT Laps FROM table WHERE Start = 1 | CREATE TABLE INST, Here is a database schema( table schema); | How many laps have 1 as the start?.It is not neccessary to use all the tables. |
SELECT "Song" FROM table_68966 WHERE "Draw" < '7' AND "Artist" = 'martin & johannes' | CREATE TABLE INST, Here is a database schema( table schema); | Name the song for draw less than 7 and artists of martin & johannesIt is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Away team = preston north end | CREATE TABLE INST, Here is a database schema( table schema); | Who is the home team when Preston North End is the away team?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Score = 3 – 0 | CREATE TABLE INST, Here is a database schema( table schema); | What venue was the game held at when the Score was 3 – 0?.It is not neccessary to use all the tables. |
SELECT matches_w_l FROM table_name_20 WHERE placing = 3 | CREATE TABLE INST, Here is a database schema( table schema); | Placing of 3 had what match w-l?It is not neccessary to use all the tables. |
SELECT title FROM table_name_83 WHERE version = "1.0.0.3" | CREATE TABLE INST, Here is a database schema( table schema); | What Title has a Version of 1.0.0.3?It is not neccessary to use all the tables. |
SELECT SUM(february) FROM table_name_57 WHERE opponent = "@ colorado rockies" | CREATE TABLE INST, Here is a database schema( table schema); | What day in February had an opponent of @ Colorado Rockies?It is not neccessary to use all the tables. |
SELECT location FROM table_1245148_1 WHERE year_opened = 1995 | CREATE TABLE INST, Here is a database schema( table schema); | Where is the track that opened in 1995?It is not neccessary to use all the tables. |
SELECT SUM(year) FROM table_name_22 WHERE opponent = "caroline garcia" | CREATE TABLE INST, Here is a database schema( table schema); | what year was the opponent caroline garcia?It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_10 WHERE score = 70 | CREATE TABLE INST, Here is a database schema( table schema); | Which To par is scored at 70?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 3745 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-1 year') | CREATE TABLE INST, Here is a database schema( table schema); | how many times do patient 3745 go to the hospital until 1 year ago.It is not neccessary to use all the tables. |
SELECT AVG Crowd FROM table WHERE Away team = geelong | CREATE TABLE INST, Here is a database schema( table schema); | How is the crowd of the team Geelong?.It is not neccessary to use all the tables. |
SELECT SUM(assists) FROM table_name_29 WHERE games = 13 AND rank < 3 | CREATE TABLE INST, Here is a database schema( table schema); | How many Assists for the Player with 13 Games and a Rank less than 3?It is not neccessary to use all the tables. |
SELECT MAX(rank) FROM table_name_44 WHERE nation = "belarus (blr)" AND total < 15 | CREATE TABLE INST, Here is a database schema( table schema); | What rank is Belarus (BLR) which earned 15 medals total?It is not neccessary to use all the tables. |
SELECT Type FROM table WHERE Settlement = Subotište | CREATE TABLE INST, Here is a database schema( table schema); | What is the type when the settlement is subotište?.It is not neccessary to use all the tables. |
SELECT AVG Goals For FROM table WHERE Position < 12 AND Draw > 1 AND Goals Against < 28 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average goals for with a position under 12, draws over 1, and goals against under 28?.It is not neccessary to use all the tables. |
SELECT type FROM table_name_55 WHERE disaster = "arrow air flight 1285" | CREATE TABLE INST, Here is a database schema( table schema); | What is the type of disaster that the Arrow Air Flight 1285 categorized in?It is not neccessary to use all the tables. |
SELECT In-vitro / in-vivo FROM table WHERE Route of administration = iv AND Investigation = somatostatin receptor imaging | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the in-vitro for Route of administration of iv and Investigation of somatostatin receptor imaging.It is not neccessary to use all the tables. |
SELECT 1989 FROM table WHERE 2002 = 4r AND 2005 = 4r | CREATE TABLE INST, Here is a database schema( table schema); | what 1989 has 2002 of 4r and 2005 of 4r?.It is not neccessary to use all the tables. |
SELECT Manner of departure FROM table WHERE Team = Racing Santander | CREATE TABLE INST, Here is a database schema( table schema); | What is the manner of departure for the team racing santander?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Score = 70-72=142 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the Player with a Score of 70-72=142? Question 3.It is not neccessary to use all the tables. |
SELECT Others FROM table WHERE Cons = 21% AND Lead = 24% | CREATE TABLE INST, Here is a database schema( table schema); | Name the others for cons of 21% and lead of 24%.It is not neccessary to use all the tables. |
SELECT Competition FROM table WHERE Date = 16 january 1996 | CREATE TABLE INST, Here is a database schema( table schema); | what is the competition when the date is 16 january 1996?.It is not neccessary to use all the tables. |
SELECT "Independence League ticket" FROM table_40131 WHERE "Prohibition ticket" = 'coleridge a. hart' | CREATE TABLE INST, Here is a database schema( table schema); | When Coleridge A. Hart ran under the Prohibition ticket who ran under the Independence League ticket?It is not neccessary to use all the tables. |
SELECT "To Par" FROM table_22650 WHERE "Year" = '1998' | CREATE TABLE INST, Here is a database schema( table schema); | What score to par won in 1998?It is not neccessary to use all the tables. |
SELECT MSDN integration FROM table WHERE Load testing = no AND Test impact analysis = no | CREATE TABLE INST, Here is a database schema( table schema); | which MSDN integration has a Load testing of no, and a Test impact analysis of no?.It is not neccessary to use all the tables. |
SELECT candidates FROM table_1341586_43 WHERE first_elected = 1964 | CREATE TABLE INST, Here is a database schema( table schema); | Name the candidates in 1964It is not neccessary to use all the tables. |
SELECT MIN(enrollment) FROM table_2076463_2 WHERE location_s_ = "Springfield" | CREATE TABLE INST, Here is a database schema( table schema); | How much would you expect the enrollment to be in Springfield?It is not neccessary to use all the tables. |
SELECT AVG(entrants) FROM table_name_21 WHERE winner = "frank gary" | CREATE TABLE INST, Here is a database schema( table schema); | How many entrants did the events won by Frank Gary average?It is not neccessary to use all the tables. |
SELECT nhl_team FROM table_2897457_1 WHERE nationality = "Sweden" | CREATE TABLE INST, Here is a database schema( table schema); | What team drafted a player from Sweden?It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.