NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
What are all the approved treatments for the target CD30?
CREATE TABLE table_1661124_1 (approved_treatment_s_ VARCHAR, target VARCHAR)
SELECT approved_treatment_s_ FROM table_1661124_1 WHERE target = "CD30"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26811, 2596, 2266, 834, 536, 41, 24496, 834, 26889, 834, 7, 834, 584, 4280, 28027, 6, 2387, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 66, 8, 3754, 5872, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3754, 834, 26889, 834, 7, 834, 21680, 953, 834, 26811, 2596, 2266, 834, 536, 549, 17444, 427, 2387, 3274, 96, 6931, 1458, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
how many matches were in 2007 ?
CREATE TABLE table_204_854 ( id number, "#" number, "wrestlers" text, "reign" number, "date" text, "days\nheld" number, "location" text, "notes" text )
SELECT COUNT(*) FROM table_204_854 WHERE "date" = 2007
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 4433, 591, 41, 3, 23, 26, 381, 6, 96, 4663, 121, 381, 6, 96, 210, 6216, 1171, 7, 121, 1499, 6, 96, 60, 3191, 121, 381, 6, 96, 5522, 121, 1499, 6, 96, 1135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 953, 834, 26363, 834, 4433, 591, 549, 17444, 427, 96, 5522, 121, 3274, 4101, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many patients whose religion is not specified and procedure short title is arterial catheterization?
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.religion = "NOT SPECIFIED" AND procedures.short_title = "Arterial catheterization"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
what is the goals when the country is wal, the name is smith and apps is more than 0?
CREATE TABLE table_name_83 (goals INTEGER, apps VARCHAR, country VARCHAR, name VARCHAR)
SELECT SUM(goals) FROM table_name_83 WHERE country = "wal" AND name = "smith" AND apps > 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4591, 41, 839, 5405, 3, 21342, 17966, 6, 4050, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 839, 5405, 61, 21680, 953, 834, 4350, 834, 4591, 549, 17444, 427, 684, 3274, 96, 5380, 121, 3430, 564, 3274, 96, 16331, 121, 3430, 4050, 2490, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -10...
What is the status of Norris?
CREATE TABLE table_name_31 ( status VARCHAR, name VARCHAR )
SELECT status FROM table_name_31 WHERE name = "norris"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3341, 41, 2637, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2637, 13, 7005, 52, 159, 58, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2637, 21680, 953, 834, 4350, 834, 3341, 549, 17444, 427, 564, 3274, 96, 29, 127, 52, 159, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which Men's 50 has a Senior Mixed of n/A, and a Men's Open of gold coast sharks def sydney mets, and a Men's 30 of sydney mets def sydney scorpions, and a Women's u20 of southern suns def brisbane city cobras?
CREATE TABLE table_46941 ( "Year" real, "Men's Open" text, "Women's Open" text, "Mixed Open" text, "Men's u20" text, "Women's u20" text, "Senior Mixed" text, "Men's 30" text, "Women's 30" text, "Men's 35" text, "Women's 35" text, "Men's 40" text, "Women's 40" text, ...
SELECT "Men's 50" FROM table_46941 WHERE "Senior Mixed" = 'n/a' AND "Men's Open" = 'gold coast sharks def sydney mets' AND "Men's 30" = 'sydney mets def sydney scorpions' AND "Women's u20" = 'southern suns def brisbane city cobras'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4448, 4240, 536, 41, 96, 476, 2741, 121, 490, 6, 96, 329, 35, 31, 7, 2384, 121, 1499, 6, 96, 518, 32, 904, 31, 7, 2384, 121, 1499, 6, 96, 329, 2407, 15, 26, 2384, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 329, 35, 31, 7, 943, 121, 21680, 953, 834, 4448, 4240, 536, 549, 17444, 427, 96, 134, 35, 23, 127, 28024, 121, 3274, 3, 31, 29, 87, 9, 31, 3430, 96, 329, 35, 31, 7, 2384, 121, 3274, 3, 31, 14910, 4939, 1...
When the production (mt) is 650000, what is the total number of rank?
CREATE TABLE table_21109892_1 ( rank VARCHAR, production__mt_ VARCHAR )
SELECT COUNT(rank) FROM table_21109892_1 WHERE production__mt_ = 650000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2658, 17304, 3914, 357, 834, 536, 41, 11003, 584, 4280, 28027, 6, 999, 834, 834, 51, 17, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 8, 999, 41, 51, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 6254, 61, 21680, 953, 834, 2658, 17304, 3914, 357, 834, 536, 549, 17444, 427, 999, 834, 834, 51, 17, 834, 3274, 7123, 19568, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Draw a bar chart of affiliation versus sum enrollment, I want to show by the sum enrollment in desc.
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( Scho...
SELECT Affiliation, SUM(Enrollment) FROM university GROUP BY Affiliation ORDER BY SUM(Enrollment) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8498, 834, 19515, 41, 2271, 834, 4309, 16, 17, 6, 1121, 834, 4309, 16, 17, 6, 2271, 834, 23954, 1499, 6, 3, 14775, 834, 17748, 4885, 834, 134, 15, 9, 739, 1499, 6, 3, 14775, 834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 89, 8027, 23, 257, 6, 180, 6122, 599, 8532, 4046, 297, 61, 21680, 3819, 350, 4630, 6880, 272, 476, 71, 89, 8027, 23, 257, 4674, 11300, 272, 476, 180, 6122, 599, 8532, 4046, 297, 61, 309, 25067, 1, -100, -100, ...
What is the total number of Total Congregations, when % LDS is 0.54%, and when Population is greater than 105,275?
CREATE TABLE table_name_85 (total_congregations VARCHAR, _percentage_lds VARCHAR, population VARCHAR)
SELECT COUNT(total_congregations) FROM table_name_85 WHERE _percentage_lds = "0.54%" AND population > 105 OFFSET 275
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4433, 41, 235, 1947, 834, 1018, 18301, 1628, 584, 4280, 28027, 6, 3, 834, 883, 3728, 545, 834, 40, 26, 7, 584, 4280, 28027, 6, 2074, 584, 4280, 28027, 61, 3, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 235, 1947, 834, 1018, 18301, 1628, 61, 21680, 953, 834, 4350, 834, 4433, 549, 17444, 427, 3, 834, 883, 3728, 545, 834, 40, 26, 7, 3274, 96, 12100, 5988, 121, 3430, 2074, 2490, 3, 12869, 3, 15316, ...
Which player placed in t5 and had a score of 72-71-73-78=294?
CREATE TABLE table_name_17 ( player VARCHAR, place VARCHAR, score VARCHAR )
SELECT player FROM table_name_17 WHERE place = "t5" AND score = 72 - 71 - 73 - 78 = 294
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2517, 41, 1959, 584, 4280, 28027, 6, 286, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 1959, 2681, 16, 3, 17, 755, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 1959, 21680, 953, 834, 4350, 834, 2517, 549, 17444, 427, 286, 3274, 96, 17, 17395, 3430, 2604, 3274, 9455, 3, 18, 3, 4450, 3, 18, 3, 4552, 3, 18, 3, 3940, 3274, 204, 4240, 1, -100, -100, -100, -100, -100, -100, ...
For those employees who was hired before 2002-06-21, show me about the distribution of job_id and the average of manager_id , and group by attribute job_id in a bar chart.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE...
SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10521, 41, 3396, 19846, 11810, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3396, 19846, 11810, 834, 567, 17683, 3, 4331, 4059, 599, 1458, 201, 283, 15610, 17966, 834, 4309, 7908, 1982, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 446, 10539, 834, 4309, 6, 71, 17217, 599, 9312, 188, 17966, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 454, 14132, 834, 308, 6048, 3, 2, 3, 31, 24898, 18, 5176, 16539, 31, 350, 4630, 6880, 272, 476, 446, 10539, ...
What was the away teams score at Princes Park?
CREATE TABLE table_10764 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team score" FROM table_10764 WHERE "Venue" = 'princes park'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 18057, 4389, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 1343, 372, 2604, 121, 21680, 953, 834, 18057, 4389, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 12298, 2319, 2447, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
give me the number of patients whose admission location is emergency room admit and procedure short title is inj/inf platelet inhibit.
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND procedures.short_title = "Inj/inf platelet inhibit"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Who is the player with an E to par and a 68-73-69=210?
CREATE TABLE table_10050 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Player" FROM table_10050 WHERE "To par" = 'e' AND "Score" = '68-73-69=210'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2915, 1752, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 3696, 260, 121, 1499, 3, 61, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 15800, 49, 121, 21680, 953, 834, 2915, 1752, 549, 17444, 427, 96, 3696, 260, 121, 3274, 3, 31, 15, 31, 3430, 96, 134, 9022, 121, 3274, 3, 31, 3651, 18, 4552, 18, 3951, 2423, 15239, 31, 1, -100, -100, -100, -...
How many people are in the crowd in south melbourne?
CREATE TABLE table_4832 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT COUNT("Crowd") FROM table_4832 WHERE "Home team" = 'south melbourne'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3707, 2668, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 254, 3623, 26, 8512, 21680, 953, 834, 3707, 2668, 549, 17444, 427, 96, 19040, 372, 121, 3274, 3, 31, 7, 670, 107, 3, 2341, 26255, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the choice of song where the original artist was Stevie Wonder?
CREATE TABLE table_26250189_1 (song_choice VARCHAR, original_artist VARCHAR)
SELECT song_choice FROM table_26250189_1 WHERE original_artist = "Stevie Wonder"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 11434, 25312, 834, 536, 41, 7, 2444, 834, 3995, 867, 584, 4280, 28027, 6, 926, 834, 1408, 343, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1160, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2324, 834, 3995, 867, 21680, 953, 834, 2688, 11434, 25312, 834, 536, 549, 17444, 427, 926, 834, 1408, 343, 3274, 96, 14337, 5914, 16347, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
get the details of employees who manage a department.
CREATE TABLE job_history ( employee_id number, start_date time, end_date time, job_id text, department_id number ) CREATE TABLE employees ( employee_id number, first_name text, last_name text, email text, phone_number text, hire_date time, job_id text, salary number,...
SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 613, 834, 10193, 10972, 41, 3490, 834, 23, 26, 381, 6, 456, 834, 5522, 97, 6, 414, 834, 5522, 97, 6, 613, 834, 23, 26, 1499, 6, 3066, 834, 23, 26, 381, 3, 61, 3, 32102, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 1429, 21680, 1652, 6157, 332, 536, 3, 15355, 3162, 10521, 6157, 332, 357, 9191, 332, 5411, 221, 2274, 297, 834, 23, 26, 3274, 332, 4416, 221, 2274, 297, 834, 23, 26, 549, 17444, 427, 332, 5411...
What municipality is the Benson Street station located in?
CREATE TABLE table_name_53 ( municipality VARCHAR, station VARCHAR )
SELECT municipality FROM table_name_53 WHERE station = "benson street"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4867, 41, 27597, 584, 4280, 28027, 6, 2478, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 27597, 19, 8, 2798, 739, 1887, 2478, 1069, 16, 58, 1, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 27597, 21680, 953, 834, 4350, 834, 4867, 549, 17444, 427, 2478, 3274, 96, 28162, 29, 2815, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which 2007 has a 2006 of A, and a Tournament of canada?
CREATE TABLE table_name_8 (tournament VARCHAR)
SELECT 2007 FROM table_name_8 WHERE 2006 = "a" AND tournament = "canada"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 927, 41, 17, 1211, 20205, 17, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 4101, 65, 3, 9, 3581, 13, 71, 6, 11, 3, 9, 20502, 13, 19343, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4101, 21680, 953, 834, 4350, 834, 927, 549, 17444, 427, 3581, 3274, 96, 9, 121, 3430, 5892, 3274, 96, 658, 18089, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are the number of the category of music festivals with result 'Awarded'?, I want to rank y-axis in desc order please.
CREATE TABLE artist ( Artist_ID int, Artist text, Age int, Famous_Title text, Famous_Release_date text ) CREATE TABLE music_festival ( ID int, Music_Festival text, Date_of_ceremony text, Category text, Volume int, Result text ) CREATE TABLE volume ( Volume_ID int, V...
SELECT Category, COUNT(Category) FROM music_festival WHERE Result = "Awarded" GROUP BY Category ORDER BY COUNT(Category) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2377, 41, 9152, 834, 4309, 16, 17, 6, 9152, 1499, 6, 7526, 16, 17, 6, 29952, 834, 382, 155, 109, 1499, 6, 29952, 834, 1649, 40, 14608, 834, 5522, 1499, 3, 61, 3, 32102, 32103, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 17459, 6, 2847, 17161, 599, 18610, 6066, 651, 61, 21680, 723, 834, 89, 24742, 549, 17444, 427, 3, 20119, 3274, 96, 188, 28288, 121, 350, 4630, 6880, 272, 476, 17459, 4674, 11300, 272, 476, 2847, 17161, 599, 18610, 606...
When north american record is the world record who is the denis nizhegorodov ( rus )?
CREATE TABLE table_24059973_3 (denis_nizhegorodov___rus__ VARCHAR, world_record VARCHAR)
SELECT denis_nizhegorodov___rus__ FROM table_24059973_3 WHERE world_record = "North American record"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 11944, 3390, 4327, 519, 834, 519, 41, 537, 159, 834, 24362, 88, 122, 127, 32, 24623, 834, 834, 834, 4502, 834, 834, 584, 4280, 28027, 6, 296, 834, 60, 7621, 584, 4280, 2802...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 177, 159, 834, 24362, 88, 122, 127, 32, 24623, 834, 834, 834, 4502, 834, 834, 21680, 953, 834, 11944, 3390, 4327, 519, 834, 519, 549, 17444, 427, 296, 834, 60, 7621, 3274, 96, 22969, 797, 1368, 121, 1, -100, -100, ...
Game smaller than 34, and a December smaller than 14, and a Score of 10 - 6 has what opponent?
CREATE TABLE table_name_46 (opponent VARCHAR, score VARCHAR, game VARCHAR, december VARCHAR)
SELECT opponent FROM table_name_46 WHERE game < 34 AND december < 14 AND score = "10 - 6"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4448, 41, 32, 102, 9977, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 6, 467, 584, 4280, 28027, 6, 20, 75, 18247, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 15264, 21680, 953, 834, 4350, 834, 4448, 549, 17444, 427, 467, 3, 2, 6154, 3430, 20, 75, 18247, 3, 2, 968, 3430, 2604, 3274, 96, 1714, 3, 18, 431, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the highest rank for Peter Symes?
CREATE TABLE table_name_64 ( rank INTEGER, rider VARCHAR )
SELECT MAX(rank) FROM table_name_64 WHERE rider = "peter symes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4389, 41, 11003, 3, 21342, 17966, 6, 2564, 52, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 11003, 21, 2737, 5224, 2687, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 6254, 61, 21680, 953, 834, 4350, 834, 4389, 549, 17444, 427, 2564, 52, 3274, 96, 4995, 49, 3, 7, 63, 2687, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the admission time and lab test name of patient with patient id 22377?
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 text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT demographic.admittime, lab.label FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "22377"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 14798, 5, 20466, 17, 715, 6, 7690, 5, 40, 10333, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444, 427, 14798, 5, 7304, 11827...
What was the Opponent when the Cavaliers had a Record of 3-9?
CREATE TABLE table_name_10 ( opponent VARCHAR, record VARCHAR )
SELECT opponent FROM table_name_10 WHERE record = "3-9"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1714, 41, 15264, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 4495, 9977, 116, 8, 17655, 138, 4518, 141, 3, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 15264, 21680, 953, 834, 4350, 834, 1714, 549, 17444, 427, 1368, 3274, 96, 519, 7141, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When joan tewkesbury is the director what is the number in seasons?
CREATE TABLE table_1864 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT "No. in season" FROM table_1864 WHERE "Directed by" = 'Joan Tewkesbury'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2606, 4389, 41, 96, 4168, 5, 16, 939, 121, 490, 6, 96, 4168, 5, 16, 774, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 24965,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4168, 5, 16, 774, 121, 21680, 953, 834, 2606, 4389, 549, 17444, 427, 96, 23620, 15, 26, 57, 121, 3274, 3, 31, 683, 32, 152, 2255, 210, 7735, 7165, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1
CREATE TABLE table_69738 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MIN("Rank") FROM table_69738 WHERE "Silver" < '1' AND "Total" > '1' AND "Bronze" < '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3951, 940, 3747, 41, 96, 22557, 121, 490, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 22557, 8512, 21680, 953, 834, 3951, 940, 3747, 549, 17444, 427, 96, 134, 173, 624, 121, 3, 2, 3, 31, 536, 31, 3430, 96, 3696, 1947, 121, 2490, 3, 31, 536, 31, 3430, 96, 22780, 29, 776, 121, ...
what type of school is the institution nicknamed seminoles?
CREATE TABLE table_28744929_1 ( school_type VARCHAR, nickname VARCHAR )
SELECT school_type FROM table_28744929_1 WHERE nickname = "Seminoles"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 4581, 3647, 3166, 834, 536, 41, 496, 834, 6137, 584, 4280, 28027, 6, 24649, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 686, 13, 496, 19, 8, 6568, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 496, 834, 6137, 21680, 953, 834, 2577, 4581, 3647, 3166, 834, 536, 549, 17444, 427, 24649, 3274, 96, 134, 15, 1109, 32, 965, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total number of rounds that had Jason Missiaen?
CREATE TABLE table_name_75 (round VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_75 WHERE player = "jason missiaen"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3072, 41, 7775, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 792, 381, 13, 14419, 24, 141, 9637, 5964, 23, 9, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 7775, 61, 21680, 953, 834, 4350, 834, 3072, 549, 17444, 427, 1959, 3274, 96, 1191, 739, 3041, 23, 9, 35, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Venue with a Result of 10 0, and a Score with 3 0?
CREATE TABLE table_11176 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Venue" FROM table_11176 WHERE "Result" = '10–0' AND "Score" = '3–0'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15866, 3959, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 5890, 4995, 4749, 121, 1499, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 553, 35, 76, 15, 121, 21680, 953, 834, 15866, 3959, 549, 17444, 427, 96, 20119, 121, 3274, 3, 31, 1714, 104, 632, 31, 3430, 96, 134, 9022, 121, 3274, 3, 31, 519, 104, 632, 31, 1, -100, -100, -100, -100, -100...
Who was the finalist when the MVP was Romain Sato?
CREATE TABLE table_19651669_1 (finalist VARCHAR, mvp VARCHAR)
SELECT finalist FROM table_19651669_1 WHERE mvp = "Romain Sato"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 4122, 2938, 3951, 834, 536, 41, 12406, 343, 584, 4280, 28027, 6, 3, 51, 208, 102, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 804, 343, 116, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 804, 343, 21680, 953, 834, 2294, 4122, 2938, 3951, 834, 536, 549, 17444, 427, 3, 51, 208, 102, 3274, 96, 448, 32, 7484, 8821, 32, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
On November 1, 1964, where was the game site?
CREATE TABLE table_17781394_1 ( game_site VARCHAR, date VARCHAR )
SELECT game_site FROM table_17781394_1 WHERE date = "November 1, 1964"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 3940, 2368, 4240, 834, 536, 41, 467, 834, 3585, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 461, 1671, 1914, 18969, 6, 213, 47, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 467, 834, 3585, 21680, 953, 834, 2517, 3940, 2368, 4240, 834, 536, 549, 17444, 427, 833, 3274, 96, 28635, 1914, 18969, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Pie. what are the id and name of the mountains that have at least 2 photos?
CREATE TABLE photos ( id int, camera_lens_id int, mountain_id int, color text, name text ) CREATE TABLE mountain ( id int, name text, Height real, Prominence real, Range text, Country text ) CREATE TABLE camera_lens ( id int, brand text, name text, focal_len...
SELECT T1.name, T1.id FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1302, 41, 3, 23, 26, 16, 17, 6, 1861, 834, 40, 35, 7, 834, 23, 26, 16, 17, 6, 4180, 834, 23, 26, 16, 17, 6, 945, 1499, 6, 564, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 4350, 6, 332, 5411, 23, 26, 21680, 4180, 6157, 332, 536, 3, 15355, 3162, 1302, 6157, 332, 357, 9191, 332, 5411, 23, 26, 3274, 332, 4416, 11231, 9, 77, 834, 23, 26, 1, -100, -100, -100, -100, -100, -100,...
Where is the show aired in New Zealand?
CREATE TABLE table_14523485_9 (channel VARCHAR, country VARCHAR)
SELECT channel FROM table_14523485_9 WHERE country = "New Zealand"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20987, 357, 3710, 4433, 834, 1298, 41, 19778, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2840, 19, 8, 504, 3, 2378, 26, 16, 368, 5725, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4245, 21680, 953, 834, 20987, 357, 3710, 4433, 834, 1298, 549, 17444, 427, 684, 3274, 96, 6861, 5725, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many games were played in september 1978 ?
CREATE TABLE table_204_565 ( id number, "game" number, "date" text, "opponent" text, "venue" text, "result" text, "attendance" number, "goalscorers" text )
SELECT COUNT(*) FROM table_204_565 WHERE "date" = 9 AND "date" = 1978
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 755, 4122, 41, 3, 23, 26, 381, 6, 96, 7261, 121, 381, 6, 96, 5522, 121, 1499, 6, 96, 32, 102, 9977, 121, 1499, 6, 96, 15098, 121, 1499, 6, 96, 60, 7, 83, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 953, 834, 26363, 834, 755, 4122, 549, 17444, 427, 96, 5522, 121, 3274, 668, 3430, 96, 5522, 121, 3274, 14834, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what is the name of the builder who launched in danaide
CREATE TABLE table_name_97 (launched VARCHAR, name VARCHAR)
SELECT launched FROM table_name_97 WHERE name = "danaide"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4327, 41, 27493, 15, 26, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 564, 13, 8, 918, 49, 113, 3759, 16, 3, 3768...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3759, 21680, 953, 834, 4350, 834, 4327, 549, 17444, 427, 564, 3274, 96, 3768, 5385, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the place of the player who scored less than 70?
CREATE TABLE table_47178 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT "Place" FROM table_47178 WHERE "Score" < '70'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4177, 27640, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 490, 6, 96, 3696, 260, 121, 1499, 3, 61, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 96, 345, 11706, 121, 21680, 953, 834, 4177, 27640, 549, 17444, 427, 96, 134, 9022, 121, 3, 2, 3, 31, 2518, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Name the most # of total votes with % of popular vote of 32.41% and # of seats won more than 95
CREATE TABLE table_70606 ( "Election" real, "# of candidates nominated" real, "# of seats won" real, "# of total votes" real, "% of popular vote" text )
SELECT MAX("# of total votes") FROM table_70606 WHERE "% of popular vote" = '32.41%' AND "# of seats won" > '95'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2518, 3328, 948, 41, 96, 427, 12252, 121, 490, 6, 96, 4663, 13, 4341, 150, 1109, 920, 121, 490, 6, 96, 4663, 13, 6116, 751, 121, 490, 6, 96, 4663, 13, 792, 11839, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 4663, 13, 792, 11839, 8512, 21680, 953, 834, 2518, 3328, 948, 549, 17444, 427, 96, 1454, 13, 1012, 2902, 121, 3274, 3, 31, 519, 17638, 4704, 31, 3430, 96, 4663, 13, 6116, 751, 121, 2490, 3, 31, ...
What is the College of the Halfback Player?
CREATE TABLE table_14029 ( "Pick" real, "Team" text, "Player" text, "Position" text, "College" text )
SELECT "College" FROM table_14029 WHERE "Position" = 'halfback'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22012, 3166, 41, 96, 345, 3142, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 9939, 7883, 121, 1499, 3, 61,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 96, 9939, 7883, 121, 21680, 953, 834, 22012, 3166, 549, 17444, 427, 96, 345, 32, 7, 4749, 121, 3274, 3, 31, 17114, 1549, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
calculate the average age of male patients who had elective hospital admission.
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 AVG(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.admission_type = "ELECTIVE"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 122, 3868, 3274, 96, 329, 121, 3430, 14798, 5, 9, 26, 5451, 834, 6137, 3274, 96, 3577, 14196, 8087, 121, 1, -100, -100, -100, -100, ...
What GERB has an 11% Attack?
CREATE TABLE table_6491 ( "Source" text, "Date" text, "GERB" text, "Attack" text, "Blue Coalition" text )
SELECT "GERB" FROM table_6491 WHERE "Attack" = '11%'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4389, 4729, 41, 96, 23799, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 17966, 279, 121, 1499, 6, 96, 188, 17, 17, 4365, 121, 1499, 6, 96, 22530, 22922, 121, 1499, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 96, 17966, 279, 121, 21680, 953, 834, 4389, 4729, 549, 17444, 427, 96, 188, 17, 17, 4365, 121, 3274, 3, 31, 536, 4704, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
When toronto is the hometown how many height measurements are there?
CREATE TABLE table_22510 ( "Province, Community" text, "Contestant" text, "Age" real, "Height" text, "Hometown" text, "Geographical Regions" text )
SELECT COUNT("Height") FROM table_22510 WHERE "Hometown" = 'Toronto'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20489, 1714, 41, 96, 3174, 2494, 565, 6, 3092, 121, 1499, 6, 96, 4302, 4377, 288, 121, 1499, 6, 96, 188, 397, 121, 490, 6, 96, 3845, 2632, 121, 1499, 6, 96, 19040, 3540, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 3845, 2632, 8512, 21680, 953, 834, 20489, 1714, 549, 17444, 427, 96, 19040, 3540, 121, 3274, 3, 31, 3696, 4438, 32, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the lowest against that has less than 9 wins, and draws smaller than 0?
CREATE TABLE table_name_84 (against INTEGER, wins VARCHAR, draws VARCHAR)
SELECT MIN(against) FROM table_name_84 WHERE wins < 9 AND draws < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4608, 41, 9, 16720, 7, 17, 3, 21342, 17966, 6, 9204, 584, 4280, 28027, 6, 14924, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 581, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 9, 16720, 7, 17, 61, 21680, 953, 834, 4350, 834, 4608, 549, 17444, 427, 9204, 3, 2, 668, 3430, 14924, 3, 2, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the average total with a nation of thailand with a gold smaller than 17?
CREATE TABLE table_5497 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT AVG("Total") FROM table_5497 WHERE "Nation" = 'thailand' AND "Gold" < '17'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5062, 4327, 41, 96, 22557, 121, 1499, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, 3696, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 3696, 1947, 8512, 21680, 953, 834, 5062, 4327, 549, 17444, 427, 96, 567, 257, 121, 3274, 3, 31, 189, 9, 173, 232, 31, 3430, 96, 23576, 121, 3, 2, 3, 31, 2517, 31, 1, -100, -100, -100, -100, ...
What is the FIS Nordic World Ski Championship years when the winter Olympics took place in 1968?
CREATE TABLE table_49288 ( "Winner" text, "Country" text, "Winter Olympics" real, "FIS Nordic World Ski Championships" real, "Holmenkollen" text )
SELECT "FIS Nordic World Ski Championships" FROM table_49288 WHERE "Winter Olympics" = '1968'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3647, 357, 4060, 41, 96, 18455, 687, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 518, 3870, 17793, 121, 490, 6, 96, 4936, 134, 24207, 1150, 7409, 7666, 7, 121, 490, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4936, 134, 24207, 1150, 7409, 7666, 7, 121, 21680, 953, 834, 3647, 357, 4060, 549, 17444, 427, 96, 518, 3870, 17793, 121, 3274, 3, 31, 2294, 3651, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the Power (kW) for the station with the frequency of 98.7mhz?
CREATE TABLE table_name_26 (power__kw_ VARCHAR, frequency VARCHAR)
SELECT power__kw_ FROM table_name_26 WHERE frequency = "98.7mhz"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2688, 41, 6740, 834, 834, 157, 210, 834, 584, 4280, 28027, 6, 7321, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2621, 41, 21729, 61, 21, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 579, 834, 834, 157, 210, 834, 21680, 953, 834, 4350, 834, 2688, 549, 17444, 427, 7321, 3274, 96, 3916, 5, 940, 51, 107, 172, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the Away team score for mcg?
CREATE TABLE table_58075 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team score" FROM table_58075 WHERE "Venue" = 'mcg'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 2079, 3072, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 1343, 372, 2604, 121, 21680, 953, 834, 755, 2079, 3072, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 51, 75, 122, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When chen lu'an is the skip what is the lowest amount l's?
CREATE TABLE table_29120 ( "Country" text, "Skip" text, "W" real, "L" real, "PF" real, "PA" real, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real, "Shot Pct." real )
SELECT MIN("L") FROM table_29120 WHERE "Skip" = 'Chen Lu''an'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 15518, 41, 96, 10628, 651, 121, 1499, 6, 96, 134, 2168, 102, 121, 1499, 6, 96, 518, 121, 490, 6, 96, 434, 121, 490, 6, 96, 12017, 121, 490, 6, 96, 3965, 121, 490,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 434, 8512, 21680, 953, 834, 3166, 15518, 549, 17444, 427, 96, 134, 2168, 102, 121, 3274, 3, 31, 3541, 35, 2318, 31, 31, 152, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
give me the number of patients whose diagnoses short title is chronic sinusitis nos and drug route is inhalation?
CREATE TABLE diagnoses ( 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Chronic sinusitis NOS" AND prescriptions.route = "INHALATION"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
What was the result of the game against Luxembourg?
CREATE TABLE table_name_97 ( results¹ VARCHAR, opponent VARCHAR )
SELECT results¹ FROM table_name_97 WHERE opponent = "luxembourg"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4327, 41, 772, 536, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 741, 13, 8, 467, 581, 23888, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 772, 536, 21680, 953, 834, 4350, 834, 4327, 549, 17444, 427, 15264, 3274, 96, 8387, 15, 51, 21054, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total?
CREATE TABLE table_65546 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT AVG("Total") FROM table_65546 WHERE "Silver" > '2' AND "Gold" > '1' AND "Nation" = 'total'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4122, 755, 4448, 41, 96, 22557, 121, 1499, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 3696, 1947, 8512, 21680, 953, 834, 4122, 755, 4448, 549, 17444, 427, 96, 134, 173, 624, 121, 2490, 3, 31, 357, 31, 3430, 96, 23576, 121, 2490, 3, 31, 536, 31, 3430, 96, 567, 257, 121, 3274, ...
Which City has the Bahawalpur Stags Team?
CREATE TABLE table_name_98 ( city VARCHAR, team VARCHAR )
SELECT city FROM table_name_98 WHERE team = "bahawalpur stags"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3916, 41, 690, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 896, 65, 8, 2659, 1024, 5380, 3791, 180, 11659, 2271, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 690, 21680, 953, 834, 4350, 834, 3916, 549, 17444, 427, 372, 3274, 96, 17670, 9, 5380, 3791, 3, 7, 11659, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the opponent for 4th
CREATE TABLE table_17120964_5 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_17120964_5 WHERE date = "4th"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 2122, 4198, 4389, 834, 755, 41, 32, 102, 9977, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 15264, 21, 314, 189, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 15264, 21680, 953, 834, 2517, 2122, 4198, 4389, 834, 755, 549, 17444, 427, 833, 3274, 96, 591, 189, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
count the number of patients whose admission type is emergency and drug name is nafcillin?
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.drug = "Nafcillin"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
What was the total for the golfer who had a To par of +10 and year won of 1971?
CREATE TABLE table_name_9 ( total INTEGER, to_par VARCHAR, year_s__won VARCHAR )
SELECT SUM(total) FROM table_name_9 WHERE to_par = "+10" AND year_s__won = "1971"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1298, 41, 792, 3, 21342, 17966, 6, 12, 834, 1893, 584, 4280, 28027, 6, 215, 834, 7, 834, 834, 210, 106, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 1298, 549, 17444, 427, 12, 834, 1893, 3274, 96, 1220, 1714, 121, 3430, 215, 834, 7, 834, 834, 210, 106, 3274, 96, 2294, 4450, 121, 1, -100, -100, -100, -1...
what is the number of votes that megan leslie received ?
CREATE TABLE table_204_786 ( id number, "riding" text, "candidate" text, "gender" text, "residence" text, "occupation" text, "votes" number, "%" number, "rank" text, "biographical notes" text )
SELECT "votes" FROM table_204_786 WHERE "candidate" = 'megan leslie'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 940, 3840, 41, 3, 23, 26, 381, 6, 96, 4055, 53, 121, 1499, 6, 96, 1608, 12416, 342, 121, 1499, 6, 96, 122, 3868, 121, 1499, 6, 96, 60, 1583, 3772, 121, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1621, 1422, 121, 21680, 953, 834, 26363, 834, 940, 3840, 549, 17444, 427, 96, 1608, 12416, 342, 121, 3274, 3, 31, 526, 2565, 110, 1896, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the highest Total for Australia?
CREATE TABLE table_name_78 (total INTEGER, country VARCHAR)
SELECT MAX(total) FROM table_name_78 WHERE country = "australia"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3940, 41, 235, 1947, 3, 21342, 17966, 6, 684, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 9273, 21, 2051, 58, 1, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 3940, 549, 17444, 427, 684, 3274, 96, 2064, 8792, 23, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the average when the rank by average is more than 12?
CREATE TABLE table_77661 ( "Rank by average" real, "Place" real, "Couple" text, "Total" real, "Number of dances" real, "Average" real )
SELECT SUM("Average") FROM table_77661 WHERE "Rank by average" > '12'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4013, 3539, 536, 41, 96, 22557, 57, 1348, 121, 490, 6, 96, 345, 11706, 121, 490, 6, 96, 3881, 413, 109, 121, 1499, 6, 96, 3696, 1947, 121, 490, 6, 96, 567, 5937, 49, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 188, 624, 545, 8512, 21680, 953, 834, 4013, 3539, 536, 549, 17444, 427, 96, 22557, 57, 1348, 121, 2490, 3, 31, 2122, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
when was the premiere of the episode where the amount of North American spectators was 1.76 millions?
CREATE TABLE table_24699 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text )
SELECT "Original air date" FROM table_24699 WHERE "U.S. viewers (million)" = '1.76'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4448, 3264, 41, 96, 4168, 535, 490, 6, 96, 4663, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 24965, 324, 57, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 667, 3380, 10270, 799, 833, 121, 21680, 953, 834, 357, 4448, 3264, 549, 17444, 427, 96, 1265, 5, 134, 5, 13569, 41, 17030, 61, 121, 3274, 3, 31, 5411, 3959, 31, 1, -100, -100, -100, -100, -100, -100, -100, -10...
Name the number of points for october 11
CREATE TABLE table_15607589_2 ( points_for INTEGER, date VARCHAR )
SELECT MAX(points_for) FROM table_15607589_2 WHERE date = "October 11"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1808, 3328, 3072, 3914, 834, 357, 41, 979, 834, 1161, 3, 21342, 17966, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 381, 13, 979, 21, 3, 32, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 2700, 7, 834, 1161, 61, 21680, 953, 834, 1808, 3328, 3072, 3914, 834, 357, 549, 17444, 427, 833, 3274, 96, 28680, 850, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the number of points for east germany, and a Places of 88?
CREATE TABLE table_name_84 (points INTEGER, nation VARCHAR, places VARCHAR)
SELECT SUM(points) FROM table_name_84 WHERE nation = "east germany" AND places = "88"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4608, 41, 2700, 7, 3, 21342, 17966, 6, 2982, 584, 4280, 28027, 6, 1747, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 381, 13, 979, 21, 5727, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 2700, 7, 61, 21680, 953, 834, 4350, 834, 4608, 549, 17444, 427, 2982, 3274, 96, 11535, 13692, 63, 121, 3430, 1747, 3274, 96, 4060, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Nationality has a College/Junior/Club Team (League) of swift current broncos (wchl)?
CREATE TABLE table_44013 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text )
SELECT "Nationality" FROM table_44013 WHERE "College/Junior/Club Team (League)" = 'swift current broncos (wchl)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22335, 2368, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 9939, 7883, 87, 683,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 24732, 485, 121, 21680, 953, 834, 22335, 2368, 549, 17444, 427, 96, 9939, 7883, 87, 683, 202, 23, 127, 87, 254, 11158, 2271, 41, 2796, 9, 5398, 61, 121, 3274, 3, 31, 7, 210, 99, 17, 750, 3, 13711, 509, 7, ...
What title was used in the nomination for the title Biola Tak Berdawai?
CREATE TABLE table_13719788_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_13719788_1 WHERE original_title = "Biola tak berdawai"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24636, 27181, 4060, 834, 536, 41, 9988, 834, 21869, 834, 10064, 834, 77, 834, 29, 32, 14484, 584, 4280, 28027, 6, 926, 834, 21869, 584, 4280, 28027, 61, 3, 32102, 32103, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 814, 834, 21869, 834, 10064, 834, 77, 834, 29, 32, 14484, 21680, 953, 834, 24636, 27181, 4060, 834, 536, 549, 17444, 427, 926, 834, 21869, 3274, 96, 279, 23578, 3, 17, 1639, 3, 1152, 26, 7396, 23, 121, 1, -100, -1...
Who built the under grid 6 car with under 49 laps?
CREATE TABLE table_name_94 (constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_94 WHERE grid < 6 AND laps < 49
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4240, 41, 15982, 5317, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 6, 14941, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 1192, 8, 365, 8634, 431...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6774, 127, 21680, 953, 834, 4350, 834, 4240, 549, 17444, 427, 8634, 3, 2, 431, 3430, 14941, 7, 3, 2, 9526, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
count the number of patients who were born before the year 2056 and the lab test fluid is urine.
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2056" AND lab.fluid = "Urine"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What is the date listed for the item that has undergoing overhaul, restoration or repairs listed under description?
CREATE TABLE table_name_62 ( date VARCHAR, description VARCHAR )
SELECT date FROM table_name_62 WHERE description = "undergoing overhaul, restoration or repairs"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4056, 41, 833, 584, 4280, 28027, 6, 4210, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 833, 2616, 21, 8, 2118, 24, 65, 3, 22725, 24254, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 4056, 549, 17444, 427, 4210, 3274, 96, 22725, 24254, 6, 8916, 42, 7384, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
what is item id and lab test value of subject id 3343?
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 ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
SELECT lab.itemid, lab.value_unit FROM lab WHERE lab.subject_id = "3343"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 7690, 5, 155, 15, 6983, 6, 7690, 5, 12097, 834, 15129, 21680, 7690, 549, 17444, 427, 7690, 5, 7304, 11827, 834, 23, 26, 3274, 96, 4201, 4906, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent?
CREATE TABLE table_name_19 (location VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_19 WHERE method = "submission (armbar)" AND opponent = "mayra conde"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2294, 41, 14836, 584, 4280, 28027, 6, 1573, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1128, 13, 8, 1588, 213, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 1128, 21680, 953, 834, 4350, 834, 2294, 549, 17444, 427, 1573, 3274, 96, 7304, 5451, 41, 6768, 1047, 61, 121, 3430, 15264, 3274, 96, 13726, 52, 9, 975, 221, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the score at the 2010 FIFA World Cup Qualification that results in a win?
CREATE TABLE table_name_6 ( score VARCHAR, competition VARCHAR, result VARCHAR )
SELECT score FROM table_name_6 WHERE competition = "2010 fifa world cup qualification" AND result = "win"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 948, 41, 2604, 584, 4280, 28027, 6, 2259, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2604, 44, 8, 2735, 23129,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 948, 549, 17444, 427, 2259, 3274, 96, 14926, 361, 89, 9, 296, 4119, 15513, 121, 3430, 741, 3274, 96, 3757, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the number of cities in each country with a bar chart, and order y axis from high to low order.
CREATE TABLE county_public_safety ( County_ID int, Name text, Population int, Police_officers int, Residents_per_officer int, Case_burden int, Crime_rate real, Police_force text, Location text ) CREATE TABLE city ( City_ID int, County_ID int, Name text, White real, ...
SELECT T2.Name, COUNT(T2.Name) FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID GROUP BY T2.Name ORDER BY COUNT(T2.Name) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5435, 834, 15727, 834, 15233, 17, 63, 41, 1334, 834, 4309, 16, 17, 6, 5570, 1499, 6, 29659, 16, 17, 6, 5076, 834, 19632, 52, 7, 16, 17, 6, 24998, 834, 883, 834, 19632, 52, 16, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 6, 2847, 17161, 599, 382, 4416, 23954, 61, 21680, 690, 6157, 332, 536, 3, 15355, 3162, 5435, 834, 15727, 834, 15233, 17, 63, 6157, 332, 357, 9191, 332, 5411, 10628, 63, 834, 4309, 3274, 332, 4416, ...
Who is the player with a score of 69-70-76=215?
CREATE TABLE table_name_16 ( player VARCHAR, score VARCHAR )
SELECT player FROM table_name_16 WHERE score = 69 - 70 - 76 = 215
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2938, 41, 1959, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 1959, 28, 3, 9, 2604, 13, 3, 3951, 18, 2518, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1959, 21680, 953, 834, 4350, 834, 2938, 549, 17444, 427, 2604, 3274, 3, 3951, 3, 18, 2861, 3, 18, 3, 3959, 3274, 204, 1808, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
how many of the female patients had icd9 code 4610?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 t...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.icd9_code = "4610"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Who is the away team against the home team Ashington?
CREATE TABLE table_9133 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT "Away team" FROM table_9133 WHERE "Home team" = 'ashington'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4729, 4201, 41, 96, 382, 23, 15, 150, 121, 1499, 6, 96, 19040, 372, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 308, 342, 121, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 1343, 372, 121, 21680, 953, 834, 4729, 4201, 549, 17444, 427, 96, 19040, 372, 121, 3274, 3, 31, 3198, 6029, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what is the finish when the manager is tom kotchman and the record is 40-36?
CREATE TABLE table_48340 ( "Year" real, "MLB Club" text, "Record" text, "Finish" text, "Manager" text )
SELECT "Finish" FROM table_48340 WHERE "Manager" = 'tom kotchman' AND "Record" = '40-36'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3707, 21129, 41, 96, 476, 2741, 121, 490, 6, 96, 6858, 279, 1949, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 371, 77, 1273, 121, 1499, 6, 96, 27272, 121, 1499, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 371, 77, 1273, 121, 21680, 953, 834, 3707, 21129, 549, 17444, 427, 96, 27272, 121, 3274, 3, 31, 235, 51, 3, 15414, 524, 348, 31, 3430, 96, 1649, 7621, 121, 3274, 3, 31, 2445, 18, 3420, 31, 1, -100, -100, -10...
how many times is the pole position niki lauda and the race is monaco grand prix?
CREATE TABLE table_16747 ( "Rnd" real, "Race" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Constructor" text, "Report" text )
SELECT COUNT("Rnd") FROM table_16747 WHERE "Pole Position" = 'Niki Lauda' AND "Race" = 'Monaco Grand Prix'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27650, 4177, 41, 96, 448, 727, 121, 490, 6, 96, 448, 3302, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 8931, 15, 14258, 121, 1499,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 448, 727, 8512, 21680, 953, 834, 27650, 4177, 549, 17444, 427, 96, 8931, 15, 14258, 121, 3274, 3, 31, 567, 9069, 18465, 26, 9, 31, 3430, 96, 448, 3302, 121, 3274, 3, 31, 9168, 9, 509, 2698, ...
What's the general classification of Ignatas Konovalovas when the mountains classification was Stefano Garzelli and points classification was Danilo Di Luca?
CREATE TABLE table_13637 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Young rider classification" text )
SELECT "General classification" FROM table_13637 WHERE "Mountains classification" = 'stefano garzelli' AND "Points classification" = 'danilo di luca' AND "Winner" = 'ignatas konovalovas'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23459, 4118, 41, 96, 134, 6505, 121, 1499, 6, 96, 18455, 687, 121, 1499, 6, 96, 20857, 13774, 121, 1499, 6, 96, 22512, 7, 13774, 121, 1499, 6, 96, 329, 32, 14016, 77, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 20857, 13774, 121, 21680, 953, 834, 23459, 4118, 549, 17444, 427, 96, 329, 32, 14016, 77, 7, 13774, 121, 3274, 3, 31, 7, 24018, 32, 5260, 172, 7999, 31, 3430, 96, 22512, 7, 13774, 121, 3274, 3, 31, 3768, 173, ...
What event went under 3 rounds and was no contest (punch after knockdown)?
CREATE TABLE table_52145 ( "Result" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text )
SELECT "Event" FROM table_52145 WHERE "Round" < '3' AND "Method" = 'no contest (punch after knockdown)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5373, 20987, 41, 96, 20119, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 23351, 107, 32, 26, 121, 1499, 6, 96, 427, 2169, 121, 1499, 6, 96, 448, 32, 1106, 121, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 427, 2169, 121, 21680, 953, 834, 5373, 20987, 549, 17444, 427, 96, 448, 32, 1106, 121, 3, 2, 3, 31, 519, 31, 3430, 96, 23351, 107, 32, 26, 121, 3274, 3, 31, 29, 32, 4233, 41, 6225, 524, 227, 7673, 3035, 61...
Who is the cyber girl in week 3 when Ashley Lowe was the cyber girl in week 2?
CREATE TABLE table_61895 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text )
SELECT "Week 3" FROM table_61895 WHERE "Week 2" = 'ashley lowe'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 2606, 3301, 41, 96, 518, 10266, 209, 121, 1499, 6, 96, 518, 10266, 204, 121, 1499, 6, 96, 518, 10266, 220, 121, 1499, 6, 96, 518, 10266, 3, 20364, 1499, 6, 96, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 518, 10266, 220, 121, 21680, 953, 834, 948, 2606, 3301, 549, 17444, 427, 96, 518, 10266, 204, 121, 3274, 3, 31, 3198, 1306, 731, 15, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many dates do the dolphins have 6 points?
CREATE TABLE table_18847736_2 (date VARCHAR, dolphins_points VARCHAR)
SELECT date FROM table_18847736_2 WHERE dolphins_points = 6
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2606, 4608, 4013, 3420, 834, 357, 41, 5522, 584, 4280, 28027, 6, 25903, 7, 834, 2700, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 5128, 103, 8, 25903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 2606, 4608, 4013, 3420, 834, 357, 549, 17444, 427, 25903, 7, 834, 2700, 7, 3274, 431, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What census ranking has an area greater than 578.28 km2?
CREATE TABLE table_61923 ( "Official Name" text, "Status" text, "Area km 2" real, "Population" real, "Census Ranking" text )
SELECT "Census Ranking" FROM table_61923 WHERE "Area km 2" > '578.28'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 2294, 2773, 41, 96, 667, 89, 22816, 5570, 121, 1499, 6, 96, 134, 17, 144, 302, 121, 1499, 6, 96, 188, 864, 2280, 204, 121, 490, 6, 96, 27773, 7830, 121, 490, 6, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 254, 35, 7, 302, 29153, 121, 21680, 953, 834, 948, 2294, 2773, 549, 17444, 427, 96, 188, 864, 2280, 204, 121, 2490, 3, 31, 755, 3940, 5, 2577, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Show the number of teams in elimination in a bar chart, could you sort by the x-axis from high to low?
CREATE TABLE Elimination ( Elimination_ID text, Wrestler_ID text, Team text, Eliminated_By text, Elimination_Move text, Time text ) CREATE TABLE wrestler ( Wrestler_ID int, Name text, Reign text, Days_held text, Location text, Event text )
SELECT Team, COUNT(Team) FROM Elimination GROUP BY Team ORDER BY Team DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7495, 14484, 41, 7495, 14484, 834, 4309, 1499, 6, 549, 6216, 1171, 834, 4309, 1499, 6, 2271, 1499, 6, 7495, 1109, 920, 834, 279, 63, 1499, 6, 7495, 14484, 834, 329, 32, 162, 1499, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2271, 6, 2847, 17161, 599, 18699, 61, 21680, 7495, 14484, 350, 4630, 6880, 272, 476, 2271, 4674, 11300, 272, 476, 2271, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is jos mar a olaz bal's country?
CREATE TABLE table_50681 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real )
SELECT "Country" FROM table_50681 WHERE "Player" = 'josé maría olazábal'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1752, 3651, 536, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 3696, 260, 121, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 10628, 651, 121, 21680, 953, 834, 1752, 3651, 536, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 1927, 7, 154, 3157, 2, 9, 3, 32, 521, 172, 2975, 3849, 31, 1, -100, -100, -100, -100, -100, -100, -100, -1...
What role did John Wayne play with Verna Hillie as the leading lady?
CREATE TABLE table_67268 ( "Title" text, "Studio" text, "Role" text, "Leading lady" text, "Director" text )
SELECT "Role" FROM table_67268 WHERE "Leading lady" = 'verna hillie'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 357, 3651, 41, 96, 382, 155, 109, 121, 1499, 6, 96, 13076, 26, 23, 32, 121, 1499, 6, 96, 448, 32, 109, 121, 1499, 6, 96, 2796, 9, 26, 53, 9360, 121, 1499, 6, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 448, 32, 109, 121, 21680, 953, 834, 3708, 357, 3651, 549, 17444, 427, 96, 2796, 9, 26, 53, 9360, 121, 3274, 3, 31, 624, 29, 9, 9956, 23, 15, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is 2008, when 2006 is "Grand Slam Tournaments"?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT 2008 FROM table_name_18 WHERE 2006 = "grand slam tournaments"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2606, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 2628, 6, 116, 3581, 19, 96, 4744, 727, 29291, 20502, 7, 121, 58, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2628, 21680, 953, 834, 4350, 834, 2606, 549, 17444, 427, 3581, 3274, 96, 15448, 3, 7, 40, 265, 5892, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Mac OS X has a Linux of no, and an AmigaOS of no, and an Android of unknown?
CREATE TABLE table_6246 ( "Windows" text, "Mac OS X" text, "Linux" text, "Other Unix" text, "AmigaOS" text, "Android" text, "Windows Mobile" text )
SELECT "Mac OS X" FROM table_6246 WHERE "Linux" = 'no' AND "AmigaOS" = 'no' AND "Android" = 'unknown'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4056, 4448, 41, 96, 28265, 121, 1499, 6, 96, 17772, 6328, 3, 4, 121, 1499, 6, 96, 434, 77, 3090, 121, 1499, 6, 96, 667, 189, 49, 5645, 226, 121, 1499, 6, 96, 8123, 1258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 17772, 6328, 3, 4, 121, 21680, 953, 834, 4056, 4448, 549, 17444, 427, 96, 434, 77, 3090, 121, 3274, 3, 31, 29, 32, 31, 3430, 96, 8123, 12581, 3638, 121, 3274, 3, 31, 29, 32, 31, 3430, 96, 7175, 8184, 121, ...
what number of patients whop assed away in or before the year 2112 had the drug code insulin?
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 diagnoses ( ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2112.0" AND prescriptions.formulary_drug_cd = "INSULIN"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
If the amount of rebounds is 0, what is the maximum minutes?
CREATE TABLE table_23346303_5 (minutes INTEGER, rebounds VARCHAR)
SELECT MAX(minutes) FROM table_23346303_5 WHERE rebounds = 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20879, 4448, 23335, 834, 755, 41, 6890, 7, 3, 21342, 17966, 6, 3, 23768, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 156, 8, 866, 13, 3, 23768, 19, 8014, 125, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 6890, 7, 61, 21680, 953, 834, 20879, 4448, 23335, 834, 755, 549, 17444, 427, 3, 23768, 3274, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Incumbent has a District of California 8?
CREATE TABLE table_name_75 ( incumbent VARCHAR, district VARCHAR )
SELECT incumbent FROM table_name_75 WHERE district = "california 8"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3072, 41, 28406, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 1542, 5937, 295, 65, 3, 9, 3570, 13, 1826, 505, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 28406, 21680, 953, 834, 4350, 834, 3072, 549, 17444, 427, 3939, 3274, 96, 15534, 1161, 29, 23, 9, 505, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which Season has a Home of 0 1?
CREATE TABLE table_name_24 ( season VARCHAR, home VARCHAR )
SELECT season FROM table_name_24 WHERE home = "0–1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2266, 41, 774, 584, 4280, 28027, 6, 234, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 7960, 65, 3, 9, 1210, 13, 3, 632, 209, 58, 1, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 774, 21680, 953, 834, 4350, 834, 2266, 549, 17444, 427, 234, 3274, 96, 632, 104, 536, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which Opponent was played on 1991-10-13?
CREATE TABLE table_name_52 ( opponent VARCHAR, date VARCHAR )
SELECT opponent FROM table_name_52 WHERE date = "1991-10-13"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5373, 41, 15264, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 4495, 9977, 47, 1944, 30, 9957, 4536, 13056, 58, 1, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 15264, 21680, 953, 834, 4350, 834, 5373, 549, 17444, 427, 833, 3274, 96, 2294, 4729, 4536, 13056, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the largest attendance number when the Chicago Cardinals were the opponent and the week was less than 4?
CREATE TABLE table_43259 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT MAX("Attendance") FROM table_43259 WHERE "Opponent" = 'chicago cardinals' AND "Week" < '4'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 2668, 3390, 41, 96, 518, 10266, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 188, 17, 324, 26, 663, 121,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 188, 17, 324, 26, 663, 8512, 21680, 953, 834, 591, 2668, 3390, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 1436, 658, 839, 895, 10270, 7, 31, 3430, 96, 518, 10266, 121, 3, 2, 3, 3...
what is maximum age of patients whose primary disease is pneumonia and days of hospital stay is 30?
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 MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = "PNEUMONIA" AND demographic.days_stay = "30"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 25930, 4844, 159, 3274, 96, 15420, 12062, 5365, 26077, 121, 3430, 14798, 5, 1135, 7, 834, 21545, 3274, 96, 1458, 121, 1, -100, -100, -1...
What is the Sets- for Team ushua a ibiza voley when the Points- were less than 1418 and the Sets+ were less than 41?
CREATE TABLE table_49728 ( "Team" text, "Sets+" real, "Sets\u2013" real, "Points+" real, "Points\u2013" real )
SELECT "Sets\u2013" FROM table_49728 WHERE "Points\u2013" < '1418' AND "Sets+" < '41' AND "Team" = 'ushuaïa ibiza voley'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 4327, 2577, 41, 96, 18699, 121, 1499, 6, 96, 17175, 7, 1220, 121, 490, 6, 96, 17175, 7, 2, 76, 11138, 121, 490, 6, 96, 22512, 7, 1220, 121, 490, 6, 96, 22512, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 17175, 7, 2, 76, 11138, 121, 21680, 953, 834, 591, 4327, 2577, 549, 17444, 427, 96, 22512, 7, 2, 76, 11138, 121, 3, 2, 3, 31, 2534, 2606, 31, 3430, 96, 17175, 7, 1220, 121, 3, 2, 3, 31, 4853, 31, 3430, 9...
Who is the last/current driver(s) 3 november 2013 when first driver(s) is marlon st ckinger , kotaro sakurai ( 2011 )?
CREATE TABLE table_3732 ( "Country" text, "Total Drivers" real, "Champions" text, "Championships" text, "Current 3 November 2013" real, "First driver(s)" text, "Last/Current driver(s) 3 November 2013" text )
SELECT "Last/Current driver(s) 3 November 2013" FROM table_3732 WHERE "First driver(s)" = 'Marlon Stöckinger , Kotaro Sakurai ( 2011 )'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4118, 2668, 41, 96, 10628, 651, 121, 1499, 6, 96, 3696, 1947, 10546, 7, 121, 490, 6, 96, 3541, 4624, 2865, 121, 1499, 6, 96, 254, 1483, 12364, 2009, 7, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 3612, 7, 17, 87, 254, 450, 5320, 2535, 599, 7, 61, 220, 1671, 2038, 121, 21680, 953, 834, 4118, 2668, 549, 17444, 427, 96, 25171, 2535, 599, 7, 61, 121, 3274, 3, 31, 7286, 40, 106, 472, 28142, 9963, 3, 6, ...
Return the average age across all artists.
CREATE TABLE volume ( volume_id number, volume_issue text, issue_date text, weeks_on_top number, song text, artist_id number ) CREATE TABLE artist ( artist_id number, artist text, age number, famous_title text, famous_release_date text ) CREATE TABLE music_festival ( id...
SELECT AVG(age) FROM artist
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2908, 41, 2908, 834, 23, 26, 381, 6, 2908, 834, 13159, 1499, 6, 962, 834, 5522, 1499, 6, 1274, 834, 106, 834, 2916, 381, 6, 2324, 1499, 6, 2377, 834, 23, 26, 381, 3, 61, 3, 32102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 545, 61, 21680, 2377, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?
CREATE TABLE song ( f_id VARCHAR, resolution INTEGER, genre_is VARCHAR )
SELECT f_id FROM song WHERE resolution > (SELECT AVG(resolution) FROM song WHERE genre_is = "modern")
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2324, 41, 3, 89, 834, 23, 26, 584, 4280, 28027, 6, 3161, 3, 21342, 17966, 6, 5349, 834, 159, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 3, 23, 26, 7, 13, 8,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 3, 89, 834, 23, 26, 21680, 2324, 549, 17444, 427, 3161, 2490, 41, 23143, 14196, 71, 17217, 599, 60, 14913, 61, 21680, 2324, 549, 17444, 427, 5349, 834, 159, 3274, 96, 18306, 8512, 1, -100, -100, -100, -100, -100, -1...
What was the score when the place was t8?
CREATE TABLE table_name_96 (score VARCHAR, place VARCHAR)
SELECT score FROM table_name_96 WHERE place = "t8"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4314, 41, 7, 9022, 584, 4280, 28027, 6, 286, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 116, 8, 286, 47, 3, 17, 927, 58, 1, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 4314, 549, 17444, 427, 286, 3274, 96, 17, 927, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
provide the number of patients whose diagnoses icd9 code is v4983 and drug route is iv drip?
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "V4983" AND prescriptions.route = "IV DRIP"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
What year was Tim Holden first elected?
CREATE TABLE table_1805191_39 ( first_elected INTEGER, incumbent VARCHAR )
SELECT MIN(first_elected) FROM table_1805191_39 WHERE incumbent = "Tim Holden"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20829, 5553, 4729, 834, 3288, 41, 166, 834, 19971, 3, 21342, 17966, 6, 28406, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 215, 47, 4485, 8470, 35, 166, 8160,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 14672, 834, 19971, 61, 21680, 953, 834, 20829, 5553, 4729, 834, 3288, 549, 17444, 427, 28406, 3274, 96, 382, 603, 8470, 35, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
what are the three most frequent procedures performed since 2 years ago?
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsysto...
SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1058, 41, 1058, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 1058, 4350, 1499, 6, 1058, 715, 97, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 3362, 4267, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 5411, 26889, 4350, 21680, 41, 23143, 14196, 1058, 5, 26889, 4350, 6, 3, 22284, 4132, 834, 16375, 439, 9960, 3, 23288, 41, 2990, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 61, 6157, 3, 75, 536, ...