sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT d_50 FROM table_name_65 WHERE d_41 = "d 41" | CREATE TABLE INST, Here is a database schema( table schema); | What is the D 50 when the D 41 is d 41?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 demographic.days_stay > "7" AND prescriptions.drug = "Oseltamivir" | CREATE TABLE INST, Here is a database schema( table schema); | find the number of patients who were given the drug oseltamivir had stayed in the hospital for more than 7 days.It is not neccessary to use all the tables. |
SELECT COUNT Record FROM table WHERE Game = 27 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of record for 27.It is not neccessary to use all the tables. |
SELECT MAX Matches FROM table WHERE Team = deccan chargers AND Strike Rate > 15.5 | CREATE TABLE INST, Here is a database schema( table schema); | What were the total number of matches played when the Deccan Chargers had a strike rate of 15.5?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Team = oakland raiders | CREATE TABLE INST, Here is a database schema( table schema); | What is the player when the team is oakland raiders?.It is not neccessary to use all the tables. |
SELECT MAX(grid) FROM table_name_1 WHERE laps = 55 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest grid that has 55 laps?It is not neccessary to use all the tables. |
SELECT dimensions FROM table_298883_5 WHERE obverse = "Kim Il-sung" AND date_of_issue = "1992" | CREATE TABLE INST, Here is a database schema( table schema); | What are the dimensions of the coin issued in 1992 with kim il-sung on the obverse?It is not neccessary to use all the tables. |
SELECT superlative FROM table_name_92 WHERE year > 1984 AND actress = "gloria stuart" | CREATE TABLE INST, Here is a database schema( table schema); | Which award was won by Gloria Stuart after 1984?It is not neccessary to use all the tables. |
SELECT Round FROM table WHERE Event = jiu-jitsu vs martial arts | CREATE TABLE INST, Here is a database schema( table schema); | What is the Round for the jiu-jitsu vs martial arts?.It is not neccessary to use all the tables. |
SELECT SUM Pick FROM table WHERE Name = ed hickerson AND Round < 10 | CREATE TABLE INST, Here is a database schema( table schema); | Which Pick has a Name of ed hickerson, and a Round smaller than 10?.It is not neccessary to use all the tables. |
SELECT max_torque_at_rpm FROM table_name_31 WHERE engine_code_s_ = "bmm" | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximum torque at rpm for the engine with code BMM?It is not neccessary to use all the tables. |
SELECT Band FROM table WHERE Area served = darwin AND Purpose = commercial | CREATE TABLE INST, Here is a database schema( table schema); | Which band serves darwin for commercial purpose?.It is not neccessary to use all the tables. |
SELECT StuID FROM Student WHERE Advisor = 1121 | CREATE TABLE INST, Here is a database schema( table schema); | Show ids for all students who have advisor 1121.It is not neccessary to use all the tables. |
SELECT MAX(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%" | CREATE TABLE INST, Here is a database schema( table schema); | What are the account details with the largest value or with value having char '5' in it?It is not neccessary to use all the tables. |
SELECT SUM(fa_cup) FROM table_name_50 WHERE fa_trophy > 0 AND club = "stalybridge celtic" AND total < 20 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of FA cups of club Stalybridge Celtic, which has more than 0 FA trophies and a total less than 20?It is not neccessary to use all the tables. |
SELECT COUNT Population FROM table WHERE County = stockholm county AND Municipality = danderyd municipality AND Code < 162 | CREATE TABLE INST, Here is a database schema( table schema); | What is the population of Danderyd municipality in Stockholm County with a code lower than 162?.It is not neccessary to use all the tables. |
SELECT nfl_team FROM table_10650711_1 WHERE player = "Clifford Charlton" | CREATE TABLE INST, Here is a database schema( table schema); | what's the nfl team where player is clifford charltonIt is not neccessary to use all the tables. |
SELECT COUNT Crowd FROM table WHERE Away team = south melbourne | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance of the South Melbourne away game?.It is not neccessary to use all the tables. |
SELECT SUM(rank) FROM table_name_6 WHERE wins = 17 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the sum of rank with wins of 17It is not neccessary to use all the tables. |
SELECT COUNT Nominee FROM table WHERE Vote to Evict = 3.92% | CREATE TABLE INST, Here is a database schema( table schema); | How many nominee's had a vote to evict percentage of 3.92%.It is not neccessary to use all the tables. |
SELECT Week Sent To Third Island FROM table WHERE Week Arrived On Main Island = 6 | CREATE TABLE INST, Here is a database schema( table schema); | What week was the member who arrived on the main island in week 6 sent to the third island?.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Week # = top 11 | CREATE TABLE INST, Here is a database schema( table schema); | What was the result after the week # top 11?.It is not neccessary to use all the tables. |
SELECT MIN(round) FROM table_name_86 WHERE pick__number = 12 AND position = "linebacker" | CREATE TABLE INST, Here is a database schema( table schema); | Which is the lowest round to have a pick of 12 and position of linebacker?It is not neccessary to use all the tables. |
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >... | CREATE TABLE INST, Here is a database schema( table schema); | what are the three most frequently given procedures for patients with age 60 or above?It is not neccessary to use all the tables. |
SELECT MIN(poles) FROM table_10705060_1 | CREATE TABLE INST, Here is a database schema( table schema); | what is the least number of poles?It is not neccessary to use all the tables. |
SELECT COUNT Overall FROM table WHERE Title = This is What They Want | CREATE TABLE INST, Here is a database schema( table schema); | How may overall episodes had the title "this is what they want"?.It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Location/Attendance = delta center AND Record = 27-13 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent when they played at Delta Center with a record of 27-13?.It is not neccessary to use all the tables. |
SELECT individual FROM table_name_33 WHERE event = "1998 pokljuka" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the individual in the event of 1998 Pokljuka?It is not neccessary to use all the tables. |
SELECT AVG(_number_of_candidates) FROM table_name_36 WHERE _percentage_of_popular_vote = "41.37%" | CREATE TABLE INST, Here is a database schema( table schema); | What is the # of candidates that have a popular vote of 41.37%?It is not neccessary to use all the tables. |
SELECT Gross MW FROM table WHERE Type = phase ii | CREATE TABLE INST, Here is a database schema( table schema); | Type of phase ii has what gross mw?.It is not neccessary to use all the tables. |
SELECT Seasons FROM table WHERE No. = 3 | CREATE TABLE INST, Here is a database schema( table schema); | what are the seasons for no 3?.It is not neccessary to use all the tables. |
SELECT Round FROM table WHERE Opponent = wakefield trinity wildcats u21 AND Venue = belle vue | CREATE TABLE INST, Here is a database schema( table schema); | what round saw wakefield trinity wildcats u21 as the opponenet at belle vue?.It is not neccessary to use all the tables. |
SELECT country FROM table_name_67 WHERE base = "ljubljana" | CREATE TABLE INST, Here is a database schema( table schema); | what is the country when the base is ljubljana?It is not neccessary to use all the tables. |
SELECT finish FROM table_name_67 WHERE start = "19" | CREATE TABLE INST, Here is a database schema( table schema); | What is the finish value for a start of 19?It is not neccessary to use all the tables. |
SELECT Winning driver FROM table WHERE Year = 1956 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the winning driver in 1956?.It is not neccessary to use all the tables. |
SELECT leading_scorer FROM table_name_78 WHERE date = "23 february 2008" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the leading scorer on 23 February 2008?It is not neccessary to use all the tables. |
SELECT code_name FROM table_25005714_3 WHERE model = "Radeon HD 6650M" | CREATE TABLE INST, Here is a database schema( table schema); | What is every code name for the model Radeon HD 6650m?It is not neccessary to use all the tables. |
SELECT SUM Round FROM table WHERE Opponent = brett chism | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of the rounds of the match with brett chism as the opponent?.It is not neccessary to use all the tables. |
SELECT League Cup Apps FROM table WHERE Position = mf AND League Goals > 3 AND Total Apps = 30 (2) | CREATE TABLE INST, Here is a database schema( table schema); | What is the league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf?.It is not neccessary to use all the tables. |
SELECT COUNT(party) FROM table_1341423_38 WHERE incumbent = "Bob Brady" | CREATE TABLE INST, Here is a database schema( table schema); | How many parties is the incumbent Bob Brady a member of?It is not neccessary to use all the tables. |
SELECT college_junior_club_team FROM table_1013129_11 WHERE nhl_team = "St. Louis Blues" | CREATE TABLE INST, Here is a database schema( table schema); | What college/junior/club teams do the players from the St. Louis Blues come from?It is not neccessary to use all the tables. |
SELECT MAX(sdlp) FROM table_28005809_2 WHERE council = "Belfast" | CREATE TABLE INST, Here is a database schema( table schema); | What is the SDLP of Belfast?It is not neccessary to use all the tables. |
SELECT MAX(matches) FROM table_name_75 WHERE loses = 2 AND pos < 2 | CREATE TABLE INST, Here is a database schema( table schema); | Loses of 2 and a Pos. smaller than 2 had how many highest matches?It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE Round = 7 AND College = kansas state | CREATE TABLE INST, Here is a database schema( table schema); | Which position has a Round of 7, and a College of kansas state?.It is not neccessary to use all the tables. |
SELECT COUNT(result) FROM table_1341395_22 WHERE incumbent = "Mike Capuano" | CREATE TABLE INST, Here is a database schema( table schema); | How many times was the incumbent mike capuanoIt is not neccessary to use all the tables. |
SELECT MAX Position FROM table WHERE Goals against = 24 AND Played < 30 | CREATE TABLE INST, Here is a database schema( table schema); | Which Position has 24 Goals against, and a Played smaller than 30?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_24786958_2 WHERE attendance = 30701 | CREATE TABLE INST, Here is a database schema( table schema); | Who did Rhein Fire play Against where 30701 people attended?It is not neccessary to use all the tables. |
SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_n... | CREATE TABLE INST, Here is a database schema( table schema); | what airlines go from ATLANTA to BALTIMOREIt is not neccessary to use all the tables. |
SELECT Jobbik FROM table WHERE Fidesz = 61% AND others = 2% | CREATE TABLE INST, Here is a database schema( table schema); | What is the Jobbik percentage with a Fidesz of 61% and others of 2%?.It is not neccessary to use all the tables. |
SELECT AVG(grid) FROM table_name_66 WHERE laps = 88 | CREATE TABLE INST, Here is a database schema( table schema); | What's the average Grid with Laps of 88?It is not neccessary to use all the tables. |
SELECT Runner-up FROM table WHERE Tournament = japan open | CREATE TABLE INST, Here is a database schema( table schema); | Who was the Japan open runner up?.It is not neccessary to use all the tables. |
SELECT MAX(position) FROM table_name_48 WHERE played < 42 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest position for less than 42 played?It is not neccessary to use all the tables. |
SELECT nationality FROM table_name_96 WHERE time = "1:55.35" | CREATE TABLE INST, Here is a database schema( table schema); | What nationality has 1:55.35 as the time?It is not neccessary to use all the tables. |
SELECT home FROM table_name_3 WHERE date = "january 7" | CREATE TABLE INST, Here is a database schema( table schema); | Which home game has a date of January 7?It is not neccessary to use all the tables. |
SELECT MIN React FROM table WHERE Lane > 3 AND Time < 20.3 AND Nationality = zimbabwe AND Rank > 1 | CREATE TABLE INST, Here is a database schema( table schema); | What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time less than 20.3?.It is not neccessary to use all the tables. |
SELECT club_team FROM table_name_37 WHERE nationality = "canada" AND overall = "15" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Overall of 15 Club team with a Nationality of Canada?It is not neccessary to use all the tables. |
SELECT dipole_moment___d__ FROM table_name_78 WHERE solvent = "ethyl acetate (etoac)" | CREATE TABLE INST, Here is a database schema( table schema); | What's the dipole moment of ethyl acetate (etoac)?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Game = 38 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Team in Game 38?.It is not neccessary to use all the tables. |
SELECT country FROM table_name_72 WHERE heat_rank < 8 AND overall_rank = "56" | CREATE TABLE INST, Here is a database schema( table schema); | Which country is ranked 56 overall and has a heat rank smaller than 8?It is not neccessary to use all the tables. |
SELECT streak FROM table_name_18 WHERE date = "dec. 12" | CREATE TABLE INST, Here is a database schema( table schema); | What was the streak after the game on Dec. 12?It is not neccessary to use all the tables. |
SELECT Park and ride? FROM table WHERE Station = Roosevelt U | CREATE TABLE INST, Here is a database schema( table schema); | Name the park and ride for roosevelt u.It is not neccessary to use all the tables. |
SELECT Location Attendance FROM table WHERE Team = @ milwaukee | CREATE TABLE INST, Here is a database schema( table schema); | When the team is @ Milwaukee, what is the name of the location where the game is played?.It is not neccessary to use all the tables. |
SELECT Function % FROM table WHERE Estimated function % = 20 | CREATE TABLE INST, Here is a database schema( table schema); | What is the function percentage when the estimated function percentage is 20?.It is not neccessary to use all the tables. |
SELECT COUNT(population__1991_) FROM table_2562572_7 WHERE population__2002_ = 14250 | CREATE TABLE INST, Here is a database schema( table schema); | What is the population (1991) where population (2002) was 14250?It is not neccessary to use all the tables. |
SELECT genre FROM table_name_44 WHERE year = "2012 (16th)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the genre for the year 2012 (16th)?It is not neccessary to use all the tables. |
SELECT DISTINCT name FROM wine ORDER BY price | CREATE TABLE INST, Here is a database schema( table schema); | What are the names of wines, sorted by price ascending?It is not neccessary to use all the tables. |
SELECT MIN Season FROM table WHERE Last Aired = august 20, 2010 | CREATE TABLE INST, Here is a database schema( table schema); | Of the series that last aired August 20, 2010, what is the lowest number of seasons?.It is not neccessary to use all the tables. |
SELECT COUNT Week FROM table WHERE Attendance = 74716 | CREATE TABLE INST, Here is a database schema( table schema); | In what week number was the attendance 74716?.It is not neccessary to use all the tables. |
SELECT chassis FROM table_name_80 WHERE engine = "ferrari flat-12" AND points > 1 | CREATE TABLE INST, Here is a database schema( table schema); | A ferrari flat-12 engine with more than 1 point has what kind of chassis?It is not neccessary to use all the tables. |
SELECT year FROM table_name_75 WHERE laps = 134 | CREATE TABLE INST, Here is a database schema( table schema); | What year had 134 laps?It is not neccessary to use all the tables. |
SELECT COUNT(filipino) FROM table_10118412_6 WHERE indian = 30947 | CREATE TABLE INST, Here is a database schema( table schema); | How many States have an Indian population of 30947?It is not neccessary to use all the tables. |
SELECT season FROM table_175980_2 WHERE ranking = "#47" | CREATE TABLE INST, Here is a database schema( table schema); | What seasons had a ranking of #47?It is not neccessary to use all the tables. |
SELECT COUNT Womens doubles FROM table WHERE Mens singles = Jamie van Hooijdonk | CREATE TABLE INST, Here is a database schema( table schema); | How many women doubles teams competed in the same year as when Jamie van Hooijdonk competed in men singles?.It is not neccessary to use all the tables. |
SELECT original_air_date FROM table_10718868_2 WHERE no_in_season = 15 | CREATE TABLE INST, Here is a database schema( table schema); | What is the original air date for episode 15 of season 6?It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE Candidate = grech louis grech | CREATE TABLE INST, Here is a database schema( table schema); | Which party's candidate is Grech Louis Grech?.It is not neccessary to use all the tables. |
SELECT Club FROM table WHERE Points against = 239 | CREATE TABLE INST, Here is a database schema( table schema); | What club got 239 points against?.It is not neccessary to use all the tables. |
SELECT SUM(enrollment) FROM table_name_30 WHERE school = "highland" | CREATE TABLE INST, Here is a database schema( table schema); | What is the enrollment for the school Highland?It is not neccessary to use all the tables. |
SELECT finale FROM table_name_61 WHERE season = 3 | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of the finale for Season 3?It is not neccessary to use all the tables. |
SELECT stadium FROM table_name_48 WHERE city = "halifax" | CREATE TABLE INST, Here is a database schema( table schema); | What stadium is located in Halifax?It is not neccessary to use all the tables. |
SELECT nhl_team FROM table_name_45 WHERE player = "rob white" | CREATE TABLE INST, Here is a database schema( table schema); | What NHL team does Rob White play on?It is not neccessary to use all the tables. |
SELECT Directed by FROM table WHERE Written by = robin schwartz & robert tarlow | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the director of the episode written by robin schwartz & robert tarlow?.It is not neccessary to use all the tables. |
SELECT team_2 FROM table_name_87 WHERE captain_1 = "final" | CREATE TABLE INST, Here is a database schema( table schema); | Which Team 2 has a Captain 1 of final?It is not neccessary to use all the tables. |
SELECT High rebounds FROM table WHERE Location Attendance = American Airlines Center 20,557 | CREATE TABLE INST, Here is a database schema( table schema); | Name the high rebounds for american airlines center 20,557.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Round > 6 AND Position = d | CREATE TABLE INST, Here is a database schema( table schema); | What player has a round larger than 6 with a D position..It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear < "2198" | CREATE TABLE INST, Here is a database schema( table schema); | what is the number of patients whose marital status is married and admission year is less than 2198?It is not neccessary to use all the tables. |
SELECT AVG Rank FROM table WHERE Opposition = tipperary AND County = limerick AND Total > 12 | CREATE TABLE INST, Here is a database schema( table schema); | In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition?.It is not neccessary to use all the tables. |
SELECT location_attendance FROM table_27722408_8 WHERE team = "San Antonio" | CREATE TABLE INST, Here is a database schema( table schema); | What was location and attendance for the game where the Celtics played San Antonio?It is not neccessary to use all the tables. |
SELECT dvd_name FROM table_name_61 WHERE duration = "2 hours 22 minutes" | CREATE TABLE INST, Here is a database schema( table schema); | What DVD has a time of 2 hours 22 minutes?It is not neccessary to use all the tables. |
SELECT Class C Winner FROM table WHERE Round = 8 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the Class C winner in round 8?.It is not neccessary to use all the tables. |
SELECT Religious group FROM table WHERE Population % 2001 = 0.72% | CREATE TABLE INST, Here is a database schema( table schema); | What religious groups made up 0.72% of the Indian population in 2001?.It is not neccessary to use all the tables. |
SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the primary conference of the school that has the lowest acc percent score in the competition?It is not neccessary to use all the tables. |
SELECT Elevated FROM table WHERE Cardinalatial order and title = cardinal-priest of s. pudenziana | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of elevation for the cardinal given the order and title of Cardinal-Priest of S. Pudenziana?.It is not neccessary to use all the tables. |
SELECT COUNT Wins FROM table WHERE Earnings ( $ ) = 313,845 AND Rank > 4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of wins for golfers whose earnings are 313,845 dollars and rank is larger than 4?.It is not neccessary to use all the tables. |
SELECT 2012 FROM table_name_28 WHERE 2011 = "qf" AND 2010 = "3r" | CREATE TABLE INST, Here is a database schema( table schema); | what is the 2012 performance when in 2011 is qf and 2010 is 3r?It is not neccessary to use all the tables. |
SELECT COUNT Attendance FROM table WHERE Visitor = cavaliers | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of attendance when the cavaliers visited.It is not neccessary to use all the tables. |
SELECT 2010 FROM table_name_46 WHERE 2011 = "2r" AND 2008 = "2r" | CREATE TABLE INST, Here is a database schema( table schema); | what is 2010 when 2011 is 2r and 2008 is 2r?It is not neccessary to use all the tables. |
SELECT league FROM table_name_65 WHERE year = 2011 | CREATE TABLE INST, Here is a database schema( table schema); | What league played in 2011?It is not neccessary to use all the tables. |
SELECT COUNT(team) FROM table_15869204_7 WHERE date = "February 18" | CREATE TABLE INST, Here is a database schema( table schema); | How many teams are listed for February 18?It is not neccessary to use all the tables. |
SELECT U.S. viewers (million) FROM table WHERE Written by = Matthew Okumura | CREATE TABLE INST, Here is a database schema( table schema); | How many millions of viewers are listed where the writer is Matthew Okumura?.It is not neccessary to use all the tables. |
SELECT Episode Title FROM table WHERE Original Airdate = march 31, 2008 | CREATE TABLE INST, Here is a database schema( table schema); | What is the title of the episode that originally aired on March 31, 2008?.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.