answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "Score" FROM table_36452 WHERE "Date" = 'july 18' AND "Record" = '41-51' | What is the Score on July 18 that has Record of 41-51? | CREATE TABLE table_36452 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." real,
"Record" text
) |
SELECT year FROM table_name_26 WHERE top_25 = 0 AND earnings__$_ > 0 | What year has a Top 25 of 0, and a Earnings ($) larger than 0? | CREATE TABLE table_name_26 (year VARCHAR, top_25 VARCHAR, earnings__$_ VARCHAR) |
SELECT MAX(pts_agst) FROM table_21991074_3 | Name the most points agst | CREATE TABLE table_21991074_3 (pts_agst INTEGER) |
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE DATETIME(inputevents_cv.charttime) >= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY inputevents_cv.itemid) AS t1 WHERE t1.c1 <= 3) | what's the three most frequent input event since 3 years ago? | CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_items (
row_id number,
... |
SELECT MAX(top_25) FROM table_name_53 WHERE money_list_rank = "232" AND cuts_made < 2 | What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2? | CREATE TABLE table_name_53 (top_25 INTEGER, money_list_rank VARCHAR, cuts_made VARCHAR) |
SELECT MIN(lost) FROM table_21991074_3 | Name the least lost | CREATE TABLE table_21991074_3 (lost INTEGER) |
SELECT "Date" FROM table_74211 WHERE "Score" = 'W 104-98' | What date was the game score w 104-98? | CREATE TABLE table_74211 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT MIN(earnings__) AS $_ FROM table_name_93 WHERE money_list_rank = "6" AND starts < 22 | What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22? | CREATE TABLE table_name_93 (earnings__ INTEGER, money_list_rank VARCHAR, starts VARCHAR) |
SELECT written_by FROM table_21979779_1 WHERE us_viewers__million_ = "3.07" | who are the writers of the episode that had 3.07 millions of North American spectators? | CREATE TABLE table_21979779_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT MIN(tournaments) FROM table_name_46 WHERE highest_rank = "maegashira 13" | What is the lowest Tournaments with Highest Rank of Maegashira 13? | CREATE TABLE table_name_46 (
tournaments INTEGER,
highest_rank VARCHAR
) |
SELECT MAX(cuts_made) FROM table_name_47 WHERE top_10 < 8 AND wins > 0 | What is the highest number of Cuts made that has a Top 10 smaller than 8 and Wins larger than 0? | CREATE TABLE table_name_47 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR) |
SELECT MAX(no) FROM table_21979779_1 WHERE production_code = "2T7211" | what is the biggest series episode number whose production code is 2t7211? | CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR) |
SELECT player FROM table_name_57 WHERE pick = 402 | What was the name of the player for pick 402? | CREATE TABLE table_name_57 (
player VARCHAR,
pick VARCHAR
) |
SELECT COUNT(starts) FROM table_name_66 WHERE cuts_made = 2 AND top_25 > 0 AND earnings__$_ < 338 OFFSET 067 | How many Starts that have Cuts made of 2, Top 25 larger than 0, and Earnings ($) smaller than 338,067? | CREATE TABLE table_name_66 (starts VARCHAR, earnings__$_ VARCHAR, cuts_made VARCHAR, top_25 VARCHAR) |
SELECT MIN(no) FROM table_21979779_1 WHERE production_code = "2T7211" | what is the smallest series episode number whose production code is 2t7211? | CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR) |
SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-85328' AND patient.hospitaldischargetime IS NULL) ORDER BY patient.unitadmittime LIMIT 1 | during their current hospital visit what was the first id of the ward of patient 027-85328? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
... |
SELECT event FROM table_name_70 WHERE round = 1 AND res = "win" AND record = "15-4" | Which event was in round 1, resulted in a win, and a record of 15-4? | CREATE TABLE table_name_70 (event VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR) |
SELECT original_air_date FROM table_21979779_1 WHERE us_viewers__million_ = "1.76" | when was the premiere of the episode where the amount of North American spectators was 1.76 millions? | CREATE TABLE table_21979779_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR) |
SELECT DISTINCT name FROM genres | What are the different names of the genres? | CREATE TABLE playlist_tracks (
playlist_id number,
track_id number
)
CREATE TABLE sqlite_sequence (
name text,
seq text
)
CREATE TABLE customers (
id number,
first_name text,
last_name text,
company text,
address text,
city text,
state text,
country text,
postal_cod... |
SELECT res FROM table_name_43 WHERE time = "5:00" AND record = "14-4" | What is the result when the time was 5:00 and a record of 14-4? | CREATE TABLE table_name_43 (res VARCHAR, time VARCHAR, record VARCHAR) |
SELECT MAX(series__number) FROM table_21994729_3 WHERE prod_code = "2APX05" | how many maximum series number have 2apx05 prod. code. | CREATE TABLE table_21994729_3 (series__number INTEGER, prod_code VARCHAR) |
SELECT "Date" FROM table_56423 WHERE "Attendance" = '48,041' | What was the date when the attendance was 48,041? | CREATE TABLE table_56423 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) |
SELECT wins FROM table_name_79 WHERE club = "ayr united" | How many wins did Ayr United have? | CREATE TABLE table_name_79 (wins VARCHAR, club VARCHAR) |
SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin" | What are all the title directed by reginald hudlin | CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Users.Id AS "user_link", Reputation, Location FROM Users, Badges WHERE Users.Id = Badges.UserId AND Badges.Class = 3 AND Badges.TagBased = 1 AND Badges.Name = 'angularjs' AND LOWER(Users.Location) LIKE LOWER('%London%') ORDER BY Reputation DESC | London based Angular Bronze Badge. | 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 PostTypes (
Id number,
Name text
)
CREATE TABLE PostLin... |
SELECT last_final_lost FROM table_name_84 WHERE wins = "3" AND last_win = "2001" | When was the final loss of the club last won in 2001 and has a total of 3 wins? | CREATE TABLE table_name_84 (last_final_lost VARCHAR, wins VARCHAR, last_win VARCHAR) |
SELECT written_by FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin" | reginald hudlin directed how many written by. | CREATE TABLE table_21994729_3 (written_by VARCHAR, directed_by VARCHAR) |
SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 452 AND instructor.name LIKE '%Robert Donia%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_in... | Is Prof. Robert Donia teaching 452 next Winter ? | CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id ... |
SELECT last_win FROM table_name_34 WHERE last_final_lost = "2011" | When was the last win for the club that had a final loss in 2011? | CREATE TABLE table_name_34 (last_win VARCHAR, last_final_lost VARCHAR) |
SELECT written_by FROM table_21994729_2 WHERE prod_code = "1APX11" | Who wore the episode with the production code of 1apx11? | CREATE TABLE table_21994729_2 (written_by VARCHAR, prod_code VARCHAR) |
SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE | For all employees who have the letters D or S in their first name, show me about the change of department_id over hire_date in a line chart, rank by the X-axis in asc. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 varchar(12),
CITY ... |
SELECT wins FROM table_name_33 WHERE runners_up = "8" | How many wins did the 8 time runner-up have? | CREATE TABLE table_name_33 (wins VARCHAR, runners_up VARCHAR) |
SELECT total FROM table_21995420_9 WHERE rank = 11 | If the rank is 11, what is the total amount? | CREATE TABLE table_21995420_9 (total VARCHAR, rank VARCHAR) |
SELECT "Pick #" FROM table_43131 WHERE "Player" = 'jason french' | Which pick number was there for Jason French? | CREATE TABLE table_43131 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) |
SELECT wins FROM table_name_42 WHERE last_win = "2000" | How many wins did the club have with the last win in 2000? | CREATE TABLE table_name_42 (wins VARCHAR, last_win VARCHAR) |
SELECT stunts FROM table_21995420_9 WHERE school = "Central Colleges of the Philippines CCP Bobcats" | If the school is Central Colleges of the Philippines CCP Bobcats, what is the stunts number? | CREATE TABLE table_21995420_9 (stunts VARCHAR, school VARCHAR) |
SELECT "Laps" FROM table_46184 WHERE "Car No." = '23' | How many laps did car 23 do? | CREATE TABLE table_46184 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
) |
SELECT SUM(car) FROM table_name_83 WHERE player = "jeremiah pope" | What are the carries of the player Jeremiah Pope? | CREATE TABLE table_name_83 (car INTEGER, player VARCHAR) |
SELECT 08 AS _pts FROM table_22011138_7 WHERE pos = 3 | If the POS is 3, what is the 08 points? | CREATE TABLE table_22011138_7 (pos VARCHAR) |
SELECT Calendar_Date, COUNT(Calendar_Date) FROM Ref_Calendar ORDER BY COUNT(Calendar_Date) DESC | Show all calendar dates and bin by weekday in a bar chart, I want to rank y axis in desc order. | CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details VARCHAR(255)
)... |
SELECT MAX(crowd) FROM table_name_58 WHERE home_team = "fitzroy" | What was the largest crowd that was in attendance for fitzroy? | CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR) |
SELECT 08 AS _pts FROM table_22011138_7 WHERE team = "Rubio Ñú" | If the team is Rubio ñú, what is the 08 points? | CREATE TABLE table_22011138_7 (team VARCHAR) |
SELECT language FROM table_name_86 WHERE television_service = "reteconomy" | What is the Language when the Reteconomy is the television service? | CREATE TABLE table_name_86 (
language VARCHAR,
television_service VARCHAR
) |
SELECT player FROM table_name_69 WHERE team = "st. louis bombers" AND position = "g" | Who plays g position for the st. louis bombers? | CREATE TABLE table_name_69 (player VARCHAR, team VARCHAR, position VARCHAR) |
SELECT MAX(total_pts) FROM table_22011138_7 WHERE avg = "1.2803" | If the average is 1.2803, what is the total points maximum? | CREATE TABLE table_22011138_7 (total_pts INTEGER, avg VARCHAR) |
SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12952 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartevents.ite... | how much weight was patient 12952's first weight on the first hospital visit? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE labevents (
ro... |
SELECT player FROM table_name_15 WHERE position = "f" AND college = "depauw" | Who plays f position for depauw? | CREATE TABLE table_name_15 (player VARCHAR, position VARCHAR, college VARCHAR) |
SELECT total_pld FROM table_22011138_7 WHERE pos = 4 | If the POS is 4, what is the total PLD? | CREATE TABLE table_22011138_7 (total_pld VARCHAR, pos VARCHAR) |
SELECT SUM(lane) FROM table_name_92 WHERE nationality = "france" AND rank > 8 | How many lanes have a Nationality of france, and a Rank larger than 8? | CREATE TABLE table_name_92 (
lane INTEGER,
nationality VARCHAR,
rank VARCHAR
) |
SELECT position FROM table_name_39 WHERE college = "saint louis" | What position does the saint louis player play? | CREATE TABLE table_name_39 (position VARCHAR, college VARCHAR) |
SELECT team_name FROM table_22014431_3 WHERE total = "243" | What is the team name when 243 is the total? | CREATE TABLE table_22014431_3 (team_name VARCHAR, total VARCHAR) |
SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admityear >= "2156" | Specify the average age of unmarried patients admitted in or after the year 2156 | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... |
SELECT player FROM table_name_79 WHERE college = "sam houston state" | Who plays for sam houston state? | CREATE TABLE table_name_79 (player VARCHAR, college VARCHAR) |
SELECT team_name FROM table_22014431_3 WHERE tumbling = "44.5" | Which team names have 44.5 for tumbling? | CREATE TABLE table_22014431_3 (team_name VARCHAR, tumbling VARCHAR) |
SELECT MAX(previous_br_no) FROM table_2079664_3 | Name the most previous br number | CREATE TABLE table_2079664_3 (
previous_br_no INTEGER
) |
SELECT COUNT(position) FROM table_name_73 WHERE points = "30-8" AND goals_for > 25 | How many positions have Points of 30-8 and more than 25 goals? | CREATE TABLE table_name_73 (position VARCHAR, points VARCHAR, goals_for VARCHAR) |
SELECT total FROM table_22014431_3 WHERE tosses_pyramids = "44" | What is the total if 44 is tosses/pyramids? | CREATE TABLE table_22014431_3 (total VARCHAR, tosses_pyramids VARCHAR) |
SELECT DISTINCT name FROM genres | List all different genre types. | CREATE TABLE genres (
id number,
name text
)
CREATE TABLE playlists (
id number,
name text
)
CREATE TABLE employees (
id number,
last_name text,
first_name text,
title text,
reports_to number,
birth_date time,
hire_date time,
address text,
city text,
state text,... |
SELECT MIN(played) FROM table_name_41 WHERE club = "ue figueres" AND goal_difference > 16 | What is the lowest play with ue figueres club and a goal difference more than 16? | CREATE TABLE table_name_41 (played INTEGER, club VARCHAR, goal_difference VARCHAR) |
SELECT deductions FROM table_22014431_3 WHERE tosses_pyramids = "56.5" | How many deductions have 56.5 as tosses/pyramids? | CREATE TABLE table_22014431_3 (deductions VARCHAR, tosses_pyramids VARCHAR) |
SELECT MIN("Int yards") FROM table_72680 WHERE "Sacks" = '11.5' | Name the least int yards when sacks is 11.5 | CREATE TABLE table_72680 (
"Player" text,
"G" real,
"Tackles" real,
"Solo" real,
"Assts" real,
"Sacks" text,
"Int" real,
"Int yards" real,
"Int avg." text,
"Int TD" real,
"Fum. rec" real,
"Fum. rec TD" real
) |
SELECT COUNT(played) FROM table_name_20 WHERE wins = 8 AND goals_against > 58 | How many played have 8 wins and more than 58 goals against? | CREATE TABLE table_name_20 (played VARCHAR, wins VARCHAR, goals_against VARCHAR) |
SELECT COUNT(rank) FROM table_22014431_3 WHERE tumbling = "36.5" | What is the rank when 36.5 is tumbling? | CREATE TABLE table_22014431_3 (rank VARCHAR, tumbling VARCHAR) |
SELECT "TO Winning Team" FROM table_18905 WHERE "GTO Winning Team" = 'Gene Felton' | Who is Gene Felton's TO Winning Team? | CREATE TABLE table_18905 (
"Rnd" real,
"Circuit" text,
"GTO Winning Team" text,
"GTU Winning Team" text,
"TO Winning Team" text,
"TU Winning Team" text,
"Results" text
) |
SELECT withdrawn FROM table_name_72 WHERE gsr_class = "296" | What is withdrawn with a GSR Class of 296? | CREATE TABLE table_name_72 (withdrawn VARCHAR, gsr_class VARCHAR) |
SELECT MAX(rank) FROM table_22014431_3 WHERE tosses_pyramids = "64.5" | What is the rank when 64.5 is tosses/pyramids? | CREATE TABLE table_22014431_3 (rank INTEGER, tosses_pyramids VARCHAR) |
SELECT meter_200, AVG(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 | Draw a bar chart about the distribution of meter_200 and the average of meter_100 , and group by attribute meter_200, and show by the x-axis from low to high. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_40... |
SELECT inchicore_class FROM table_name_4 WHERE gsr_class = "235" | What Inchicore Class has a GSR Class of 235? | CREATE TABLE table_name_4 (inchicore_class VARCHAR, gsr_class VARCHAR) |
SELECT COUNT(outcome) FROM table_2201724_2 WHERE championship = "French championships" | How many different outcomes of the French Championships were there? | CREATE TABLE table_2201724_2 (outcome VARCHAR, championship VARCHAR) |
SELECT MIN("No. in series") FROM table_30156 | What is the lowest numbered episode in the series? | CREATE TABLE table_30156 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production" text,
"U.S. viewers (in millions)" text
) |
SELECT inchicore_class FROM table_name_60 WHERE gswr_class < 268 AND type = "0-4-2t" | What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t? | CREATE TABLE table_name_60 (inchicore_class VARCHAR, gswr_class VARCHAR, type VARCHAR) |
SELECT COUNT(score_in_the_final) FROM table_2201724_2 WHERE year = 1963 | How many different final scores were there in 1963? | CREATE TABLE table_2201724_2 (score_in_the_final VARCHAR, year VARCHAR) |
SELECT AVG("Year") FROM table_71691 WHERE "Class" = 'car' AND "Stages won" = '0' AND "Position" = 'dnf' | What is the average year that has a car that won 0 stages with a position of DNF? | CREATE TABLE table_71691 (
"Year" real,
"Class" text,
"Vehicle" text,
"Position" text,
"Stages won" text
) |
SELECT gswr_class FROM table_name_80 WHERE year = "1893" | Which GSWR Class is from 1893? | CREATE TABLE table_name_80 (gswr_class VARCHAR, year VARCHAR) |
SELECT director FROM table_22020724_1 WHERE film_title_used_in_nomination = "Steam of Life" | Who directed the film titled 'Steam of Life'? | CREATE TABLE table_22020724_1 (director VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT "Opponent" FROM table_54867 WHERE "Record" = '4-4' | Who did the Cubs play when they had a record of 4-4? | CREATE TABLE table_54867 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) |
SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = "24:57" | On the episode that had a run time of 24:57, how many million viewers were there? | CREATE TABLE table_name_5 (viewers__in_millions_ VARCHAR, run_time VARCHAR) |
SELECT year__ceremony_ FROM table_22020724_1 WHERE title_in_the_original_language = "Tummien perhosten koti" | What year was the ceremony where the film 'Tummien Perhosten Koti' was submitted? | CREATE TABLE table_22020724_1 (year__ceremony_ VARCHAR, title_in_the_original_language VARCHAR) |
SELECT player FROM table_name_89 WHERE to_par = "+1" AND score = 71 - 67 - 73 = 211 | What player has a To Par of +1 with a score of 71-67-73=211? | CREATE TABLE table_name_89 (
player VARCHAR,
to_par VARCHAR,
score VARCHAR
) |
SELECT year FROM table_name_32 WHERE record = "4-21" | What year had a record of 4-21? | CREATE TABLE table_name_32 (year VARCHAR, record VARCHAR) |
SELECT COUNT(result) FROM table_22020724_1 WHERE title_in_the_original_language = "Joki" | What are the results for the film titled 'Joki'? | CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "64" AND diagnoses.icd9_code = "V6284" | give me the number of patients whose age is less than 64 and diagnoses icd9 code is v6284? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... |
SELECT reg_season FROM table_name_7 WHERE record = "16-12" | What regular season had a record of 16-12? | CREATE TABLE table_name_7 (reg_season VARCHAR, record VARCHAR) |
SELECT domestic_box_office FROM table_2203760_4 WHERE foreign_box_office = "$26,600,000" | What was the domestic box office for the film that had a foreign box office of $26,600,000? | CREATE TABLE table_2203760_4 (domestic_box_office VARCHAR, foreign_box_office VARCHAR) |
SELECT ACC_Road, AVG(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road DESC | Give me the comparison about the average of School_ID over the ACC_Road , and group by attribute ACC_Road by a bar chart, order X-axis in descending order please. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... |
SELECT reg_season FROM table_name_87 WHERE record = "20-10" | What is the regular season info that had a record of 20-10? | CREATE TABLE table_name_87 (reg_season VARCHAR, record VARCHAR) |
SELECT domestic_box_office FROM table_2203760_4 WHERE film = "House on Haunted Hill" | What was the domestic box office for "House on Haunted Hill"? | CREATE TABLE table_2203760_4 (domestic_box_office VARCHAR, film VARCHAR) |
SELECT "Torque" FROM table_16483 WHERE "Performance" = '0–100km/h: 7.5s auto, VMax: km/h (mph)' | what's the torque where performance is 0 100km/h: 7.5s auto, vmax: km/h (mph) | CREATE TABLE table_16483 (
"Trim" text,
"Engine" text,
"Turbo" text,
"Fuel Delivery" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Performance" text
) |
SELECT 1 AS st_leg FROM table_name_9 WHERE team__number1 = "asfa rabat" | Tell me the 1st leg for asfa rabat | CREATE TABLE table_name_9 (team__number1 VARCHAR) |
SELECT budget FROM table_2203760_4 WHERE film = "Thirteen Ghosts" | What was the budget for "Thirteen Ghosts"? | CREATE TABLE table_2203760_4 (budget VARCHAR, film VARCHAR) |
SELECT COUNT("Location of the Church") FROM table_21950 WHERE "Year Built" = '1957' AND "Church Name" = 'Askrova bedehuskapell' | On how many locations is there a church named Askrova Bedehuskapell, built in 1957? | CREATE TABLE table_21950 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sokn)" text,
"Church Name" text,
"Year Built" text,
"Location of the Church" text
) |
SELECT 2 AS nd_leg FROM table_name_61 WHERE team__number1 = "alemannia aachen" | Tell me the 2nd leg for alemannia aachen | CREATE TABLE table_name_61 (team__number1 VARCHAR) |
SELECT school FROM table_22043925_1 WHERE location = "Adelaide" | What is every school for the Adelaide location? | CREATE TABLE table_22043925_1 (school VARCHAR, location VARCHAR) |
SELECT MIN("Attendance") FROM table_70651 WHERE "Opponent" = 'devil rays' AND "Date" = 'may 13' | How low is the Attendance that has an Opponent of devil rays and a Date of may 13? | CREATE TABLE table_70651 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) |
SELECT 1 AS st_leg FROM table_name_10 WHERE team__number2 = "antwerp bc" | Tell me the 1st leg for antwerp bc | CREATE TABLE table_name_10 (team__number2 VARCHAR) |
SELECT COUNT(founded) FROM table_22043925_1 WHERE enrolment = 850 | How many values for founded when enrollment is 850? | CREATE TABLE table_22043925_1 (founded VARCHAR, enrolment 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, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'AT... | i would like to fly DL from ATLANTA to PITTSBURGH | CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE T... |
SELECT team__number2 FROM table_name_78 WHERE team__number1 = "handelsministerium vienna" | Tell me the team 2 for handelsministerium vienna | CREATE TABLE table_name_78 (team__number2 VARCHAR, team__number1 VARCHAR) |
SELECT denomination FROM table_22043925_1 WHERE school = "Seymour College" | What is every denomination for the school Seymour college? | CREATE TABLE table_22043925_1 (denomination VARCHAR, school VARCHAR) |
SELECT Name, Height FROM people ORDER BY Name DESC | Draw a bar chart about the distribution of Name and Height , and list by the Name from high to low. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.