sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT MIN Loss FROM table WHERE Name = antwon bailey AND Gain > 227 | CREATE TABLE INST, Here is a database schema( table schema); | What was the total yards lost by antwon bailey when he gained 227?.It is not neccessary to use all the tables. |
SELECT school_club_team FROM table_name_16 WHERE player = "jud buechler" | CREATE TABLE INST, Here is a database schema( table schema); | Which School/Club Team has a Player of jud buechler?It is not neccessary to use all the tables. |
SELECT us_senate FROM table_name_80 WHERE year > 2002 AND party = "working families" | CREATE TABLE INST, Here is a database schema( table schema); | what is the U.S. senate when the year is after 2002 and the party is working families?It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Score = l 97–99 (ot) | CREATE TABLE INST, Here is a database schema( table schema); | Which Record has a Score of l 97–99 (ot)?.It is not neccessary to use all the tables. |
SELECT Home team score FROM table WHERE Away team = geelong | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team against Geelong?.It is not neccessary to use all the tables. |
SELECT 1935 FROM table_name_6 WHERE 1953 = "4" | CREATE TABLE INST, Here is a database schema( table schema); | What 1935 has 4 as a 1953?It is not neccessary to use all the tables. |
SELECT MIN Year FROM table WHERE Opponents in the final = Bahrami Leconte AND Score in the final = 7–6 2 , 6–1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the year date when one of the opponents in the final was bahrami leconte and score in the final is 7–6 2 , 6–1?.It is not neccessary to use all the tables. |
SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear >= "2184" | CREATE TABLE INST, Here is a database schema( table schema); | what is the maximum age of married patients whose admission year is in or after 2184?It is not neccessary to use all the tables. |
SELECT COUNT Target FROM table WHERE Approval date = 1997 | CREATE TABLE INST, Here is a database schema( table schema); | How many targets are there with an approval date of 1997?.It is not neccessary to use all the tables. |
SELECT MIN(wins) FROM table_name_58 WHERE south_west_dfl = "cavendish" AND byes < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest value for Wins when South West DFL is "Cavendish" and when Byes is less than 0?It is not neccessary to use all the tables. |
SELECT COUNT(total) FROM table_name_87 WHERE year_s__won = "1986" AND to_par > 6 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total for 1986 with a to par higher than 6?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Home = washington capitols AND Date = november 23, 1946 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Score on November 23, 1946 with Washington Capitols Home team?.It is not neccessary to use all the tables. |
SELECT township FROM table_18600760_18 WHERE longitude = "-100.680772" | CREATE TABLE INST, Here is a database schema( table schema); | What is the township at longitude -100.680772?It is not neccessary to use all the tables. |
SELECT winning_team FROM table_21373283_3 WHERE pole_position = "Max Chilton" AND circuit = "Oulton Park" | CREATE TABLE INST, Here is a database schema( table schema); | What is the winning team at Oulton Park when Max Chilton held the pole position?It is not neccessary to use all the tables. |
SELECT Original air date FROM table WHERE Directed by = John P. Kousakis | CREATE TABLE INST, Here is a database schema( table schema); | What is air date of the episode directed by John P. Kousakis?.It is not neccessary to use all the tables. |
SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name | CREATE TABLE INST, Here is a database schema( table schema); | Find the number of scientists involved for the projects that require more than 300 hours.It is not neccessary to use all the tables. |
SELECT position FROM table_name_28 WHERE character = "frank tripp" | CREATE TABLE INST, Here is a database schema( table schema); | What was the position of Frank Tripp?It is not neccessary to use all the tables. |
SELECT location_attendance FROM table_name_63 WHERE high_points = "dwyane wade (27)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the location attendance from Dwyane Wade (27) high points?It is not neccessary to use all the tables. |
SELECT Longitude FROM table WHERE Land ( sqmi ) = 35.992 | CREATE TABLE INST, Here is a database schema( table schema); | what is the longitude in 35.992 sqmi.It is not neccessary to use all the tables. |
SELECT "Final Score" FROM table_24620 WHERE "Date" = 'July 10' | CREATE TABLE INST, Here is a database schema( table schema); | What was the final score of the game played on July 10?It is not neccessary to use all the tables. |
SELECT SUM(Rating_in_percent), OWNER FROM channel GROUP BY OWNER | CREATE TABLE INST, Here is a database schema( table schema); | Find the total rating ratio for each channel owner.It is not neccessary to use all the tables. |
SELECT MAX Top-5 FROM table WHERE Cuts made > 39 | CREATE TABLE INST, Here is a database schema( table schema); | what is the highest top-5 when cuts made is more than 39?.It is not neccessary to use all the tables. |
SELECT AVG(to_par) FROM table_name_6 WHERE player = "tom weiskopf" | CREATE TABLE INST, Here is a database schema( table schema); | What is the to par for Tom Weiskopf?It is not neccessary to use all the tables. |
SELECT Length FROM table WHERE Route Name = sh 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the length of the highway with the route name sh 2?.It is not neccessary to use all the tables. |
SELECT COUNT(high_points) FROM table_30087032_5 WHERE date = "May 15" | CREATE TABLE INST, Here is a database schema( table schema); | How many different high points results are there for the game on May 15?It is not neccessary to use all the tables. |
SELECT name FROM buildings ORDER BY height DESC | CREATE TABLE INST, Here is a database schema( table schema); | List the names of buildings in descending order of building height.It is not neccessary to use all the tables. |
SELECT hometown FROM table_26267849_2 WHERE age_s_ = "16" | CREATE TABLE INST, Here is a database schema( table schema); | what are all the hometown where the average age is 16It is not neccessary to use all the tables. |
SELECT T2.roomName, COUNT(*), T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room | CREATE TABLE INST, Here is a database schema( table schema); | Return the name and number of reservations made for each of the rooms.It is not neccessary to use all the tables. |
SELECT league FROM table_2553861_1 WHERE year = 2000 | CREATE TABLE INST, Here is a database schema( table schema); | Name the league for 2000It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Home team score = 22.11 (143) | CREATE TABLE INST, Here is a database schema( table schema); | On what date did the home team score 22.11 (143)?.It is not neccessary to use all the tables. |
SELECT country FROM table_name_24 WHERE assets_us$billion = "x" AND inception = "2007" AND abbreviation = "adic" | CREATE TABLE INST, Here is a database schema( table schema); | Which country has assets of x an inception of 2007 and an abbreviation of adic?It is not neccessary to use all the tables. |
SELECT AVG(total) FROM table_name_14 WHERE year_s__won = "1982" | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE TOTAL THAT HAS A WIN IN 1982?It is not neccessary to use all the tables. |
SELECT outcome FROM table_name_83 WHERE tournament = "tokyo" | CREATE TABLE INST, Here is a database schema( table schema); | what is the outcome when the tournament is tokyo?It is not neccessary to use all the tables. |
SELECT MAX Crowd FROM table WHERE Home team score = 13.13 (91) | CREATE TABLE INST, Here is a database schema( table schema); | Of matches that had a home team score of 13.13 (91), which one had the largest crowd?.It is not neccessary to use all the tables. |
SELECT score FROM table_11621915_1 WHERE date = "Oct 1" | CREATE TABLE INST, Here is a database schema( table schema); | what's the score with date oct 1It is not neccessary to use all the tables. |
SELECT Lyricist FROM table WHERE Film name = Gopal Krishna AND Co-singer = Solo | CREATE TABLE INST, Here is a database schema( table schema); | Who was the lyricist for gopal krishna and co singer of solo?.It is not neccessary to use all the tables. |
SELECT Manufacturer FROM table WHERE Time/Retired = accident | CREATE TABLE INST, Here is a database schema( table schema); | Which Manufacturer has a Time/Retired of accident?.It is not neccessary to use all the tables. |
SELECT MIN Area (km²) FROM table WHERE Population (2011) = 3067549 | CREATE TABLE INST, Here is a database schema( table schema); | What is the minimum area id the 2011 population is 3067549?.It is not neccessary to use all the tables. |
SELECT type FROM table_name_77 WHERE vessel = "lublin class" | CREATE TABLE INST, Here is a database schema( table schema); | What is the type for a vessel of lublin class?It is not neccessary to use all the tables. |
SELECT MIN(goals) FROM table_name_33 WHERE apps < 22 | CREATE TABLE INST, Here is a database schema( table schema); | When the Apps were smaller than 22 what's the lowest amount of goals scored in a game?It is not neccessary to use all the tables. |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((date_day.day_number = 21 AND date_day.month_number = 2 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time... | CREATE TABLE INST, Here is a database schema( table schema); | i would like to find flights from MINNEAPOLIS to LONG BEACH after 1600 o'clock on monday june fourteenth pleaseIt is not neccessary to use all the tables. |
SELECT County FROM table WHERE Year Left = 1993 | CREATE TABLE INST, Here is a database schema( table schema); | From what county was the team that left the conference in 1993?.It is not neccessary to use all the tables. |
SELECT COUNT Appearances FROM table WHERE Team = chaux-de-fonds AND Place > 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of appearances for players from Chaux-de-Fonds with places over 8?.It is not neccessary to use all the tables. |
SELECT method FROM table_name_72 WHERE time = "5:00" AND round < 3 AND res = "loss" AND event = "road fc 12" | CREATE TABLE INST, Here is a database schema( table schema); | What is the method of the match in the Road fc 12 at 5:00 with less than 3 rounds and a loss result?It is not neccessary to use all the tables. |
SELECT high_rebounds FROM table_27755784_11 WHERE game = 77 | CREATE TABLE INST, Here is a database schema( table schema); | Name the high rebounds for 77 gameIt is not neccessary to use all the tables. |
SELECT city_code, AVG(Age) FROM Student GROUP BY city_code ORDER BY city_code DESC | CREATE TABLE INST, Here is a database schema( table schema); | What are average ages for students living in each city? Return a bar chart, could you sort names in desc order?It is not neccessary to use all the tables. |
SELECT budget FROM table_name_28 WHERE worldwide = "$363,398,565" | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE BUDGET WHEN THE WORLDWIDE BOX OFFICE IS $363,398,565?It is not neccessary to use all the tables. |
SELECT "State" FROM table_59524 WHERE "Rank" < '10' AND "City" = 'denver' | CREATE TABLE INST, Here is a database schema( table schema); | What is the state of the city of denver, which has a rank less than 10?It is not neccessary to use all the tables. |
SELECT land_area FROM table_214920_1 WHERE density__pop_per_km2_ = "21.1" | CREATE TABLE INST, Here is a database schema( table schema); | What is the land area of the RCM having a density of 21.1?It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Player = paul stankowski | CREATE TABLE INST, Here is a database schema( table schema); | What country is Paul Stankowski from?.It is not neccessary to use all the tables. |
SELECT SUM(played) FROM table_name_32 WHERE high_checkout = 135 | CREATE TABLE INST, Here is a database schema( table schema); | What is the played number when the high checkout is 135?It is not neccessary to use all the tables. |
SELECT COUNT Total TD's FROM table WHERE Strongest storm = gavin AND Total STC's < 6 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of TD's of the Gavin storm with a total STC's smaller than 6?.It is not neccessary to use all the tables. |
SELECT SUM Rank FROM table WHERE Name = omni nashville hotel | CREATE TABLE INST, Here is a database schema( table schema); | What is the rank for Omni nashville hotel?.It is not neccessary to use all the tables. |
SELECT interview FROM table_12094300_1 WHERE state = "New York" | CREATE TABLE INST, Here is a database schema( table schema); | What is the score for the interview for the state of New York?It is not neccessary to use all the tables. |
SELECT host FROM table_name_12 WHERE city = "long beach" | CREATE TABLE INST, Here is a database schema( table schema); | Which university hosted in Long Beach?It is not neccessary to use all the tables. |
SELECT MIN(week) FROM table_name_41 WHERE attendance = 54 OFFSET 714 | CREATE TABLE INST, Here is a database schema( table schema); | what is the lowest week when the attendance is 54714?It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_40 WHERE score = 73 - 69 - 67 - 74 = 283 | CREATE TABLE INST, Here is a database schema( table schema); | What is the to par when the score is 73-69-67-74=283?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.diagnosis = "S/P HANGING" AND prescriptions.drug_type = "MAIN" | CREATE TABLE INST, Here is a database schema( table schema); | count the number of patients whose primary disease is s/p hanging and drug type is main.It is not neccessary to use all the tables. |
SELECT college_junior_club_team__league_ FROM table_name_98 WHERE round = "6" | CREATE TABLE INST, Here is a database schema( table schema); | Which College/Junior/Club Team (League) did the player in round 6 play for?It is not neccessary to use all the tables. |
SELECT Label FROM table WHERE Catalog = rtradcd491 AND Date = september 20, 2008 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Label of the September 20, 2008 release with Catalog number RTRADCD491?.It is not neccessary to use all the tables. |
SELECT Title FROM Cartoon ORDER BY title | CREATE TABLE INST, Here is a database schema( table schema); | List the title of all cartoons in alphabetical order.It is not neccessary to use all the tables. |
SELECT formats FROM files GROUP BY formats ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the most popular file format?It is not neccessary to use all the tables. |
SELECT MAX(season) FROM table_17246160_1 WHERE points = 0 AND position = "31st" | CREATE TABLE INST, Here is a database schema( table schema); | Which season did he have 0 points and 31st position?It is not neccessary to use all the tables. |
SELECT MAX(to_par) FROM table_name_54 WHERE total < 153 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest to par that is less than 153It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Country = united states AND Place = t4 AND Score = 68-73-68=209 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the player from the United States in T4 place with a score of 68-73-68=209?.It is not neccessary to use all the tables. |
SELECT year FROM table_2597876_2 WHERE avg_start = "27.2" | CREATE TABLE INST, Here is a database schema( table schema); | What is every year with average start of 27.2?It is not neccessary to use all the tables. |
SELECT Report FROM table WHERE Winning driver = per-viktor widengren AND Winning constructor = alfa romeo | CREATE TABLE INST, Here is a database schema( table schema); | Name the report for per-viktor widengren and alfa romeo.It is not neccessary to use all the tables. |
SELECT year FROM table_name_52 WHERE distance = "1,870.23 km" | CREATE TABLE INST, Here is a database schema( table schema); | In what year saw a total distance of 1870.23 km?It is not neccessary to use all the tables. |
SELECT "S No" FROM table_20455 WHERE "Match Date" = 'Feb 27, 1996' | CREATE TABLE INST, Here is a database schema( table schema); | Name the numbers for date of feb 27, 1996It is not neccessary to use all the tables. |
SELECT Actors Name FROM table WHERE Nomination = Best Actor in a Supporting Role AND Country = Serbia | CREATE TABLE INST, Here is a database schema( table schema); | Which actor from Serbia was nominated for best actor in a supporting role?.It is not neccessary to use all the tables. |
SELECT Acquisition via FROM table WHERE Number < 22 AND Season = 2002 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Acquisition that has less than 22, in the 2002 season?.It is not neccessary to use all the tables. |
SELECT rank__number FROM table_name_57 WHERE attendance = "93,829" | CREATE TABLE INST, Here is a database schema( table schema); | What was the rank# of the opponent when there was 93,829 in attendance?It is not neccessary to use all the tables. |
SELECT 2010 FROM table WHERE 2008 = a AND 2011 = a AND 2012 = qf | CREATE TABLE INST, Here is a database schema( table schema); | What is the categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012?.It is not neccessary to use all the tables. |
SELECT location FROM table_name_7 WHERE time = "2:33" | CREATE TABLE INST, Here is a database schema( table schema); | Where was the fight located that lasted a time of 2:33?It is not neccessary to use all the tables. |
SELECT Label FROM table WHERE Catalog = uici-1069 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Label of the UICI-1069 Catalog?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "SINGLE" | CREATE TABLE INST, Here is a database schema( table schema); | calculate the total number of unmarried patients.It is not neccessary to use all the tables. |
SELECT COUNT Growth rate FROM table WHERE Density per Kilometer = 1087 | CREATE TABLE INST, Here is a database schema( table schema); | Name the growth rate for density of 1087.It is not neccessary to use all the tables. |
SELECT date FROM table_name_92 WHERE type_of_game = "friendly" AND opponent = "france" AND city = "paris, france" | CREATE TABLE INST, Here is a database schema( table schema); | What date has friendly as the type of game france as an opponent and paris france as the city?It is not neccessary to use all the tables. |
SELECT origin, COUNT(*) FROM flight GROUP BY origin | CREATE TABLE INST, Here is a database schema( table schema); | For each origin, how many flights came from there?It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Position < 2 | CREATE TABLE INST, Here is a database schema( table schema); | Which Name has a Position smaller than 2?.It is not neccessary to use all the tables. |
SELECT MIN To par FROM table WHERE Country = australia AND Score = 76-70-75-72=293 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest to par of a player from australia with a score of 76-70-75-72=293?.It is not neccessary to use all the tables. |
SELECT result FROM table_name_71 WHERE week < 8 AND date = "september 30, 1979" | CREATE TABLE INST, Here is a database schema( table schema); | On September 30 1979 in a week before week 8 what was the result?It is not neccessary to use all the tables. |
SELECT MAX(series__number) FROM table_14346689_1 WHERE directed_by = "Rob Bailey" | CREATE TABLE INST, Here is a database schema( table schema); | What was the series number of the episode directed by Rob Bailey?It is not neccessary to use all the tables. |
SELECT location FROM table_name_46 WHERE unit = "two medicine formation" | CREATE TABLE INST, Here is a database schema( table schema); | Where is two medicine formation?It is not neccessary to use all the tables. |
SELECT COUNT Incumbent FROM table WHERE Result = Lost renomination Republican gain | CREATE TABLE INST, Here is a database schema( table schema); | How many incumbents resulted in a lost renomination republican gain?.It is not neccessary to use all the tables. |
SELECT Surface FROM table WHERE Opponent in the final = takao suzuki | CREATE TABLE INST, Here is a database schema( table schema); | What was the surface type at Takao Suzuki?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Visiting team = new york giants | CREATE TABLE INST, Here is a database schema( table schema); | What date did the New York Giants play as a visiting team?.It is not neccessary to use all the tables. |
SELECT AVG(attendance) FROM table_name_81 WHERE home = "san jose" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average attendance San Jose home games?It is not neccessary to use all the tables. |
SELECT husband FROM table_name_36 WHERE ceased_to_be_dauphine = "22 july 1461 became queen" | CREATE TABLE INST, Here is a database schema( table schema); | who is the husband when ceased to be dauphine is 22 july 1461 became queen?It is not neccessary to use all the tables. |
SELECT * FROM table_test_9 WHERE hepatic_disease = 1 OR hepatic_disease = 1 | CREATE TABLE INST, Here is a database schema( table schema); | hepatic failure or dysfunctionIt is not neccessary to use all the tables. |
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-28507')) AND intakeoutput.celllabel = 'chest... | CREATE TABLE INST, Here is a database schema( table schema); | how much chest tube did patient 013-28507 produce today?It is not neccessary to use all the tables. |
SELECT MAX Bronze FROM table WHERE Nation = israel AND Silver < 3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number of bronze medals that israel acheived when they got less than 3 silver medals?.It is not neccessary to use all the tables. |
SELECT builder FROM table_22481967_1 WHERE date = "1930" | CREATE TABLE INST, Here is a database schema( table schema); | List the builder from 1930.It is not neccessary to use all the tables. |
SELECT Winner FROM table WHERE Prize = £200,000 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the winner of the prize of £200,000 as listed?.It is not neccessary to use all the tables. |
SELECT SUM Overall FROM table WHERE College = florida state AND Round > 2 | CREATE TABLE INST, Here is a database schema( table schema); | Which Overall has a College of florida state, and a Round larger than 2?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Score = L 92–103 (OT) | CREATE TABLE INST, Here is a database schema( table schema); | Name the date for l 92–103 (ot).It is not neccessary to use all the tables. |
SELECT Number of winning tickets FROM table WHERE Prize (EUR) = 180.00 | CREATE TABLE INST, Here is a database schema( table schema); | What are the number of winning tickets that have 180.00 as the prize (eur)?.It is not neccessary to use all the tables. |
SELECT COUNT(district) FROM table_1342315_17 WHERE incumbent = "Riley Joseph Wilson" | CREATE TABLE INST, Here is a database schema( table schema); | How many districts does riley joseph wilson?It is not neccessary to use all the tables. |
SELECT AVG(wins) FROM table_name_51 WHERE losses < 1 | CREATE TABLE INST, Here is a database schema( table schema); | For the teams that had less than 1 loss, what was the average number of Wins?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Runner-up = [[|]] 151/8 (50.0 overs) | CREATE TABLE INST, Here is a database schema( table schema); | If the runner-up is [[|]] 151/8 (50.0 overs), what were the results?.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.