sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT venue FROM table_name_89 WHERE status = "five nations" AND against = 0 | CREATE TABLE INST, Here is a database schema( table schema); | What Venue has a Status of five nations and Against of 0?It is not neccessary to use all the tables. |
SELECT Original Air Date (ATV) FROM table WHERE Episode no. = 1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the original air date (atv) of episode 1?.It is not neccessary to use all the tables. |
SELECT AVG(year) FROM table_name_36 WHERE notes = "electronics brand" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average of all the years when the notes are “electronics brand?”It is not neccessary to use all the tables. |
SELECT surface FROM table_name_47 WHERE runner_up = "brian gottfried" | CREATE TABLE INST, Here is a database schema( table schema); | What is the surface of the match with Brian Gottfried as the runner-up?It is not neccessary to use all the tables. |
SELECT cardinal_direction FROM table_name_84 WHERE english = "monday" | CREATE TABLE INST, Here is a database schema( table schema); | What is the cardinal direction of Monday in English?It is not neccessary to use all the tables. |
SELECT AVG Round FROM table WHERE College/Junior/Club Team (League) = hamilton red wings (oha) AND Position = rw | CREATE TABLE INST, Here is a database schema( table schema); | Which Round has a College/Junior/Club Team (League) of hamilton red wings (oha), and a Position of rw?.It is not neccessary to use all the tables. |
SELECT Past Habitual FROM table WHERE Probable Future = गर्छ garcha 'he does' | CREATE TABLE INST, Here is a database schema( table schema); | Name the past habitual for गर्छ garcha 'he does'.It is not neccessary to use all the tables. |
SELECT wins FROM table_name_42 WHERE last_win = "2000" | CREATE TABLE INST, Here is a database schema( table schema); | How many wins did the club have with the last win in 2000?It is not neccessary to use all the tables. |
SELECT MAX First elected FROM table WHERE Party = dem AND District > 24 AND Home city/town = berlin | CREATE TABLE INST, Here is a database schema( table schema); | Which First elected is the highest one that has a Party of dem, and a District larger than 24, and a Home city/town of berlin?.It is not neccessary to use all the tables. |
SELECT COUNT Written by FROM table WHERE Title = "Woke Up Dead" | CREATE TABLE INST, Here is a database schema( table schema); | How many writers wrote the episode "Woke Up Dead"?.It is not neccessary to use all the tables. |
SELECT character FROM table_22460085_1 WHERE original_west_end_performer = "Richard Fleeshman" | CREATE TABLE INST, Here is a database schema( table schema); | What character did Richard Fleeshman portray?It is not neccessary to use all the tables. |
SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | Find the name of the most expensive product.It is not neccessary to use all the tables. |
SELECT rank FROM table_19149550_7 WHERE london_borough = "Southwark" | CREATE TABLE INST, Here is a database schema( table schema); | What is the rank of london borough in southwark?It is not neccessary to use all the tables. |
SELECT Level FROM table WHERE Artist 1 = Marvin Gaye AND Artist 2 = David Bowie | CREATE TABLE INST, Here is a database schema( table schema); | Which level has marvin gaye as artist 1 and david bowie as artist 2?.It is not neccessary to use all the tables. |
SELECT MIN Rank FROM table WHERE Bronze > 0 AND Silver = 8 AND Total = 19 AND Gold < 9 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold?.It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Date = january 6 | CREATE TABLE INST, Here is a database schema( table schema); | What was the record after the January 6 game?.It is not neccessary to use all the tables. |
SELECT Rank FROM table WHERE Freight ( Metric Tonnes ) = 255121 | CREATE TABLE INST, Here is a database schema( table schema); | What is the rank of the airport with freight ( metric tonnes ) of 255121?.It is not neccessary to use all the tables. |
SELECT MIN(crowd) FROM table_name_83 WHERE away_team = "melbourne" | CREATE TABLE INST, Here is a database schema( table schema); | What was the smallest crowd for a Melbourne away game?It is not neccessary to use all the tables. |
SELECT total__kg_ FROM table_name_86 WHERE snatch = 132.5 | CREATE TABLE INST, Here is a database schema( table schema); | What's the Total (kg) of a Snatch of 132.5?It is not neccessary to use all the tables. |
SELECT Year FROM table WHERE Engine = era AND Chassis = era a-type | CREATE TABLE INST, Here is a database schema( table schema); | What year has an ERA engine and an ERA A-type chassis?.It is not neccessary to use all the tables. |
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-556')) AND intakeoutput.cellpath LIKE '%intake%' ... | CREATE TABLE INST, Here is a database schema( table schema); | when did patient 030-556 receive the first intake until 558 days ago?It is not neccessary to use all the tables. |
SELECT COUNT Cable rank FROM table WHERE Episode no. = 8 | CREATE TABLE INST, Here is a database schema( table schema); | How many times did episode number 8 air?.It is not neccessary to use all the tables. |
SELECT Aggregate score FROM table WHERE Contest and round = Europa League Play Off Round | CREATE TABLE INST, Here is a database schema( table schema); | what is the aggregate score for the europa league play off round contest and round.It is not neccessary to use all the tables. |
SELECT MIN Grid FROM table WHERE Laps = 25 AND Manufacturer = honda AND Time/Retired = +1:47.797 | CREATE TABLE INST, Here is a database schema( table schema); | Which Grid has Laps of 25, and a Manufacturer of honda, and a Time/Retired of +1:47.797?.It is not neccessary to use all the tables. |
SELECT T2.Party, SUM(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY T2.Party DESC | CREATE TABLE INST, Here is a database schema( table schema); | Show the name of each party and the corresponding number of delegates from that party with a bar chart, I want to order in desc by the bars.It is not neccessary to use all the tables. |
SELECT Manufacturer FROM table WHERE Laps = 24 AND Time/Retired = +1.965 | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?.It is not neccessary to use all the tables. |
SELECT losing_bonus FROM table_name_71 WHERE points_against = "546" | CREATE TABLE INST, Here is a database schema( table schema); | The club that had 546 points against what was the losing bonus?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'hypothermia') AND DAT... | CREATE TABLE INST, Here is a database schema( table schema); | count the number of patients who had undergone hypothermia two or more times until 4 years ago.It is not neccessary to use all the tables. |
SELECT Width FROM table WHERE Number of vehicles > 15 AND Type designation = k5000 | CREATE TABLE INST, Here is a database schema( table schema); | Which Width has a Number of vehicles larger than 15, and a Type designation of k5000?.It is not neccessary to use all the tables. |
SELECT Total Apps FROM table WHERE League Goals = 0 | CREATE TABLE INST, Here is a database schema( table schema); | What were the total apps for Dunne in season where he had 0 league goals? .It is not neccessary to use all the tables. |
SELECT "Record" FROM table_11939 WHERE "Date" = 'july 28' | CREATE TABLE INST, Here is a database schema( table schema); | What was the record on July 28?It is not neccessary to use all the tables. |
SELECT COUNT(roleplay) FROM table_17827271_1 WHERE actor_required = "Male, younger" | CREATE TABLE INST, Here is a database schema( table schema); | How many RolePlay actors played the role requiring a "male younger" actor?It is not neccessary to use all the tables. |
SELECT 9:00 FROM table WHERE 9:30 = law & order: criminal intent AND 8:00 = the great american road trip | CREATE TABLE INST, Here is a database schema( table schema); | What show is on at 9:00 when Law & Order: Criminal Intent is on at 9:30 and The Great American Road Trip is on at 8:00?.It is not neccessary to use all the tables. |
SELECT MIN Lane FROM table WHERE Rank = 33 | CREATE TABLE INST, Here is a database schema( table schema); | When rank is 33, what is the smallest lane?.It is not neccessary to use all the tables. |
SELECT player FROM table_name_8 WHERE school_club_team = "stanford" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the player who went to Stanford?It is not neccessary to use all the tables. |
SELECT MIN Wins FROM table WHERE Games Played = 7 AND Goals Against < 46 AND Goals For > 34 | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest number of wins with 7 games played and goals against less than 46 when goals for is more than 34?.It is not neccessary to use all the tables. |
SELECT record_set FROM table_name_9 WHERE superlative = "youngest nominee" | CREATE TABLE INST, Here is a database schema( table schema); | Who set the record for youngest nominee?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Rank = 12 | CREATE TABLE INST, Here is a database schema( table schema); | what is the result when the rank is 12?.It is not neccessary to use all the tables. |
SELECT MIN Wins FROM table WHERE Year = 1983 | CREATE TABLE INST, Here is a database schema( table schema); | How many wins happened in 1983?.It is not neccessary to use all the tables. |
SELECT MIN Crowd FROM table WHERE Venue = mcg | CREATE TABLE INST, Here is a database schema( table schema); | What was the lowest crowd size at MCG?.It is not neccessary to use all the tables. |
SELECT COUNT(wins) FROM table_23128286_1 WHERE team_name = "Carlin Motorsport" | CREATE TABLE INST, Here is a database schema( table schema); | How many wins did he have with carlin motorsport?It is not neccessary to use all the tables. |
SELECT SUM Byes FROM table WHERE Wins < 16 AND Losses = 8 AND Mininera DFL = penshurst AND Against < 1405 | CREATE TABLE INST, Here is a database schema( table schema); | WHAT ARE THE BYES WITH A WIN SMALLER THAN 16, 8 LOSSES, AND AT PENSHURST, WITH AGAINST SMALLER THAN 1405?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_79 WHERE high_points = "joe johnson (31)" | CREATE TABLE INST, Here is a database schema( table schema); | In the game where Joe Johnson (31) was the high points scorer what was the final score?It is not neccessary to use all the tables. |
SELECT interview_subject FROM table_1566852_6 WHERE cover_model = "Bai Ling" | CREATE TABLE INST, Here is a database schema( table schema); | What were the interview subjects on those occasions where Bai Ling was the cover model?It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE No. in season = 5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of episode 5 in the season?.It is not neccessary to use all the tables. |
SELECT SUM(Amount_Settled) FROM Settlements | CREATE TABLE INST, Here is a database schema( table schema); | What is the total amount of settlement made for all the settlements?It is not neccessary to use all the tables. |
SELECT position FROM table_2781227_9 WHERE college_junior_club_team = "Krylja Sovetov (Russia)" | CREATE TABLE INST, Here is a database schema( table schema); | What position does krylja sovetov (russia) play?It is not neccessary to use all the tables. |
SELECT Runs FROM table WHERE Venue = bellerive oval , hobart AND Season = 2004/05 AND Rank = 5 | CREATE TABLE INST, Here is a database schema( table schema); | Name the Runs has a Venue of bellerive oval , hobart, and a Season of 2004/05, and a Rank of 5?.It is not neccessary to use all the tables. |
SELECT circuit FROM table_19598014_2 WHERE challenge_winning_team = "#47 Orbit Racing" | CREATE TABLE INST, Here is a database schema( table schema); | Name the circuit for #47 orbit racingIt is not neccessary to use all the tables. |
SELECT Film title used in nomination FROM table WHERE Director = Marcel Camus Category:Articles with hCards | CREATE TABLE INST, Here is a database schema( table schema); | Name the film titled for marcel camus category:articles with hcards.It is not neccessary to use all the tables. |
SELECT place FROM table_name_63 WHERE score > 68 AND player = "david ogrin" | CREATE TABLE INST, Here is a database schema( table schema); | Which Place has a Score larger than 68 and a Player of david ogrin?It is not neccessary to use all the tables. |
SELECT COUNT Writer FROM table WHERE Original airdate = 15 July 1967 | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of writers for airdate of 15 july 1967.It is not neccessary to use all the tables. |
SELECT Surface FROM table WHERE Date = 5 november 2011 | CREATE TABLE INST, Here is a database schema( table schema); | Which surface has a Date of 5 november 2011?.It is not neccessary to use all the tables. |
SELECT MIN(population__mareeba_) FROM table_12555835_1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the smallest population figure for Mareeba?It is not neccessary to use all the tables. |
SELECT Source FROM table WHERE Net worth US$ (billions) = 17 | CREATE TABLE INST, Here is a database schema( table schema); | What's the source of wealth of the person worth $17 billion?.It is not neccessary to use all the tables. |
SELECT COUNT Verbs FROM table WHERE Yo = sienta | CREATE TABLE INST, Here is a database schema( table schema); | how many verbs have the yo form as sienta?.It is not neccessary to use all the tables. |
SELECT identity FROM table_name_48 WHERE builder = "brighton works" | CREATE TABLE INST, Here is a database schema( table schema); | What is the identity of the brighton works built train?It is not neccessary to use all the tables. |
SELECT College FROM table WHERE Player = paul seiler | CREATE TABLE INST, Here is a database schema( table schema); | what college has paul seiler as a player?.It is not neccessary to use all the tables. |
SELECT "Adverbial" FROM table_46631 WHERE "Nominative" = 'me' | CREATE TABLE INST, Here is a database schema( table schema); | What is the adverbial for the nominative me?It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE Wins = 1 AND Season = 2009 | CREATE TABLE INST, Here is a database schema( table schema); | What was his position in 2009 with 1 win?.It is not neccessary to use all the tables. |
SELECT "Length" FROM table_25222 WHERE "Winning Driver" = 'Roger McCluskey' | CREATE TABLE INST, Here is a database schema( table schema); | What length was won by Roger McCluskey?It is not neccessary to use all the tables. |
SELECT Awardee(s) FROM table WHERE Name of Award = Best Actress | CREATE TABLE INST, Here is a database schema( table schema); | Who won best actress?.It is not neccessary to use all the tables. |
SELECT "Lead" FROM table_1183 WHERE "Socialist" = '35.5%' | CREATE TABLE INST, Here is a database schema( table schema); | What is the lead percentage when the socialist is at 35.5%?It is not neccessary to use all the tables. |
SELECT Season FROM table WHERE Number > 15 AND Name = omar thomas | CREATE TABLE INST, Here is a database schema( table schema); | In what season did Omar Thomas play, with a jersey number larger than 15?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_62 WHERE date = "april 9" | CREATE TABLE INST, Here is a database schema( table schema); | What's the score on April 9?It is not neccessary to use all the tables. |
SELECT AVG(total) FROM table_name_39 WHERE finish = "t11" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average of the total when t11 is the finish?It is not neccessary to use all the tables. |
SELECT MIN(loss) FROM table_name_94 WHERE gain < 61 AND avg_g = 6 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Loss number when the Gain is less than 61 and the Avg/G is 6?It is not neccessary to use all the tables. |
SELECT AVG(money___) AS $__ FROM table_name_87 WHERE to_par > 14 AND player = "ed dudley" | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the average Money ($) that has the To par larger than 14 and the Player of ed dudley?It is not neccessary to use all the tables. |
SELECT Main span feet FROM table WHERE Name = qincaobei bridge | CREATE TABLE INST, Here is a database schema( table schema); | What is the Main span of the Qincaobei Bridge.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE US Open = 1937 | CREATE TABLE INST, Here is a database schema( table schema); | Who won the US Open in 1937?.It is not neccessary to use all the tables. |
SELECT AVG ERP W FROM table WHERE Call sign = whre | CREATE TABLE INST, Here is a database schema( table schema); | What is the average ERP W when the call sign is whre?.It is not neccessary to use all the tables. |
SELECT loss FROM table_name_20 WHERE score = "6–5" | CREATE TABLE INST, Here is a database schema( table schema); | Which Loss has a Score of 6–5?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Date = april 28 | CREATE TABLE INST, Here is a database schema( table schema); | Name the score for april 28.It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Date = 5 April | CREATE TABLE INST, Here is a database schema( table schema); | what are all the location where date is 5 april.It is not neccessary to use all the tables. |
SELECT City / municipality FROM table WHERE Urban settlement = Kanjiža | CREATE TABLE INST, Here is a database schema( table schema); | Name the city for kanjiža.It is not neccessary to use all the tables. |
SELECT MIN Area km 2 FROM table WHERE Population = 2,352 | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the lowest Area km 2 that has the Population of 2,352?.It is not neccessary to use all the tables. |
SELECT tie_no FROM table_name_13 WHERE away_team = "crewe alexandra" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the tied game or the away team of Crewe Alexandra?It is not neccessary to use all the tables. |
SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC | CREATE TABLE INST, Here is a database schema( table schema); | Show the titles of books in descending order of publication price.It is not neccessary to use all the tables. |
SELECT Total Apps FROM table WHERE League Apps = 4 (2) | CREATE TABLE INST, Here is a database schema( table schema); | what is the total apps when the league apps is 4 (2)?.It is not neccessary to use all the tables. |
SELECT playoffs FROM table_12002388_1 WHERE reg_season = "1st, Southern" | CREATE TABLE INST, Here is a database schema( table schema); | What playoff result happened during the season in which they finished 1st southern?It is not neccessary to use all the tables. |
SELECT round FROM table_name_38 WHERE club = "bečej" | CREATE TABLE INST, Here is a database schema( table schema); | What is the round of club bečej?It is not neccessary to use all the tables. |
SELECT young_rider_classification FROM table_25999087_2 WHERE combativity_award = "Yannick Talabardon" | CREATE TABLE INST, Here is a database schema( table schema); | Who is every young rider classification if combativity award is Yannick Talabardon?It is not neccessary to use all the tables. |
SELECT "Civil parish" FROM table_31489 WHERE "Townland" = 'Cappanaboul' | CREATE TABLE INST, Here is a database schema( table schema); | What is the civil parish of the cappanaboul townland?It is not neccessary to use all the tables. |
SELECT AVG League Cup Goals FROM table WHERE League Cup Apps = 4 AND League Goals < 4 AND FA Cup Apps = 1 AND Total Apps = 35 | CREATE TABLE INST, Here is a database schema( table schema); | what is the average league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35?.It is not neccessary to use all the tables. |
SELECT result FROM table_name_65 WHERE game = "game 5" | CREATE TABLE INST, Here is a database schema( table schema); | What is the result for game 5?It is not neccessary to use all the tables. |
SELECT FIRST_NAME, COUNT(FIRST_NAME) FROM employees WHERE FIRST_NAME LIKE '%m' GROUP BY FIRST_NAME ORDER BY FIRST_NAME | CREATE TABLE INST, Here is a database schema( table schema); | For those employees whose first name is ending with the letter m, show the frequency of the first name using a bar chart, sort X-axis from low to high order.It is not neccessary to use all the tables. |
SELECT round_eliminated FROM table_16295365_2 WHERE conf_record = "12-6" | CREATE TABLE INST, Here is a database schema( table schema); | Name the round eliminated where conference record is 12-6It is not neccessary to use all the tables. |
SELECT Brian Moran FROM table WHERE Creigh Deeds = 30% | CREATE TABLE INST, Here is a database schema( table schema); | What was Brian Moran's share of the votes when Creigh Deeds had 30%?.It is not neccessary to use all the tables. |
SELECT Tries For FROM table WHERE Points = 5 AND Tries Against = 2 | CREATE TABLE INST, Here is a database schema( table schema); | How many tries for are associated with 5 points and 2 tries against?.It is not neccessary to use all the tables. |
SELECT SUM(heat) FROM table_name_13 WHERE nationality = "macedonia" AND rank < 114 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of every heat for the nationality of Macedonia with a rank less than 114?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Completions = 42 | CREATE TABLE INST, Here is a database schema( table schema); | What was the team Vanderberg belonged to when there was 42 completions?.It is not neccessary to use all the tables. |
SELECT Population FROM table WHERE Area km 2 = 113.12 | CREATE TABLE INST, Here is a database schema( table schema); | at the area of 113.12, what was the population?.It is not neccessary to use all the tables. |
SELECT level FROM table_23649244_1 WHERE artist_1 = "Wale" | CREATE TABLE INST, Here is a database schema( table schema); | Which level has wale as artist 1?It is not neccessary to use all the tables. |
SELECT moving_parts FROM table_name_74 WHERE technology = "lead-acid" | CREATE TABLE INST, Here is a database schema( table schema); | What are the moving parts of lead-acid?It is not neccessary to use all the tables. |
SELECT MAX(points) FROM table_name_88 WHERE difference = "1" AND drawn = 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the high point total associated with a difference of 1 and 0 draws?It is not neccessary to use all the tables. |
SELECT "Prize money" FROM table_63997 WHERE "Round" = 'final' | CREATE TABLE INST, Here is a database schema( table schema); | What is the prize money for the final round?It is not neccessary to use all the tables. |
SELECT U.S. viewers (millions) FROM table WHERE Production code = 3T5769 | CREATE TABLE INST, Here is a database schema( table schema); | How many millions of U.S. viewers watched the show with a production code of 3T5769?.It is not neccessary to use all the tables. |
SELECT 2012 FROM table WHERE 2005 = 314 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the 2012 when 2005 is 314.It is not neccessary to use all the tables. |
SELECT AVG Attendance FROM table WHERE Date = october 30, 1938 | CREATE TABLE INST, Here is a database schema( table schema); | What was the average attendance on October 30, 1938?.It is not neccessary to use all the tables. |
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | CREATE TABLE INST, Here is a database schema( table schema); | For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by weekday.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.