sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Transmitter location FROM table WHERE Station = voice of vietnam | CREATE TABLE INST, Here is a database schema( table schema); | Where is the transmitter located for the station voice of vietnam.It is not neccessary to use all the tables. |
SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the shipping agent of the document with id 2?It is not neccessary to use all the tables. |
SELECT Studio host FROM table WHERE Play-by-play = sean grande AND Flagship Station = wrko AND Year = 2005-06 | CREATE TABLE INST, Here is a database schema( table schema); | Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host?.It is not neccessary to use all the tables. |
SELECT 1947 Nos FROM table WHERE BR Nos = 48730-9 | CREATE TABLE INST, Here is a database schema( table schema); | Which 1947 Nos has a BR Nos of 48730-9?.It is not neccessary to use all the tables. |
SELECT muzzle_energy FROM table_16010376_1 WHERE cartridge = ".375 Winchester" | CREATE TABLE INST, Here is a database schema( table schema); | When using a .375 Winchester what is the muzzle energy?It is not neccessary to use all the tables. |
SELECT "Future Stock" FROM table_21957 WHERE "Map colour" = 'Green' | CREATE TABLE INST, Here is a database schema( table schema); | When green is the map colour what is the future stock?It is not neccessary to use all the tables. |
SELECT written_by FROM table_24910737_1 WHERE us_viewers__millions_ = "7.14" | CREATE TABLE INST, Here is a database schema( table schema); | Who wrote the episodes that had a viewership of 7.14?It is not neccessary to use all the tables. |
SELECT "Constructor" FROM table_11352 WHERE "Time/Retired" = '1:34:12.912' | CREATE TABLE INST, Here is a database schema( table schema); | Who built the car that has a Time/Retired of 1:34:12.912?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Surface = clay AND Date = 3 march 2012 | CREATE TABLE INST, Here is a database schema( table schema); | Who played on clay on 3 march 2012?.It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Method = submission (triangle choke) AND Time = 0:48 | CREATE TABLE INST, Here is a database schema( table schema); | What is Record, when Method is "submission (triangle choke)", and when Time is 0:48?.It is not neccessary to use all the tables. |
SELECT New entries this round FROM table WHERE Round = Third round | CREATE TABLE INST, Here is a database schema( table schema); | Name the new entries this round for third round.It is not neccessary to use all the tables. |
SELECT Studio host FROM table WHERE Channel = fox sports net west AND Play-by-play = chick hearn | CREATE TABLE INST, Here is a database schema( table schema); | Who is the studio host for the game broadcasted by Fox Sports Net west and has Chick Hearn as the play by play commentator ?.It is not neccessary to use all the tables. |
SELECT country FROM table_name_48 WHERE to_par = "–2" AND player = "tsuneyuki nakajima" | CREATE TABLE INST, Here is a database schema( table schema); | What is Country when To Par is "–2" and when Player is "Tsuneyuki Nakajima"?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Date = february 17 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score on February 17?.It is not neccessary to use all the tables. |
SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE NOT T1.station_id IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = "London") | CREATE TABLE INST, Here is a database schema( table schema); | Find the names of the trains that do not pass any station located in London.It is not neccessary to use all the tables. |
SELECT MIN 09-10 OI 2nd FROM table | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest overall number for 09-10 oi 2nd?.It is not neccessary to use all the tables. |
SELECT result FROM table_name_95 WHERE game_site = "jeppesen stadium" | CREATE TABLE INST, Here is a database schema( table schema); | What was the result of the game played at Jeppesen Stadium?It is not neccessary to use all the tables. |
SELECT COUNT(year) FROM table_name_63 WHERE film_name = "rang barse" | CREATE TABLE INST, Here is a database schema( table schema); | Which year was the film Rang Barse introduced?It is not neccessary to use all the tables. |
SELECT Circuit FROM table WHERE Rnd = 5 | CREATE TABLE INST, Here is a database schema( table schema); | what's the circuit with rnd being 5.It is not neccessary to use all the tables. |
SELECT title_rank FROM table_name_93 WHERE actor = "pauline moran" | CREATE TABLE INST, Here is a database schema( table schema); | What is the title rank of actor pauline moran?It is not neccessary to use all the tables. |
SELECT MIN("Series #") FROM table_533 WHERE "Written by" = 'Jack Orman' | CREATE TABLE INST, Here is a database schema( table schema); | What was the first series in this list that Jack Orman wrote?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2133.0" AND procedures.icd9_code = "3142" | CREATE TABLE INST, Here is a database schema( table schema); | give me the number of patients whose year of death is less than or equal to 2133 and procedure icd9 code is 3142?It is not neccessary to use all the tables. |
SELECT date FROM table_name_37 WHERE location = "hermanos rodríguez" | CREATE TABLE INST, Here is a database schema( table schema); | Which date was hermanos rodr guez the location?It is not neccessary to use all the tables. |
SELECT 2008 FROM table WHERE 2012 = 2r AND 2006 = 2r | CREATE TABLE INST, Here is a database schema( table schema); | Name the 2008 with 2012 of 2r and 2006 of 2r.It is not neccessary to use all the tables. |
SELECT 8:00 FROM table WHERE 8:30 = my thursday night movie | CREATE TABLE INST, Here is a database schema( table schema); | what is at 8:00 when at 8:30 it is my thursday night movie?.It is not neccessary to use all the tables. |
SELECT name FROM journalist WHERE nationality = "England" OR nationality = "Wales" | CREATE TABLE INST, Here is a database schema( table schema); | Show the names of journalists from 'England' or 'Wales'.It is not neccessary to use all the tables. |
SELECT MIN(laps) FROM table_name_49 WHERE finish = "7" AND start = "6" | CREATE TABLE INST, Here is a database schema( table schema); | What's the smallest amount of Laps that had a finish of 7 with a start of 6?It is not neccessary to use all the tables. |
SELECT AVG Wins FROM table WHERE Class = 250cc AND Team = bultaco AND Year > 1966 AND Points = 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average wins in 250cc class for Bultaco with 8 points later than 1966?.It is not neccessary to use all the tables. |
SELECT Transfers FROM table WHERE Distance (km) > 36.5 AND Station Name = guangximen | CREATE TABLE INST, Here is a database schema( table schema); | What's the transfer distance (km) larger than 36.5, at the station of guangximen?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Results¹ = 4:0 | CREATE TABLE INST, Here is a database schema( table schema); | On what Date were the Results¹ 4:0?.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Song choice = "beautiful" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Result when the Song choice was "beautiful"?.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_74 WHERE away_team = "melbourne" | CREATE TABLE INST, Here is a database schema( table schema); | When the Away team is melbourne what venue do they play at?It is not neccessary to use all the tables. |
SELECT High points FROM table WHERE Game = 11 | CREATE TABLE INST, Here is a database schema( table schema); | Who had the most points and how many did they have in game 11?.It is not neccessary to use all the tables. |
SELECT Driver FROM table WHERE Starts = 3 | CREATE TABLE INST, Here is a database schema( table schema); | Which driver starts 3?.It is not neccessary to use all the tables. |
SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the youngest employee in the company? List employee's first and last name.It is not neccessary to use all the tables. |
SELECT catalog FROM table_name_10 WHERE format = "stereo compact cassette" | CREATE TABLE INST, Here is a database schema( table schema); | What catalog uses the stereo compact cassette format?It is not neccessary to use all the tables. |
SELECT U.S. viewers (millions) FROM table WHERE Written by = Lazar Saric & Jed Spingarn | CREATE TABLE INST, Here is a database schema( table schema); | How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn?.It is not neccessary to use all the tables. |
SELECT nationality FROM table_name_30 WHERE position = "left wing" | CREATE TABLE INST, Here is a database schema( table schema); | Which Nationality of the person has a Position on left wing?It is not neccessary to use all the tables. |
SELECT date FROM table_name_30 WHERE attendance < 6650 AND score = "0:1" | CREATE TABLE INST, Here is a database schema( table schema); | On what date was the game with fewer than 6650 in attendance that finished 0:1?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Attendance > 73,984 AND Result = w 28–14 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the opponent with attendance greater than 73,984 with a result of w 28–14?.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Round = sf | CREATE TABLE INST, Here is a database schema( table schema); | What is Result, when Round is SF?.It is not neccessary to use all the tables. |
SELECT Fastest Lap FROM table WHERE Winning driver = Johnny Rutherford AND Pole Position = Al Unser | CREATE TABLE INST, Here is a database schema( table schema); | What was Johnny Rutherford's fastest lap while Al Unser was the pole position?.It is not neccessary to use all the tables. |
SELECT county FROM table_name_64 WHERE cerclis_id = "scd037405362" | CREATE TABLE INST, Here is a database schema( table schema); | What county has a CERCLIS ID of scd037405362?It is not neccessary to use all the tables. |
SELECT Joined FROM table WHERE Nickname = Blue Hose | CREATE TABLE INST, Here is a database schema( table schema); | Name the joined for blue hose.It is not neccessary to use all the tables. |
SELECT Sergey Filimonov ( KAZ ) FROM table WHERE Snatch = snatch | CREATE TABLE INST, Here is a database schema( table schema); | What shows for Sergey Filimonov (KAZ) when the Snatch shows snatch?.It is not neccessary to use all the tables. |
SELECT ring_name FROM table_name_49 WHERE stable = "kasugano" AND birthplace = "z mtskheta , georgia" | CREATE TABLE INST, Here is a database schema( table schema); | What is Ring Name when Stable is Kasugano and when Birthplace is Z Mtskheta Georgia?It is not neccessary to use all the tables. |
SELECT Lithium FROM table WHERE Caesium = ki (1.7) | CREATE TABLE INST, Here is a database schema( table schema); | what is the properties of lithium when caesium is ki (1.7)?.It is not neccessary to use all the tables. |
SELECT title FROM table_27332038_1 WHERE production_code = "2ARG09" | CREATE TABLE INST, Here is a database schema( table schema); | what is the title of the episode with production code "2arg09"?It is not neccessary to use all the tables. |
SELECT circuit FROM table_name_16 WHERE tyre = "d" AND pole_position = "jochen rindt" AND fastest_lap = "jackie stewart" | CREATE TABLE INST, Here is a database schema( table schema); | When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre what was the circuit?It is not neccessary to use all the tables. |
SELECT MIN Time FROM table WHERE React > 0.183 AND Athlete = david neville | CREATE TABLE INST, Here is a database schema( table schema); | What is the shortest Time for David Neville when his React time was greater than 0.183?.It is not neccessary to use all the tables. |
SELECT top_10s FROM table_22838521_3 WHERE year = 2007 | CREATE TABLE INST, Here is a database schema( table schema); | If the year is 2007 what is the top ten?It is not neccessary to use all the tables. |
SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id | CREATE TABLE INST, Here is a database schema( table schema); | Which professional did not operate any treatment on dogs? List the professional's id role and email.It is not neccessary to use all the tables. |
SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = "October 23, 1967" | CREATE TABLE INST, Here is a database schema( table schema); | What was the series# with the original airdate of october 23 1967?It is not neccessary to use all the tables. |
SELECT place FROM table_name_38 WHERE mark > 90.73 AND date = "1996-05-25" | CREATE TABLE INST, Here is a database schema( table schema); | What is the place of the record on 1996-05-25 with a mark greater than 90.73?It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM Employees | CREATE TABLE INST, Here is a database schema( table schema); | How many employees do we have?It is not neccessary to use all the tables. |
SELECT competition FROM table_name_39 WHERE man_of_the_match = "rick plant" | CREATE TABLE INST, Here is a database schema( table schema); | Rick Plant was the man of the match in what competition?It is not neccessary to use all the tables. |
SELECT Barrel profile FROM table WHERE Name = Gas Piston Carbine | CREATE TABLE INST, Here is a database schema( table schema); | What is the barrell profile that goes with the gas piston carbine?.It is not neccessary to use all the tables. |
SELECT Writer(s) FROM table WHERE Title = "parting glances" | CREATE TABLE INST, Here is a database schema( table schema); | Who wrote the title "Parting Glances" ?.It is not neccessary to use all the tables. |
SELECT State (class) FROM table WHERE Successor = Joseph Anderson ( DR ) | CREATE TABLE INST, Here is a database schema( table schema); | What are all the states (class) when the successor was Joseph Anderson ( DR )?.It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Attendance = 6 december 1997 AND Home team = torquay united | CREATE TABLE INST, Here is a database schema( table schema); | What is the Away Team when the Home Team is Torquay United and the Attendence is 6 December 1997?.It is not neccessary to use all the tables. |
SELECT 1 AS st_leg FROM table_name_6 WHERE team_1 = "everton" | CREATE TABLE INST, Here is a database schema( table schema); | Team 1 Everton has what as a 1st leg?It is not neccessary to use all the tables. |
SELECT High assists FROM table WHERE Date = march 5 | CREATE TABLE INST, Here is a database schema( table schema); | Who had the highest assists of the game on March 5?.It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Away team = fitzroy | CREATE TABLE INST, Here is a database schema( table schema); | What home team played Fitzroy?.It is not neccessary to use all the tables. |
SELECT previous_season_2007_2008 FROM table_19526911_1 WHERE website = "www.novavolley.narod.ru" | CREATE TABLE INST, Here is a database schema( table schema); | What are the previous season ranks of teams whose website is www.novavolley.narod.ru?It is not neccessary to use all the tables. |
SELECT episode FROM table_name_45 WHERE air_date = "july 23, 2009" AND viewers > 3.31 | CREATE TABLE INST, Here is a database schema( table schema); | What is the episode name that aired on July 23 2009 with more than 3.31 viewers?It is not neccessary to use all the tables. |
SELECT MAX ITV1 weekly ranking FROM table | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximum ITV1 weekly ranking?.It is not neccessary to use all the tables. |
SELECT COUNT Artist(s) FROM table WHERE Start Date = 1966-12-12 | CREATE TABLE INST, Here is a database schema( table schema); | How many artist(s) have a start date is 1966-12-12?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Margin of victory = 5 strokes | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of the tournament with 5 strokes as the margin of victory?.It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_5 WHERE total < 296 | CREATE TABLE INST, Here is a database schema( table schema); | Which to par has a total less than 296?It is not neccessary to use all the tables. |
SELECT Location Attendance FROM table WHERE Score = L 83–106 (OT) | CREATE TABLE INST, Here is a database schema( table schema); | Name the location attendance for l 83–106 (ot).It is not neccessary to use all the tables. |
SELECT MAX(average) FROM table_name_15 WHERE number_of_dances = 6 AND total > 128 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest average that has 6 dances and a total of over 128?It is not neccessary to use all the tables. |
SELECT season_no FROM table_28081876_6 WHERE production_code = 401 | CREATE TABLE INST, Here is a database schema( table schema); | What season number was assigned to the episode identified with the production code 401?It is not neccessary to use all the tables. |
SELECT name FROM table_name_67 WHERE rank = 18 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Name of the Players with a Rank of 18?It is not neccessary to use all the tables. |
SELECT Father FROM table WHERE Husband = william iv | CREATE TABLE INST, Here is a database schema( table schema); | Which father had william iv as a husband?.It is not neccessary to use all the tables. |
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 56490) AND microbiologyevents.spec_type_desc = 'blood culture' AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', ... | CREATE TABLE INST, Here is a database schema( table schema); | has there been any blood culture microbiology test done for patient 56490 in 09/last year?It is not neccessary to use all the tables. |
SELECT City FROM table WHERE Type of game = friendly AND Opponent = tunisia | CREATE TABLE INST, Here is a database schema( table schema); | what city has a game of friendly and an opponent of tunisia?.It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Cardinals points = 7 | CREATE TABLE INST, Here is a database schema( table schema); | What was the record for the game where the cardinals scored 7 points?.It is not neccessary to use all the tables. |
SELECT no_7 FROM table_name_16 WHERE no_5 = "olivia" AND no_2 = "emma" | CREATE TABLE INST, Here is a database schema( table schema); | Who was number 7 when Olivia was number 5 and Emma was number 2?It is not neccessary to use all the tables. |
SELECT Secondary sponsor FROM table WHERE Main sponsor = Ale | CREATE TABLE INST, Here is a database schema( table schema); | When ale is the main sponsor who is the secondary sponsor?.It is not neccessary to use all the tables. |
SELECT drawn FROM table_name_74 WHERE lost = "3" | CREATE TABLE INST, Here is a database schema( table schema); | What is the number drawn when 3 have been lost?It is not neccessary to use all the tables. |
SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | CREATE TABLE INST, Here is a database schema( table schema); | what are the top five of the most commonly prescribed drugs during this year?It is not neccessary to use all the tables. |
SELECT MIN Week FROM table WHERE Attendance = 70,225 | CREATE TABLE INST, Here is a database schema( table schema); | Which week had an attendance of 70,225.It is not neccessary to use all the tables. |
SELECT MAX(f_laps) FROM table_25561038_1 | CREATE TABLE INST, Here is a database schema( table schema); | List the highest number of laps.It is not neccessary to use all the tables. |
SELECT Grid FROM table WHERE Time/Retired = +27.112 | CREATE TABLE INST, Here is a database schema( table schema); | what is the grid when the time/retired is +27.112?.It is not neccessary to use all the tables. |
SELECT final FROM table_name_96 WHERE rank = "4" | CREATE TABLE INST, Here is a database schema( table schema); | What final was ranked 4?It is not neccessary to use all the tables. |
SELECT Tries against FROM table WHERE Losing bonus = 9 | CREATE TABLE INST, Here is a database schema( table schema); | How many tries against have a losing bonus of 9?.It is not neccessary to use all the tables. |
SELECT COUNT Heat FROM table WHERE Mark = 7.29 AND Name = virgen benavides AND Lane < 2 | CREATE TABLE INST, Here is a database schema( table schema); | When the lane is under 2 and the name is virgen benavides with a mark of 7.29, what's the total number of Heat found?.It is not neccessary to use all the tables. |
SELECT moving_from FROM table_name_26 WHERE nat = "ned" | CREATE TABLE INST, Here is a database schema( table schema); | Which Moving from has a Nat of ned?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Attendance > 63,243 AND Week > 9 | CREATE TABLE INST, Here is a database schema( table schema); | What was the result of the game where 63,243 people attended after week 9?.It is not neccessary to use all the tables. |
SELECT COUNT Year FROM table WHERE Film name = rang barse | CREATE TABLE INST, Here is a database schema( table schema); | Which year was the film Rang Barse introduced?.It is not neccessary to use all the tables. |
SELECT Inclination FROM table WHERE Mass = ≥ 6.6 +1.1 −1.0 m⊕ | CREATE TABLE INST, Here is a database schema( table schema); | What Inclination has a Mass of ≥ 6.6 +1.1 −1.0 m⊕?.It is not neccessary to use all the tables. |
SELECT quantity_made FROM table_name_97 WHERE class = "330" | CREATE TABLE INST, Here is a database schema( table schema); | How many have a class of 330?It is not neccessary to use all the tables. |
SELECT written_by FROM table_11111116_8 WHERE us_viewers__million_ = "2.12" | CREATE TABLE INST, Here is a database schema( table schema); | Who wrote the episodes that were viewed by 2.12 million viewers?It is not neccessary to use all the tables. |
SELECT under_13 FROM table_26368963_2 WHERE under_15 = "Maria Elena Ubina" | CREATE TABLE INST, Here is a database schema( table schema); | What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?It is not neccessary to use all the tables. |
SELECT COUNT(conference) AS Tournament FROM table_22849575_6 WHERE tournament_winner = "James Madison" | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of conference tournament for james madisonIt is not neccessary to use all the tables. |
SELECT COUNT(duration) FROM table_17641206_4 WHERE written_by = "John Sullivan" | CREATE TABLE INST, Here is a database schema( table schema); | How many episodes of 30 minutes were written by John Sullivan?It is not neccessary to use all the tables. |
SELECT AVG Losses FROM table WHERE Runs Allowed < 25 AND Wins = 5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average number of losses the team with less than 25 runs allowed and 5 wins have?.It is not neccessary to use all the tables. |
SELECT Barony FROM table WHERE Area( acres ) = 150 | CREATE TABLE INST, Here is a database schema( table schema); | What is the barony of the townland whose area is 150 acres? .It is not neccessary to use all the tables. |
SELECT MAX Rank FROM table WHERE Year opened > 2010 AND Main span metres = 430 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest rank from the year greater than 2010 with 430 main span metres?.It is not neccessary to use all the tables. |
SELECT high_rebounds FROM table_19778010_5 WHERE high_assists = "Five Players (3)" | CREATE TABLE INST, Here is a database schema( table schema); | Who did the high rebounds in the game in which five players (3) did the high assists?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.