answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT "Driver" FROM table_77757 WHERE "Grid" = '10'
Who drove the grid 10 car?
CREATE TABLE table_77757 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT MIN(round) FROM table_name_2 WHERE school = "georgia tech"
What is the lowest round for Georgia Tech?
CREATE TABLE table_name_2 (round INTEGER, school VARCHAR)
SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = "35 runs" AND winner = "India"
Name the number of team for 35 runs margin and india winner
CREATE TABLE table_1594772_2 (team__b_ VARCHAR, margin VARCHAR, winner VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.dod_year <= "2112.0"
give me the number of patients whose marital status is married and year of death is less than or equal to 2112?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ...
SELECT AVG(round) FROM table_name_81 WHERE school = "georgia tech" AND pick > 103
What is the average round for Georgia Tech with a pick greater than 103?
CREATE TABLE table_name_81 (round INTEGER, school VARCHAR, pick VARCHAR)
SELECT team__a_ FROM table_1594772_2 WHERE match_date = "Feb 27, 1996"
Namethe team for feb 27, 1996
CREATE TABLE table_1594772_2 (team__a_ VARCHAR, match_date VARCHAR)
SELECT lead FROM table_name_84 WHERE home = "saskatoon, saskatchewan"
Who is the lead for the team from Saskatoon, Saskatchewan?
CREATE TABLE table_name_84 ( lead VARCHAR, home VARCHAR )
SELECT player FROM table_name_28 WHERE year = "2001-2002"
Which player is featured for 2001-2002?
CREATE TABLE table_name_28 (player VARCHAR, year VARCHAR)
SELECT s_no FROM table_1594772_2 WHERE match_date = "Feb 27, 1996"
Name the numbers for date of feb 27, 1996
CREATE TABLE table_1594772_2 (s_no VARCHAR, match_date VARCHAR)
SELECT AVG(snatch) FROM body_builder
What is the average snatch score of body builders?
CREATE TABLE body_builder ( body_builder_id number, people_id number, snatch number, clean_jerk number, total number ) CREATE TABLE people ( people_id number, name text, height number, weight number, birth_date text, birth_place text )
SELECT player FROM table_name_77 WHERE hometown = "queens, ny"
Which player is from Queens, NY?
CREATE TABLE table_name_77 (player VARCHAR, hometown VARCHAR)
SELECT team__b_ FROM table_1594772_2 WHERE match_date = "Oct 30, 1989"
Name the team for oct 30, 1989
CREATE TABLE table_1594772_2 (team__b_ VARCHAR, match_date VARCHAR)
SELECT 3 AS rd_liga_3rd FROM table_name_41 WHERE date = "2010-11"
What is the 3rd Liga from 2010-11?
CREATE TABLE table_name_41 ( date VARCHAR )
SELECT school FROM table_name_6 WHERE player = "maya moore"
Where did Maya Moore attend school?
CREATE TABLE table_name_6 (school VARCHAR, player VARCHAR)
SELECT winner FROM table_1594772_2 WHERE match_date = "Nov 5, 1987"
Name the winner for date of nov 5, 1987
CREATE TABLE table_1594772_2 (winner VARCHAR, match_date VARCHAR)
SELECT DISTINCT keyphrase.keyphrasename, paper.year FROM author, keyphrase, paper, paperkeyphrase, writes WHERE author.authorname = 'subhasis chaudhuri' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND writes.authorid = author.authorid AND writes.paperid = paper.pape...
recent papers by subhasis chaudhuri
CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE author ( authorid int, authorname varchar...
SELECT COUNT(diff) FROM table_name_50 WHERE lost < 5 AND points < 32
What is the difference with a loss smaller than 5 and points lower than 32?
CREATE TABLE table_name_50 (diff VARCHAR, lost VARCHAR, points VARCHAR)
SELECT COUNT(oilers_first_downs) FROM table_15984957_2 WHERE date = "Sept. 17"
On Sept. 17, how many first downs did the oilers have?
CREATE TABLE table_15984957_2 (oilers_first_downs VARCHAR, date VARCHAR)
SELECT COUNT(fleet_series__quantity_) FROM table_10007452_3 WHERE fuel_propulsion = "CNG"
how many times is the fuel propulsion is cng?
CREATE TABLE table_10007452_3 ( fleet_series__quantity_ VARCHAR, fuel_propulsion VARCHAR )
SELECT MIN(lost) FROM table_name_63 WHERE played < 18
Which loss had a player lower than 18?
CREATE TABLE table_name_63 (lost INTEGER, played INTEGER)
SELECT MIN(game) FROM table_15984957_2 WHERE opponent = "Los Angeles Rams"
How many games were against the los angeles rams?
CREATE TABLE table_15984957_2 (game INTEGER, opponent VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2111" AND lab.fluid = "Ascites"
what is the number of patients whose admission year is less than 2111 and lab test fluid is ascites?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT winner FROM table_name_88 WHERE year = 2012 AND result = "15–0"
Who won the 2012 game that had a score of 15–0?
CREATE TABLE table_name_88 (winner VARCHAR, year VARCHAR, result VARCHAR)
SELECT annual_change__percentage_of_gdp__2012_ FROM table_1598533_8 WHERE gdp__percentage_of_eu__2012_ = "20.5%"
What is the annual change of GDP with a 20.5% GDP of EU in 2012?
CREATE TABLE table_1598533_8 (annual_change__percentage_of_gdp__2012_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR)
SELECT COUNT("Events") FROM table_6885 WHERE "Top-5" < '2' AND "Top-25" < '3'
What were the total number of Events, when the Top-5 was less than 2, and when the Top-25 was less than 3?
CREATE TABLE table_6885 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT AVG(week) FROM table_name_99 WHERE result = "l 31-27" AND attendance < 85 OFFSET 865
Tell me the week for result of l 31-27, and an Attendance smaller than 85,865
CREATE TABLE table_name_99 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT public_debt__percentage_of_gdp__2013_q1_ FROM table_1598533_8 WHERE gdp__percentage_of_eu__2012_ = "4.7%"
What is the public debt % of GDP in 2013 Q1 with a 4.7% GDP of EU in 2012?
CREATE TABLE table_1598533_8 (public_debt__percentage_of_gdp__2013_q1_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR)
SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone ORDER BY COUNT(Phone)
What are the phone numbers for each employee, and count them by a bar chart, sort in ascending by the y-axis please.
CREATE TABLE InvoiceLine ( InvoiceLineId integer, InvoiceId integer, TrackId integer, UnitPrice decimal(10,2), Quantity integer ) CREATE TABLE Artist ( ArtistId integer, Name varchar(120) ) CREATE TABLE Album ( AlbumId integer, Title varchar(160), ArtistId integer ) CREATE TAB...
SELECT director FROM table_name_72 WHERE notes = "prizzi's honor"
Who had notes of Prizzi's Honor?
CREATE TABLE table_name_72 (director VARCHAR, notes VARCHAR)
SELECT inflation__percentage_annual__2012_ FROM table_1598533_8 WHERE gdp_per_capita_in_ppp_us$__2012_ = 24505
What is the annual inflation % when GDP per capita in ppp US$ is 24505 in 2012?
CREATE TABLE table_1598533_8 (inflation__percentage_annual__2012_ VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR)
SELECT nominated_work FROM table_name_54 WHERE year > 2011
Tell me the nominated work larger than 2011
CREATE TABLE table_name_54 ( nominated_work VARCHAR, year INTEGER )
SELECT superlative FROM table_name_23 WHERE record_set = "12 nominations"
What Superlative had a record set of 12 nominations?
CREATE TABLE table_name_23 (superlative VARCHAR, record_set VARCHAR)
SELECT place FROM table_15988037_24 WHERE perfect_40s = 0 AND average = "27.25"
What are all the places where the number of perfect 40s is 0 and the average is 27.25?
CREATE TABLE table_15988037_24 (place VARCHAR, perfect_40s VARCHAR, average VARCHAR)
SELECT MIN("Attendance") FROM table_13417 WHERE "Round" = '52' AND "Home" = 'södertälje sk'
Which Attendance has a Round of 52, and a Home of s dert lje sk?
CREATE TABLE table_13417 ( "Round" real, "Date" text, "Home" text, "Result" text, "Visitor" text, "Venue" text, "Attendance" real )
SELECT MAX(laps) FROM table_name_3 WHERE driver = "joe nemechek"
What is the highest number of laps completed by driver Joe Nemechek?
CREATE TABLE table_name_3 (laps INTEGER, driver VARCHAR)
SELECT MAX(total) FROM table_15988037_24 WHERE average = "28.5"
What is the maximum total in which the average is 28.5?
CREATE TABLE table_15988037_24 (total INTEGER, average VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2130" AND diagnoses.short_title = "Pressure ulcer, stage IV"
give me the number of patients whose year of birth is less than 2130 and diagnoses short title is pressure ulcer, stage iv?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT home_team AS score FROM table_name_7 WHERE venue = "victoria park"
What is the home team score when they played at Victoria Park?
CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR)
SELECT MIN(perfect_40s) FROM table_15988037_24
What is the minimum number of perfect 40s?
CREATE TABLE table_15988037_24 (perfect_40s INTEGER)
SELECT MIN(year) FROM table_2402864_1 WHERE regular_season = "3rd, Southeast" AND league = "USL PDL"
What was the earliest year where USL PDL played in 3rd, Southeast season?
CREATE TABLE table_2402864_1 ( year INTEGER, regular_season VARCHAR, league VARCHAR )
SELECT venue FROM table_name_76 WHERE home_team = "fitzroy"
What was the venue when the home team was Fitzroy?
CREATE TABLE table_name_76 (venue VARCHAR, home_team VARCHAR)
SELECT muzzle_velocity FROM table_16010376_1 WHERE cartridge = ".375 Remington Ultra Magnum"
When using a .375 Remington Ultra Magnum, what is the muzzle velocity?
CREATE TABLE table_16010376_1 (muzzle_velocity VARCHAR, cartridge VARCHAR)
SELECT "Class" FROM table_67859 WHERE "Co-Drivers" = 'eddie cheever raul boesel'
What class did eddie cheever raul boesel race in?
CREATE TABLE table_67859 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Laps" real, "Pos." text, "Class Pos." text )
SELECT proposed FROM table_name_40 WHERE name = "revere textile prints corporation"
What is the date for proposed for revere textile prints corporation
CREATE TABLE table_name_40 (proposed VARCHAR, name VARCHAR)
SELECT cartridge FROM table_16010376_1 WHERE source = "Weatherby"
What type of cartridge is used by a Weatherby?
CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR)
SELECT MAX(points) FROM table_name_28 WHERE engine = "weslake v12" AND year < 1966
How many points did the Weslake v12 get in 1966?
CREATE TABLE table_name_28 ( points INTEGER, engine VARCHAR, year VARCHAR )
SELECT deleted FROM table_name_71 WHERE county = "tolland"
What is the deleted for tolland?
CREATE TABLE table_name_71 (deleted VARCHAR, county VARCHAR)
SELECT cartridge FROM table_16010376_1 WHERE source = "Winchester"
What type of cartridge is used by a Winchester?
CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR)
SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI"
what is average days of hospital stay of patients whose admission location is phys referral/normal deli?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT away_team AS score FROM table_name_93 WHERE home_team = "hawthorn"
What is the away side score when hawthorn is the home side?
CREATE TABLE table_name_93 (away_team VARCHAR, home_team VARCHAR)
SELECT bullet_weight FROM table_16010376_1 WHERE source = "Weatherby"
What is the weight of the bullet used in a Weatherby?
CREATE TABLE table_16010376_1 (bullet_weight VARCHAR, source VARCHAR)
SELECT "Competition" FROM table_70843 WHERE "Town" = 'budva' AND "Opponent" = 'italy'
what is the competition played in budva against italy?
CREATE TABLE table_70843 ( "Year" real, "Competition" text, "Town" text, "Opponent" text, "Final score" text )
SELECT AVG(laps) FROM table_name_63 WHERE time_retired = "+4 laps" AND grid < 19
What is the average lap total for grids under 19 and a Time/Retired of +4 laps?
CREATE TABLE table_name_63 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT bullet_weight FROM table_16010376_1 WHERE source = "Remington"
What is the weight of the bullet used in a Remington?
CREATE TABLE table_16010376_1 (bullet_weight VARCHAR, source VARCHAR)
SELECT "date(s)\nadministered" FROM table_204_481 WHERE "rob\nastorino (r)" > 25
dates of only poll in which astorino polled better than 25 %
CREATE TABLE table_204_481 ( id number, "poll source" text, "date(s)\nadministered" text, "sample\nsize" number, "margin of\nerror" text, "andrew\ncuomo (d)" text, "rob\nastorino (r)" text, "other" text, "undecided" text )
SELECT driver FROM table_name_66 WHERE laps > 43 AND grid = 5
Who drive over 43 laps in grid 5?
CREATE TABLE table_name_66 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT muzzle_energy FROM table_16010376_1 WHERE cartridge = ".375 Winchester"
When using a .375 Winchester, what is the muzzle energy?
CREATE TABLE table_16010376_1 (muzzle_energy VARCHAR, cartridge VARCHAR)
SELECT "Artist" FROM table_36724 WHERE "Place" > '1' AND "Points" = '229'
Which artist had a place larger than 1 with 229 points?
CREATE TABLE table_36724 ( "Draw" real, "Artist" text, "Song" text, "Points" real, "Place" real )
SELECT away_team AS score FROM table_name_7 WHERE venue = "princes park"
Which Away team score has a Venue of princes park?
CREATE TABLE table_name_7 (away_team VARCHAR, venue VARCHAR)
SELECT headphone_model FROM table_1601027_1 WHERE us_msrp = "$150"
Which headphone models correspond to the US MSRP of $150?
CREATE TABLE table_1601027_1 (headphone_model VARCHAR, us_msrp VARCHAR)
SELECT "Result" FROM table_49489 WHERE "Original title" = 'tiānmǎ cháfáng (天馬茶房)'
What is Result, when Original Title is 'Ti nm Ch f ng ( )'?
CREATE TABLE table_49489 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Result" text )
SELECT away_team AS score FROM table_name_17 WHERE home_team = "melbourne"
Which Away team score has a Home team of melbourne?
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR)
SELECT termination FROM table_1601027_1 WHERE us_msrp = "$49"
Which terminations correspond to a US MSRP of $49?
CREATE TABLE table_1601027_1 (termination VARCHAR, us_msrp VARCHAR)
SELECT SUM("Yr plyf") FROM table_44736 WHERE "G plyf" = '0' AND "Coach" = 'ed robinson'
What is the sum of the yr plyf of coach ed robinson, who has a G plyf of 0?
CREATE TABLE table_44736 ( "Coach" text, "First Yr" real, "Last Yr" real, "W-L%" real, "G > .500" real, "Yr plyf" real, "G plyf" real, "W plyf" real, "L plyf" real )
SELECT genre FROM table_name_30 WHERE english_title__chinese_title_ = "revolving doors of vengeance 酒店風雲"
What genre is revolving doors of vengeance 酒店風雲?
CREATE TABLE table_name_30 (genre VARCHAR, english_title__chinese_title_ VARCHAR)
SELECT COUNT(headphone_class) FROM table_1601027_1 WHERE us_msrp = "$150"
How many headphone classes have a US MSRP of $150?
CREATE TABLE table_1601027_1 (headphone_class VARCHAR, us_msrp VARCHAR)
SELECT athlete FROM table_name_11 WHERE data = "3:10:48+"
Who has a walking data of 3:10:48+?
CREATE TABLE table_name_11 ( athlete VARCHAR, data VARCHAR )
SELECT english_title__chinese_title_ FROM table_name_82 WHERE genre = "modern drama" AND number_of_episodes = 20 AND airing_date = "26 sep- 21 oct"
What is the english title of the modern drama, episode 20, that airs on 26 sep- 21 oct?
CREATE TABLE table_name_82 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)
SELECT COUNT(earpads) FROM table_1601027_1 WHERE headphone_class = "Prestige" AND us_msrp = "$79"
How many values for earpads correspond to the headphone class Prestige and a US MSRP of $79?
CREATE TABLE table_1601027_1 (earpads VARCHAR, headphone_class VARCHAR, us_msrp VARCHAR)
SELECT "Sideline reporter(s)" FROM table_4563 WHERE "Year" = '2011'
Who were the sideline reporter(s) in 2011?
CREATE TABLE table_4563 ( "Year" real, "Network" text, "Play-by-play" text, "Color commentator(s)" text, "Sideline reporter(s)" text )
SELECT d_48_√ FROM table_name_67 WHERE d_50_o = "d 31"
What is the D48 when the D 50 O is d 31?
CREATE TABLE table_name_67 (d_48_√ VARCHAR, d_50_o VARCHAR)
SELECT headphone_model FROM table_1601027_1 WHERE driver_matched_db = "0.1" AND us_msrp = "$49"
Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $49?
CREATE TABLE table_1601027_1 (headphone_model VARCHAR, driver_matched_db VARCHAR, us_msrp VARCHAR)
SELECT date_of_latest_logon, COUNT(date_of_latest_logon) FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh" ORDER BY COUNT(date_of_latest_logon) DESC
A bar chart for finding the number of the latest logon date of the students whose family name is 'Jaskolski' or 'Langosh', and I want to show y axis in descending order.
CREATE TABLE Courses ( course_id INTEGER, author_id INTEGER, subject_id INTEGER, course_name VARCHAR(120), course_description VARCHAR(255) ) CREATE TABLE Students ( student_id INTEGER, date_of_registration DATETIME, date_of_latest_logon DATETIME, login_name VARCHAR(40), password...
SELECT date FROM table_name_67 WHERE catalogue = "tojp 60121-22"
What was Catalogue tojp 60121-22's Date?
CREATE TABLE table_name_67 (date VARCHAR, catalogue VARCHAR)
SELECT termination FROM table_1601027_1 WHERE headphone_model = "SR80i"
Which terminations correspond with headphone model SR80I?
CREATE TABLE table_1601027_1 (termination VARCHAR, headphone_model VARCHAR)
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.long_title = "Hypoxemia" AND lab.fluid = "Blood"
how many patients whose diagnoses long title is hypoxemia and lab test fluid is blood?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id t...
SELECT date FROM table_name_97 WHERE country = "united states"
What was the Date of Country of United States?
CREATE TABLE table_name_97 (date VARCHAR, country VARCHAR)
SELECT type FROM table_1602620_1 WHERE office = "State Assemblyman"
What type are State Assemblyman
CREATE TABLE table_1602620_1 (type VARCHAR, office VARCHAR)
SELECT MIN("3 credits") FROM table_19610
Name the most 3 credits
CREATE TABLE table_19610 ( "Hand" text, "1 credit" real, "2 credits" real, "3 credits" real, "4 credits" real, "5 credits" real )
SELECT catalogue FROM table_name_47 WHERE date = "14 november 2003" AND format = "compact disc"
What Catalogue is Dated 14 november 2003, with the Format compact disc?
CREATE TABLE table_name_47 (catalogue VARCHAR, date VARCHAR, format VARCHAR)
SELECT type FROM table_1602620_1 WHERE term_began = "December 8, 1980"
What type had a beginning term of December 8, 1980
CREATE TABLE table_1602620_1 (type VARCHAR, term_began VARCHAR)
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_id", (CASE WHEN DisplayName LIKE '%arbar%zha%' THEN '|_' + DisplayName + '_|' ELSE DisplayName END) AS DisplayName, Reputation, Location FROM Users WHERE (LOWER(Location) LIKE '%munich%' OR LOWER(Location) LIKE '%muenchen%' OR LOWER(Location) LIKE ...
Top SOF users in Munich.
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, ...
SELECT label FROM table_name_70 WHERE date = "14 november 2003" AND catalogue = "tojp 60121-22"
What is the Label for Date of 14 November 2003, and Catalogue tojp 60121-22?
CREATE TABLE table_name_70 (label VARCHAR, date VARCHAR, catalogue VARCHAR)
SELECT type FROM table_1602620_1 WHERE elected = 1980
What type had an election day in 1980
CREATE TABLE table_1602620_1 (type VARCHAR, elected VARCHAR)
SELECT "Home team" FROM table_56513 WHERE "Venue" = 'windy hill'
Which home team has a venue of windy hill?
CREATE TABLE table_56513 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT label FROM table_name_83 WHERE catalogue = "tojp 60121-22"
What Label was Catalogued tojp 60121-22?
CREATE TABLE table_name_83 (label VARCHAR, catalogue VARCHAR)
SELECT term_ended FROM table_1602620_1 WHERE elected = 1990
What year did the term end for those elected in 1990
CREATE TABLE table_1602620_1 (term_ended VARCHAR, elected VARCHAR)
SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "Milk" OR T2.Allergy = "Cat"
Find the different first names and cities of the students who have allergy to milk or cat.
CREATE TABLE Student ( fname VARCHAR, city_code VARCHAR, stuid VARCHAR ) CREATE TABLE Has_Allergy ( stuid VARCHAR, Allergy VARCHAR )
SELECT record FROM table_name_56 WHERE nationality = "norway" AND date = "23 august 1981"
What is the record for Norway on 23 august 1981?
CREATE TABLE table_name_56 (record VARCHAR, nationality VARCHAR, date VARCHAR)
SELECT location FROM table_1602620_1 WHERE term_ended = "December 2, 1976"
What is the location for the office whose term ended December 2, 1976
CREATE TABLE table_1602620_1 (location VARCHAR, term_ended VARCHAR)
SELECT "Took office" FROM table_64974 WHERE "Party" = 'democratic' AND "Lieutenant Governor" = 'wallace crossley'
On what date did the Democratic governor that had Wallace Crossley as lieutenant governor take office?
CREATE TABLE table_64974 ( "Governor" text, "Took office" text, "Left office" text, "Party" text, "Lieutenant Governor" text, "Terms" text )
SELECT record FROM table_name_12 WHERE event = "20000 m walk"
What is the record for the 20000 m walk?
CREATE TABLE table_name_12 (record VARCHAR, event VARCHAR)
SELECT term_ended FROM table_1602620_1 WHERE elected = 1984
What year did the term end for the office elected in 1984
CREATE TABLE table_1602620_1 (term_ended VARCHAR, elected VARCHAR)
SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'vasodilating agent - iv - labetalol' AND...
what are the four most frequently ordered procedures for patients who also received vasodilating agent - iv - labetalol before within 2 months in 2105?
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TAB...
SELECT date FROM table_name_62 WHERE result = "bye"
When was the Bye week?
CREATE TABLE table_name_62 (date VARCHAR, result VARCHAR)
SELECT record FROM table_16028499_2 WHERE date = "October 8, 1989"
What was the record on October 8, 1989?
CREATE TABLE table_16028499_2 (record VARCHAR, date VARCHAR)
SELECT "Season #" FROM table_52503 WHERE "Series #" = '81'
What is the season for series 81?
CREATE TABLE table_52503 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Original air date" text, "Production code" text )
SELECT open_2nd_viii FROM table_name_5 WHERE u15_6th_quad = "bgs" AND u16_1st_viii = "tss"
Which Open 2nd VIII had a U15 6th Quad of BGS and a U16 1st VII of TSS?
CREATE TABLE table_name_5 (open_2nd_viii VARCHAR, u15_6th_quad VARCHAR, u16_1st_viii VARCHAR)
SELECT game_site FROM table_16028499_2 WHERE date = "October 29, 1989"
Where was the game site on October 29, 1989?
CREATE TABLE table_16028499_2 (game_site VARCHAR, date VARCHAR)
SELECT Comments.Id, Comments.PostId, Posts.PostTypeId, Comments.Score, Comments.Text, Comments.CreationDate, Posts.CreationDate, Posts.AnswerCount, Posts.CommentCount, Users.Id, Users.Reputation, Users.Views, Users.UpVotes, Users.DownVotes FROM Comments, Users, Posts WHERE Comments.UserId = Users.Id AND Posts.Id = Comm...
Get Comments on all the posts created on or after Jan 1 2016.
CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PostsWithDeleted ( Id number, PostTyp...