answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT opponent FROM table_21091127_1 WHERE record = "6-2" | Which opponent has a record of 6-2? | CREATE TABLE table_21091127_1 (opponent VARCHAR, record VARCHAR) |
SELECT "Venue" FROM table_48373 WHERE "Score" = '1:3' AND "Team 2" = 'binh duong' | What was the venue of the match where the score was 1:3 and team 2 was binh duong? | CREATE TABLE table_48373 (
"Season" real,
"Team 1" text,
"Score" text,
"Team 2" text,
"Venue" text
) |
SELECT season FROM table_name_4 WHERE european_cup = "euroleague" AND national_cup = "greek cup" | Which season is Euroleague with Greek Cup? | CREATE TABLE table_name_4 (season VARCHAR, european_cup VARCHAR, national_cup VARCHAR) |
SELECT COUNT(result) FROM table_21091127_1 WHERE game = 5 | How many results have a game of 5? | CREATE TABLE table_21091127_1 (result VARCHAR, game VARCHAR) |
SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Price DESC | For those records from the products and each product's manufacturer, give me the comparison about price over the name , and group by attribute headquarter by a bar chart, and order by the y axis in descending please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
SELECT european_cup FROM table_name_78 WHERE season = "1990-91" | Which European Cup is in the 1990-91 season? | CREATE TABLE table_name_78 (european_cup VARCHAR, season VARCHAR) |
SELECT run_time FROM table_2108684_1 WHERE viewers__in_millions_ = "7.9" | What is the run time for the episode with 7.9 million viewers? | CREATE TABLE table_2108684_1 (run_time VARCHAR, viewers__in_millions_ VARCHAR) |
SELECT "Nationality\u00b2" FROM table_26966 WHERE "Goals\u00b9" = '13' | What is the nationality of the player who scored 13 goals | CREATE TABLE table_26966 (
"Name" text,
"Position" text,
"Period" text,
"Appearances\u00b9" real,
"Goals\u00b9" real,
"Nationality\u00b2" text
) |
SELECT european_cup FROM table_name_91 WHERE season = "2006-07" | Which European Cup is in the 2006-07 season? | CREATE TABLE table_name_91 (european_cup VARCHAR, season VARCHAR) |
SELECT episode FROM table_2108684_1 WHERE run_time = "23:38" | What episode had a run time of 23:38? | CREATE TABLE table_2108684_1 (episode VARCHAR, run_time VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ATRIAL SEPTAL DEFECT\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA" AND demographic.age < "59" | Provide the number of patients whose primary disease is atrial septal defect/mitral valve replacement repair atrial-septal defect/sda and are aged below 59 years. | 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 national_league FROM table_name_7 WHERE season = "1969-70" | Which National League is in 1969-70 season? | CREATE TABLE table_name_7 (national_league VARCHAR, season VARCHAR) |
SELECT viewers__in_millions_ FROM table_2108684_1 WHERE run_time = "25:22" | How many million viewers watched the episode with a run time of 25:22? | CREATE TABLE table_2108684_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR) |
SELECT AVG("Number of s EVA") FROM table_7600 WHERE "Lunar lander" = 'orion' | What is the average number of EVA for the Orion? | CREATE TABLE table_7600 (
"Mission name" text,
"Lunar lander" text,
"Lunar landing date" text,
"Lunar blastoff date" text,
"Lunar landing site" text,
"Duration on lunar surface" text,
"Crew" text,
"Number of s EVA" real,
"Total EVA Time (HH:MM)" text
) |
SELECT right_ascension___j2000__ FROM table_name_77 WHERE apparent_magnitude = 13 | what is the right ascension (j2000) when the apparent magnitude is 13? | CREATE TABLE table_name_77 (right_ascension___j2000__ VARCHAR, apparent_magnitude VARCHAR) |
SELECT date FROM table_21092444_1 WHERE result = "Loss" AND opponent = "Duke" | Name the date for result loss for duke | CREATE TABLE table_21092444_1 (date VARCHAR, result VARCHAR, opponent VARCHAR) |
SELECT employee_id FROM employees EXCEPT SELECT destroyed_by_employee_id FROM documents_to_be_destroyed | Show the ids of all employees who don't destroy any document. | CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE employees (
employee_id number,
role_code text,
employee_name text,
gender_mfu text,
date_of_birth time,
other_details text
)
CREATE TABLE ref_locations... |
SELECT constellation FROM table_name_61 WHERE right_ascension___j2000__ = "09h51m54.0s" | what is the constellation when the right ascension (j2000) is 09h51m54.0s? | CREATE TABLE table_name_61 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) |
SELECT opponents FROM table_21092444_1 WHERE record = "2-1" | Name the opponents for record of 2-1 | CREATE TABLE table_21092444_1 (opponents VARCHAR, record VARCHAR) |
SELECT english___manga_uk__ FROM table_2160215_1 WHERE original_japanese = "Kō Nishimura" | Who was the cast on the English (Manga UK) version if K Nishimura acted on the original Japanese? | CREATE TABLE table_2160215_1 (
english___manga_uk__ VARCHAR,
original_japanese VARCHAR
) |
SELECT MIN(apparent_magnitude) FROM table_name_66 WHERE object_type = "spiral galaxy" AND constellation = "leo minor" AND ngc_number > 3021 | what is the lowest apparent magnitude when the object type is spiral galaxy, the constellation is leo minor and the ngc number is more than 3021? | CREATE TABLE table_name_66 (apparent_magnitude INTEGER, ngc_number VARCHAR, object_type VARCHAR, constellation VARCHAR) |
SELECT record FROM table_21092444_1 WHERE black_knights_points = 54 | Name the record for black knights points 54 | CREATE TABLE table_21092444_1 (record VARCHAR, black_knights_points VARCHAR) |
SELECT "Decision" FROM table_60649 WHERE "Date" = 'november 28' | WHAT IS THE DECISION FOR NOVEMBER 28? | CREATE TABLE table_60649 (
"Date" text,
"Opponent" text,
"Score" text,
"Decision" text,
"Attendance" real,
"Record" text
) |
SELECT COUNT(draws) FROM table_name_45 WHERE goals_for = 58 AND losses = 12 AND goal_difference < 21 | Name the total number of Draws when goals for is 58 and losses is 12 when goal differences is less than 21 | CREATE TABLE table_name_45 (draws VARCHAR, goal_difference VARCHAR, goals_for VARCHAR, losses VARCHAR) |
SELECT opponents FROM table_21092444_1 WHERE opponent = "Stanford" | Name the opponents stanford | CREATE TABLE table_21092444_1 (opponents VARCHAR, opponent VARCHAR) |
SELECT attendance FROM table_name_61 WHERE result = "w 28-13" | What was the attendance of the w 28-13 game? | CREATE TABLE table_name_61 (
attendance VARCHAR,
result VARCHAR
) |
SELECT COUNT(goals_for) FROM table_name_66 WHERE draws < 11 AND points = "54+16" AND goals_against < 39 | How many goals for where there when draws are less than 11, points of is 54+16 and goals against are less than 39? | CREATE TABLE table_name_66 (goals_for VARCHAR, goals_against VARCHAR, draws VARCHAR, points VARCHAR) |
SELECT result FROM table_21094951_1 WHERE opponent = "Ursinus College" | Name the result for ursinus college | CREATE TABLE table_21094951_1 (result VARCHAR, opponent VARCHAR) |
SELECT AVG(year) FROM table_name_32 WHERE cargo__tonnes_ = "13 585" | What year had cargo tonnes of 13 585? | CREATE TABLE table_name_32 (
year INTEGER,
cargo__tonnes_ VARCHAR
) |
SELECT COUNT(played) FROM table_name_67 WHERE points = "31-7" AND position = 16 AND goals_for < 35 | Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35 | CREATE TABLE table_name_67 (played VARCHAR, goals_for VARCHAR, points VARCHAR, position VARCHAR) |
SELECT MAX(black_knights_points) FROM table_21094951_1 WHERE result = "Loss" | Name the black knights points for loss result | CREATE TABLE table_21094951_1 (black_knights_points INTEGER, result VARCHAR) |
SELECT COUNT(*) FROM Student WHERE Advisor = 1121 | Advisor 1121 has how many students? | CREATE TABLE Student (
Advisor VARCHAR
) |
SELECT COUNT(goal_difference) FROM table_name_49 WHERE position > 20 | Name the total number of goal difference when the position is more than 20 | CREATE TABLE table_name_49 (goal_difference VARCHAR, position INTEGER) |
SELECT date FROM table_21094951_1 WHERE record = "6-2" | Name the date for 6-2 record | CREATE TABLE table_21094951_1 (date VARCHAR, record VARCHAR) |
SELECT earpads FROM table_name_67 WHERE construction = "plastic" AND succeeded_by = "igrado" | What earpads does the headphone with plastic contruction and was succeeded by igrado have? | CREATE TABLE table_name_67 (
earpads VARCHAR,
construction VARCHAR,
succeeded_by VARCHAR
) |
SELECT SUM(draws) FROM table_name_82 WHERE position < 17 AND wins < 11 | Name the sum of draws when the position is less than 17 and wins is less than 11 | CREATE TABLE table_name_82 (draws INTEGER, position VARCHAR, wins VARCHAR) |
SELECT MAX(opponents) FROM table_21094951_1 WHERE record = "2-0" | Name the opponents for record being 2-0 | CREATE TABLE table_21094951_1 (opponents INTEGER, record VARCHAR) |
SELECT time_retired FROM table_name_81 WHERE constructor = "brm" AND grid = 13 | What is the time/retired for brm with a grid of 13? | CREATE TABLE table_name_81 (
time_retired VARCHAR,
constructor VARCHAR,
grid VARCHAR
) |
SELECT position_in_2012 FROM table_name_93 WHERE last_title = "n/a" AND first_season = "2011" | what is the position is 2012 when the last title is n/a and the first season is 2011? | CREATE TABLE table_name_93 (position_in_2012 VARCHAR, last_title VARCHAR, first_season VARCHAR) |
SELECT innings FROM table_21100348_10 WHERE average = "41.43" | How man innings were there during the period with a career average of 41.43? | CREATE TABLE table_21100348_10 (innings VARCHAR, average VARCHAR) |
SELECT "Party" FROM table_18507 WHERE "Result" = 'Re-elected' AND "District" = 'Louisiana 6' | What party's candidate was re-elected in the Louisiana 6 district? | CREATE TABLE table_18507 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT last_title FROM table_name_91 WHERE titles > 12 AND position_in_2012 = "7th" | what is the last title when the titles is more than 12 and the position in 2012 is 7th | CREATE TABLE table_name_91 (last_title VARCHAR, titles VARCHAR, position_in_2012 VARCHAR) |
SELECT period FROM table_21100348_10 WHERE player = "Ricky Ponting" | During what period did Ricky Ponting play? | CREATE TABLE table_21100348_10 (period VARCHAR, player VARCHAR) |
SELECT country FROM table_name_57 WHERE music = "angelo francesco lavagnino" AND year = 1969 | What is the country that has a music writer of Angelo Francesco Lavagnino, written in 1969? | CREATE TABLE table_name_57 (
country VARCHAR,
music VARCHAR,
year VARCHAR
) |
SELECT COUNT(rank) FROM table_name_30 WHERE placings = "28.5" AND total < 92.7 | What is the rank number for a placing of 28.5 and a total less than 92.7? | CREATE TABLE table_name_30 (rank VARCHAR, placings VARCHAR, total VARCHAR) |
SELECT period FROM table_21100348_10 WHERE average = "44.10" | During what period was the career average 44.10? | CREATE TABLE table_21100348_10 (period VARCHAR, average VARCHAR) |
SELECT MIN(_number_of_bids) FROM table_name_38 WHERE win__percentage = ".667" | Tell me the lowest # of bids for win percent of .667 | CREATE TABLE table_name_38 (
_number_of_bids INTEGER,
win__percentage VARCHAR
) |
SELECT placings FROM table_name_15 WHERE total < 96.07 AND nation = "united states" | What is the placing value for a total less than 96.07 in the United States? | CREATE TABLE table_name_15 (placings VARCHAR, total VARCHAR, nation VARCHAR) |
SELECT MIN(rank) FROM table_21100348_10 WHERE player = "Michael Bevan" | What was the smallest numbered rank for Michael Bevan? | CREATE TABLE table_21100348_10 (rank INTEGER, player VARCHAR) |
SELECT leading_scorer FROM table_name_61 WHERE home = "trail blazers" | What is the name of the Leading scorer when the Home was the Trail blazers? | CREATE TABLE table_name_61 (
leading_scorer VARCHAR,
home VARCHAR
) |
SELECT COUNT(total) FROM table_name_57 WHERE rank = 11 | What is the total for Rank 11? | CREATE TABLE table_name_57 (total VARCHAR, rank VARCHAR) |
SELECT period FROM table_21100348_10 WHERE average = "48.15" | What period was there a career average of 48.15? | CREATE TABLE table_21100348_10 (period VARCHAR, average VARCHAR) |
SELECT "District" FROM table_28938 WHERE "Incumbent" = 'Matthew Clay' | Name the district for matthew clay | CREATE TABLE table_28938 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) |
SELECT SUM(total) FROM table_name_25 WHERE nation = "switzerland" | What is the sum of all total values for Switzerland? | CREATE TABLE table_name_25 (total INTEGER, nation VARCHAR) |
SELECT commodity FROM table_21109892_1 WHERE value__int_$1000_ = 409566 | when the value (int $1000) is 409566, what is the commodity? | CREATE TABLE table_21109892_1 (commodity VARCHAR, value__int_$1000_ VARCHAR) |
SELECT 54 AS _holes FROM table_11570261_1 WHERE winning_score = −19(67 - 66 - 67 - 69 = 269) | what's the 54 holes where winning score is 19 (67-66-67-69=269) | CREATE TABLE table_11570261_1 (
winning_score VARCHAR
) |
SELECT rank FROM table_name_66 WHERE total = 92.7 | What rank goes to a total of 92.7? | CREATE TABLE table_name_66 (rank VARCHAR, total VARCHAR) |
SELECT MIN(value__int_) AS $1000_ FROM table_21109892_1 WHERE value_world_rank = "23" | When the value rank is 23, what is the value? | CREATE TABLE table_21109892_1 (value__int_ INTEGER, value_world_rank VARCHAR) |
SELECT discs FROM table_name_90 WHERE region_1_release = "january 22, 2008" | What discs has a region 1 release date of January 22, 2008? | CREATE TABLE table_name_90 (
discs VARCHAR,
region_1_release VARCHAR
) |
SELECT name FROM table_name_60 WHERE rank > 3 AND placings = "64" | Who has a rank great than 3 and a placing of 64? | CREATE TABLE table_name_60 (name VARCHAR, rank VARCHAR, placings VARCHAR) |
SELECT rank FROM table_21109892_1 WHERE value_world_rank = "7" | When the value world rank is 7, what is the rank? | CREATE TABLE table_21109892_1 (rank VARCHAR, value_world_rank VARCHAR) |
SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING COUNT(*) <= 2 | Find the name of the customers who have at most two orders. | CREATE TABLE customers (
customer_name VARCHAR,
customer_id VARCHAR
)
CREATE TABLE orders (
customer_id VARCHAR
) |
SELECT COUNT(horizontal_bar) FROM table_name_68 WHERE team = "japan (jpn)" AND parallel_bars < 38.924 | How many Horizontal Bars have a Team of japan (jpn), and Parallel Bars smaller than 38.924? | CREATE TABLE table_name_68 (horizontal_bar VARCHAR, team VARCHAR, parallel_bars VARCHAR) |
SELECT COUNT(rank) FROM table_21109892_1 WHERE production__mt_ = 650000 | When the production (mt) is 650000, what is the total number of rank? | CREATE TABLE table_21109892_1 (rank VARCHAR, production__mt_ VARCHAR) |
SELECT railway FROM table_name_68 WHERE build_date = 1911 AND loco_name = "pyramus" | Which railway had a loco name of Pyramus and a build date of 1911? | CREATE TABLE table_name_68 (
railway VARCHAR,
build_date VARCHAR,
loco_name VARCHAR
) |
SELECT COUNT(pommel_horse) FROM table_name_16 WHERE rings = 37.461 AND total < 229.507 | How many pommel Horses have Rings of 37.461, and a Total smaller than 229.507? | CREATE TABLE table_name_16 (pommel_horse VARCHAR, rings VARCHAR, total VARCHAR) |
SELECT value_world_rank FROM table_21109892_1 WHERE production__mt_ = 446424 | When the production (mt) is 446424, what is the value world rank ? | CREATE TABLE table_21109892_1 (value_world_rank VARCHAR, production__mt_ VARCHAR) |
SELECT T2.hardware_model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.model_name = T2.chip_model WHERE T1.launch_year = 2002 ORDER BY T1.ram_mib DESC LIMIT 1 | List the name of the phone model launched in year 2002 and with the highest RAM size. | CREATE TABLE chip_model (
model_name text,
launch_year number,
ram_mib number,
rom_mib number,
slots text,
wifi text,
bluetooth text
)
CREATE TABLE phone (
company_name text,
hardware_model_name text,
accreditation_type text,
accreditation_level text,
date text,
chip... |
SELECT COUNT(total) FROM table_name_52 WHERE vault = 38.437 AND floor_exercise < 37.524 | What is the sum of totals with a Vault of 38.437, and a Floor Exercise smaller than 37.524? | CREATE TABLE table_name_52 (total VARCHAR, vault VARCHAR, floor_exercise VARCHAR) |
SELECT quantity_world_rank FROM table_21109892_1 WHERE value_world_rank = "12" | where value world rank is 12, what is the quantity world rank? | CREATE TABLE table_21109892_1 (quantity_world_rank VARCHAR, value_world_rank VARCHAR) |
SELECT "General classification" FROM table_29317 WHERE "Stage" = '4' | Who is listed under general classification on stage 4? | CREATE TABLE table_29317 (
"Stage" real,
"Stage winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Asian rider classification" text,
"Team classification" text
) |
SELECT COUNT(pommel_horse) FROM table_name_52 WHERE total < 230.019 AND team = "china (chn)" AND vault < 38.437 | How many pommel horses have a Total smaller than 230.019, a Team of china (chn), and a Vault smaller than 38.437? | CREATE TABLE table_name_52 (pommel_horse VARCHAR, vault VARCHAR, total VARCHAR, team VARCHAR) |
SELECT rank FROM table_21100348_15 WHERE player = "Tim Paine" | What is the rank of Tim Paine? | CREATE TABLE table_21100348_15 (rank VARCHAR, player VARCHAR) |
SELECT june_10_11 FROM table_25287007_2 WHERE november_3 = "153" | How many solar eclipse on June 10-11, while November 3 is 153? | CREATE TABLE table_25287007_2 (
june_10_11 VARCHAR,
november_3 VARCHAR
) |
SELECT title FROM table_name_98 WHERE year > 1943 AND studio = "rko" AND role = "dolly" | What is the title where the studio was RKO, the role was Dolly, and the year was later than 1943? | CREATE TABLE table_name_98 (title VARCHAR, role VARCHAR, year VARCHAR, studio VARCHAR) |
SELECT MAX(rank) FROM table_21100348_15 WHERE player = "Rodney Marsh" | What rank does Rodney Marsh have? | CREATE TABLE table_21100348_15 (rank INTEGER, player VARCHAR) |
SELECT customer_id, customer_first_name FROM customers EXCEPT SELECT T1.customer_id, T2.customer_first_name FROM customers_cards AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = "Credit" | What are the ids and first names of customers who do not hold a credit card? | CREATE TABLE accounts (
account_id number,
customer_id number,
account_name text,
other_account_details text
)
CREATE TABLE customers (
customer_id number,
customer_first_name text,
customer_last_name text,
customer_address text,
customer_phone text,
customer_email text,
oth... |
SELECT director FROM table_name_61 WHERE studio = "wb" AND year < 1945 AND title = "to have and have not" | Who was the director for To Have and Have Not, earlier than 1945 with WB studio? | CREATE TABLE table_name_61 (director VARCHAR, title VARCHAR, studio VARCHAR, year VARCHAR) |
SELECT MAX(rank) FROM table_21100348_11 WHERE strike_rate = "91.67" | What is the rank for a strike rate of 91.67? | CREATE TABLE table_21100348_11 (rank INTEGER, strike_rate VARCHAR) |
SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID DESC | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a bar chart about the distribution of job_id and the average of department_id , and group by attribute job_id, and could you order in descending by the x-axis? | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varcha... |
SELECT AVG(year) FROM table_name_96 WHERE director = "raoul walsh" AND title = "the horn blows at midnight" | What year was The Horn Blows at Midnight, directed by Raoul Walsh? | CREATE TABLE table_name_96 (year INTEGER, director VARCHAR, title VARCHAR) |
SELECT player FROM table_21100348_11 WHERE runs = 477 | What player has 477 runs? | CREATE TABLE table_21100348_11 (player VARCHAR, runs VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'SAC' AND semester.semester = 'Summer' | Name the SAC classes that are offered in Summer term . | CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varch... |
SELECT title FROM table_name_66 WHERE director = "raoul walsh" AND year > 1945 | What title was directed by Raoul Walsh later than 1945? | CREATE TABLE table_name_66 (title VARCHAR, director VARCHAR, year VARCHAR) |
SELECT MAX(innings) FROM table_21100348_11 WHERE rank = 3 | How many innings does rank 3 have? | CREATE TABLE table_21100348_11 (innings INTEGER, rank VARCHAR) |
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FR... | what is the top five most frequent microbiology tests that followed in the same month for patients who received packed cell transfusion during the previous year? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location... |
SELECT studio FROM table_name_77 WHERE year = 1943 AND title = "the hard way" | What was the studio for The Hard Way in 1943? | CREATE TABLE table_name_77 (studio VARCHAR, year VARCHAR, title VARCHAR) |
SELECT MAX(goals_for) FROM table_2110959_1 WHERE pct__percentage = "0.604" | What was the goals for in the season that the pct % was 0.604? | CREATE TABLE table_2110959_1 (goals_for INTEGER, pct__percentage VARCHAR) |
SELECT municipality FROM table_157826_1 WHERE county = "Finnmark" AND population > 6187.0 | Which municipalities located in the county of Finnmark have populations bigger than 6187.0? | CREATE TABLE table_157826_1 (
municipality VARCHAR,
county VARCHAR,
population VARCHAR
) |
SELECT home_team FROM table_name_39 WHERE venue = "lake oval" | Which team plays at Lake Oval? | CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) |
SELECT season FROM table_2110959_1 WHERE pct__percentage = "0.552" | In what season was the pct % 0.552? | CREATE TABLE table_2110959_1 (season VARCHAR, pct__percentage VARCHAR) |
SELECT set_3 FROM table_name_95 WHERE total = "78–92" | What is the set 3 when the total is 78 92? | CREATE TABLE table_name_95 (
set_3 VARCHAR,
total VARCHAR
) |
SELECT away_team AS score FROM table_name_92 WHERE venue = "brunswick street oval" | What was the away score when they played at Brunswick Street Oval? | CREATE TABLE table_name_92 (away_team VARCHAR, venue VARCHAR) |
SELECT standing FROM table_2110959_1 WHERE pct__percentage = "0.769" | What was the standing in the season that the pct% was 0.769? | CREATE TABLE table_2110959_1 (standing VARCHAR, pct__percentage VARCHAR) |
SELECT "Opponent" FROM table_8318 WHERE "Week" < '11' AND "Attendance" = '63,571' | What was the Opponent before Week 11 with an Attendance of 63,571? | CREATE TABLE table_8318 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) |
SELECT venue FROM table_name_13 WHERE home_team = "south melbourne" | Where was South Melbourne played? | CREATE TABLE table_name_13 (venue VARCHAR, home_team VARCHAR) |
SELECT points FROM table_2110959_1 WHERE season = "1958-59" | What were the points in the 1958-59 season? | CREATE TABLE table_2110959_1 (points VARCHAR, season VARCHAR) |
SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND DATETIME(microlab.culturetakentime, 'start of month') = DATETI... | has there been a microbiology test held this month for patient 031-3355? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wa... |
SELECT result FROM table_name_89 WHERE week > 14 AND opponent = "dallas cowboys" | Where week is greater than 14 and Opponent is Dallas Cowboys, what is the result? | CREATE TABLE table_name_89 (result VARCHAR, week VARCHAR, opponent VARCHAR) |
SELECT opponents_in_the_final FROM table_2112025_3 WHERE year = 1968 | Who were Dürr's opponents in the final on year 1968? | CREATE TABLE table_2112025_3 (opponents_in_the_final VARCHAR, year VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.