answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT date FROM table_name_66 WHERE home_team = "south melbourne" | When did South Melbourne play as the home team? | CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR) |
SELECT _virtual_ FROM table_1979203_1 WHERE callsign = "WNET" | what is the virtual callsign if is wnet | CREATE TABLE table_1979203_1 (_virtual_ VARCHAR, callsign VARCHAR) |
SELECT MAX(game) FROM table_15873014_3 | How many games were played in the season? | CREATE TABLE table_15873014_3 (
game INTEGER
) |
SELECT MAX(crowd) FROM table_name_36 WHERE away_team = "st kilda" | What was the largest amount of spectators when St Kilda was the away team? | CREATE TABLE table_name_36 (crowd INTEGER, away_team VARCHAR) |
SELECT branding FROM table_1979203_1 WHERE _virtual_ = "13.1" | what is the name of the branding where the virtual is 13.1 | CREATE TABLE table_1979203_1 (branding VARCHAR, _virtual_ VARCHAR) |
WITH opened AS (SELECT PostId FROM Votes WHERE VoteTypeId = 8), closed AS (SELECT PostId FROM Votes WHERE VoteTypeId = 9) SELECT COUNT(*) FROM (SELECT * FROM opened INTERSECT SELECT * FROM closed) AS q | Number of posts with bounty start and finish. | CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... |
SELECT away_team AS score FROM table_name_83 WHERE away_team = "richmond" | What was Richmond's score when it was the away team? | CREATE TABLE table_name_83 (away_team VARCHAR) |
SELECT MIN(district) FROM table_1979619_3 WHERE residence = "Newtown Square" | Name the district for newtown square | CREATE TABLE table_1979619_3 (district INTEGER, residence VARCHAR) |
SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Price | For those records from the products and each product's manufacturer, give me the comparison about the average of price over the name , and group by attribute name by a bar chart, list by the mean price in ascending please. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) |
SELECT declination___j2000__ FROM table_name_77 WHERE constellation = "hydra" AND right_ascension___j2000__ = "10h46m44.9s" | what is the declination (j2000) that has a constellation of hydra and a right ascension (j2000) of 10h46m44.9s? | CREATE TABLE table_name_77 (declination___j2000__ VARCHAR, constellation VARCHAR, right_ascension___j2000__ VARCHAR) |
SELECT party FROM table_1979619_3 WHERE residence = "Bensalem" | Name the party for bensalem | CREATE TABLE table_1979619_3 (party VARCHAR, residence VARCHAR) |
SELECT "Home team score" FROM table_57783 WHERE "Venue" = 'kardinia park' | What is the home team score for kardinia park? | CREATE TABLE table_57783 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT MAX(ngc_number) FROM table_name_12 WHERE object_type = "lenticular galaxy" AND constellation = "hydra" | What is the ngc number when the object type is lenticular galaxy and the constellation is hydra? | CREATE TABLE table_name_12 (ngc_number INTEGER, object_type VARCHAR, constellation VARCHAR) |
SELECT COUNT(term_ends) FROM table_1979619_3 WHERE residence = "Bethlehem" | Name the term ends for bethlehem | CREATE TABLE table_1979619_3 (term_ends VARCHAR, residence VARCHAR) |
SELECT EMPLOYEE_ID, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the correlation between employee_id and manager_id in a scatter chart. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varc... |
SELECT object_type FROM table_name_98 WHERE ngc_number = 3314 | what is the object type when the ngc number is 3314? | CREATE TABLE table_name_98 (object_type VARCHAR, ngc_number VARCHAR) |
SELECT COUNT(district) FROM table_1979619_3 WHERE representative = "Rob Teplitz" | Name the total number of districts for rob teplitz | CREATE TABLE table_1979619_3 (district VARCHAR, representative VARCHAR) |
SELECT school FROM table_name_35 WHERE enrollment > 441 AND mascot = "chargers" | What's the school that has an enrollment more than 441 with chargers as their mascot? | CREATE TABLE table_name_35 (
school VARCHAR,
enrollment VARCHAR,
mascot VARCHAR
) |
SELECT AVG(ngc_number) FROM table_name_70 WHERE constellation = "leo" AND declination___j2000__ = "°42′13″" | what is the ngc number when the constellation is leo and the declination (j2000) is °42′13″? | CREATE TABLE table_name_70 (ngc_number INTEGER, constellation VARCHAR, declination___j2000__ VARCHAR) |
SELECT result FROM table_19810459_1 WHERE background = "Business major" | What was the result for the contestant whose background was as a business major? | CREATE TABLE table_19810459_1 (result VARCHAR, background VARCHAR) |
SELECT Id AS "post_link" FROM Posts WHERE Tags LIKE '<##tags##>' OR Tags LIKE ' ##tags## ' LIMIT 5000 | Questions with only one tag. | CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... |
SELECT right_ascension___j2000__ FROM table_name_58 WHERE ngc_number < 3384 AND constellation = "hydra" AND object_type = "spiral galaxy" | what is the right ascension (j2000) with the ngc number less than 3384, the constellation is hydra and the object type is spiral galaxy? | CREATE TABLE table_name_58 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR, constellation VARCHAR) |
SELECT background FROM table_19810459_1 WHERE result = "11th place" | What was the background of the contestant whose result was 11th place? | CREATE TABLE table_19810459_1 (background VARCHAR, result VARCHAR) |
SELECT transfers.wardid FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20898 AND admissions.dischtime IS NULL) AND NOT transfers.wardid IS NULL ORDER BY transfers.intime DESC LIMIT 1 | what is patient 20898's last ward id in this hospital visit? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id ... |
SELECT competition FROM table_name_95 WHERE date = "october 7, 2011" | What competition was played on October 7, 2011? | CREATE TABLE table_name_95 (competition VARCHAR, date VARCHAR) |
SELECT COUNT(contestant) FROM table_19810459_1 WHERE background = "Internet dreamer" | For how many contestants was the background internet dreamer? | CREATE TABLE table_19810459_1 (contestant VARCHAR, background VARCHAR) |
SELECT opponent FROM table_name_80 WHERE attendance > 31 OFFSET 891 | Who was the opponent during the game that had more than 31,891 people in attendance? | CREATE TABLE table_name_80 (
opponent VARCHAR,
attendance INTEGER
) |
SELECT score FROM table_name_65 WHERE year = 1992 AND result = "loss" | What's the score for 1992, with the result of a loss? | CREATE TABLE table_name_65 (score VARCHAR, year VARCHAR, result VARCHAR) |
SELECT result FROM table_19810459_1 WHERE background = "Small business owner" | What was the result for the contestant who was a small business owner? | CREATE TABLE table_19810459_1 (result VARCHAR, background VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND prescriptions.drug_type = "MAIN" | give me the number of patients whose ethnicity is black/cape verdean and drug type is main? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... |
SELECT national_league FROM table_name_80 WHERE club = "limoges csp" AND national_cup = "french basketball cup" | What national league has limoges csp, and french basketball cup? | CREATE TABLE table_name_80 (national_league VARCHAR, club VARCHAR, national_cup VARCHAR) |
SELECT original_team FROM table_19810459_1 WHERE result = "10th place" | What team was the contestant who finished in 10th place originally on? | CREATE TABLE table_19810459_1 (original_team VARCHAR, result VARCHAR) |
SELECT MAX("Rd") FROM table_72107 WHERE "Pole Position" = 'Tom Sneva' | What is the highest Rd that Tom Sneva had the pole position in? | CREATE TABLE table_72107 (
"Rd" real,
"Name" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
) |
SELECT club FROM table_name_97 WHERE national_cup = "turkish basketball cup" AND european_cup = "fiba eurochallenge (3rd tier)" | What is the club that has the turkish basketball cup and fiba eurochallenge (3rd tier)? | CREATE TABLE table_name_97 (club VARCHAR, national_cup VARCHAR, european_cup VARCHAR) |
SELECT hometown FROM table_19810459_1 WHERE background = "Financial consultant" | What is the hometown of the contestant whose background is as a financial consultant? | CREATE TABLE table_19810459_1 (hometown VARCHAR, background VARCHAR) |
SELECT Users.Id AS "user_link", Posts.Id AS "post_link" FROM Users INNER JOIN Posts ON Posts.OwnerUserId = Users.Id INNER JOIN PostTags ON Posts.Id = PostTags.PostId INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE Tags.TagName LIKE 'identification' AND Posts.ParentId IS NULL AND Users.Id IN (SELECT Users.Id FROM User... | Drive-by users with one [identification] question. | CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
... |
SELECT national_cup FROM table_name_91 WHERE club = "fc barcelona" | What national cup has fc barcelona? | CREATE TABLE table_name_91 (national_cup VARCHAR, club VARCHAR) |
SELECT COUNT(rating) FROM table_19805130_3 WHERE rating / SHARE(18 - 49) = 3.8 / 10 | If the rating/share is 3.8/10, what is the total number of rating? | CREATE TABLE table_19805130_3 (rating VARCHAR) |
SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27703)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.lab... | what was the total amount of lactated ringers that patient 27703 had taken on 11/08/2105? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val... |
SELECT AVG(ddr3_speed) FROM table_name_15 WHERE model = "e-350" | Name the average DDR3 speed for model e-350 | CREATE TABLE table_name_15 (ddr3_speed INTEGER, model VARCHAR) |
SELECT COUNT(share) FROM table_19805130_3 WHERE rank__night_ = "9" | If the night rank is 9, what is the total share number? | CREATE TABLE table_19805130_3 (share VARCHAR, rank__night_ VARCHAR) |
SELECT MIN("Draw") FROM table_34244 WHERE "Champs" < '0' | Which Draw is the lowest one that has Champs smaller than 0? | CREATE TABLE table_34244 (
"Champs" real,
"Games" real,
"Draw" real,
"Lost" real,
"Win/Lose Percentage" text
) |
SELECT loss FROM table_name_10 WHERE date = "august 21" | who lost on august 21? | CREATE TABLE table_name_10 (loss VARCHAR, date VARCHAR) |
SELECT episode FROM table_19805130_3 WHERE rank__night_ = "9" | What is the name of the episode with a night rank of 9? | CREATE TABLE table_19805130_3 (episode VARCHAR, rank__night_ VARCHAR) |
SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'upper gi bleeding' AND STRFTIME('%y', diagno... | what are the five most frequently ordered specimen tests for patients that had previously been diagnosed with upper gi bleeding within 2 months since 2105? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT record FROM table_name_21 WHERE opponent = "expos" AND date = "august 10" | On August 10, what was the record against the Expos? | CREATE TABLE table_name_21 (record VARCHAR, opponent VARCHAR, date VARCHAR) |
SELECT rating FROM table_19805130_3 WHERE rating / SHARE(18 - 49) = 2.0 / 6 AND viewers__millions_ = "5.14" | If the amount of viewers is 5.14 million and the rating/share is 2.0/6, what is the ranking? | CREATE TABLE table_19805130_3 (rating VARCHAR, viewers__millions_ VARCHAR) |
SELECT * FROM VoteTypes INNER JOIN Votes ON Votes.VoteTypeId = VoteTypes.Id INNER JOIN Posts ON Votes.PostId = Posts.Id WHERE VoteTypes.Name = 'Offensive' | Rude answers to Python questions. | CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE ReviewT... |
SELECT AVG(laps) FROM table_name_91 WHERE driver = "lorenzo bandini" AND grid < 3 | What is the average laps for lorenzo bandini with a grid under 3? | CREATE TABLE table_name_91 (laps INTEGER, driver VARCHAR, grid VARCHAR) |
SELECT writer_s_ FROM table_19852975_3 WHERE arties_disguises = "Swedish sailor" | Name the writers for swedish sailor | CREATE TABLE table_19852975_3 (writer_s_ VARCHAR, arties_disguises VARCHAR) |
SELECT date FROM table_name_36 WHERE score = "4–6, 4–6" | What is the Date of the game with a Score of 4 6, 4 6? | CREATE TABLE table_name_36 (
date VARCHAR,
score VARCHAR
) |
SELECT driver FROM table_name_28 WHERE laps < 53 AND grid < 14 AND time_retired = "differential" | What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential? | CREATE TABLE table_name_28 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT MIN(season__number) FROM table_19852975_3 WHERE arties_disguises = "Herr Ostropolyer, pastry chef" | Name the season number for herr ostropolyer, pastry chef | CREATE TABLE table_19852975_3 (season__number INTEGER, arties_disguises VARCHAR) |
SELECT COUNT(peak) FROM table_29633639_1 WHERE chinese_title = "萬凰之王" | how many peaks where for the chinese episode named | CREATE TABLE table_29633639_1 (
peak VARCHAR,
chinese_title VARCHAR
) |
SELECT music FROM table_name_63 WHERE uncut_run_time = "95 minutes" | What music is in the film with an Uncut run time of 95 minutes? | CREATE TABLE table_name_63 (music VARCHAR, uncut_run_time VARCHAR) |
SELECT principal FROM table_1984697_85 WHERE school = "Northfield Junior-Senior High school" | Name the principal of Northfield Junior-Senior High School. | CREATE TABLE table_1984697_85 (principal VARCHAR, school VARCHAR) |
SELECT date FROM table_name_65 WHERE tournament = "vigo" | What is the Date of the Vigo Tournament? | CREATE TABLE table_name_65 (
date VARCHAR,
tournament VARCHAR
) |
SELECT country FROM table_name_10 WHERE music = "nino oliviero" | What country is the film that has music of nino oliviero? | CREATE TABLE table_name_10 (country VARCHAR, music VARCHAR) |
SELECT school FROM table_1984697_85 WHERE city___town = "North Manchester" | What is the name of the school/s in North Manchester? | CREATE TABLE table_1984697_85 (school VARCHAR, city___town VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND date_day.day_number = 1 AND date_day.month_number = 6 AND... | i would like to book a flight from LOS ANGELES to PITTSBURGH on 6 1 | CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE days (
days_code varchar,
... |
SELECT music FROM table_name_53 WHERE year < 1963 | What music is in the film before 1963? | CREATE TABLE table_name_53 (music VARCHAR, year INTEGER) |
SELECT school FROM table_1984697_85 WHERE size = 604 | Name the school/s with is size of 604. | CREATE TABLE table_1984697_85 (school VARCHAR, size VARCHAR) |
SELECT Headquarter, COUNT(Headquarter) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of headquarter and the amount of headquarter , and group by attribute headquarter, and could you display by the bars in descending? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) |
SELECT music FROM table_name_23 WHERE year = 1962 | What music is in the film before 1962? | CREATE TABLE table_name_23 (music VARCHAR, year VARCHAR) |
SELECT idoe_profile FROM table_1984697_85 WHERE city___town = "North Manchester" | What is the IDOE Profile in North Manchester? | CREATE TABLE table_1984697_85 (idoe_profile VARCHAR, city___town VARCHAR) |
SELECT "Volume:Issue" FROM table_43482 WHERE "Weeks on Top" < '2' AND "Artist" = 'george mccrae' | What is the Volume:Issue number of the George McCrae song that spent less than 2 weeks on top of the charts? | CREATE TABLE table_43482 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" real,
"Song" text,
"Artist" text
) |
SELECT home_team FROM table_name_75 WHERE away_team = "north melbourne" | Which team played as the home team when north melbourne played as away? | CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR) |
SELECT grades FROM table_1984697_85 WHERE school = "Manchester Junior-Senior High school" | What are the grades served at Manchester Junior-Senior High School? | CREATE TABLE table_1984697_85 (grades VARCHAR, school VARCHAR) |
SELECT "Issue Date(s)" FROM table_47547 WHERE "Artist" = 'jennifer lopez' | What date did the song by jennifer lopez get issued? | CREATE TABLE table_47547 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" text,
"Song" text,
"Artist" text
) |
SELECT position FROM table_name_37 WHERE pick__number = 53 | what is the position of pick #53? | CREATE TABLE table_name_37 (position VARCHAR, pick__number VARCHAR) |
SELECT MIN(series__number) FROM table_19852975_4 WHERE writer_s_ = "Max Ehrlich" | Writer Max Ehrlich, what is the minimum series number? | CREATE TABLE table_19852975_4 (series__number INTEGER, writer_s_ VARCHAR) |
SELECT "Driver" FROM table_10843 WHERE "Laps" = '3' AND "Grid" < '15' | Which driver had 3 Laps and grids less than 15? | CREATE TABLE table_10843 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
SELECT position FROM table_name_54 WHERE player = "andrew paopao" | what is the position for andrew paopao? | CREATE TABLE table_name_54 (position VARCHAR, player VARCHAR) |
SELECT MAX(season__number) FROM table_19852975_4 WHERE writer_s_ = "Denne Bart Petitclerc" | From writer Denne Bart Petitclerc, what is the maximum season number? | CREATE TABLE table_19852975_4 (season__number INTEGER, writer_s_ VARCHAR) |
SELECT MAX("Attendance") FROM table_65593 WHERE "Date" = 'december 14, 1958' AND "Week" > '12' | What is the highest attendance for December 14, 1958 for after week 12 | CREATE TABLE table_65593 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) |
SELECT venue FROM table_name_11 WHERE home_team = "south melbourne" | In which venue is South Melbourne the home team? | CREATE TABLE table_name_11 (venue VARCHAR, home_team VARCHAR) |
SELECT COUNT(series__number) FROM table_19852975_4 WHERE writer_s_ = "Max Ehrlich" | From writer Max Ehrlich, what is the total amount of series numbers? | CREATE TABLE table_19852975_4 (series__number VARCHAR, writer_s_ VARCHAR) |
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'transaminase elevation' AND DATETIME(diagnosis.dia... | what was the three most frequent drugs that were prescribed within 2 months to the transaminase elevation female patients aged 20s after they were diagnosed with transaminase elevation, a year before? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT away_team FROM table_name_80 WHERE home_team = "south melbourne" | When South Melbourne was the home team, who was the away team? | CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR) |
SELECT winning_driver FROM table_19850806_3 WHERE rd = "3" | Who is the winning driver when rd. is 3? | CREATE TABLE table_19850806_3 (winning_driver VARCHAR, rd VARCHAR) |
SELECT Location, COUNT(*) FROM cinema GROUP BY Location | Create a bar chart showing the total number across location | CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule... |
SELECT venue FROM table_name_16 WHERE home_team = "hawthorn" | What venue is Hawthorn the home team at? | CREATE TABLE table_name_16 (venue VARCHAR, home_team VARCHAR) |
SELECT COUNT(winning_driver) FROM table_19850806_3 WHERE winning_team = "Bryan Herta Autosport" | How many winning drivers are there when the winning team is Bryan herta autosport? | CREATE TABLE table_19850806_3 (winning_driver VARCHAR, winning_team VARCHAR) |
SELECT "season" FROM table_204_117 ORDER BY "position" LIMIT 1 | what year was their top performance ? | CREATE TABLE table_204_117 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"position" text,
"movements" text
) |
SELECT capacity FROM table_name_97 WHERE city_area = "chester" | What is the capacity for the arena in Chester? | CREATE TABLE table_name_97 (capacity VARCHAR, city_area VARCHAR) |
SELECT report FROM table_19850806_3 WHERE rd = "9" | Which report is where rd. is 9? | CREATE TABLE table_19850806_3 (report VARCHAR, rd VARCHAR) |
SELECT "Show" FROM table_61773 WHERE "Date" = '19 april' | Which show aired on 19 april? | CREATE TABLE table_61773 (
"Show" text,
"Date" text,
"Official ratings (millions)" real,
"Weekly rank" text,
"Share" text
) |
SELECT arena FROM table_name_8 WHERE capacity = "1,100" | Which arena has a capactiy of 1,100? | CREATE TABLE table_name_8 (arena VARCHAR, capacity VARCHAR) |
SELECT fastest_lap FROM table_19850806_3 WHERE race = "Texas" AND winning_driver = "Dario Franchitti" | Who held the fastest lap in the race in texas and dario franchitti is the winning driver? | CREATE TABLE table_19850806_3 (fastest_lap VARCHAR, race VARCHAR, winning_driver VARCHAR) |
SELECT "Surface" FROM table_66227 WHERE "Result" = 'fernando verdasco' | Which Surface has a Result of fernando verdasco? | CREATE TABLE table_66227 (
"!Event" real,
"Round" text,
"Surface" text,
"Winner" text,
"Opponent" text,
"Result" text
) |
SELECT last_season FROM table_name_90 WHERE team = "scottish rocks" | What is the last season that the Scottish Rocks played? | CREATE TABLE table_name_90 (last_season VARCHAR, team VARCHAR) |
SELECT COUNT(huckleberry_hound) FROM table_19860361_4 WHERE air_date = "1960.09.18" | How many Huckleberry Hound episodes were aired on 1960.09.18? | CREATE TABLE table_19860361_4 (huckleberry_hound VARCHAR, air_date VARCHAR) |
SELECT location FROM table_16864968_7 WHERE game = 62 | Where was game 62 played? | CREATE TABLE table_16864968_7 (
location VARCHAR,
game VARCHAR
) |
SELECT arena FROM table_name_32 WHERE capacity = "800" AND team = "milton keynes lions" | Which arena has the Milton Keynes Lions and a capacity of 800? | CREATE TABLE table_name_32 (arena VARCHAR, capacity VARCHAR, team VARCHAR) |
SELECT pixie_and_dixie FROM table_19860361_3 WHERE ep = 7 | What is the Pixie and Dixie skit in episode 7? | CREATE TABLE table_19860361_3 (pixie_and_dixie VARCHAR, ep VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CONGESTIVE HEART FAILURE" AND demographic.dod_year <= "2174.0" | count the number of patients whose primary disease is congestive heart failure and year of death is less than or equal to 2174? | 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 last_season FROM table_name_65 WHERE team = "worcester wolves" | What is the last season the Worcester Wolves played? | CREATE TABLE table_name_65 (last_season VARCHAR, team VARCHAR) |
SELECT yogi_bear FROM table_19860361_3 WHERE air_date = "1959.12.21" | What is the Yogi Bear that aired on 1959.12.21? | CREATE TABLE table_19860361_3 (yogi_bear VARCHAR, air_date VARCHAR) |
SELECT theme FROM table_11900773_6 WHERE design = "Isabelle Toussaint" | List all the themes designed by Isabelle Toussaint. | CREATE TABLE table_11900773_6 (
theme VARCHAR,
design VARCHAR
) |
SELECT team FROM table_name_17 WHERE city_area = "birmingham & telford" | Which team is from Birmingham & Telford? | CREATE TABLE table_name_17 (team VARCHAR, city_area VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.