sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Goals¹ FROM table WHERE Name = Xavier Gravelaine | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of goals if the name is Xavier Gravelaine?.It is not neccessary to use all the tables. |
SELECT COUNT(weeks_on_chart__uk_) FROM table_name_30 WHERE entered_chart__uk_ = "14 september 2002" | CREATE TABLE INST, Here is a database schema( table schema); | How many weeks did the single that entered the charts 14 september 2002 stay on the charts ?It is not neccessary to use all the tables. |
SELECT "parish" FROM table_203_36 WHERE NOT "closed" IS NULL | CREATE TABLE INST, Here is a database schema( table schema); | which parish is the only one to have closed ?It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Home team = collingwood | CREATE TABLE INST, Here is a database schema( table schema); | When collingwood played as the home team who was the away team?.It is not neccessary to use all the tables. |
SELECT June 10-11 FROM table WHERE March 27-29 = 149 | CREATE TABLE INST, Here is a database schema( table schema); | How many solar eclipse during June 10-11 and march 27-29 is 149?.It is not neccessary to use all the tables. |
SELECT T1.fname, T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE NOT T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge') | CREATE TABLE INST, Here is a database schema( table schema); | Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.It is not neccessary to use all the tables. |
SELECT country FROM table_name_91 WHERE to_par = "+8" | CREATE TABLE INST, Here is a database schema( table schema); | For the player finishing at +8 what is his nationality?It is not neccessary to use all the tables. |
SELECT Lead Envoy FROM table WHERE Ryūkyūan King = shō eki | CREATE TABLE INST, Here is a database schema( table schema); | Who was the lead envoy of the mission with the Ryūkyūan King shō eki?.It is not neccessary to use all the tables. |
SELECT Year active FROM table WHERE Role = rachel | CREATE TABLE INST, Here is a database schema( table schema); | What year was the role of Rachel active in TV?.It is not neccessary to use all the tables. |
SELECT game FROM table_13762472_7 WHERE record = "40-20" | CREATE TABLE INST, Here is a database schema( table schema); | How many games had the team played after they were 40-20?It is not neccessary to use all the tables. |
SELECT AVG A. Krajka FROM table WHERE R. Magjistari < 6 AND D. Tukiqi = 6 AND Rank < 5 | CREATE TABLE INST, Here is a database schema( table schema); | For R. Magjistari scores under 6, D. Tukiqi scores of 6, and ranks under 5, what is the average A. Krajka score?.It is not neccessary to use all the tables. |
SELECT COUNT(barony) FROM table_30120556_1 WHERE townland = "Ballyvadona" | CREATE TABLE INST, Here is a database schema( table schema); | How many barony's appear when Ballyvadona is the townland.It is not neccessary to use all the tables. |
SELECT MAX(round) FROM table_name_46 WHERE team = "baltimore bullets" AND pick > 6 | CREATE TABLE INST, Here is a database schema( table schema); | What is the top round for the baltimore bullets with a Pick larger than 6?It is not neccessary to use all the tables. |
SELECT rank FROM table_name_89 WHERE year = "1955" | CREATE TABLE INST, Here is a database schema( table schema); | What was the rank in 1955?It is not neccessary to use all the tables. |
SELECT time FROM table_name_62 WHERE location = "moscow, russia" | CREATE TABLE INST, Here is a database schema( table schema); | What is the time for Moscow Russia?It is not neccessary to use all the tables. |
SELECT result FROM table_name_54 WHERE venue = "praterstadion, vienna" AND competition = "euro 1980 qualifier" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the score of praterstadion vienna and competition of euro 1980 qualifierIt is not neccessary to use all the tables. |
SELECT Directed by FROM table WHERE Original air date = November 22, 1989 | CREATE TABLE INST, Here is a database schema( table schema); | who directed the episode with the original air date of November 22, 1989? .It is not neccessary to use all the tables. |
SELECT Film FROM table WHERE Nominating Festival = prix uip vilo do conde | CREATE TABLE INST, Here is a database schema( table schema); | The Prix UIP Vilo Do Conde festival nominated which film?.It is not neccessary to use all the tables. |
SELECT "institution" FROM table_203_610 ORDER BY "founded" DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | which college was the last to be founded .It is not neccessary to use all the tables. |
SELECT event_2_truck_pull FROM table_24302700_6 WHERE event_4_fingals_fingers = "1 (5 in 33.84s)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the score in the 2 truck pull of the player who got 1 (5 in 33.84s) in the 4 fingals fingers?It is not neccessary to use all the tables. |
SELECT player FROM table_name_99 WHERE pick > 15 AND hometown_school = "dayton, oh" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Player from Dayton Oh with a Pick of 15 or larger?It is not neccessary to use all the tables. |
SELECT team_1 FROM table_name_99 WHERE team_2 = "sloga jugomagnat" | CREATE TABLE INST, Here is a database schema( table schema); | What team 1 has sloga jugomagnat as team 2?It is not neccessary to use all the tables. |
SELECT segment_d FROM table_15187735_13 WHERE segment_a = "Bowling Balls" | CREATE TABLE INST, Here is a database schema( table schema); | Name the segment d for bowling ballsIt is not neccessary to use all the tables. |
SELECT AVG(year) FROM table_name_37 WHERE finish = "22" AND team = "swan" | CREATE TABLE INST, Here is a database schema( table schema); | Which Year has a Finish of 22 and a Team of swan?It is not neccessary to use all the tables. |
SELECT "language" FROM table_203_88 WHERE "language" <> 'polish' ORDER BY "percentage (%)" DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | what is the highest percentage of speakers other than polish ?It is not neccessary to use all the tables. |
SELECT away_team AS score FROM table_name_58 WHERE home_team = "richmond" | CREATE TABLE INST, Here is a database schema( table schema); | Which Away team score has a Home team of richmond?It is not neccessary to use all the tables. |
SELECT Tom-Tom Pads FROM table WHERE Drum Module = TD-5 | CREATE TABLE INST, Here is a database schema( table schema); | in the drum module td-5 what are the tom-tom pads.It is not neccessary to use all the tables. |
SELECT score_in_final FROM table_name_32 WHERE date = "february 14, 1999" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score on February 14 1999?It is not neccessary to use all the tables. |
SELECT first_class_team FROM table_11950720_4 WHERE date_of_birth = "20 November 1969" | CREATE TABLE INST, Here is a database schema( table schema); | Where is the first class team of date of birth 20 november 1969?It is not neccessary to use all the tables. |
SELECT nationality FROM table_name_39 WHERE date = "8 may 1942" | CREATE TABLE INST, Here is a database schema( table schema); | Which Nationality has a Date of 8 may 1942?It is not neccessary to use all the tables. |
SELECT college FROM table_10361230_1 WHERE player_name = "Bill Cappleman" | CREATE TABLE INST, Here is a database schema( table schema); | What college did Bill Cappleman go to?It is not neccessary to use all the tables. |
SELECT score FROM table_name_77 WHERE record = "18-20" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the game when the record was 18-20?It is not neccessary to use all the tables. |
SELECT Home Team FROM table WHERE Game = game 1 | CREATE TABLE INST, Here is a database schema( table schema); | Which Home Team has a Game of game 1?.It is not neccessary to use all the tables. |
SELECT MAX(run_ratio) FROM table_name_36 WHERE runs_allowed < 58 AND wins = 5 AND team = "japan" | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest run ratio Japan, which has less than 58 runs and 5 wins, have?It is not neccessary to use all the tables. |
SELECT we_two FROM table_1015914_24 WHERE case_suffix = "loc." | CREATE TABLE INST, Here is a database schema( table schema); | What is we two when the case/suffix is loc.?It is not neccessary to use all the tables. |
SELECT SUM(draws) FROM table_name_92 WHERE wins = 11 AND losses > 7 | CREATE TABLE INST, Here is a database schema( table schema); | How many draws are there when there are 11 wins and more than 7 losses?It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE Directed by = Nelson McCormick | CREATE TABLE INST, Here is a database schema( table schema); | Which seasons were directed by Nelson McCormick?.It is not neccessary to use all the tables. |
SELECT rowers FROM table_name_64 WHERE time = "6:29.56" | CREATE TABLE INST, Here is a database schema( table schema); | What rowers have a 6:29.56 time?It is not neccessary to use all the tables. |
SELECT MAX(year) FROM table_name_59 WHERE team = "seve ballesteros & manuel piñero" | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest Year when the team was seve ballesteros & manuel piñero?It is not neccessary to use all the tables. |
SELECT Sport FROM table WHERE City = huntsville AND Venue = von braun center AND League = southern indoor football league | CREATE TABLE INST, Here is a database schema( table schema); | Which sport was held in Huntsville at the Von Braun Center as part of the Southern Indoor Football League?.It is not neccessary to use all the tables. |
SELECT SUM(election) FROM table_name_1 WHERE province = "vicenza" | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of elections in vicenza?It is not neccessary to use all the tables. |
SELECT date_of_vacancy FROM table_name_54 WHERE date_of_appointment = "1 january 2009" | CREATE TABLE INST, Here is a database schema( table schema); | what is the date of vacancy when the date of appointment is 1 january 2009?It is not neccessary to use all the tables. |
SELECT MIN(points) FROM table_name_33 WHERE season = "1994" | CREATE TABLE INST, Here is a database schema( table schema); | What were the lowest amount of points for season 1994?It is not neccessary to use all the tables. |
SELECT MIN No. in series FROM table WHERE Viewers (millions) = 5.28 | CREATE TABLE INST, Here is a database schema( table schema); | when the number of spectator are 5.28 millions, which is the smallest number of the episode in series? .It is not neccessary to use all the tables. |
SELECT Character(s) FROM table WHERE First Appearance = amazing fantasy #15 | CREATE TABLE INST, Here is a database schema( table schema); | Which character first appeared in Amazing Fantasy #15?.It is not neccessary to use all the tables. |
SELECT service_name FROM services ORDER BY service_name | CREATE TABLE INST, Here is a database schema( table schema); | List all the services in the alphabetical order.It is not neccessary to use all the tables. |
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_... | CREATE TABLE INST, Here is a database schema( table schema); | i want to fly from BOSTON to ATLANTA i would like the cheapest fare pleaseIt is not neccessary to use all the tables. |
SELECT part_2 FROM table_name_69 WHERE part_4 = "*haldanaz" | CREATE TABLE INST, Here is a database schema( table schema); | What was part 2 when part 4 was *haldanaz?It is not neccessary to use all the tables. |
SELECT MAX(pick) FROM table_name_62 WHERE position = "wr" AND overall < 15 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest pick of the wr player with an overall less than 15?It is not neccessary to use all the tables. |
SELECT us_exclusive FROM table_24600706_1 WHERE artist_band = "Miley Cyrus" | CREATE TABLE INST, Here is a database schema( table schema); | Name the us exclusive for miley cyrusIt is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Away team score = 11.7 (73) | CREATE TABLE INST, Here is a database schema( table schema); | When did the away team score 11.7 (73)?.It is not neccessary to use all the tables. |
SELECT max. torque at rpm FROM table WHERE engine code(s) = bmm | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximum torque at rpm for the engine with code BMM?.It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_14 WHERE runner_s__up = "fernando roca" | CREATE TABLE INST, Here is a database schema( table schema); | What tournament that Fernando Roca is the runner-up?It is not neccessary to use all the tables. |
SELECT SUM(floors) FROM table_name_81 WHERE street_address = "800 boylston street" | CREATE TABLE INST, Here is a database schema( table schema); | There is a building at 800 Boylston Street how many floors does it have?It is not neccessary to use all the tables. |
SELECT Traditional Chinese FROM table WHERE Standard order > 9 AND Simplified Chinese = 国殇 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Traditional Chinese of 国殇 which is over 9?.It is not neccessary to use all the tables. |
SELECT Location, SUM(Total_Passengers) FROM station GROUP BY Location | CREATE TABLE INST, Here is a database schema( table schema); | Show the total number of passengers of each location in a bar chart.It is not neccessary to use all the tables. |
SELECT gt_winning_car FROM table_27965906_2 WHERE a_winning_car = "#88 Team Mitsubishi 88 Mitsubishi Starion" | CREATE TABLE INST, Here is a database schema( table schema); | Name the gt winning car for #88 team mitsubishi 88 mitsubishi starionIt is not neccessary to use all the tables. |
SELECT score FROM table_name_33 WHERE game = 40 | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the Score that has the Game of 40?It is not neccessary to use all the tables. |
SELECT AVG("Number") FROM table_66366 WHERE "Song Title" = 'o sudha' | CREATE TABLE INST, Here is a database schema( table schema); | What is the average number for the song 'O Sudha'?It is not neccessary to use all the tables. |
SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID | CREATE TABLE INST, Here is a database schema( table schema); | For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id.It is not neccessary to use all the tables. |
SELECT AVG(demographic.age) FROM demographic WHERE demographic.language = "CAPE" AND demographic.diagnosis = "CORONARY ARTERY DISEASE" | CREATE TABLE INST, Here is a database schema( table schema); | what is the average age of patients whose language is cape and primary disease is coronary artery disease?It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_30 WHERE player = "colin montgomerie" | CREATE TABLE INST, Here is a database schema( table schema); | Name the to par for colin montgomerieIt is not neccessary to use all the tables. |
SELECT T2.dept_name, T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of department where has the largest number of professors with a Ph.D. degree?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Attendance = 62,170 | CREATE TABLE INST, Here is a database schema( table schema); | What is Opponent, when Attendance is 62,170?.It is not neccessary to use all the tables. |
SELECT Notes FROM table WHERE Time = men's speed skating | CREATE TABLE INST, Here is a database schema( table schema); | What is in the notes for men's speed skating?.It is not neccessary to use all the tables. |
SELECT State FROM table WHERE Termination of Mission = November 29, 1973 | CREATE TABLE INST, Here is a database schema( table schema); | What state does the representative whose mission was terminated on November 29, 1973 represent?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_70 WHERE result = "w 17-0" | CREATE TABLE INST, Here is a database schema( table schema); | Which opponent has w 17-0 as the result?It is not neccessary to use all the tables. |
SELECT COUNT("Clubs remaining") FROM table_72340 WHERE "New entries this round" = '8' | CREATE TABLE INST, Here is a database schema( table schema); | When looking at new entries this round and seeing 8; what number in total is there for clubs remaining?It is not neccessary to use all the tables. |
SELECT party FROM table_1341568_34 WHERE incumbent = "Stephen L. Neal" | CREATE TABLE INST, Here is a database schema( table schema); | What party did incumbent Stephen L. Neal belong to?It is not neccessary to use all the tables. |
SELECT shoulder charge FROM table WHERE body tackle = restricted | CREATE TABLE INST, Here is a database schema( table schema); | Which shoulder charge has restricted as the body tackle?.It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Season = 2011/12 | CREATE TABLE INST, Here is a database schema( table schema); | What opponent has 2011/12 as the season?.It is not neccessary to use all the tables. |
SELECT race_name FROM table_27887723_1 WHERE uci_rating = "CN" | CREATE TABLE INST, Here is a database schema( table schema); | what race name had a uci rating of cn?It is not neccessary to use all the tables. |
SELECT COUNT Weight FROM table WHERE Team = philadelphia 76ers | CREATE TABLE INST, Here is a database schema( table schema); | What is the weight of the player from the Philadelphia 76ers?.It is not neccessary to use all the tables. |
SELECT shoots FROM table_name_62 WHERE player = "craig peacock a" | CREATE TABLE INST, Here is a database schema( table schema); | What shows for shoots for craig peacock a?It is not neccessary to use all the tables. |
SELECT city FROM table_28281704_1 WHERE stadium = "Los Angeles stadium" | CREATE TABLE INST, Here is a database schema( table schema); | Name the city for los angeles stadiumIt is not neccessary to use all the tables. |
SELECT COUNT October FROM table WHERE September < 2.48 AND Year > 2002 AND June > 1.42 AND February < 7.44 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number in October with less than 2.48 in September, after 2002, more than 1.42 in June, and smaller than 7.44 in February?.It is not neccessary to use all the tables. |
SELECT Intra-molecular structure FROM table WHERE Comparative = no AND Name = mitarget | CREATE TABLE INST, Here is a database schema( table schema); | Which Intra-molecular structure has a Comparative of no, and a Name of mitarget?.It is not neccessary to use all the tables. |
SELECT Club FROM table WHERE Points = 22 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the club with 22 points?.It is not neccessary to use all the tables. |
SELECT body tackle FROM table WHERE diving tackle = yes AND sliding tackle = classified as a trip | CREATE TABLE INST, Here is a database schema( table schema); | Which body tackle has yes for the diving tackle and the sliding tackle classified as a trip?.It is not neccessary to use all the tables. |
SELECT ZX Spectrum FROM table WHERE Year > 1984 AND Genre = arcade/strategy | CREATE TABLE INST, Here is a database schema( table schema); | Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?.It is not neccessary to use all the tables. |
SELECT COUNT Notes FROM table WHERE Reader = Varma, Idria Indira Varma | CREATE TABLE INST, Here is a database schema( table schema); | how many notes were read by reader varma, idria indira varma?.It is not neccessary to use all the tables. |
SELECT high_rebounds FROM table_23248910_11 WHERE game = 2 | CREATE TABLE INST, Here is a database schema( table schema); | What were the amount of rebounds in game 2?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 lab.charttime = "2120-04-16 13:27:00" | CREATE TABLE INST, Here is a database schema( table schema); | provide the number of patients whose lab test chart time is 2120-04-16 13:27:00.It is not neccessary to use all the tables. |
SELECT height FROM table_name_71 WHERE player = "larry hughes" | CREATE TABLE INST, Here is a database schema( table schema); | What is the height of the player Larry Hughes?It is not neccessary to use all the tables. |
SELECT winner FROM table_name_81 WHERE year > 2011 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the winner after 2011?It is not neccessary to use all the tables. |
SELECT AVG Grid FROM table WHERE Time = +22.505 AND Laps > 23 | CREATE TABLE INST, Here is a database schema( table schema); | What grid has an average time of +22.505 and laps larger than 23?.It is not neccessary to use all the tables. |
SELECT Original air date FROM table WHERE Viewing figure = 7.27 million | CREATE TABLE INST, Here is a database schema( table schema); | What original air dates are associated with a viewing figure of 7.27 million?.It is not neccessary to use all the tables. |
SELECT round FROM table_21350934_2 WHERE attendance = "6,150" | CREATE TABLE INST, Here is a database schema( table schema); | How many rounds have 6150 as attendance?It is not neccessary to use all the tables. |
SELECT COUNT(enrollment) FROM table_name_1 WHERE affiliation = "private/catholic" AND founded > 1842 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total enrollment for a private/catholic affiliation and founded after 1842?It is not neccessary to use all the tables. |
SELECT "rider" FROM table_203_166 WHERE "manufacturer" = 'suzuki' AND "points" = 9 | CREATE TABLE INST, Here is a database schema( table schema); | which rider rode a suzuki and has a total of nine points ?It is not neccessary to use all the tables. |
SELECT AVG Total FROM table WHERE Silver > 4 AND Gold > 16 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average Total, when Silver is greater than 4, and when Gold is greater than 16?.It is not neccessary to use all the tables. |
SELECT MAX Blocks FROM table WHERE Player = Kendall Gill | CREATE TABLE INST, Here is a database schema( table schema); | What is the most number of blocks kendall gill had?.It is not neccessary to use all the tables. |
SELECT directed_by FROM table_27716091_1 WHERE production_code = 227412 | CREATE TABLE INST, Here is a database schema( table schema); | who put on the show where the numbers were 227412It is not neccessary to use all the tables. |
SELECT Original name FROM table WHERE Film title used in nomination = empire of passion | CREATE TABLE INST, Here is a database schema( table schema); | What is the Original name of empire of passion?.It is not neccessary to use all the tables. |
SELECT school FROM table_name_76 WHERE ihsaa_class = "aaa" AND mascot = "saints" | CREATE TABLE INST, Here is a database schema( table schema); | Which School has an IHSAA Class of aaa and a Mascot of saints?It is not neccessary to use all the tables. |
SELECT MAX Population FROM table | CREATE TABLE INST, Here is a database schema( table schema); | What is the largest value of population?.It is not neccessary to use all the tables. |
SELECT party FROM table_name_11 WHERE incumbent = "tobias a. plants" | CREATE TABLE INST, Here is a database schema( table schema); | Which party is tobias a. plants the incumbent?It is not neccessary to use all the tables. |
SELECT name FROM table_name_56 WHERE authors = "zhou clarke zhang" | CREATE TABLE INST, Here is a database schema( table schema); | Who is The Author of zhou clarke zhang?It is not neccessary to use all the tables. |
SELECT First elected FROM table WHERE District = Texas 6 | CREATE TABLE INST, Here is a database schema( table schema); | how many voted in the texas 6 section.It is not neccessary to use all the tables. |
SELECT visitor FROM table_name_34 WHERE home = "chicago" AND score = "3 – 2" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Visitor with a Home with chicago and a Score of 3 – 2?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.