NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
how many patients whose age is less than 45 and procedure long title is parenteral infusion of concentrated nutritional substances?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "45" AND procedures.long_title = "Parenteral infusion of concentrated nutritional substances"
[ 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, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Who wrote the episode with 3.92 million US viewers?
CREATE TABLE table_25740548_3 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT written_by FROM table_25740548_3 WHERE us_viewers__million_ = "3.92"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 4581, 3076, 3707, 834, 519, 41, 14973, 834, 969, 584, 4280, 28027, 6, 178, 834, 4576, 277, 834, 834, 17030, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1545, 834, 969, 21680, 953, 834, 1828, 4581, 3076, 3707, 834, 519, 549, 17444, 427, 178, 834, 4576, 277, 834, 834, 17030, 834, 3274, 96, 28640, 357, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the number of employees of each gender whose salary is lower than 50000. Visualize by bar chart.
CREATE TABLE project ( Pname Text, Pnumber INTEGER, Plocation TEXT, Dnum INTEGER ) CREATE TABLE works_on ( Essn INTEGER, Pno INTEGER, Hours REAL ) CREATE TABLE dependent ( Essn INTEGER, Dependent_name TEXT, Sex TEXT, Bdate TEXT, Relationship TEXT ) CREATE TABLE dept_locations ( Dnumber INTEGER, Dlocation TEXT ) CREATE TABLE department ( Dname TEXT, Dnumber INTEGER, Mgr_ssn INTEGER, Mgr_start_date TEXT ) CREATE TABLE employee ( Fname TEXT, Minit TEXT, Lname TEXT, Ssn INTEGER, Bdate TEXT, Address TEXT, Sex TEXT, Salary INTEGER, Super_ssn INTEGER, Dno INTEGER )
SELECT Sex, COUNT(*) FROM employee WHERE Salary < 50000 GROUP BY Sex
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 516, 41, 276, 4350, 5027, 6, 276, 5525, 1152, 3, 21342, 17966, 6, 276, 14836, 3, 3463, 4, 382, 6, 309, 5525, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 679, 226, 6, 2847, 17161, 599, 1935, 61, 21680, 3490, 549, 17444, 427, 5158, 1208, 3, 2, 943, 2313, 350, 4630, 6880, 272, 476, 679, 226, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Who was he opponent on december 11?
CREATE TABLE table_22893781_5 ( team VARCHAR, date VARCHAR )
SELECT team FROM table_22893781_5 WHERE date = "December 11"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2884, 3914, 4118, 4959, 834, 755, 41, 372, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 3, 88, 15264, 30, 20, 75, 18247, 850,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 372, 21680, 953, 834, 2884, 3914, 4118, 4959, 834, 755, 549, 17444, 427, 833, 3274, 96, 29835, 850, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the finish with a total larger than 286, a to par of +4 and Bob Tway played?
CREATE TABLE table_name_70 (finish VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT finish FROM table_name_70 WHERE total > 286 AND to_par = "+4" AND player = "bob tway"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2518, 41, 25535, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 6, 12, 834, 1893, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1992, 21680, 953, 834, 4350, 834, 2518, 549, 17444, 427, 792, 2490, 204, 3840, 3430, 12, 834, 1893, 3274, 96, 1220, 20364, 3430, 1959, 3274, 96, 17396, 3, 17, 1343, 121, 1, -100, -100, -100, -100, -100, -100, -100, ...
Which home team competed against the away team Geelong?
CREATE TABLE table_74734 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team" FROM table_74734 WHERE "Away team" = 'geelong'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4581, 4552, 591, 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, 19040, 372, 121, 21680, 953, 834, 4581, 4552, 591, 549, 17444, 427, 96, 188, 1343, 372, 121, 3274, 3, 31, 397, 15, 2961, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the Score of the Hereford United Away game?
CREATE TABLE table_name_88 ( score VARCHAR, away_team VARCHAR )
SELECT score FROM table_name_88 WHERE away_team = "hereford united"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4060, 41, 2604, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 17763, 13, 8, 947, 2590, 907, 71, 1343,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2604, 21680, 953, 834, 4350, 834, 4060, 549, 17444, 427, 550, 834, 11650, 3274, 96, 88, 60, 2590, 18279, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
List the customers first and last name of 10 least expensive invoices.
CREATE TABLE media_types ( id number, name text ) CREATE TABLE playlists ( id number, name text ) CREATE TABLE sqlite_sequence ( name text, seq text ) CREATE TABLE albums ( id number, title text, artist_id number ) CREATE TABLE playlist_tracks ( playlist_id number, track_id number ) CREATE TABLE artists ( id number, name text ) CREATE TABLE employees ( id number, last_name text, first_name text, title text, reports_to number, birth_date time, hire_date time, address text, city text, state text, country text, postal_code text, phone text, fax text, email text ) CREATE TABLE customers ( id number, first_name text, last_name text, company text, address text, city text, state text, country text, postal_code text, phone text, fax text, email text, support_rep_id number ) CREATE TABLE genres ( id number, name text ) CREATE TABLE tracks ( id number, name text, album_id number, media_type_id number, genre_id number, composer text, milliseconds number, bytes number, unit_price number ) CREATE TABLE invoices ( id number, customer_id number, invoice_date time, billing_address text, billing_city text, billing_state text, billing_country text, billing_postal_code text, total number ) CREATE TABLE invoice_lines ( id number, invoice_id number, track_id number, unit_price number, quantity number )
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 783, 834, 6137, 7, 41, 3, 23, 26, 381, 6, 564, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 23424, 7, 41, 3, 23, 26, 381, 6, 564, 1499, 3, 61, 3, 32102, 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, 332, 5411, 14672, 834, 4350, 6, 332, 5411, 5064, 834, 4350, 21680, 722, 6157, 332, 536, 3, 15355, 3162, 10921, 7, 6157, 332, 357, 9191, 332, 4416, 25697, 49, 834, 23, 26, 3274, 332, 5411, 23, 26, 4674, 11300, 272, ...
Beata syta is the minimum year for womens singles.
CREATE TABLE table_13857501_1 (year INTEGER, womens_singles VARCHAR)
SELECT MIN(year) FROM table_13857501_1 WHERE womens_singles = "Beata Syta"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22744, 3436, 20176, 834, 536, 41, 1201, 3, 21342, 17966, 6, 887, 7, 834, 7, 53, 965, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 14117, 9, 3, 7, 63, 17, 9, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 1201, 61, 21680, 953, 834, 22744, 3436, 20176, 834, 536, 549, 17444, 427, 887, 7, 834, 7, 53, 965, 3274, 96, 2703, 144, 9, 5224, 17, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the maximum number of 1st places for the country with exactly 1 third place?
CREATE TABLE table_2876467_3 ( first_place INTEGER, third_place VARCHAR )
SELECT MAX(first_place) FROM table_2876467_3 WHERE third_place = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 3959, 591, 3708, 834, 519, 41, 166, 834, 4687, 3, 21342, 17966, 6, 1025, 834, 4687, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2411, 381, 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, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 14672, 834, 4687, 61, 21680, 953, 834, 2577, 3959, 591, 3708, 834, 519, 549, 17444, 427, 1025, 834, 4687, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the population density of bandung regency?
CREATE TABLE table_21734764_1 ( population_density___km²_2010_ VARCHAR, administrative_division VARCHAR )
SELECT population_density___km²_2010_ FROM table_21734764_1 WHERE administrative_division = "Bandung Regency"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2658, 4552, 4177, 4389, 834, 536, 41, 2074, 834, 537, 7, 485, 834, 834, 834, 5848, 357, 834, 14926, 834, 584, 4280, 28027, 6, 6601, 834, 26, 23, 6610, 584, 4280, 28027, 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, 2074, 834, 537, 7, 485, 834, 834, 834, 5848, 357, 834, 14926, 834, 21680, 953, 834, 2658, 4552, 4177, 4389, 834, 536, 549, 17444, 427, 6601, 834, 26, 23, 6610, 3274, 96, 279, 232, 425, 7777, 4392, 121, 1, -100, -1...
How many people attended the game that lost 2-4 and the date was higher than 15?
CREATE TABLE table_39178 ( "Date" real, "Opponent" text, "Venue" text, "Result" text, "Attendance" real, "Competition" text )
SELECT COUNT("Attendance") FROM table_39178 WHERE "Result" = 'lost 2-4' AND "Date" > '15'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3288, 27640, 41, 96, 308, 342, 121, 490, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 188, 17, 324, 26, 663, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 188, 17, 324, 26, 663, 8512, 21680, 953, 834, 3288, 27640, 549, 17444, 427, 96, 20119, 121, 3274, 3, 31, 2298, 17, 3, 21432, 31, 3430, 96, 308, 342, 121, 2490, 3, 31, 1808, 31, 1, -100, -1...
What is Directed By, when Episode # is 7?
CREATE TABLE table_name_18 (directed_by VARCHAR, episode__number VARCHAR)
SELECT directed_by FROM table_name_18 WHERE episode__number = 7
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2606, 41, 22955, 834, 969, 584, 4280, 28027, 6, 5640, 834, 834, 5525, 1152, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 7143, 15, 26, 938, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6640, 834, 969, 21680, 953, 834, 4350, 834, 2606, 549, 17444, 427, 5640, 834, 834, 5525, 1152, 3274, 489, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pregnant or lactating female.
CREATE TABLE table_train_73 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "severe_sepsis" bool, "in_another_study" bool, "systolic_blood_pressure_sbp" int, "skin_mottling_score" int, "glasgow_come_score_gcs" int, "mr_scanning" bool, "age" float, "NOUSE" float )
SELECT * FROM table_train_73 WHERE pregnancy_or_lactation = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9719, 834, 4552, 41, 96, 23, 26, 121, 16, 17, 6, 96, 122, 3868, 121, 6108, 6, 96, 2026, 11260, 11298, 834, 127, 834, 9700, 6821, 121, 3, 12840, 40, 6, 96, 7, 3258, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1429, 21680, 953, 834, 9719, 834, 4552, 549, 17444, 427, 8999, 834, 127, 834, 9700, 6821, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the starter for schulte
CREATE TABLE table_1045 ( "Player" text, "Position" text, "Starter" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real )
SELECT "Starter" FROM table_1045 WHERE "Player" = 'Schulte'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1714, 2128, 41, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 7681, 449, 121, 1499, 6, 96, 3696, 2295, 3035, 7, 121, 490, 6, 96, 5420, 1313, 979,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7681, 449, 121, 21680, 953, 834, 1714, 2128, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 6717, 83, 17, 15, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of patients whose days of hospital stay is greater than 27 and procedure icd9 code is 5012?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "27" AND procedures.icd9_code = "5012"
[ 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, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
In 1955 which party did Thomas Mitchell belong to?
CREATE TABLE table_name_97 (party VARCHAR, year VARCHAR, candidate VARCHAR)
SELECT party FROM table_name_97 WHERE year = "1955" AND candidate = "thomas mitchell"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4327, 41, 8071, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 4775, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 86, 23652, 84, 1088, 410, 3576, 17949, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1088, 21680, 953, 834, 4350, 834, 4327, 549, 17444, 427, 215, 3274, 96, 22464, 17395, 3430, 4775, 3274, 96, 189, 32, 2754, 181, 1033, 195, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
How many courses are provided in each year? Visualize with a group line chart grouping by semester, could you list x axis in desc order?
CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) )
SELECT year, COUNT(*) FROM section GROUP BY semester, year ORDER BY year DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4858, 41, 740, 3, 4331, 4059, 599, 1808, 201, 562, 834, 5525, 1152, 3, 4331, 4059, 24358, 6, 2614, 206, 17552, 599, 8525, 632, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 215, 6, 2847, 17161, 599, 1935, 61, 21680, 1375, 350, 4630, 6880, 272, 476, 10542, 6, 215, 4674, 11300, 272, 476, 215, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
provide the number of patients categorized under chemistry lab test who have been diagnosed with contusion of face, scalp, and neck except eye(s).
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 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, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Contusion face/scalp/nck" AND lab."CATEGORY" = "Chemistry"
[ 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...
Who is the player with a year later than 2007 and the college/high school/club of Arizona?
CREATE TABLE table_name_58 (player VARCHAR, year VARCHAR, college_high_school_club VARCHAR)
SELECT player FROM table_name_58 WHERE year > 2007 AND college_high_school_club = "arizona"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 20846, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 1900, 834, 6739, 834, 6646, 834, 13442, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1959, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 215, 2490, 4101, 3430, 1900, 834, 6739, 834, 6646, 834, 13442, 3274, 96, 1665, 8892, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What's the average year for the good things happening album's single 'lady lady lay'?
CREATE TABLE table_44779 ( "Year" real, "Month" text, "Single" text, "Album" text, "Record label" text )
SELECT AVG("Year") FROM table_44779 WHERE "Album" = 'good things happening' AND "Single" = 'lady lady lay'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 4177, 4440, 41, 96, 476, 2741, 121, 490, 6, 96, 9168, 189, 121, 1499, 6, 96, 134, 53, 109, 121, 1499, 6, 96, 25691, 440, 121, 1499, 6, 96, 1649, 7621, 3783, 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, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 476, 2741, 8512, 21680, 953, 834, 591, 4177, 4440, 549, 17444, 427, 96, 25691, 440, 121, 3274, 3, 31, 10452, 378, 4626, 31, 3430, 96, 134, 53, 109, 121, 3274, 3, 31, 521, 26, 63, 9360, 8260, ...
What is the ranking when Archie Compston is the player and the money is $73?
CREATE TABLE table_79008 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real, "Money ( $ )" text )
SELECT "Place" FROM table_79008 WHERE "Money ( $ )" = '73' AND "Player" = 'archie compston'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4440, 1206, 927, 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, 490, 6, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 345, 11706, 121, 21680, 953, 834, 4440, 1206, 927, 549, 17444, 427, 96, 9168, 15, 63, 41, 1514, 3, 61, 121, 3274, 3, 31, 4552, 31, 3430, 96, 15800, 49, 121, 3274, 3, 31, 291, 9781, 2890, 4411, 31, 1, -100, ...
Which Season was the Poles greater than 14?
CREATE TABLE table_name_27 ( season VARCHAR, poles INTEGER )
SELECT season FROM table_name_27 WHERE poles > 14
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2555, 41, 774, 584, 4280, 28027, 6, 11148, 7, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 7960, 47, 8, 19418, 7, 2123, 145, 968, 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, 774, 21680, 953, 834, 4350, 834, 2555, 549, 17444, 427, 11148, 7, 2490, 968, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many dismissals did the player Peter McGlashan have?
CREATE TABLE table_13337302_16 ( dismissals VARCHAR, player VARCHAR )
SELECT dismissals FROM table_13337302_16 WHERE player = "Peter McGlashan"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22974, 4118, 1458, 357, 834, 2938, 41, 16708, 5405, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 16708, 5405, 410, 8, 1959, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16708, 5405, 21680, 953, 834, 22974, 4118, 1458, 357, 834, 2938, 549, 17444, 427, 1959, 3274, 96, 345, 15, 449, 13528, 8058, 152, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is Country, when Total is less than 290, and when Year(s) Won is 1960?
CREATE TABLE table_76437 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real, "Finish" text )
SELECT "Country" FROM table_76437 WHERE "Total" < '290' AND "Year(s) won" = '1960'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3959, 591, 4118, 41, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 476, 2741, 599, 7, 61, 751, 121, 1499, 6, 96, 3696, 1947, 121, 490, 6, 96, 3696, 260...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3959, 591, 4118, 549, 17444, 427, 96, 3696, 1947, 121, 3, 2, 3, 31, 23838, 31, 3430, 96, 476, 2741, 599, 7, 61, 751, 121, 3274, 3, 31, 2294, 3328, 31, 1, -100, -100, -100, ...
How many different counts for won points does Flavia Pennetta have?
CREATE TABLE table_27615896_20 ( points VARCHAR, player VARCHAR )
SELECT COUNT(points) AS won FROM table_27615896_20 WHERE player = "Flavia Pennetta"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 4241, 3449, 4314, 834, 1755, 41, 979, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 315, 12052, 21, 751, 979, 405, 7036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2847, 17161, 599, 2700, 7, 61, 6157, 751, 21680, 953, 834, 2555, 4241, 3449, 4314, 834, 1755, 549, 17444, 427, 1959, 3274, 96, 371, 521, 5907, 11358, 10669, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Show how many delegates in each party with a bar chart.
CREATE TABLE county ( County_Id int, County_name text, Population real, Zip_code text ) CREATE TABLE party ( Party_ID int, Year real, Party text, Governor text, Lieutenant_Governor text, Comptroller text, Attorney_General text, US_Senate text ) CREATE TABLE election ( Election_ID int, Counties_Represented text, District int, Delegate text, Party int, First_Elected real, Committee text )
SELECT T2.Party, COUNT(T2.Party) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5435, 41, 1334, 834, 196, 26, 16, 17, 6, 1334, 834, 4350, 1499, 6, 29659, 490, 6, 22296, 834, 4978, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1088, 41, 3450, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13725, 63, 6, 2847, 17161, 599, 382, 4416, 13725, 63, 61, 21680, 4356, 6157, 332, 536, 3, 15355, 3162, 1088, 6157, 332, 357, 9191, 332, 5411, 13725, 63, 3274, 332, 4416, 13725, 63, 834, 4309, 350, 4630, 6...
What is the modified torque (lb/ft) when the standard hp n/a?
CREATE TABLE table_19704392_1 ( modified_torque__lb_ft_ VARCHAR, standard_hp VARCHAR )
SELECT COUNT(modified_torque__lb_ft_) FROM table_19704392_1 WHERE standard_hp = "n/a"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 2518, 4906, 4508, 834, 536, 41, 8473, 834, 17, 127, 835, 834, 834, 40, 115, 834, 89, 17, 834, 584, 4280, 28027, 6, 1068, 834, 107, 102, 584, 4280, 28027, 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, 2847, 17161, 599, 7360, 3676, 834, 17, 127, 835, 834, 834, 40, 115, 834, 89, 17, 834, 61, 21680, 953, 834, 2294, 2518, 4906, 4508, 834, 536, 549, 17444, 427, 1068, 834, 107, 102, 3274, 96, 29, 87, 9, 121, 1, -10...
How many draft picks are there at the Defensive End position?
CREATE TABLE table_16729063_1 (pick__number VARCHAR, position VARCHAR)
SELECT COUNT(pick__number) FROM table_16729063_1 WHERE position = "Defensive End"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27650, 23838, 3891, 834, 536, 41, 17967, 834, 834, 5525, 1152, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 6488, 1432, 7, 33, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 17967, 834, 834, 5525, 1152, 61, 21680, 953, 834, 27650, 23838, 3891, 834, 536, 549, 17444, 427, 1102, 3274, 96, 2962, 23039, 15, 3720, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
how long did karin enke took to finish the race ?
CREATE TABLE table_204_556 ( id number, "rank" number, "athlete" text, "country" text, "time" text, "notes" text )
SELECT "time" FROM table_204_556 WHERE "athlete" = 'karin enke'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 3769, 948, 41, 3, 23, 26, 381, 6, 96, 6254, 121, 381, 6, 96, 26170, 15, 121, 1499, 6, 96, 17529, 121, 1499, 6, 96, 715, 121, 1499, 6, 96, 7977, 7, 121, 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, 96, 715, 121, 21680, 953, 834, 26363, 834, 3769, 948, 549, 17444, 427, 96, 26170, 15, 121, 3274, 3, 31, 4031, 77, 3, 35, 1050, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
how many times in this year has patient 012-14774 been to the hospital?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) 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, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )
SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '012-14774' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2179, 9339, 41, 2179, 521, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 1543, 3585, 1499, 6, 9329, 1499, 6, 1543, 4914, 29, 715, 97, 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, 2847, 17161, 599, 15438, 25424, 6227, 1868, 5, 10061, 15878, 3734, 21545, 23, 26, 61, 21680, 1868, 549, 17444, 427, 1868, 5, 202, 1495, 12417, 3274, 3, 31, 4542, 17234, 4177, 4581, 31, 3430, 309, 6048, 382, 15382, 599...
Name the least clubs remaining
CREATE TABLE table_73079 ( "Round" text, "Clubs remaining" real, "Clubs involved" real, "Winners from previous round" text, "New entries this round" text, "Leagues entering this round" text )
SELECT MIN("Clubs remaining") FROM table_73079
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 1458, 4440, 41, 96, 448, 32, 1106, 121, 1499, 6, 96, 254, 11158, 7, 4080, 121, 490, 6, 96, 254, 11158, 7, 1381, 121, 490, 6, 96, 18455, 687, 7, 45, 1767, 1751, 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, 3, 17684, 599, 121, 254, 11158, 7, 4080, 8512, 21680, 953, 834, 940, 1458, 4440, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was South Melbourne's score when they played as the away team?
CREATE TABLE table_name_5 ( away_team VARCHAR )
SELECT away_team AS score FROM table_name_5 WHERE away_team = "south melbourne"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 755, 41, 550, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 1013, 9396, 31, 7, 2604, 116, 79, 1944, 38, 8, 550, 372, 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, 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, 550, 834, 11650, 6157, 2604, 21680, 953, 834, 4350, 834, 755, 549, 17444, 427, 550, 834, 11650, 3274, 96, 7, 670, 107, 3, 2341, 26255, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
If the site is sanford stadium athens, ga, what is the date?
CREATE TABLE table_26842217_8 ( date VARCHAR, site VARCHAR )
SELECT date FROM table_26842217_8 WHERE site = "Sanford Stadium • Athens, GA"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 4608, 2884, 2517, 834, 927, 41, 833, 584, 4280, 28027, 6, 353, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 156, 8, 353, 19, 3, 7, 152, 2590, 14939, 44, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 833, 21680, 953, 834, 2688, 4608, 2884, 2517, 834, 927, 549, 17444, 427, 353, 3274, 96, 134, 152, 2590, 12750, 1697, 486, 3225, 7, 6, 10615, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show names of technicians and the number of machines they are assigned to repair Visualize by bar chart, and I want to display in desc by the Y.
CREATE TABLE repair ( repair_ID int, name text, Launch_Date text, Notes text ) CREATE TABLE repair_assignment ( technician_id int, repair_ID int, Machine_ID int ) CREATE TABLE machine ( Machine_ID int, Making_Year int, Class text, Team text, Machine_series text, value_points real, quality_rank int ) CREATE TABLE technician ( technician_id real, Name text, Team text, Starting_Year real, Age int )
SELECT Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_id = T2.technician_id GROUP BY T2.Name ORDER BY COUNT(*) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2096, 41, 2096, 834, 4309, 16, 17, 6, 564, 1499, 6, 17113, 834, 308, 342, 1499, 6, 2507, 7, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 2096, 834, 9, 7, 6732,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5570, 6, 2847, 17161, 599, 1935, 61, 21680, 2096, 834, 9, 7, 6732, 297, 6157, 332, 536, 3, 15355, 3162, 17730, 6157, 332, 357, 9191, 332, 5411, 3470, 7742, 152, 834, 23, 26, 3274, 332, 4416, 3470, 7742, 152, 834, ...
What is the money list rank for player Doug Barron?
CREATE TABLE table_29504351_2 (money_list_rank INTEGER, player VARCHAR)
SELECT MAX(money_list_rank) FROM table_29504351_2 WHERE player = "Doug Barron"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 1752, 4906, 5553, 834, 357, 41, 28442, 834, 3350, 834, 6254, 3, 21342, 17966, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 540, 570, 11003,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 28442, 834, 3350, 834, 6254, 61, 21680, 953, 834, 3166, 1752, 4906, 5553, 834, 357, 549, 17444, 427, 1959, 3274, 96, 4135, 76, 122, 13384, 106, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -...
For those records from the products and each product's manufacturer, a scatter chart shows the correlation between price and manufacturer .
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT Price, Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7554, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 5312, 3396, 254, 26330, 434, 6, 15248, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5312, 6, 15248, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which highest rank belongs to the palestinian territories?
CREATE TABLE table_name_85 ( rank INTEGER, country VARCHAR )
SELECT MAX(rank) FROM table_name_85 WHERE country = "palestinian territories"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4433, 41, 11003, 3, 21342, 17966, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 2030, 11003, 16952, 12, 8, 7692, 3340, 15710, 23995, 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, 0...
[ 3, 23143, 14196, 4800, 4, 599, 6254, 61, 21680, 953, 834, 4350, 834, 4433, 549, 17444, 427, 684, 3274, 96, 6459, 3340, 15710, 23995, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
I want to know the proportion of faculty members for each sex.
CREATE TABLE Participates_in ( stuid INTEGER, actid INTEGER ) CREATE TABLE Faculty ( FacID INTEGER, Lname VARCHAR(15), Fname VARCHAR(15), Rank VARCHAR(15), Sex VARCHAR(1), Phone INTEGER, Room VARCHAR(5), Building VARCHAR(13) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Activity ( actid INTEGER, activity_name varchar(25) ) CREATE TABLE Faculty_Participates_in ( FacID INTEGER, actid INTEGER )
SELECT Sex, COUNT(*) FROM Faculty GROUP BY Sex
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15077, 6203, 834, 77, 41, 21341, 23, 26, 3, 21342, 17966, 6, 1810, 23, 26, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 16896, 41, 1699, 75, 4309, 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, 679, 226, 6, 2847, 17161, 599, 1935, 61, 21680, 16896, 350, 4630, 6880, 272, 476, 679, 226, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the prize money when the clubs is 392 276?
CREATE TABLE table_27973624_1 ( prize_money VARCHAR, clubs VARCHAR )
SELECT prize_money FROM table_27973624_1 WHERE clubs = "392 → 276"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 4327, 3420, 2266, 834, 536, 41, 6441, 834, 28442, 584, 4280, 28027, 6, 8122, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 6441, 540, 116, 8, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6441, 834, 28442, 21680, 953, 834, 2555, 4327, 3420, 2266, 834, 536, 549, 17444, 427, 8122, 3274, 96, 3288, 357, 3, 2, 204, 3959, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the name and account balance of the customer whose name includes the letter a .
CREATE TABLE customer ( cust_name VARCHAR, acc_bal VARCHAR )
SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 884, 41, 123, 7, 17, 834, 4350, 584, 4280, 28027, 6, 3, 6004, 834, 3849, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2588, 8, 564, 11, 905, 2109, 13, 8, 884, 3, 2544, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 3, 23143, 14196, 123, 7, 17, 834, 4350, 6, 3, 6004, 834, 3849, 21680, 884, 549, 17444, 427, 123, 7, 17, 834, 4350, 8729, 9914, 3, 31, 1454, 9, 1454, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many total matches with less than 1 win and a position higher than 8?
CREATE TABLE table_name_13 ( matches INTEGER, wins VARCHAR, pos VARCHAR )
SELECT SUM(matches) FROM table_name_13 WHERE wins < 1 AND pos > 8
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2368, 41, 6407, 3, 21342, 17966, 6, 9204, 584, 4280, 28027, 6, 3, 2748, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 792, 6407, 28, 705, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 19515, 15, 7, 61, 21680, 953, 834, 4350, 834, 2368, 549, 17444, 427, 9204, 3, 2, 209, 3430, 3, 2748, 2490, 505, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
who are the candidates for district new york 10?
CREATE TABLE table_2668347_14 ( candidates VARCHAR, district VARCHAR )
SELECT candidates FROM table_2668347_14 WHERE district = "New York 10"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 3651, 519, 4177, 834, 2534, 41, 4341, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 113, 33, 8, 4341, 21, 3939, 126, 25453, 335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4341, 21680, 953, 834, 2688, 3651, 519, 4177, 834, 2534, 549, 17444, 427, 3939, 3274, 96, 6861, 1060, 335, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Return the countries of the mountains that have a height larger than 5000, and count them by a pie chart
CREATE TABLE climber ( Climber_ID int, Name text, Country text, Time text, Points real, Mountain_ID int ) CREATE TABLE mountain ( Mountain_ID int, Name text, Height real, Prominence real, Range text, Country text )
SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8147, 49, 41, 205, 9577, 49, 834, 4309, 16, 17, 6, 5570, 1499, 6, 6993, 1499, 6, 2900, 1499, 6, 4564, 7, 490, 6, 5617, 834, 4309, 16, 17, 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, 6993, 6, 2847, 17161, 599, 10628, 651, 61, 21680, 4180, 549, 17444, 427, 24231, 2490, 3, 12814, 350, 4630, 6880, 272, 476, 6993, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the sum number of Pl GP when the pick number is 178 and the road number is bigger than 9?
CREATE TABLE table_name_13 ( pl_gp VARCHAR, pick__number VARCHAR, rd__number VARCHAR )
SELECT COUNT(pl_gp) FROM table_name_13 WHERE pick__number = 178 AND rd__number > 9
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2368, 41, 4752, 834, 122, 102, 584, 4280, 28027, 6, 1432, 834, 834, 5525, 1152, 584, 4280, 28027, 6, 3, 52, 26, 834, 834, 5525, 1152, 584, 4280, 28027, 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, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 102, 40, 834, 122, 102, 61, 21680, 953, 834, 4350, 834, 2368, 549, 17444, 427, 1432, 834, 834, 5525, 1152, 3274, 3, 27640, 3430, 3, 52, 26, 834, 834, 5525, 1152, 2490, 668, 1, -100, -100, -100, -...
fasting c _ peptide < 0.2 ng / ml;
CREATE TABLE table_train_237 ( "id" int, "fasting_c_peptide" float, "fasting_plasma_glucose" int, "smoking" bool, "body_mass_index_bmi" float, "serum_25_oh_d_levels" int, "NOUSE" float )
SELECT * FROM table_train_237 WHERE fasting_c_peptide < 0.2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9719, 834, 357, 4118, 41, 96, 23, 26, 121, 16, 17, 6, 96, 11584, 53, 834, 75, 834, 21826, 15, 121, 3, 12660, 6, 96, 11584, 53, 834, 21178, 9, 834, 13492, 509, 7, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1429, 21680, 953, 834, 9719, 834, 357, 4118, 549, 17444, 427, 1006, 53, 834, 75, 834, 21826, 15, 3, 2, 3, 18189, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the number of the dail with 61 seats?
CREATE TABLE table_name_55 ( dáil VARCHAR, seats VARCHAR )
SELECT dáil FROM table_name_55 WHERE seats = 61
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3769, 41, 3, 26, 2975, 173, 584, 4280, 28027, 6, 6116, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 381, 13, 8, 836, 173, 28, 3, 4241, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 26, 2975, 173, 21680, 953, 834, 4350, 834, 3769, 549, 17444, 427, 6116, 3274, 3, 4241, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
For those employees who did not have any job in the past, give me the comparison about the average of manager_id over the hire_date bin hire_date by weekday, could you list the average of manager id in asc order?
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 locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) )
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(MANAGER_ID)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 613, 834, 10193, 10972, 41, 262, 5244, 5017, 476, 5080, 834, 4309, 7908, 1982, 599, 11071, 632, 201, 5097, 8241, 834, 308, 6048, 833, 6, 3, 14920, 834, 308, 6048, 833, 6, 446, 10539, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 454, 14132, 834, 308, 6048, 6, 71, 17217, 599, 9312, 188, 17966, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 4486, 262, 5244, 5017, 476, 5080, 834, 4309, 3388, 41, 23143, 14196, 262, 5244, 5017, 476, 5080, 834, 4309,...
What is the name of the venue where the game played had an away team of Melbourne?
CREATE TABLE table_name_5 ( venue VARCHAR, away_team VARCHAR )
SELECT venue FROM table_name_5 WHERE away_team = "melbourne"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 755, 41, 5669, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 8, 5669, 213, 8, 467, 1944, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5669, 21680, 953, 834, 4350, 834, 755, 549, 17444, 427, 550, 834, 11650, 3274, 96, 2341, 26255, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who was Andrew and Georgie's gues when Jamie and John's guest was Phil Taylor?
CREATE TABLE table_30956 ( "Episode" text, "First broadcast" text, "Andrew and Georgies guest" text, "Jamie and Johns guest Dermot OLeary replaced Jamie Redknapp as team captain for one week in series 3, episode 8." text, "Scores" text )
SELECT "Andrew and Georgies guest" FROM table_30956 WHERE "Jamie and Johns guest Dermot OLeary replaced Jamie Redknapp as team captain for one week in series 3, episode 8." = 'Phil Taylor'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1458, 3301, 948, 41, 96, 427, 102, 159, 32, 221, 121, 1499, 6, 96, 25171, 6878, 121, 1499, 6, 96, 7175, 60, 210, 11, 20916, 725, 3886, 121, 1499, 6, 96, 683, 9, 2720, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7175, 60, 210, 11, 20916, 725, 3886, 121, 21680, 953, 834, 1458, 3301, 948, 549, 17444, 427, 96, 683, 9, 2720, 11, 1079, 7, 3886, 660, 8888, 3, 5194, 15, 1208, 5821, 17845, 1624, 157, 29, 3096, 38, 372, 14268,...
What is the surface for the riverhead raceway?
CREATE TABLE table_name_84 (surface VARCHAR, track VARCHAR)
SELECT surface FROM table_name_84 WHERE track = "riverhead raceway"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4608, 41, 26899, 584, 4280, 28027, 6, 1463, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1774, 21, 8, 4033, 3313, 1964, 1343, 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, 1774, 21680, 953, 834, 4350, 834, 4608, 549, 17444, 427, 1463, 3274, 96, 5927, 49, 3313, 1964, 1343, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Rank has a Bronze of 1, and a Nation of lithuania?
CREATE TABLE table_name_89 (rank VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT rank FROM table_name_89 WHERE bronze = 1 AND nation = "lithuania"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3914, 41, 6254, 584, 4280, 28027, 6, 13467, 584, 4280, 28027, 6, 2982, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 3, 22557, 65, 3, 9, 20841, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 11003, 21680, 953, 834, 4350, 834, 3914, 549, 17444, 427, 13467, 3274, 209, 3430, 2982, 3274, 96, 18800, 76, 11219, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What was the score when their record was 35 23 15?
CREATE TABLE table_37013 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
SELECT "Score" FROM table_37013 WHERE "Record" = '35–23–15'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22520, 2368, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 159, 155, 127, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 19040, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 3, 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, 0...
[ 3, 23143, 14196, 96, 134, 9022, 121, 21680, 953, 834, 22520, 2368, 549, 17444, 427, 96, 1649, 7621, 121, 3274, 3, 31, 2469, 104, 2773, 104, 1808, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Return the investor who have invested in the greatest number of entrepreneurs.
CREATE TABLE people ( people_id number, name text, height number, weight number, date_of_birth text ) CREATE TABLE entrepreneur ( entrepreneur_id number, people_id number, company text, money_requested number, investor text )
SELECT investor FROM entrepreneur GROUP BY investor ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 151, 41, 151, 834, 23, 26, 381, 6, 564, 1499, 6, 3902, 381, 6, 1293, 381, 6, 833, 834, 858, 834, 20663, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 3, 12290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12024, 21680, 3, 12290, 350, 4630, 6880, 272, 476, 12024, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the highest number of silver medals that Ireland earned when they scored less than 3 bronze medals and earned 1 medal?
CREATE TABLE table_name_95 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT MAX(silver) FROM table_name_95 WHERE bronze < 3 AND gold < 1 AND total = 1 AND nation = "ireland"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3301, 41, 7, 173, 624, 3, 21342, 17966, 6, 2982, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 6, 13467, 584, 4280, 28027, 6, 2045, 584, 4280, 28027, 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, 4800, 4, 599, 7, 173, 624, 61, 21680, 953, 834, 4350, 834, 3301, 549, 17444, 427, 13467, 3, 2, 220, 3430, 2045, 3, 2, 209, 3430, 792, 3274, 209, 3430, 2982, 3274, 96, 2060, 40, 232, 121, 1, -100, -100, -100, -10...
Tell me the lowest kazakhstan for kyrghizstan of 4.62 and belarus less than 2.46
CREATE TABLE table_name_20 ( kazakhstan INTEGER, kyrghizstan VARCHAR, belarus VARCHAR )
SELECT MIN(kazakhstan) FROM table_name_20 WHERE kyrghizstan = 4.62 AND belarus < 2.46
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 3, 1258, 172, 18965, 5627, 3, 21342, 17966, 6, 3, 3781, 52, 5649, 172, 5627, 584, 4280, 28027, 6, 36, 521, 4502, 584, 4280, 28027, 3, 61, 3, 32102, 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, 3, 17684, 599, 1258, 172, 18965, 5627, 61, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 3, 3781, 52, 5649, 172, 5627, 3274, 2853, 4056, 3430, 36, 521, 4502, 3, 2, 1682, 4448, 1, -100, -100, -100, -100, -100, ...
What was the title of the episode written by Julia Newton in series 48?
CREATE TABLE table_2468961_4 (title VARCHAR, written_by VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_2468961_4 WHERE written_by = "Julia Newton" AND no_in_series = 48
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 3651, 4314, 536, 834, 591, 41, 21869, 584, 4280, 28027, 6, 1545, 834, 969, 584, 4280, 28027, 6, 150, 834, 77, 834, 10833, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 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, 0, 0, 0, 0...
[ 3, 23143, 14196, 2233, 21680, 953, 834, 2266, 3651, 4314, 536, 834, 591, 549, 17444, 427, 1545, 834, 969, 3274, 96, 683, 83, 23, 9, 20126, 121, 3430, 150, 834, 77, 834, 10833, 7, 3274, 4678, 1, -100, -100, -100, -100, -100, -100, ...
What episode took place in Belfast Waterfront Hall?
CREATE TABLE table_23122988_1 (episode VARCHAR, location VARCHAR)
SELECT episode FROM table_23122988_1 WHERE location = "Belfast Waterfront Hall"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 2122, 3166, 4060, 834, 536, 41, 15, 102, 159, 32, 221, 584, 4280, 28027, 6, 1128, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 5640, 808, 286, 16, 27874, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5640, 21680, 953, 834, 2773, 2122, 3166, 4060, 834, 536, 549, 17444, 427, 1128, 3274, 96, 2703, 40, 11584, 2336, 6849, 2501, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When the attendance was 3188 what was the score?
CREATE TABLE table_50435 ( "Date" text, "Home" text, "Score" text, "Away" text, "Attendance" real )
SELECT "Score" FROM table_50435 WHERE "Attendance" = '3188'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1752, 591, 2469, 41, 96, 308, 342, 121, 1499, 6, 96, 19040, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 188, 1343, 121, 1499, 6, 96, 188, 17, 324, 26, 663, 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, 96, 134, 9022, 121, 21680, 953, 834, 1752, 591, 2469, 549, 17444, 427, 96, 188, 17, 324, 26, 663, 121, 3274, 3, 31, 3341, 4060, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the death status of subject id 83678?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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, route text, drug_dose 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, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT demographic.expire_flag FROM demographic WHERE demographic.subject_id = "83678"
[ 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, 14798, 5, 994, 2388, 15, 834, 89, 5430, 21680, 14798, 549, 17444, 427, 14798, 5, 7304, 11827, 834, 23, 26, 3274, 96, 927, 3420, 3940, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What are the lowest top-5 with a top-25 larger than 4, 29 cuts and a top-10 larger than 18?
CREATE TABLE table_name_62 ( top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR, cuts_made VARCHAR )
SELECT MIN(top_5) FROM table_name_62 WHERE top_25 > 4 AND cuts_made = 29 AND top_10 > 18
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4056, 41, 420, 834, 755, 3, 21342, 17966, 6, 420, 834, 1714, 584, 4280, 28027, 6, 420, 834, 1828, 584, 4280, 28027, 6, 8620, 834, 4725, 584, 4280, 28027, 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, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 2916, 834, 9120, 21680, 953, 834, 4350, 834, 4056, 549, 17444, 427, 420, 834, 1828, 2490, 314, 3430, 8620, 834, 4725, 3274, 2838, 3430, 420, 834, 1714, 2490, 507, 1, -100, -100, -100, -100, -100, -100, ...
How long did Joyce Jacobs portray her character on her show?
CREATE TABLE table_name_83 ( duration VARCHAR, actor VARCHAR )
SELECT duration FROM table_name_83 WHERE actor = "joyce jacobs"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4591, 41, 8659, 584, 4280, 28027, 6, 7556, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 307, 410, 27121, 9846, 7, 17611, 160, 1848, 30, 160, 504, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8659, 21680, 953, 834, 4350, 834, 4591, 549, 17444, 427, 7556, 3274, 96, 1927, 63, 565, 2662, 509, 115, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
A bar chart showing the number of debates in each venue for those on the affirmative side, and rank by the the number of venue in asc.
CREATE TABLE people ( People_ID int, District text, Name text, Party text, Age int ) CREATE TABLE debate_people ( Debate_ID int, Affirmative int, Negative int, If_Affirmative_Win bool ) CREATE TABLE debate ( Debate_ID int, Date text, Venue text, Num_of_Audience int )
SELECT Venue, COUNT(Venue) FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID GROUP BY Venue ORDER BY COUNT(Venue)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 151, 41, 2449, 834, 4309, 16, 17, 6, 3570, 1499, 6, 5570, 1499, 6, 3450, 1499, 6, 7526, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 5054, 834, 16588, 41, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29940, 6, 2847, 17161, 599, 553, 35, 76, 15, 61, 21680, 5054, 834, 16588, 6157, 332, 536, 3, 15355, 3162, 5054, 6157, 332, 357, 9191, 332, 5411, 2962, 3697, 15, 834, 4309, 3274, 332, 4416, 2962, 3697, 15, 834, 4309,...
what is age and gender of subject name paul dunn?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 )
SELECT demographic.age, demographic.gender FROM demographic WHERE demographic.name = "Paul Dunn"
[ 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, 14798, 5, 545, 6, 14798, 5, 122, 3868, 21680, 14798, 549, 17444, 427, 14798, 5, 4350, 3274, 96, 23183, 6393, 29, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are all the different zip codes that have a maximum dew point that was always below 70?
CREATE TABLE weather ( date text, max_temperature_f number, mean_temperature_f number, min_temperature_f number, max_dew_point_f number, mean_dew_point_f number, min_dew_point_f number, max_humidity number, mean_humidity number, min_humidity number, max_sea_level_pressure_inches number, mean_sea_level_pressure_inches number, min_sea_level_pressure_inches number, max_visibility_miles number, mean_visibility_miles number, min_visibility_miles number, max_wind_speed_mph number, mean_wind_speed_mph number, max_gust_speed_mph number, precipitation_inches number, cloud_cover number, events text, wind_dir_degrees number, zip_code number ) CREATE TABLE trip ( id number, duration number, start_date text, start_station_name text, start_station_id number, end_date text, end_station_name text, end_station_id number, bike_id number, subscription_type text, zip_code number ) CREATE TABLE status ( station_id number, bikes_available number, docks_available number, time text ) CREATE TABLE station ( id number, name text, lat number, long number, dock_count number, city text, installation_date text )
SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1969, 41, 833, 1499, 6, 9858, 834, 21010, 15, 834, 89, 381, 6, 1243, 834, 21010, 15, 834, 89, 381, 6, 3519, 834, 21010, 15, 834, 89, 381, 6, 9858, 834, 221, 210, 834, 2700, 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, 3, 15438, 25424, 6227, 10658, 834, 4978, 21680, 1969, 262, 4, 30416, 3, 23143, 14196, 3, 15438, 25424, 6227, 10658, 834, 4978, 21680, 1969, 549, 17444, 427, 9858, 834, 221, 210, 834, 2700, 834, 89, 2490, 2423, 2861, 1...
What is the result on 29 September 2007?
CREATE TABLE table_name_39 ( result VARCHAR, date VARCHAR )
SELECT result FROM table_name_39 WHERE date = "29 september 2007"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3288, 41, 741, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 741, 30, 2838, 1600, 4101, 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, 741, 21680, 953, 834, 4350, 834, 3288, 549, 17444, 427, 833, 3274, 96, 3166, 16022, 18247, 4101, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum?
CREATE TABLE table_name_83 (place VARCHAR, total VARCHAR)
SELECT SUM(5 AS _hoops) FROM table_name_83 WHERE place > 7 AND total > 38.525
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4591, 41, 4687, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 305, 1546, 9280, 24, 65, 3, 9, 3399, 2186, 145, 7973, 11, 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, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 755, 6157, 3, 834, 107, 6631, 7, 61, 21680, 953, 834, 4350, 834, 4591, 549, 17444, 427, 286, 2490, 489, 3430, 792, 2490, 220, 19253, 1828, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What years does Goreville High School have members?
CREATE TABLE table_name_62 (years_member VARCHAR, school VARCHAR)
SELECT years_member FROM table_name_62 WHERE school = "goreville high school"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4056, 41, 1201, 7, 834, 12066, 584, 4280, 28027, 6, 496, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 203, 405, 1263, 60, 1420, 1592, 1121, 43, 724, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 203, 834, 12066, 21680, 953, 834, 4350, 834, 4056, 549, 17444, 427, 496, 3274, 96, 839, 60, 1420, 306, 496, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What was the Skip for Germany?
CREATE TABLE table_43402 ( "Nation" text, "Skip" text, "Third" text, "Second" text, "Lead" text, "Alternate" text, "Club" text )
SELECT "Skip" FROM table_43402 WHERE "Nation" = 'germany'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4906, 2445, 357, 41, 96, 567, 257, 121, 1499, 6, 96, 134, 2168, 102, 121, 1499, 6, 96, 382, 9288, 26, 121, 1499, 6, 96, 134, 15, 1018, 26, 121, 1499, 6, 96, 2796, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 2168, 102, 121, 21680, 953, 834, 4906, 2445, 357, 549, 17444, 427, 96, 567, 257, 121, 3274, 3, 31, 1304, 348, 63, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Please use a bar chart to show the minimum price of the rooms in a different decor, rank decor from low to high order.
CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adults INTEGER, Kids INTEGER ) CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEGER, basePrice INTEGER, decor TEXT )
SELECT decor, MIN(basePrice) FROM Rooms GROUP BY decor ORDER BY decor
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 27659, 7, 41, 3636, 3, 21342, 17966, 6, 4181, 3, 3463, 4, 382, 6, 1972, 1570, 3, 3463, 4, 382, 6, 1972, 15767, 3, 3463, 4, 382, 6, 13002, 17833, 6, 2506, 23954, 3, 3463, 4, 382, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4469, 6, 3, 17684, 599, 10925, 345, 4920, 61, 21680, 4181, 7, 350, 4630, 6880, 272, 476, 4469, 4674, 11300, 272, 476, 4469, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show all allergies with number of students affected Show bar chart, and could you list by the X-axis in asc please?
CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) )
SELECT Allergy, COUNT(*) FROM Has_Allergy GROUP BY Allergy ORDER BY Allergy
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4498, 834, 6838, 49, 122, 63, 41, 3, 13076, 4309, 3, 21342, 17966, 6, 432, 49, 122, 63, 584, 4280, 28027, 599, 1755, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 432, 49, 122, 63, 6, 2847, 17161, 599, 1935, 61, 21680, 4498, 834, 6838, 49, 122, 63, 350, 4630, 6880, 272, 476, 432, 49, 122, 63, 4674, 11300, 272, 476, 432, 49, 122, 63, 1, -100, -100, -100, -100, -100, -100, ...
Return a bar chart about the distribution of All_Neutral and ACC_Percent .
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT All_Neutral, ACC_Percent FROM basketball_match
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3819, 41, 1121, 834, 4309, 16, 17, 6, 1121, 1499, 6, 10450, 1499, 6, 3, 20100, 490, 6, 71, 89, 8027, 23, 257, 1499, 6, 695, 4046, 297, 490, 6, 7486, 4350, 1499, 6, 14542, 834, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 432, 834, 26288, 8792, 6, 3, 14775, 834, 12988, 3728, 21680, 8498, 834, 19515, 1, -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 the 2nd leg of pelister team 2?
CREATE TABLE table_name_90 (team_2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_90 WHERE team_2 = "pelister"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2394, 41, 11650, 834, 357, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 204, 727, 4553, 13, 3, 4343, 5805, 372, 204, 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, 204, 6157, 3, 727, 834, 5772, 21680, 953, 834, 4350, 834, 2394, 549, 17444, 427, 372, 834, 357, 3274, 96, 4343, 5805, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the result for Steve Gonzalez?
CREATE TABLE table_22603701_1 ( result VARCHAR, name VARCHAR )
SELECT result FROM table_22603701_1 WHERE name = "Steve Gonzalez"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 18365, 22520, 536, 834, 536, 41, 741, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 741, 21, 5659, 31403, 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, 741, 21680, 953, 834, 357, 18365, 22520, 536, 834, 536, 549, 17444, 427, 564, 3274, 96, 14337, 162, 31403, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the laps for qual of 144.665
CREATE TABLE table_67823 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real )
SELECT SUM("Laps") FROM table_67823 WHERE "Qual" = '144.665'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 4613, 519, 41, 96, 476, 2741, 121, 1499, 6, 96, 7681, 17, 121, 1499, 6, 96, 5991, 138, 121, 1499, 6, 96, 22557, 121, 1499, 6, 96, 371, 77, 1273, 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, 180, 6122, 599, 121, 3612, 102, 7, 8512, 21680, 953, 834, 3708, 4613, 519, 549, 17444, 427, 96, 5991, 138, 121, 3274, 3, 31, 2534, 25652, 4122, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What country was the Pegasus, build by Royal Dockyard, from?
CREATE TABLE table_name_41 ( country VARCHAR, builder VARCHAR, ship VARCHAR )
SELECT country FROM table_name_41 WHERE builder = "royal dockyard" AND ship = "pegasus"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4853, 41, 684, 584, 4280, 28027, 6, 918, 49, 584, 4280, 28027, 6, 4383, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 684, 47, 8, 1276, 5556, 302,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 3, 23143, 14196, 684, 21680, 953, 834, 4350, 834, 4853, 549, 17444, 427, 918, 49, 3274, 96, 8170, 138, 12908, 6636, 121, 3430, 4383, 3274, 96, 855, 5556, 302, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the crime rates of counties in ascending order of number of police officers.
CREATE TABLE county_public_safety (Crime_rate VARCHAR, Police_officers VARCHAR)
SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5435, 834, 15727, 834, 15233, 17, 63, 41, 254, 5397, 15, 834, 2206, 584, 4280, 28027, 6, 5076, 834, 19632, 52, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 3111, 8, 5447, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16923, 834, 2206, 21680, 5435, 834, 15727, 834, 15233, 17, 63, 4674, 11300, 272, 476, 5076, 834, 19632, 52, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What round was Joe Sims picked?
CREATE TABLE table_name_24 (round INTEGER, player VARCHAR)
SELECT AVG(round) FROM table_name_24 WHERE player = "joe sims"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2266, 41, 7775, 3, 21342, 17966, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1751, 47, 4967, 6619, 7, 4758, 58, 1, 0, 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, 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, 0...
[ 3, 23143, 14196, 71, 17217, 599, 7775, 61, 21680, 953, 834, 4350, 834, 2266, 549, 17444, 427, 1959, 3274, 96, 1927, 15, 108, 51, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
count the number of american indian/alaska native patients with lab test item id 51250.
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, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND lab.itemid = "51250"
[ 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, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
whats the price for a cpk-mb index?
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text )
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'lab' AND cost.eventid IN (SELECT lab.labid FROM lab WHERE lab.labname = 'cpk-mb index')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3362, 4267, 32, 4370, 41, 3362, 4267, 32, 26, 1294, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 2912, 381, 6, 3, 7, 9, 32, 357, 381, 6, 842, 2206, 381, 6, 14114, 257, 381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 583, 5, 11290, 21680, 583, 549, 17444, 427, 583, 5, 15, 2169, 6137, 3274, 3, 31, 9339, 31, 3430, 583, 5, 15, 2169, 23, 26, 3388, 41, 23143, 14196, 7690, 5, 521, 9824, 21680, 7690, 549, 17444...
Which handicap has the horse knowhere?
CREATE TABLE table_19624708_1 (handicap__st_lb_ VARCHAR, horse VARCHAR)
SELECT handicap__st_lb_ FROM table_19624708_1 WHERE horse = "Knowhere"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 4056, 4177, 4018, 834, 536, 41, 2894, 23, 4010, 834, 834, 7, 17, 834, 40, 115, 834, 584, 4280, 28027, 6, 4952, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14214, 834, 834, 7, 17, 834, 40, 115, 834, 21680, 953, 834, 2294, 4056, 4177, 4018, 834, 536, 549, 17444, 427, 4952, 3274, 96, 439, 29, 32, 8352, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
find the gender of subject id 6983.
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 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 ) 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 text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT demographic.gender FROM demographic WHERE demographic.subject_id = "6983"
[ 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, 14798, 5, 122, 3868, 21680, 14798, 549, 17444, 427, 14798, 5, 7304, 11827, 834, 23, 26, 3274, 96, 3951, 4591, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What format was the release in form the Edsel label, and that was from the EDCD 262 catalog?
CREATE TABLE table_name_62 ( format VARCHAR, label VARCHAR, catalog VARCHAR )
SELECT format FROM table_name_62 WHERE label = "edsel" AND catalog = "edcd 262"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4056, 41, 1910, 584, 4280, 28027, 6, 3783, 584, 4280, 28027, 6, 10173, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 1910, 47, 8, 1576, 16, 607, 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, 1910, 21680, 953, 834, 4350, 834, 4056, 549, 17444, 427, 3783, 3274, 96, 15, 26, 7, 15, 40, 121, 3430, 10173, 3274, 96, 15, 26, 75, 26, 2208, 357, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What position has colin scott as game 1?
CREATE TABLE table_name_62 (position VARCHAR, game_1 VARCHAR)
SELECT position FROM table_name_62 WHERE game_1 = "colin scott"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4056, 41, 4718, 584, 4280, 28027, 6, 467, 834, 536, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1102, 65, 7632, 77, 3, 7, 10405, 38, 467, 209, 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...
[ 3, 23143, 14196, 1102, 21680, 953, 834, 4350, 834, 4056, 549, 17444, 427, 467, 834, 536, 3274, 96, 9044, 29, 3, 7, 10405, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When karl ridderbusch is the la roche who is the olivier?
CREATE TABLE table_29728787_1 (olivier VARCHAR, la_roche VARCHAR)
SELECT olivier FROM table_29728787_1 WHERE la_roche = "Karl Ridderbusch"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 5865, 4225, 4225, 834, 536, 41, 4172, 5144, 584, 4280, 28027, 6, 50, 834, 11492, 15, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 366, 3, 4031, 40, 5413, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 4172, 5144, 21680, 953, 834, 3166, 5865, 4225, 4225, 834, 536, 549, 17444, 427, 50, 834, 11492, 15, 3274, 96, 439, 291, 40, 2403, 26, 588, 115, 14220, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the year that the Gary team with mascot of the Tornado joined?
CREATE TABLE table_name_94 (year_joined INTEGER, city VARCHAR, mascot VARCHAR)
SELECT MIN(year_joined) FROM table_name_94 WHERE city = "gary" AND mascot = "tornado"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4240, 41, 1201, 834, 1927, 630, 26, 3, 21342, 17966, 6, 690, 584, 4280, 28027, 6, 3, 2754, 4310, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 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, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 1201, 834, 1927, 630, 26, 61, 21680, 953, 834, 4350, 834, 4240, 549, 17444, 427, 690, 3274, 96, 1478, 63, 121, 3430, 3, 2754, 4310, 3274, 96, 17, 127, 25065, 121, 1, -100, -100, -100, -100, -100, -1...
what day was the game in argentina
CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_92 WHERE opponent = "argentina"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4508, 41, 5522, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 239, 47, 8, 467, 16, 3, 9917, 77, 9, 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, 833, 21680, 953, 834, 4350, 834, 4508, 549, 17444, 427, 15264, 3274, 96, 9917, 77, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is Lowest Rank, when Location is Rio De Janeiro, Brazil, and when Current Seating Capacity is less than 78,838?
CREATE TABLE table_name_42 (rank INTEGER, location VARCHAR, current_seating_capacity VARCHAR)
SELECT MIN(rank) FROM table_name_42 WHERE location = "rio de janeiro, brazil" AND current_seating_capacity < 78 OFFSET 838
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4165, 41, 6254, 3, 21342, 17966, 6, 1128, 584, 4280, 28027, 6, 750, 834, 7, 15, 1014, 834, 4010, 9, 6726, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6254, 61, 21680, 953, 834, 4350, 834, 4165, 549, 17444, 427, 1128, 3274, 96, 52, 23, 32, 20, 3, 7066, 21810, 6, 3858, 702, 40, 121, 3430, 750, 834, 7, 15, 1014, 834, 4010, 9, 6726, 3, 2, 3, 3940...
How many goals/matches have 153 as the goals with matches greater than 352?
CREATE TABLE table_name_27 (matches VARCHAR, goals INTEGER)
SELECT SUM(goals) / matches FROM table_name_27 WHERE goals = 153 AND matches > 352
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2555, 41, 19515, 15, 7, 584, 4280, 28027, 6, 1766, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1766, 87, 19515, 15, 7, 43, 3, 27025, 38, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 839, 5405, 61, 3, 87, 6407, 21680, 953, 834, 4350, 834, 2555, 549, 17444, 427, 1766, 3274, 3, 27025, 3430, 6407, 2490, 3097, 357, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many Extra Points were scored by the Player who had 5 Points and less than 1 Touchdowns?
CREATE TABLE table_5361 ( "Player" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real )
SELECT MIN("Extra points") FROM table_5361 WHERE "Points" = '5' AND "Touchdowns" < '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4867, 4241, 41, 96, 15800, 49, 121, 1499, 6, 96, 3696, 2295, 3035, 7, 121, 490, 6, 96, 5420, 1313, 979, 121, 490, 6, 96, 3183, 8804, 1766, 121, 490, 6, 96, 22512, 7, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5420, 1313, 979, 8512, 21680, 953, 834, 4867, 4241, 549, 17444, 427, 96, 22512, 7, 121, 3274, 3, 31, 755, 31, 3430, 96, 3696, 2295, 3035, 7, 121, 3, 2, 3, 31, 536, 31, 1, -100, -100, -100, ...
What title was published on November 2001 and has a 1st Doctor?
CREATE TABLE table_name_99 ( title VARCHAR, doctor VARCHAR, published VARCHAR )
SELECT title FROM table_name_99 WHERE doctor = "1st" AND published = "november 2001"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3264, 41, 2233, 584, 4280, 28027, 6, 2472, 584, 4280, 28027, 6, 1790, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 2233, 47, 1790, 30, 1671, 4402, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2233, 21680, 953, 834, 4350, 834, 3264, 549, 17444, 427, 2472, 3274, 96, 536, 7, 17, 121, 3430, 1790, 3274, 96, 5326, 18247, 4402, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
For each submission, show the author and their affiliated college.
CREATE TABLE submission ( submission_id number, scores number, author text, college text ) CREATE TABLE workshop ( workshop_id number, date text, venue text, name text ) CREATE TABLE acceptance ( submission_id number, workshop_id number, result text )
SELECT author, college FROM submission
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8121, 41, 8121, 834, 23, 26, 381, 6, 7586, 381, 6, 2291, 1499, 6, 1900, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 4786, 41, 4786, 834, 23, 26, 381, 6, 833, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2291, 6, 1900, 21680, 8121, 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, -100, -1...
who scored the most points ?
CREATE TABLE table_203_22 ( id number, "draw" number, "artist" text, "song" text, "points" number, "place" text )
SELECT "artist" FROM table_203_22 ORDER BY "points" DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 2884, 41, 3, 23, 26, 381, 6, 96, 19489, 121, 381, 6, 96, 1408, 343, 121, 1499, 6, 96, 7, 2444, 121, 1499, 6, 96, 2700, 7, 121, 381, 6, 96, 4687, 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, 0, 0, 0...
[ 3, 23143, 14196, 96, 1408, 343, 121, 21680, 953, 834, 23330, 834, 2884, 4674, 11300, 272, 476, 96, 2700, 7, 121, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Return the apartment number and the number of rooms for each apartment, and I want to sort in asc by the y axis please.
CREATE TABLE View_Unit_Status ( apt_id INTEGER, apt_booking_id INTEGER, status_date DATETIME, available_yn BIT ) CREATE TABLE Apartments ( apt_id INTEGER, building_id INTEGER, apt_type_code CHAR(15), apt_number CHAR(10), bathroom_count INTEGER, bedroom_count INTEGER, room_count CHAR(5) ) CREATE TABLE Apartment_Bookings ( apt_booking_id INTEGER, apt_id INTEGER, guest_id INTEGER, booking_status_code CHAR(15), booking_start_date DATETIME, booking_end_date DATETIME ) CREATE TABLE Guests ( guest_id INTEGER, gender_code CHAR(1), guest_first_name VARCHAR(80), guest_last_name VARCHAR(80), date_of_birth DATETIME ) CREATE TABLE Apartment_Facilities ( apt_id INTEGER, facility_code CHAR(15) ) CREATE TABLE Apartment_Buildings ( building_id INTEGER, building_short_name CHAR(15), building_full_name VARCHAR(80), building_description VARCHAR(255), building_address VARCHAR(255), building_manager VARCHAR(50), building_phone VARCHAR(80) )
SELECT apt_number, room_count FROM Apartments ORDER BY room_count
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4197, 834, 5110, 155, 834, 134, 17, 144, 302, 41, 3, 6789, 834, 23, 26, 3, 21342, 17966, 6, 3, 6789, 834, 2567, 53, 834, 23, 26, 3, 21342, 17966, 6, 2637, 834, 5522, 309, 6048, 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, 3, 6789, 834, 5525, 1152, 6, 562, 834, 13362, 21680, 15970, 7, 4674, 11300, 272, 476, 562, 834, 13362, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return me the paper after 2000 in VLDB conference with more than 200 citations .
CREATE TABLE domain_publication ( did int, pid int ) CREATE TABLE domain_conference ( cid int, did int ) CREATE TABLE publication_keyword ( kid int, pid int ) CREATE TABLE domain_keyword ( did int, kid int ) CREATE TABLE author ( aid int, homepage varchar, name varchar, oid int ) CREATE TABLE publication ( abstract varchar, cid int, citation_num int, jid int, pid int, reference_num int, title varchar, year int ) CREATE TABLE journal ( homepage varchar, jid int, name varchar ) CREATE TABLE organization ( continent varchar, homepage varchar, name varchar, oid int ) CREATE TABLE keyword ( keyword varchar, kid int ) CREATE TABLE domain ( did int, name varchar ) CREATE TABLE writes ( aid int, pid int ) CREATE TABLE domain_author ( aid int, did int ) CREATE TABLE domain_journal ( did int, jid int ) CREATE TABLE cite ( cited int, citing int ) CREATE TABLE conference ( cid int, homepage varchar, name varchar )
SELECT publication.title FROM conference, publication WHERE conference.name = 'VLDB' AND publication.cid = conference.cid AND publication.citation_num > 200 AND publication.year > 2000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3303, 834, 15727, 257, 41, 410, 16, 17, 6, 3, 12417, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 3303, 834, 28496, 41, 3, 10812, 16, 17, 6, 410, 16, 17, 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, 5707, 5, 21869, 21680, 2542, 6, 5707, 549, 17444, 427, 2542, 5, 4350, 3274, 3, 31, 553, 9815, 279, 31, 3430, 5707, 5, 10812, 3274, 2542, 5, 10812, 3430, 5707, 5, 13903, 834, 5525, 2490, 2382, 3430, 5707, 5, 1201, ...
What is Catalog, when Format is CD, when Region is US, when Date is before 2004, and when Label is Taang! Records?
CREATE TABLE table_42773 ( "Region" text, "Date" real, "Label" text, "Format" text, "Catalog" text )
SELECT "Catalog" FROM table_42773 WHERE "Format" = 'cd' AND "Region" = 'us' AND "Date" < '2004' AND "Label" = 'taang! records'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 2555, 4552, 41, 96, 17748, 23, 106, 121, 1499, 6, 96, 308, 342, 121, 490, 6, 96, 434, 10333, 121, 1499, 6, 96, 3809, 3357, 121, 1499, 6, 96, 18610, 9, 2152, 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, 1...
[ 3, 23143, 14196, 96, 18610, 9, 2152, 121, 21680, 953, 834, 591, 2555, 4552, 549, 17444, 427, 96, 3809, 3357, 121, 3274, 3, 31, 75, 26, 31, 3430, 96, 17748, 23, 106, 121, 3274, 3, 31, 302, 31, 3430, 96, 308, 342, 121, 3, 2, 3, ...
how many dismissals in a game with 191 innings
CREATE TABLE table_2165 ( "Rank" real, "Dismissals" real, "Player" text, "Caught" real, "Stumped" real, "Matches" real, "Innings" real )
SELECT COUNT("Dismissals") FROM table_2165 WHERE "Innings" = '191'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2658, 4122, 41, 96, 22557, 121, 490, 6, 96, 308, 159, 11502, 5405, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 254, 9313, 121, 490, 6, 96, 13076, 18109, 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, 2847, 17161, 599, 121, 308, 159, 11502, 5405, 8512, 21680, 953, 834, 2658, 4122, 549, 17444, 427, 96, 196, 9416, 7, 121, 3274, 3, 31, 2294, 536, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Name the least first elected
CREATE TABLE table_74006 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT MIN("First elected") FROM table_74006
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 5548, 948, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 1570, 75, 5937, 295, 121, 1499, 6, 96, 13725, 63, 121, 1499, 6, 96, 25171, 8160, 121, 490, 6, 96, 20119, 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, 3, 17684, 599, 121, 25171, 8160, 8512, 21680, 953, 834, 940, 5548, 948, 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, ...
what is the points for rank 12?
CREATE TABLE table_54548 ( "Rank" real, "Name" text, "Nation" text, "Points" real, "Places" real )
SELECT SUM("Points") FROM table_54548 WHERE "Rank" = '12'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 2128, 3707, 41, 96, 22557, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 567, 257, 121, 1499, 6, 96, 22512, 7, 121, 490, 6, 96, 345, 11706, 7, 121, 490, 3, 61, 3, 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, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 121, 22512, 7, 8512, 21680, 953, 834, 755, 2128, 3707, 549, 17444, 427, 96, 22557, 121, 3274, 3, 31, 2122, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the name of the person who has friends with age above 40 but not under age 30?
CREATE TABLE Person ( name VARCHAR, age INTEGER ) CREATE TABLE PersonFriend ( name VARCHAR, friend VARCHAR )
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 564, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 564, 584, 4280, 28027, 6, 1565, 584, 4280, 28027...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 549, 17444, 427, 332, 4416, 15504, 3388, 41, 23143, 14196, 564, 21680, 5780, 549, ...