sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT ncbi_accession_number__mrna_protein_ FROM table_name_63 WHERE species = "homo sapiens" | CREATE TABLE INST, Here is a database schema( table schema); | What is the NCBI Accession Number (mRNA/Protein) for the homo sapiens Species?It is not neccessary to use all the tables. |
SELECT human_gene__protein_ FROM table_name_41 WHERE yeast_ortholog = "rad26" | CREATE TABLE INST, Here is a database schema( table schema); | What human gene has a yeast ortholog of RAD26?It is not neccessary to use all the tables. |
SELECT Nation FROM table WHERE Athlete = Sebastian Coe Category:Articles with hCards | CREATE TABLE INST, Here is a database schema( table schema); | What nation had the athlete sebastian coe category:articles with hcards?.It is not neccessary to use all the tables. |
SELECT COUNT Loses FROM table WHERE Position = 4 AND Goals conceded < 23 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of loses of the club with a 4 position and less than 23 goals conceded?.It is not neccessary to use all the tables. |
SELECT COUNT(total_viewers__in_millions_) FROM table_12419515_4 WHERE series__number = 57 | CREATE TABLE INST, Here is a database schema( table schema); | How many millions of total viewers watched series #57?It is not neccessary to use all the tables. |
SELECT MIN(round) FROM table_name_12 WHERE time = "1:09" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest round number for the fight that had a time of 1:09?It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_28 WHERE week < 3 AND date = "september 23, 1960" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent in a week below 3 on September 23 1960?It is not neccessary to use all the tables. |
SELECT T1.name, T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance | CREATE TABLE INST, Here is a database schema( table schema); | Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.It is not neccessary to use all the tables. |
SELECT Starter FROM table WHERE Touchdowns = 3 | CREATE TABLE INST, Here is a database schema( table schema); | Was there a starter when 3 touchdowns were scored?.It is not neccessary to use all the tables. |
SELECT place FROM table_name_96 WHERE to_par = "–6" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Place of the Player with a To par of –6?It is not neccessary to use all the tables. |
SELECT country FROM table_name_65 WHERE score = 70 - 74 - 69 = 213 | CREATE TABLE INST, Here is a database schema( table schema); | What is the country with a 70-74-69=213 score?It is not neccessary to use all the tables. |
SELECT AVG Against FROM table WHERE Lost < 7 AND Drawn > 6 AND Points = 25 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average against score of all teams with less than 7 losses, more than 6 draws, and 25 points?.It is not neccessary to use all the tables. |
SELECT Air_Date FROM TV_series WHERE Episode = "A Love of a Lifetime" | CREATE TABLE INST, Here is a database schema( table schema); | What is the air date of TV series with Episode "A Love of a Lifetime"?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Candidate = Stacy Schneider | CREATE TABLE INST, Here is a database schema( table schema); | When stacy schneider is the candidate what are the results?.It is not neccessary to use all the tables. |
SELECT weight FROM table_20861261_4 WHERE college = "Southern California" | CREATE TABLE INST, Here is a database schema( table schema); | How much does the player from Southern California weight?It is not neccessary to use all the tables. |
SELECT No. in season FROM table WHERE Written by = R. Scott Gemmill AND Directed by = Ray Austin | CREATE TABLE INST, Here is a database schema( table schema); | which is the number of the season episode whose writer is R. Scott Gemmill and the Director is Ray Austin?.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 WHERE demographic.days_stay > "8" AND diagnoses.long_title = "Ostium secundum type atrial septal defect" | CREATE TABLE INST, Here is a database schema( table schema); | give me the number of patients whose days of hospital stay is greater than 8 and diagnoses long title is ostium secundum type atrial septal defect?It is not neccessary to use all the tables. |
SELECT COUNT(lane) FROM table_name_8 WHERE mark = 7.93 AND react < 0.145 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of Lane when Mark is "7.93" and when React is less than 0.145?It is not neccessary to use all the tables. |
SELECT original_artist FROM table_26250155_1 WHERE theme = "Group Performance" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the original artist of the group performance theme?It is not neccessary to use all the tables. |
SELECT Chassis FROM table WHERE Entrant = danka arrows yamaha | CREATE TABLE INST, Here is a database schema( table schema); | What is the company that made the chassis for the entrant danka arrows yamaha?.It is not neccessary to use all the tables. |
SELECT guns FROM table_name_63 WHERE class = "third-rate ship of the line" AND rank = "vice-admiral" AND year = "1802" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802It is not neccessary to use all the tables. |
SELECT title__french_____english_ FROM table_19485888_1 WHERE b_b_ = _corresponds_to_tf1s_broadcast_schedule = 20 / 16 | CREATE TABLE INST, Here is a database schema( table schema); | what is the title of the episode where b b is 20/16It is not neccessary to use all the tables. |
SELECT Nationality FROM table WHERE Time = 50.92 | CREATE TABLE INST, Here is a database schema( table schema); | Which nationality has a time of 50.92?.It is not neccessary to use all the tables. |
SELECT MIN(political_rights) FROM table_name_54 WHERE year = 1976 | CREATE TABLE INST, Here is a database schema( table schema); | What is the least political rights rank in 1976?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Choreographer(s) = bjørn holthe | CREATE TABLE INST, Here is a database schema( table schema); | What is the result of choreographer bjørn holthe?.It is not neccessary to use all the tables. |
SELECT MAX Laps FROM table WHERE Class = v8 AND Entrant = diet-coke racing | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest amount of laps when the class was v8 and the entrant was diet-coke racing?.It is not neccessary to use all the tables. |
SELECT written_by FROM table_28348757_6 WHERE production_code = "XLE05012" | CREATE TABLE INST, Here is a database schema( table schema); | Who wrote the episode with the code xle05012?It is not neccessary to use all the tables. |
SELECT "Venue" FROM table_33317 WHERE "Home team score" = '11.14 (80)' | CREATE TABLE INST, Here is a database schema( table schema); | For the match with a home team score of 11.14 (80), what was the venue?It is not neccessary to use all the tables. |
SELECT architect FROM table_name_43 WHERE built < 1915 AND building = "electric railway chambers" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the architect that built the Electric Railway Chambers before 1915?It is not neccessary to use all the tables. |
SELECT loss FROM table_name_22 WHERE attendance = "18,769" | CREATE TABLE INST, Here is a database schema( table schema); | What was the loss of the game that had an attendance of 18769?It is not neccessary to use all the tables. |
SELECT MAX(enrollment) FROM table_10577579_2 WHERE founded = 1866 AND type = "Private/(African Methodist)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the enrollment for the institution that was founded in 1866 and is a private/(african methodist) type?It is not neccessary to use all the tables. |
SELECT Points FROM table WHERE Points for = 546 | CREATE TABLE INST, Here is a database schema( table schema); | Nantyglo RFC had 546 points for and how many points?.It is not neccessary to use all the tables. |
SELECT SUM(week) FROM table_name_23 WHERE attendance = "75,555" | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE WEEK WITH AN ATTENDANCE OF 75555?It is not neccessary to use all the tables. |
SELECT home FROM table_name_11 WHERE date = "december 5, 2007" | CREATE TABLE INST, Here is a database schema( table schema); | Who was Home on December 5 2007?It is not neccessary to use all the tables. |
SELECT Runner(s)-up FROM table WHERE Winning score = 67-66-65-69=267 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the Runner(s)-up in the race with a winning score of 67-66-65-69=267?.It is not neccessary to use all the tables. |
SELECT stadium FROM table_name_65 WHERE date = "november 20" | CREATE TABLE INST, Here is a database schema( table schema); | What stadium was the game played in on november 20?It is not neccessary to use all the tables. |
SELECT AVG(game) FROM table_name_49 WHERE opponent = "toronto maple leafs" AND february < 17 | CREATE TABLE INST, Here is a database schema( table schema); | What is the game number when the Toronto Maple Leafs were the opponent and the February was less than 17?It is not neccessary to use all the tables. |
SELECT COUNT Gold FROM table WHERE Total < 4 | CREATE TABLE INST, Here is a database schema( table schema); | How many total gold are less than 4?.It is not neccessary to use all the tables. |
SELECT COUNT(goals_for) FROM table_name_6 WHERE pct__percentage > 0.557 AND points < 90 AND games > 68 | CREATE TABLE INST, Here is a database schema( table schema); | How many Goals have a Pct % larger than 0.557 a points value smaller than 90 and a games value larger than 68?It is not neccessary to use all the tables. |
SELECT Control FROM table WHERE Founded = 1991 | CREATE TABLE INST, Here is a database schema( table schema); | What is the control type which was founded in 1991?.It is not neccessary to use all the tables. |
SELECT Winning driver FROM table WHERE Race = dutch grand prix | CREATE TABLE INST, Here is a database schema( table schema); | Who was the winning driver for the Dutch Grand Prix?.It is not neccessary to use all the tables. |
SELECT AVG Year FROM table WHERE Finish = 22 AND Team = swan | CREATE TABLE INST, Here is a database schema( table schema); | Which Year has a Finish of 22, and a Team of swan?.It is not neccessary to use all the tables. |
SELECT Date of Birth (Age) FROM table WHERE Player = paino hehea | CREATE TABLE INST, Here is a database schema( table schema); | What is Paino Hehea's date of birth?.It is not neccessary to use all the tables. |
SELECT Partner FROM table WHERE Date = 12 july 2009 | CREATE TABLE INST, Here is a database schema( table schema); | Which Partner has a Date of 12 july 2009?.It is not neccessary to use all the tables. |
SELECT Drawn FROM table WHERE Team = Corinthians | CREATE TABLE INST, Here is a database schema( table schema); | How many drawn does the team Corinthians have?.It is not neccessary to use all the tables. |
SELECT catalog__number FROM table_name_36 WHERE region = "united kingdom" | CREATE TABLE INST, Here is a database schema( table schema); | What is the catalog number of the album whose region is the United Kingdom?It is not neccessary to use all the tables. |
SELECT MAX(total_cargo__metric_tonnes_) FROM table_name_66 WHERE rank < 4 AND airport = "shanghai pudong international airport" | CREATE TABLE INST, Here is a database schema( table schema); | Which Total Cargo (Metric Tonnes) is the highest one that has a Rank smaller than 4 and an Airport of shanghai pudong international airport?It is not neccessary to use all the tables. |
SELECT COUNT(marginal_ordinary_income_tax_rate) FROM table_11647327_2 WHERE single = "$8,351– $33,950" | CREATE TABLE INST, Here is a database schema( table schema); | What is the amount of marginal ordinary income tax rate for single in which the range is $8351– $33950?It is not neccessary to use all the tables. |
SELECT Arrival FROM table WHERE Station Name = patna junction | CREATE TABLE INST, Here is a database schema( table schema); | What is the Arrival time of the Patna Junction Station?.It is not neccessary to use all the tables. |
SELECT "Champion" FROM table_42910 WHERE "Year" = '2008' | CREATE TABLE INST, Here is a database schema( table schema); | What is the Champion with a Year that is 2008?It is not neccessary to use all the tables. |
SELECT AVG(attendance) FROM table_name_23 WHERE record = "19-13" | CREATE TABLE INST, Here is a database schema( table schema); | What was the average attendance when the record was 19-13?It is not neccessary to use all the tables. |
SELECT time FROM table_name_78 WHERE opponent = "satoshi honma" | CREATE TABLE INST, Here is a database schema( table schema); | What is the time for an opponent of Satoshi Honma?It is not neccessary to use all the tables. |
SELECT "Date" FROM table_4426 WHERE "Outcome" = 'winner' AND "Opponents" = 'dinah pfizenmaier anna zaja' | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the date for dinah pfizenmaier anna zaja and winnerIt is not neccessary to use all the tables. |
SELECT Play-by-play announcer FROM table WHERE Trophy presentation = Chris Rose | CREATE TABLE INST, Here is a database schema( table schema); | Who is every play-by-play announcer when Chris Rose is the trophy presenter?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Away team score = 9.12 (66) | CREATE TABLE INST, Here is a database schema( table schema); | What Venue has an Away Team Score of 9.12 (66)?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_30 WHERE home_team = "halifax town" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Score of the Halifax Town Home game?It is not neccessary to use all the tables. |
SELECT platform FROM table_name_44 WHERE company = "surfstats software" | CREATE TABLE INST, Here is a database schema( table schema); | What platform is the company Surfstats Software?It is not neccessary to use all the tables. |
SELECT 1982 AS _83 FROM table_22606461_10 WHERE rank = 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is every entry for 1982-83 for rank 1?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Place = t5 AND Score = 69-72=141 | CREATE TABLE INST, Here is a database schema( table schema); | What is Player, when Place is "T5", and when Score is "69-72=141"?.It is not neccessary to use all the tables. |
SELECT Lname FROM FACULTY WHERE Building = "Barton" ORDER BY Lname | CREATE TABLE INST, Here is a database schema( table schema); | Find the last names of faculties in building Barton in alphabetic order.It is not neccessary to use all the tables. |
SELECT event FROM table_name_51 WHERE nation = "ethiopia" AND performance = "14:11.15" | CREATE TABLE INST, Here is a database schema( table schema); | What's the event that had a performance of 14:11.15 by Ethiopia?It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_90 WHERE site_stadium = "baum stadium" AND date = "april 6" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent at Baum Stadium on April 6?It is not neccessary to use all the tables. |
SELECT home_team AS score FROM table_name_10 WHERE venue = "glenferrie oval" | CREATE TABLE INST, Here is a database schema( table schema); | What was the home team score at Glenferrie Oval?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Time = 4:51 | CREATE TABLE INST, Here is a database schema( table schema); | Which Opponent has a Time of 4:51?.It is not neccessary to use all the tables. |
SELECT Res. FROM table WHERE Method = decision (unanimous) AND Opponent = marcus aurélio | CREATE TABLE INST, Here is a database schema( table schema); | In the match against Marcus Aurélio with a method of decision (unanimous), what was the results?.It is not neccessary to use all the tables. |
SELECT MIN Overall FROM table WHERE Round = 7 | CREATE TABLE INST, Here is a database schema( table schema); | Which Overall has a Round of 7?.It is not neccessary to use all the tables. |
SELECT Results¹ FROM table WHERE City = belgrade | CREATE TABLE INST, Here is a database schema( table schema); | What's the result of the game played in Belgrade?.It is not neccessary to use all the tables. |
SELECT sport FROM table_name_64 WHERE club = "rayo vallecano" | CREATE TABLE INST, Here is a database schema( table schema); | What sport is the rayo vallecano club in?It is not neccessary to use all the tables. |
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco" | CREATE TABLE INST, Here is a database schema( table schema); | Find the ids of the problems that are reported by the staff whose last name is Bosco.It is not neccessary to use all the tables. |
SELECT Captain(s) FROM table WHERE Competition = 2012 nrl season | CREATE TABLE INST, Here is a database schema( table schema); | Who is the captain of the 2012 NRL season competition?.It is not neccessary to use all the tables. |
SELECT COUNT(goals_for) FROM table_name_40 WHERE draws = 3 AND losses > 18 AND played < 38 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of goals when there are 3 draws, more than 18 losses, and played is smaller than 38?It is not neccessary to use all the tables. |
SELECT arabic_capital_name FROM table_name_7 WHERE english_capital_name = "n'djamena" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the capital in Arabic that is called n'djamena in English?It is not neccessary to use all the tables. |
SELECT AVG(long) FROM station WHERE NOT id IN (SELECT station_id FROM status GROUP BY station_id HAVING MAX(bikes_available) > 10) | CREATE TABLE INST, Here is a database schema( table schema); | What is the average longitude of stations that never had bike availability more than 10?It is not neccessary to use all the tables. |
SELECT Director FROM table WHERE Serial Title = heroes of the wild | CREATE TABLE INST, Here is a database schema( table schema); | I want the director for heroes of the wild.It is not neccessary to use all the tables. |
SELECT Status FROM table WHERE Market Income Per Capita = $24,326 | CREATE TABLE INST, Here is a database schema( table schema); | What is the status of the county with per capita market income of $24,326?.It is not neccessary to use all the tables. |
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 41132) AND prescriptions.drug IN ('calcium gluconate', 'lisinopril', 'iso-osmotic dextrose') AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-4 year') | CREATE TABLE INST, Here is a database schema( table schema); | was there any calcium gluconate or lisinopril or iso-osmotic dextrose ordered until 4 years ago for patient 41132?It is not neccessary to use all the tables. |
SELECT MIN Nanquan FROM table WHERE Nandao < 9.44 AND Rank < 9 AND Total > 18.68 | CREATE TABLE INST, Here is a database schema( table schema); | Which Nanquan has a Nandao smaller than 9.44, and a Rank smaller than 9, and a Total larger than 18.68?.It is not neccessary to use all the tables. |
SELECT SUM(overall) FROM table_name_68 WHERE round < 6 AND pick__number = 26 | CREATE TABLE INST, Here is a database schema( table schema); | How much Overall has a Round smaller than 6 and a Pick # of 26?It is not neccessary to use all the tables. |
SELECT transfer_window FROM table_name_55 WHERE status = "loan ended" | CREATE TABLE INST, Here is a database schema( table schema); | What is the transfer window for the player whose status was loan ended?It is not neccessary to use all the tables. |
SELECT Rank FROM table WHERE Total > 17 AND Silver < 13 | CREATE TABLE INST, Here is a database schema( table schema); | Which Rank has a Total larger than 17, and a Silver smaller than 13?.It is not neccessary to use all the tables. |
SELECT 2nd Party FROM table WHERE Election = 1885 | CREATE TABLE INST, Here is a database schema( table schema); | What 2nd Party has an Election of 1885?.It is not neccessary to use all the tables. |
SELECT Local Affairs FROM table WHERE Year = 2012-2013 | CREATE TABLE INST, Here is a database schema( table schema); | Who was in local affairs in 2012-2013?.It is not neccessary to use all the tables. |
SELECT Heat FROM table WHERE Rank < 18 AND Result = 55.15 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Heat of the Player with a Rank of 18 or less and Result of 55.15?.It is not neccessary to use all the tables. |
SELECT MIN("Series #") FROM table_532 WHERE "Season #" = '18' | CREATE TABLE INST, Here is a database schema( table schema); | What is the series number for Season #18?It is not neccessary to use all the tables. |
SELECT loss_gain FROM table_25818630_2 WHERE affiliation = "Solidarity" | CREATE TABLE INST, Here is a database schema( table schema); | What was the loss/gain when the affiliation was solidarity?It is not neccessary to use all the tables. |
SELECT 100 yard Freestyle FROM table WHERE 100 yard Backstroke = palo verde | CREATE TABLE INST, Here is a database schema( table schema); | What 100 yard Freestyle has a 100 yard Backstroke of palo verde?.It is not neccessary to use all the tables. |
SELECT candidates FROM table_2668336_17 WHERE district = "North Carolina 10" | CREATE TABLE INST, Here is a database schema( table schema); | In district North Carolina 10 what are the candidates?It is not neccessary to use all the tables. |
SELECT team_1 FROM table_name_43 WHERE team_2 = "mount cameroon fc" | CREATE TABLE INST, Here is a database schema( table schema); | What is the team 1 with team 2 Mount Cameroon FC?It is not neccessary to use all the tables. |
SELECT "Written by" FROM table_16101 WHERE "Setting" = 'Winter 1541/February 13, 1542' | CREATE TABLE INST, Here is a database schema( table schema); | Who wrote the episode that was set in winter 1541/february 13, 1542?It is not neccessary to use all the tables. |
SELECT mens_doubles FROM table_13857700_1 WHERE year = 1978 | CREATE TABLE INST, Here is a database schema( table schema); | who is the the mens doubles with year being 1978It is not neccessary to use all the tables. |
SELECT name, location, year_opened FROM track WHERE seating > (SELECT AVG(seating) FROM track) | CREATE TABLE INST, Here is a database schema( table schema); | Show the name, location, open year for all tracks with a seating higher than the average.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Home team = geelong | CREATE TABLE INST, Here is a database schema( table schema); | On what day is geelong the home team?.It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM Student_Tests_Taken WHERE test_result = "Fail" | CREATE TABLE INST, Here is a database schema( table schema); | How many tests have result "Fail"?It is not neccessary to use all the tables. |
SELECT "Result" FROM table_29676 WHERE "Theme" = 'Top 12 Men' | CREATE TABLE INST, Here is a database schema( table schema); | What was the result of the Top 12 Men theme?It is not neccessary to use all the tables. |
SELECT high_rebounds FROM table_23285805_6 WHERE record = "15-27" | CREATE TABLE INST, Here is a database schema( table schema); | Who had the most rebounds when the team record was 15-27?It is not neccessary to use all the tables. |
SELECT song_choice FROM table_12310814_1 WHERE original_artist = "Rickie Lee Jones" | CREATE TABLE INST, Here is a database schema( table schema); | Which one of the songs was originally performed by Rickie Lee Jones?It is not neccessary to use all the tables. |
SELECT record FROM table_name_73 WHERE date = "august 24" | CREATE TABLE INST, Here is a database schema( table schema); | What was the record on august 24?It is not neccessary to use all the tables. |
SELECT runner_s__up FROM table_21649285_2 WHERE margin_of_victory = "4 strokes" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the runner up when the won by 4 strokes?It is not neccessary to use all the tables. |
SELECT MAX First elected FROM table WHERE Incumbent = Gus Yatron | CREATE TABLE INST, Here is a database schema( table schema); | what is the maximum first elected with incumbent being gus yatron.It is not neccessary to use all the tables. |
SELECT date FROM table_20745706_1 WHERE _number = "5" | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of game 5?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.