sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT score_in_the_final FROM table_name_48 WHERE partnering = "tessa price" | CREATE TABLE INST, Here is a database schema( table schema); | What was the final score for the match with a partnering of Tessa Price?It is not neccessary to use all the tables. |
SELECT "Population density (per km 2 )" FROM table_73713 WHERE "Municipal district" = 'Smoky Lake County' | CREATE TABLE INST, Here is a database schema( table schema); | What is the population per km in Smoky Lake County?It is not neccessary to use all the tables. |
SELECT language_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = "Everlasting Moments" | CREATE TABLE INST, Here is a database schema( table schema); | What language was spoken in Everlasting Moments?It is not neccessary to use all the tables. |
SELECT MAX Pick FROM table WHERE College = lsu | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest pick number of the player who went to LSU in college?.It is not neccessary to use all the tables. |
SELECT deputy_prime_minister FROM table_name_87 WHERE left_office = "1981" | CREATE TABLE INST, Here is a database schema( table schema); | Which deputy prime minister left office in 1981?It is not neccessary to use all the tables. |
SELECT school FROM table_11677100_18 WHERE hometown = "Montvale, NJ" | CREATE TABLE INST, Here is a database schema( table schema); | What school did the player attend who's hometown was Montvale NJ?It is not neccessary to use all the tables. |
SELECT Modified HP FROM table WHERE Standard torque (lb/ft) = 11.53 | CREATE TABLE INST, Here is a database schema( table schema); | When the standard torque (lb/ft) is 11.53 how much does more is the modified hp?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Height = 199 | CREATE TABLE INST, Here is a database schema( table schema); | Name the player for 199 height.It is not neccessary to use all the tables. |
SELECT loss FROM table_name_29 WHERE date = "may 22" | CREATE TABLE INST, Here is a database schema( table schema); | Name the loss on may 22It is not neccessary to use all the tables. |
SELECT Start FROM table WHERE Laps < 200 AND Rank = 11 | CREATE TABLE INST, Here is a database schema( table schema); | What is the start number for a rank 11 race with less than 200 laps?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_61 WHERE record = "14–10–2" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the game when the Devils had a record of 14–10–2?It is not neccessary to use all the tables. |
SELECT COUNT Awardee(s) FROM table WHERE Name of Award = Best Screenplay | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of awardees for best screenplay.It is not neccessary to use all the tables. |
SELECT MIN(games_played) FROM table_14181578_1 WHERE goals_for_against = "7-5" | CREATE TABLE INST, Here is a database schema( table schema); | what is the minimum games played with goals for/against being 7-5It is not neccessary to use all the tables. |
SELECT AVG Crowd FROM table WHERE Venue = princes park | CREATE TABLE INST, Here is a database schema( table schema); | What is the average crowd size for princes park?.It is not neccessary to use all the tables. |
SELECT Polyunsaturated fat FROM table WHERE Total fat = 100g AND Saturated fat = 7g | CREATE TABLE INST, Here is a database schema( table schema); | Name the polyunsaturated fat with total fat of 100g and saturated fat of 7g.It is not neccessary to use all the tables. |
SELECT MAX(pts_for) FROM table_13018116_1 WHERE won = 9 | CREATE TABLE INST, Here is a database schema( table schema); | What is the most points when the won is 9?It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-19622')) AND microlab.culturesite = 'bronchial lavage' AND DATETIME(microlab.c... | CREATE TABLE INST, Here is a database schema( table schema); | was there any microbiology tests until 1 year ago for the bronchial lavage of patient 031-19622?It is not neccessary to use all the tables. |
SELECT winners FROM table_name_92 WHERE season = 2010 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the winner in 2010?It is not neccessary to use all the tables. |
SELECT AVG Total FROM table WHERE Name = alex mcleish category:articles with hcards AND League < 494 | CREATE TABLE INST, Here is a database schema( table schema); | Which Total has a Name of alex mcleish category:articles with hcards, and a League smaller than 494?.It is not neccessary to use all the tables. |
SELECT MIN(average) FROM table_name_98 WHERE yards > 167 AND team = "at tb" AND week > 7 | CREATE TABLE INST, Here is a database schema( table schema); | Which Average has Yards larger than 167, and a Team of at tb, and a Week larger than 7?It is not neccessary to use all the tables. |
SELECT suffix FROM table_name_17 WHERE prefix = "isothiocyanato- (-ncs)" | CREATE TABLE INST, Here is a database schema( table schema); | Which suffix has the prefix of isothiocyanato- (-ncs)?It is not neccessary to use all the tables. |
SELECT song FROM table_name_77 WHERE place > 2 AND draw = 1 | CREATE TABLE INST, Here is a database schema( table schema); | What song is later than place 2 and has a draw number of 1?It is not neccessary to use all the tables. |
SELECT nickname FROM table_name_93 WHERE institution = "university of wisconsin-platteville" | CREATE TABLE INST, Here is a database schema( table schema); | What is the team nickname of university of wisconsin-platteville?It is not neccessary to use all the tables. |
SELECT 2005/ 06 FROM table WHERE 2006/ 07 = ur | CREATE TABLE INST, Here is a database schema( table schema); | Which 2005/ 06 has a 2006/ 07 of ur?.It is not neccessary to use all the tables. |
SELECT COUNT(year) FROM table_name_9 WHERE open_cup = "1st round" | CREATE TABLE INST, Here is a database schema( table schema); | How many years did Real Colorado Foxes make it to the Open Cup 1st Round?It is not neccessary to use all the tables. |
SELECT free AS polite FROM table_name_70 WHERE genitive_3 = "*ni-da" | CREATE TABLE INST, Here is a database schema( table schema); | Which Free polite has a Genitive 3 of *ni-da?It is not neccessary to use all the tables. |
SELECT Tournament FROM table WHERE 2010 = 2r | CREATE TABLE INST, Here is a database schema( table schema); | Which tournament had 2r in 2010?.It is not neccessary to use all the tables. |
SELECT driver FROM table_name_87 WHERE grid < 12 AND time_retired = "+ 3 laps" | CREATE TABLE INST, Here is a database schema( table schema); | What driver has a grid under 12 with a Time/Retired of + 3 laps?It is not neccessary to use all the tables. |
SELECT pick FROM table_name_2 WHERE college = "southeastern louisiana" | CREATE TABLE INST, Here is a database schema( table schema); | What Pick does the College Southeastern Louisiana have?It is not neccessary to use all the tables. |
SELECT Weight FROM table WHERE 2012 club = pro recco AND Name = tamás kásás category:articles with hcards | CREATE TABLE INST, Here is a database schema( table schema); | Name the Weight which has a 2012 club of pro recco, and a Name of tamás kásás category:articles with hcards?.It is not neccessary to use all the tables. |
SELECT week__number FROM table_name_34 WHERE original_artist = "the beatles" AND order__number < 10 | CREATE TABLE INST, Here is a database schema( table schema); | On which week was the beatles the original artist and the order # smaller than 10?It is not neccessary to use all the tables. |
SELECT Shell (lb) FROM table WHERE Gun = QF 12 pdr 12 cwt | CREATE TABLE INST, Here is a database schema( table schema); | If the gun used is the qf 12 pdr 12 cwt, what is the shell weight?.It is not neccessary to use all the tables. |
SELECT AVG Bronze FROM table WHERE Total < 1 | CREATE TABLE INST, Here is a database schema( table schema); | What average bronze has a total less than 1?.It is not neccessary to use all the tables. |
SELECT Term Abroad FROM table WHERE 2001/02 = 0.5 | CREATE TABLE INST, Here is a database schema( table schema); | When through 2001 to 2002 the duration is 0.5 what is the term abroad?.It is not neccessary to use all the tables. |
SELECT County FROM table WHERE Total = 18,900 (R) | CREATE TABLE INST, Here is a database schema( table schema); | What country had the total 18,900 (r)?.It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_6 WHERE score = "5–7, 2–6" | CREATE TABLE INST, Here is a database schema( table schema); | What Tournament has a Score of 5–7 2–6?It is not neccessary to use all the tables. |
SELECT City FROM table WHERE Location = netherlands | CREATE TABLE INST, Here is a database schema( table schema); | What city was located in the Netherlands?.It is not neccessary to use all the tables. |
SELECT res FROM table_name_86 WHERE opponent = "mark hunt" | CREATE TABLE INST, Here is a database schema( table schema); | The match against Mark Hunt had what result?It is not neccessary to use all the tables. |
SELECT Governor FROM table WHERE Lieutenant Governor = william henry ashley | CREATE TABLE INST, Here is a database schema( table schema); | Which governor had William Henry Ashley as lieutenant governor?.It is not neccessary to use all the tables. |
SELECT Loss FROM table WHERE Date = june 29 | CREATE TABLE INST, Here is a database schema( table schema); | Who lost on June 29?.It is not neccessary to use all the tables. |
SELECT champion FROM table_29295463_9 WHERE runner_up = "Marty Davis" | CREATE TABLE INST, Here is a database schema( table schema); | Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up?It is not neccessary to use all the tables. |
SELECT City / State FROM table WHERE Circuit = calder park raceway | CREATE TABLE INST, Here is a database schema( table schema); | Which city or state contains Calder Park Raceway?.It is not neccessary to use all the tables. |
SELECT No. in season FROM table WHERE Written by = Matt Witten , Richard Sweren | CREATE TABLE INST, Here is a database schema( table schema); | What is the season number of the episode written by Matt Witten , Richard Sweren?.It is not neccessary to use all the tables. |
SELECT Total Assets (% Change) FROM table WHERE Performance/Return on Capital (%) > 25.63 AND Performance/Return on Capital (Score) > 7 | CREATE TABLE INST, Here is a database schema( table schema); | What Total Assets (% Change) that has Performance/Return on Capital (%) greater than 25.63, and a Performance/Return on Capital (Score) greater than 7?.It is not neccessary to use all the tables. |
SELECT award FROM table_name_90 WHERE year < 2004 AND episode = "—" | CREATE TABLE INST, Here is a database schema( table schema); | What award has a year earlier than 2004 and the episode shows —?It is not neccessary to use all the tables. |
SELECT release_price___usd__ FROM table_name_53 WHERE model_number = "atom z510pt" | CREATE TABLE INST, Here is a database schema( table schema); | What was the release price of the Atom Z510PT processor?It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_89 WHERE week = 6 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent in week 6?It is not neccessary to use all the tables. |
SELECT special FROM table_23982399_12 WHERE challenger = "Dominique Bouchet" | CREATE TABLE INST, Here is a database schema( table schema); | What is the special when the challenger is dominique bouchet?It is not neccessary to use all the tables. |
SELECT MAX Release date FROM table WHERE Catalogue number = DW023 | CREATE TABLE INST, Here is a database schema( table schema); | What is the release date of catalogue number DW023?.It is not neccessary to use all the tables. |
SELECT Italian FROM table WHERE Andalusian = coche | CREATE TABLE INST, Here is a database schema( table schema); | How would an Italian say the Andalusian word coche?.It is not neccessary to use all the tables. |
SELECT SUM(18 AS _49) FROM table_name_51 WHERE air_date = "june 25, 2009" AND order > 29 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of numbers listed in 18-49 for the episode that aired on June 25 2009 with an order larger than 29?It is not neccessary to use all the tables. |
SELECT Local Time FROM table WHERE Date = september 1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the time on September 1?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE NHL team = Buffalo Sabres | CREATE TABLE INST, Here is a database schema( table schema); | What player was picked for Buffalo Sabres?.It is not neccessary to use all the tables. |
SELECT home_team FROM table_name_80 WHERE away_team = "lincoln city" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Home team at the Lincoln City Away game?It is not neccessary to use all the tables. |
SELECT perfect_fifth FROM table_name_48 WHERE minor_seventh = "d" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Perfect fifth with a Minor that is seventh of d?It is not neccessary to use all the tables. |
SELECT abb FROM table_name_30 WHERE disorder = "carbamoyl phosphate synthetase i deficiency" | CREATE TABLE INST, Here is a database schema( table schema); | What is the abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency?It is not neccessary to use all the tables. |
SELECT MAX(year) FROM table_17801022_1 WHERE race_time = "1:55:13" | CREATE TABLE INST, Here is a database schema( table schema); | What year was the winning race time 1:55:13?It is not neccessary to use all the tables. |
SELECT Winning score FROM table WHERE Date = aug 26, 1973 | CREATE TABLE INST, Here is a database schema( table schema); | Which Winning score has a Date of aug 26, 1973?.It is not neccessary to use all the tables. |
SELECT Outcome of election FROM table WHERE Candidate = edward mahama AND Number of votes = 73,494 | CREATE TABLE INST, Here is a database schema( table schema); | What is the outcome of the election with edward mahama as a candidate and 73,494 votes?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Position = d AND Round > 3 | CREATE TABLE INST, Here is a database schema( table schema); | Which player was D past Round 3?.It is not neccessary to use all the tables. |
SELECT Time/Retired FROM table WHERE Grid > 10 AND Manufacturer = proton kr | CREATE TABLE INST, Here is a database schema( table schema); | If the manufacturer is Proton Kr and the grid was over 10, what was the time retired?.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, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, da... | CREATE TABLE INST, Here is a database schema( table schema); | what is the cheapest flight from WASHINGTON to SAN FRANCISCO on fridayIt is not neccessary to use all the tables. |
SELECT Spacecraft FROM table WHERE End Time = 17:28 | CREATE TABLE INST, Here is a database schema( table schema); | What spacecraft had an EVA that ended at 17:28?.It is not neccessary to use all the tables. |
SELECT COUNT(celebrity) FROM table_11642945_1 WHERE original_air_date = "18October2007" | CREATE TABLE INST, Here is a database schema( table schema); | How many celebrities had an 18October2007 Original air Date?It is not neccessary to use all the tables. |
SELECT nat FROM table_name_97 WHERE moving_from = "espanyol" | CREATE TABLE INST, Here is a database schema( table schema); | What nation had a moving from of espanyol?It is not neccessary to use all the tables. |
SELECT Declination ( J2000 ) FROM table WHERE NGC number > 5750 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the declination with NGC number larger than 5750.It is not neccessary to use all the tables. |
SELECT rank FROM table_name_24 WHERE total > 9 AND gold > 6 | CREATE TABLE INST, Here is a database schema( table schema); | Which Rank has a Total larger than 9 and a Gold larger than 6?It is not neccessary to use all the tables. |
SELECT "Directed by" FROM table_74202 WHERE "U.S. viewers (millions)" = '6.3' | CREATE TABLE INST, Here is a database schema( table schema); | who directed the episode that 6.3 million u.s. viewers saw?It is not neccessary to use all the tables. |
SELECT AVG Lane FROM table WHERE Nationality = netherlands AND Rank > 1 | CREATE TABLE INST, Here is a database schema( table schema); | for the rank more than 1 and nationality of netherlands, what is the lane?.It is not neccessary to use all the tables. |
SELECT type FROM table_name_56 WHERE quantity = "124" | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE TYPE WITH 124?It is not neccessary to use all the tables. |
SELECT city FROM table_name_63 WHERE feb = "66 °f / 18.9 °c" | CREATE TABLE INST, Here is a database schema( table schema); | Name the city with Feb of 66 °f / 18.9 °cIt is not neccessary to use all the tables. |
SELECT internet_explorer FROM table_name_81 WHERE date = "april 2009" | CREATE TABLE INST, Here is a database schema( table schema); | What percentage of browsers were using Internet Explorer in April 2009?It is not neccessary to use all the tables. |
SELECT Date of appointment FROM table WHERE Manner of departure = contract expired AND Team = lecce | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of appointment for the manager of lecce when the previous manager's contract expired?.It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE Results 2004 = 0.00% | CREATE TABLE INST, Here is a database schema( table schema); | Who had 0.00% in 2004?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Pick < 6 AND New WNBA Team = minnesota lynx | CREATE TABLE INST, Here is a database schema( table schema); | Which player had a pick under 6 and a new WNBA team of the Minnesota Lynx?.It is not neccessary to use all the tables. |
SELECT Class Pos. FROM table WHERE Pos. = 9th | CREATE TABLE INST, Here is a database schema( table schema); | Which team is in 9th place?.It is not neccessary to use all the tables. |
SELECT original_air_date FROM table_15824796_4 WHERE season__number = 9 | CREATE TABLE INST, Here is a database schema( table schema); | When did season 9 originally air?It is not neccessary to use all the tables. |
SELECT d_40 FROM table_name_17 WHERE d_44 = "d 15" | CREATE TABLE INST, Here is a database schema( table schema); | I want the D 40 with D 44 of d 15It is not neccessary to use all the tables. |
SELECT AVG Channel 4 weekly rank a FROM table WHERE Viewers (millions) < 2.19 AND Airdate = december 7, 2007 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average Channel 4 weekly rank for less than 2.19 million viewers on December 7, 2007?.It is not neccessary to use all the tables. |
WITH tags_info AS (SELECT TagName, Votes.Id AS V_Id, Posts.Id AS P_Id, Posts.OwnerUserId AS P_OwnerUserId, Posts.CreationDate AS P_CreationDate FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId AND Posts.PostTypeId = 2 INNER JOIN Votes ON Votes.PostId = Posts... | CREATE TABLE INST, Here is a database schema( table schema); | Popular tags over last 30 days.It is not neccessary to use all the tables. |
SELECT score FROM table_name_93 WHERE goal = 16 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score with a goal of 16?It is not neccessary to use all the tables. |
SELECT MAX Year Built FROM table WHERE Church Name = Holmedal kyrkje | CREATE TABLE INST, Here is a database schema( table schema); | Name the maximum year built for holmedal kyrkje.It is not neccessary to use all the tables. |
SELECT D 44 √ FROM table WHERE D 47 √ = r 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is the number for D 44 √ when D 47 √ is r 7?.It is not neccessary to use all the tables. |
SELECT COUNT Name of team song FROM table WHERE Writer/composer = Harry Angus | CREATE TABLE INST, Here is a database schema( table schema); | How man teams have a writer named harry angus?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Visitor = chicago black hawks AND Date = march 24 | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE SCORE WITH VISITORS CHICAGO BLACK HAWKS ON MARCH 24?.It is not neccessary to use all the tables. |
SELECT demographic.religion, demographic.dod FROM demographic WHERE demographic.subject_id = "74032" | CREATE TABLE INST, Here is a database schema( table schema); | what is religion and date of death of subject id 74032?It is not neccessary to use all the tables. |
SELECT "Left" FROM table_16180 WHERE "Women\u2019s Nickname" = 'Lady Pilots' | CREATE TABLE INST, Here is a database schema( table schema); | Name the left of the Lady Pilots.It is not neccessary to use all the tables. |
SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job ORDER BY job | CREATE TABLE INST, Here is a database schema( table schema); | Draw a bar chart for what is average age of male for different job title?, order by the job in asc.It is not neccessary to use all the tables. |
SELECT MAX Gold FROM table WHERE Bronze = 1 AND Rank = 5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest gold when bronze is 1, and rank is 5?.It is not neccessary to use all the tables. |
SELECT MIN(quantity) FROM table_name_60 WHERE name = "raison blue" AND nicotine > 0.30000000000000004 | CREATE TABLE INST, Here is a database schema( table schema); | For Raison Blue with a nicotine larger than 0.30000000000000004 what's the lowest quantity?It is not neccessary to use all the tables. |
SELECT MIN Rank FROM table WHERE Nationality = poland AND Time > 55.34 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest rank with poland as the nationality and a time greater than 55.34?.It is not neccessary to use all the tables. |
SELECT status FROM table_1341522_50 WHERE opponent = "Doc Hastings (R) 53.3% Jay Inslee (D) 46.7%" | CREATE TABLE INST, Here is a database schema( table schema); | What was the result of the election of doc hastings (r) 53.3% jay inslee (d) 46.7%It is not neccessary to use all the tables. |
SELECT Final position / round FROM table WHERE Competition = uefa cup | CREATE TABLE INST, Here is a database schema( table schema); | What is the final position/round of the UEFA cup?.It is not neccessary to use all the tables. |
SELECT player FROM table_name_94 WHERE position = "running back" AND college = "san jose state" | CREATE TABLE INST, Here is a database schema( table schema); | Which player was a running back from San Jose State?It is not neccessary to use all the tables. |
SELECT production__latest_figures_ FROM table_250309_1 WHERE parent_company = "Ariel" | CREATE TABLE INST, Here is a database schema( table schema); | what is the production where the parent company is ariel?It is not neccessary to use all the tables. |
SELECT YEAR, book_title, publisher FROM book_club ORDER BY YEAR DESC | CREATE TABLE INST, Here is a database schema( table schema); | Show the years book titles and publishers for all books in descending order by year.It is not neccessary to use all the tables. |
SELECT MAX("Draws") FROM table_43368 WHERE "Ballarat FL" = 'sebastapol' AND "Against" < '1802' | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest number of Draws scored by Sebastapol when the value for Against was less than 1802?It is not neccessary to use all the tables. |
SELECT SUM Grid FROM table WHERE Laps > 61 | CREATE TABLE INST, Here is a database schema( table schema); | How many grids had more than 61 laps?.It is not neccessary to use all the tables. |
SELECT COUNT Byes FROM table WHERE Benalla DFL = swanpool AND Losses < 16 | CREATE TABLE INST, Here is a database schema( table schema); | When Benalla DFL is swanpool with less than 16 losses, what is the sum of Byes?.It is not neccessary to use all the tables. |
SELECT COUNT(written_by) FROM table_27155243_4 WHERE episode__number = 3 | CREATE TABLE INST, Here is a database schema( table schema); | How many items appear in the written by column in episode 3?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.