sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Driver FROM table WHERE Time/Retired = +5.2684 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the driver with a time/retired of +5.2684?.It is not neccessary to use all the tables. |
SELECT Median family income FROM table WHERE Per capita income = $18,296 | CREATE TABLE INST, Here is a database schema( table schema); | What is the median income for a family whose per capita income is $18,296?.It is not neccessary to use all the tables. |
SELECT MIN Field Goals FROM table WHERE Assists = 84 | CREATE TABLE INST, Here is a database schema( table schema); | What is the minimum number of field goals associated with exactly 84 assists?.It is not neccessary to use all the tables. |
SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1 | CREATE TABLE INST, Here is a database schema( table schema); | List all employees in the circulation history of the document with id 1. List the employee's name.It is not neccessary to use all the tables. |
SELECT film FROM table_name_75 WHERE recipient = "bub ltd" | CREATE TABLE INST, Here is a database schema( table schema); | What film had Bub Ltd as the recipient?It is not neccessary to use all the tables. |
SELECT order__number FROM table_name_97 WHERE original_artist = "aretha franklin" | CREATE TABLE INST, Here is a database schema( table schema); | What is the order number that has Aretha Franklin as the original artist?It is not neccessary to use all the tables. |
SELECT height_ft__m_ FROM table_name_44 WHERE floors = 22 AND year = 1985 | CREATE TABLE INST, Here is a database schema( table schema); | How tall is the building built in 1985 with 22 floors?It is not neccessary to use all the tables. |
SELECT source FROM table_name_64 WHERE brian_moran = "19%" | CREATE TABLE INST, Here is a database schema( table schema); | Which Source has a Brian Moran of 19%?It is not neccessary to use all the tables. |
SELECT Record Set FROM table WHERE Actor = walter brennan AND Year < 1941 | CREATE TABLE INST, Here is a database schema( table schema); | What record was set by walter brennan before 1941?.It is not neccessary to use all the tables. |
SELECT nationality FROM table_name_52 WHERE club_team = "linköpings hc (se)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the nationality of a player from link pings hc (se)?It is not neccessary to use all the tables. |
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY COUNT(HIRE_DATE) | CREATE TABLE INST, Here is a database schema( table schema); | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the amount of hire_date bin hire_date by time, and visualize them by a bar chart, could you show in ascending by the y axis?It is not neccessary to use all the tabl... |
SELECT years_runner_up FROM table_name_81 WHERE team = "duisburg" | CREATE TABLE INST, Here is a database schema( table schema); | What year(s) was Duisburg runner-up?It is not neccessary to use all the tables. |
SELECT change_over_previous_year_as_a_whole FROM table_171748_3 WHERE change_over_same_quarter_the_previous_year = "Up 2.8%" | CREATE TABLE INST, Here is a database schema( table schema); | What's the change over previous year as a whole in the period in which the change over same quarter the previous year was up 2.8%?It is not neccessary to use all the tables. |
SELECT Time FROM table WHERE Rider = tony myres | CREATE TABLE INST, Here is a database schema( table schema); | What is the time for tony myres?.It is not neccessary to use all the tables. |
SELECT MAX No. in season FROM table WHERE Director = Chip Chalmers AND Production code = 2397162 | CREATE TABLE INST, Here is a database schema( table schema); | what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episode .It is not neccessary to use all the tables. |
SELECT COUNT("title") FROM table_204_184 | CREATE TABLE INST, Here is a database schema( table schema); | how many tracks are in the album ?It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Event = ufc 27 | CREATE TABLE INST, Here is a database schema( table schema); | What is the record during the event, UFC 27?.It is not neccessary to use all the tables. |
SELECT Built FROM table WHERE Builder = stephenson | CREATE TABLE INST, Here is a database schema( table schema); | What year was Stephenson the builder?.It is not neccessary to use all the tables. |
SELECT Womens doubles FROM table WHERE Womens singles = Wu Jianqui | CREATE TABLE INST, Here is a database schema( table schema); | Who won the womens doubles when wu jianqui won the womens singles?.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Date = 5,6,7,8 june 1997 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Result of the Test match at the Edgbaston Venue on 5,6,7,8 June 1997?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_14 WHERE event = "ufc 27" | CREATE TABLE INST, Here is a database schema( table schema); | What is the record during the event, UFC 27?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "TP" | CREATE TABLE INST, Here is a database schema( table schema); | provide the number of patients whose drug route is tp?It is not neccessary to use all the tables. |
SELECT eid, name FROM Employee ORDER BY salary DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | Show the id and name of the employee with maximum salary.It is not neccessary to use all the tables. |
SELECT MIN Overall FROM table WHERE Position = wide receiver AND Round < 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Overall for the wide receiver in a round less than 2?.It is not neccessary to use all the tables. |
SELECT legs_won FROM table_20351295_2 WHERE high_checkout = 80 | CREATE TABLE INST, Here is a database schema( table schema); | How many legs has the player with high checkout of 80 won?It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM table_204_638 WHERE "surface" = 'carpet' | CREATE TABLE INST, Here is a database schema( table schema); | how many were carpet courts ?It is not neccessary to use all the tables. |
SELECT "Podiums" FROM table_14914 WHERE "Races" = '1' AND "Final Placing" = '5th' | CREATE TABLE INST, Here is a database schema( table schema); | Which Podium has 1 Race and a Final Place of 5th?It is not neccessary to use all the tables. |
SELECT Series FROM table WHERE Winner = paul morris | CREATE TABLE INST, Here is a database schema( table schema); | Which series was won by Paul Morris?.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); | What is the name of the away team who play Collingwood?.It is not neccessary to use all the tables. |
SELECT location_attendance FROM table_27700530_14 WHERE date = "April 3" | CREATE TABLE INST, Here is a database schema( table schema); | Where was the game and what was the attendance on April 3?It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE Directed by = David Solomon AND Written by = Marti Noxon | CREATE TABLE INST, Here is a database schema( table schema); | What are the title(s) of episodes directed by david solomon and written by marti noxon?.It is not neccessary to use all the tables. |
SELECT AVG Round FROM table WHERE Event = ufc on fox: velasquez vs. dos santos | CREATE TABLE INST, Here is a database schema( table schema); | What is the round for the ufc on fox: velasquez vs. dos santos event?.It is not neccessary to use all the tables. |
SELECT team FROM table_name_45 WHERE year = 2000 | CREATE TABLE INST, Here is a database schema( table schema); | Which Team has a Year of 2000?It is not neccessary to use all the tables. |
SELECT Date of appointment FROM table WHERE Outgoing manager = Wim Jansen | CREATE TABLE INST, Here is a database schema( table schema); | When was the date of appointment for the manager replacing Wim Jansen? .It is not neccessary to use all the tables. |
SELECT studio FROM table_name_38 WHERE year > 1933 AND director = "gregory ratoff" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Studio of the Film with Director Gregory Ratoff after 1933?It is not neccessary to use all the tables. |
SELECT game FROM table_name_55 WHERE home_team = "philadelphia" AND date = "april 23" | CREATE TABLE INST, Here is a database schema( table schema); | Which game had Philadelphia as its home team and was played on April 23?It is not neccessary to use all the tables. |
SELECT SUM(avg_finish) FROM table_name_91 WHERE year = 2007 AND starts < 1 | CREATE TABLE INST, Here is a database schema( table schema); | in 2007, what is the avg finish that had a start less than 1?It is not neccessary to use all the tables. |
SELECT English Name FROM table WHERE Provider(national government) = ministry of defense AND abbreviation = nda bōei-dai(防衛大) | CREATE TABLE INST, Here is a database schema( table schema); | What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)?.It is not neccessary to use all the tables. |
SELECT COUNT District FROM table WHERE Incumbent = William F. Norrell | CREATE TABLE INST, Here is a database schema( table schema); | How many districts had William F. Norrell as the incumbent?.It is not neccessary to use all the tables. |
SELECT 2002 FROM table_name_85 WHERE 2001 = "1–0" AND 2000 = "3–0" | CREATE TABLE INST, Here is a database schema( table schema); | What is in 2002 has a 2001 score 1 0, and a 2000 of 3 0?It is not neccessary to use all the tables. |
SELECT MIN("No.") FROM table_16840 WHERE "Years for Jazz" = '1985-88' | CREATE TABLE INST, Here is a database schema( table schema); | What is the number for years 1985-88It is not neccessary to use all the tables. |
SELECT TDP FROM table WHERE Model (list) = 4x0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the wattage/TDP associated with model name 4x0?.It is not neccessary to use all the tables. |
SELECT founding_date FROM table_2538117_7 WHERE founding_university = "Washington, D.C." | CREATE TABLE INST, Here is a database schema( table schema); | If the founding university is in Washington D.C. what was the founding date?It is not neccessary to use all the tables. |
SELECT date FROM table_name_67 WHERE away_team = "chester" | CREATE TABLE INST, Here is a database schema( table schema); | What date was Chester the away team?It is not neccessary to use all the tables. |
SELECT COUNT(milepost) FROM table_10568553_1 WHERE street_names = "Anne Street" | CREATE TABLE INST, Here is a database schema( table schema); | How many mileposts are there on Anne Street?It is not neccessary to use all the tables. |
SELECT Preliminary Average FROM table WHERE Evening Gown = 8.774 (6) | CREATE TABLE INST, Here is a database schema( table schema); | what is the preliminary average score when the evening gown score is 8.774 (6)?.It is not neccessary to use all the tables. |
SELECT affiliation FROM table_29836557_2 WHERE player = "Kevan George" | CREATE TABLE INST, Here is a database schema( table schema); | What university was Kevan George affiliated with?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Date = March 20 | CREATE TABLE INST, Here is a database schema( table schema); | What team played on March 20? .It is not neccessary to use all the tables. |
SELECT (SELECT "goals" FROM table_203_34 WHERE "season" = 2009) - (SELECT "goals" FROM table_203_34 WHERE "season" = 2005) | CREATE TABLE INST, Here is a database schema( table schema); | how many more goals did he have in 2009 than 2005 ?It is not neccessary to use all the tables. |
SELECT City FROM table WHERE Building = telus plaza south | CREATE TABLE INST, Here is a database schema( table schema); | Which city contains Telus Plaza South?.It is not neccessary to use all the tables. |
SELECT Loss FROM table WHERE Date = june 22 | CREATE TABLE INST, Here is a database schema( table schema); | Name the loss for june 22.It is not neccessary to use all the tables. |
SELECT MAX(founded) FROM table_13456202_1 WHERE school = "North College Hill High school" | CREATE TABLE INST, Here is a database schema( table schema); | WHat year was north college hill high school founded?It is not neccessary to use all the tables. |
SELECT AVG 2007 FROM table WHERE 2009 > 2.8 AND 2010 = 4.9 AND 2006 < 2.5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average 2007 value with a 2009 value greater than 2.8, a 4.9 in 2010, and a 2006 less than 2.5?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Loss = myers (5-6) | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the game with a loss of Myers (5-6)?.It is not neccessary to use all the tables. |
SELECT sport FROM table_name_93 WHERE date < 2006 AND loser = "france b" | CREATE TABLE INST, Here is a database schema( table schema); | What sport was played before 2006 with a loser of france b?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Therapeutic drug monitor" AND lab."CATEGORY" = "Blood Gas" | CREATE TABLE INST, Here is a database schema( table schema); | what is the number of patients whose diagnoses short title is therapeutic drug monitor and lab test category is blood gas?It is not neccessary to use all the tables. |
SELECT date of debut FROM table WHERE date of birth = 24-10-1887 | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of debut that has a date of birth listed at 24-10-1887?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE College/Junior/Club Team (League) = hc cska moscow (russia) | CREATE TABLE INST, Here is a database schema( table schema); | Which Player has a Hc Cska Moscow (Russia)?.It is not neccessary to use all the tables. |
SELECT AVG(week) FROM table_name_65 WHERE opponent = "baltimore colts" AND attendance < 55 OFFSET 137 | CREATE TABLE INST, Here is a database schema( table schema); | Which Week has an Opponent of baltimore colts and an Attendance smaller than 55137?It is not neccessary to use all the tables. |
SELECT COUNT Position FROM table WHERE Goal Difference > -17 AND Played < 38 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the total number of positions with goal difference more than -17 and played less than 38.It is not neccessary to use all the tables. |
SELECT sspec_number FROM table_16729930_18 WHERE tdp = "3.6 W" AND model_number = "Atom E665C" | CREATE TABLE INST, Here is a database schema( table schema); | For a processor with model number atom e665c and a TDP of 3.6 W what is the sSpec number?It is not neccessary to use all the tables. |
SELECT Played FROM table WHERE Lost = 5 | CREATE TABLE INST, Here is a database schema( table schema); | Name the played with lost of 5.It is not neccessary to use all the tables. |
SELECT AVG(total) FROM table_name_12 WHERE country = "united states" AND player = "andy north" | CREATE TABLE INST, Here is a database schema( table schema); | Which Total has a Country of united states and a Player of andy north?It is not neccessary to use all the tables. |
SELECT SUM Round FROM table WHERE Team = team impul AND Date = 8 july | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of team impul with the date of 8 july.It is not neccessary to use all the tables. |
SELECT COUNT Floors FROM table WHERE Year < 2008 AND Name = guinness tower | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of floors that have years under 2008 and were named Guinness Tower?.It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE Round = 7 AND College = oklahoma | CREATE TABLE INST, Here is a database schema( table schema); | What position does the player from Oklahoma who was drafted in round 7 play?.It is not neccessary to use all the tables. |
SELECT height_m__ft_ FROM table_name_77 WHERE rank > 10 AND name = "tameer tower" | CREATE TABLE INST, Here is a database schema( table schema); | What is the height for rank greater than 10 in Tameer Tower?It is not neccessary to use all the tables. |
SELECT SUM Revenue ($M) FROM table WHERE Debt as %of value > 27 AND Operating income($m) = 77 | CREATE TABLE INST, Here is a database schema( table schema); | What was the sum of Revenue ($M), when the Debt as % of value was higher than 27, and the Operating income($m) was 77?.It is not neccessary to use all the tables. |
SELECT league FROM table_name_41 WHERE apps < 15 AND goals = 0 AND club = "sparta prague" | CREATE TABLE INST, Here is a database schema( table schema); | Which league has less than 15 apps and 0 goals with sparta prague?It is not neccessary to use all the tables. |
SELECT MIN(2 AS nd_throw) FROM table_17265535_7 WHERE equation = "8 × 9² + 8 × 9 + 8" | CREATE TABLE INST, Here is a database schema( table schema); | If the equation is 8 × 9² + 8 × 9 + 8 what is the 2nd throw?It is not neccessary to use all the tables. |
SELECT MIN Total FROM table WHERE Second = 55 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Total, when Second is "55"?.It is not neccessary to use all the tables. |
SELECT martin FROM table_name_36 WHERE date = "july 8–9, 2008" | CREATE TABLE INST, Here is a database schema( table schema); | What martin is on july 8–9 2008?It is not neccessary to use all the tables. |
SELECT population__2010_ FROM table_1691800_2 WHERE municipality = "San Jacinto" | CREATE TABLE INST, Here is a database schema( table schema); | what is the population where municipality is san jacinto?It is not neccessary to use all the tables. |
SELECT "Asia" FROM table_22767 WHERE "Latin America/Caribbean" = '783 (7.5%)' | CREATE TABLE INST, Here is a database schema( table schema); | what will the population of Asia be when Latin America/Caribbean is 783 (7.5%)?It is not neccessary to use all the tables. |
SELECT english_version FROM table_25173505_13 WHERE buena_vista_edition = "Daisuke Gouri" | CREATE TABLE INST, Here is a database schema( table schema); | what is the english version that is buena vista edition is daisuke gouri?It is not neccessary to use all the tables. |
SELECT Pick FROM table WHERE Round < 4 AND School/Club Team = ucla | CREATE TABLE INST, Here is a database schema( table schema); | What pick in a round earlier than 4 did UCLA choose their pick?.It is not neccessary to use all the tables. |
SELECT COUNT Liberal candidates FROM table WHERE Seats in House < 245 AND Popular vote > 350,512 AND Seats won < 139 AND Seat Change = +28 | CREATE TABLE INST, Here is a database schema( table schema); | How many Liberal candidates have Seats in House smaller than 245, and a Popular vote larger than 350,512, and Seats won smaller than 139, and a Seat Change of +28?.It is not neccessary to use all the tables. |
SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY AVG(age) DESC | CREATE TABLE INST, Here is a database schema( table schema); | Return a histogram on how old is the average person for each job?, and could you list by the y axis in desc please?It is not neccessary to use all the tables. |
SELECT date FROM table_27700375_7 WHERE game = 23 | CREATE TABLE INST, Here is a database schema( table schema); | what is the date of the game 23?It is not neccessary to use all the tables. |
SELECT season FROM table_10748727_1 WHERE team_name = "ART Grand Prix" | CREATE TABLE INST, Here is a database schema( table schema); | What years did art grand prix compete?It is not neccessary to use all the tables. |
SELECT Clubs remaining FROM table WHERE Winners from previous round = 4 | CREATE TABLE INST, Here is a database schema( table schema); | How many clubs are remaining when the winners from the previous round totals 4?.It is not neccessary to use all the tables. |
SELECT AVG API level FROM table WHERE Release date = february 9, 2011 | CREATE TABLE INST, Here is a database schema( table schema); | with release date of february 9, 2011, what is the api level?.It is not neccessary to use all the tables. |
SELECT GP–GS FROM table WHERE Season = 2009 | CREATE TABLE INST, Here is a database schema( table schema); | What was the GP-GS for the 2009 season?.It is not neccessary to use all the tables. |
SELECT copa_libertadores_1997 FROM table_14310205_1 WHERE supercopa_1996 = "QF" | CREATE TABLE INST, Here is a database schema( table schema); | what is th copa libertadores 1997 is qf?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT icustays.icustay_id) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 90663) AND DATETIME(icustays.intime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | CREATE TABLE INST, Here is a database schema( table schema); | how many times did patient 90663 visit an icu in this year?It is not neccessary to use all the tables. |
SELECT country FROM table_name_59 WHERE prize = "¥300,000" AND director_s_ = "kota nagaoka" | CREATE TABLE INST, Here is a database schema( table schema); | Which country did the Director(s) of kota nagaoka come from and win ¥300000?It is not neccessary to use all the tables. |
SELECT genre FROM table_name_85 WHERE language = "hindi" AND network = "set max" | CREATE TABLE INST, Here is a database schema( table schema); | What genre is Set Max's Hindi programming?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Place = t7 AND Score = 70-71=141 | CREATE TABLE INST, Here is a database schema( table schema); | Who placed t7 with a score of 70-71=141?.It is not neccessary to use all the tables. |
SELECT MAX FLap FROM table WHERE Class = 500 cc | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest flap for class 500 cc?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_11 WHERE visitor = "knicks" AND attendance > 18 OFFSET 165 | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of the game where the vistor team was the Knicks and more than 18165 were in attendance?It is not neccessary to use all the tables. |
SELECT captain FROM table_name_34 WHERE manager = "billy bonds" | CREATE TABLE INST, Here is a database schema( table schema); | Which captain has billy bonds as the manager?It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Away team score = 15.9 (99) | CREATE TABLE INST, Here is a database schema( table schema); | What is the venue when the away team scored 15.9 (99)?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Tie no = 29 | CREATE TABLE INST, Here is a database schema( table schema); | On what day was Tie #29 played?.It is not neccessary to use all the tables. |
SELECT year FROM table_name_55 WHERE class = "125cc" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the year for class of 125ccIt is not neccessary to use all the tables. |
SELECT round___race FROM table_name_32 WHERE winning_driver = "charles hollings" AND pole_position = "charles hollings" | CREATE TABLE INST, Here is a database schema( table schema); | What is the round or race of the winning driver Charles Hollings and what was his pole position?It is not neccessary to use all the tables. |
SELECT Visitor FROM table WHERE Attendance > 16,182 AND Record = 6–3 | CREATE TABLE INST, Here is a database schema( table schema); | What team was the visitor when there were more than 16,182 people in attendance and the record was 6–3?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Country = united states AND To par = +4 | CREATE TABLE INST, Here is a database schema( table schema); | What is Score, when Country is "United States", and when To Par is "+4"?.It is not neccessary to use all the tables. |
SELECT position FROM table_name_76 WHERE round = 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the position played for the player drafted in round 2?It is not neccessary to use all the tables. |
SELECT Partner FROM table WHERE Surface = Hard | CREATE TABLE INST, Here is a database schema( table schema); | Who was Betty's partner when the surface is hard?.It is not neccessary to use all the tables. |
SELECT result FROM table_name_39 WHERE game_site = "psinet stadium" AND opponent = "cincinnati bengals" | CREATE TABLE INST, Here is a database schema( table schema); | What's the result at psinet stadium when the cincinnati bengals are the opponent?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.