NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the total ATMs with off-site ATMs greater than 3672, and less than 1685 as the number of branches? | CREATE TABLE table_name_32 (
total_atms VARCHAR,
off_site_atms VARCHAR,
number_of_branches VARCHAR
) | SELECT COUNT(total_atms) FROM table_name_32 WHERE off_site_atms > 3672 AND number_of_branches < 1685 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
792,
834,
144,
51,
7,
584,
4280,
28027,
6,
326,
834,
3585,
834,
144,
51,
7,
584,
4280,
28027,
6,
381,
834,
858,
834,
21016,
7,
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,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
834,
144,
51,
7,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
326,
834,
3585,
834,
144,
51,
7,
2490,
4475,
5865,
3430,
381,
834,
858,
834,
21016,
7,
3,
2,
898,
4433,
1,
-10... |
what team scored 17 | CREATE TABLE table_5590 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Date" FROM table_5590 WHERE "Game" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
2394,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3769,
2394,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the class when the identifier is cbf-fm-14? | CREATE TABLE table_63183 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
) | SELECT "Class" FROM table_63183 WHERE "Identifier" = 'cbf-fm-14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
24361,
41,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
21153,
7903,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
23553,
121,
1499,
6,
96,
21486,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21486,
121,
21680,
953,
834,
3891,
24361,
549,
17444,
427,
96,
21153,
7903,
121,
3274,
3,
31,
75,
115,
89,
18,
89,
51,
11590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
clinical dementia rating ( cdr ) sum of box ( sob ) score >= 0.5 | CREATE TABLE table_train_93 (
"id" int,
"mini_mental_state_examination_mmse" int,
"creatinine_clearance_cl" float,
"cornell_scale_for_depression_in_dementia_csdd" int,
"clinical_dementia_rating_cdr" float,
"NOUSE" float
) | SELECT * FROM table_train_93 WHERE clinical_dementia_rating_cdr >= 0.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4271,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
121,
16,
17,
6,
96,
5045,
144,
77,
630,
834,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
4271,
549,
17444,
427,
3739,
834,
26,
1194,
23,
9,
834,
52,
1014,
834,
75,
26,
52,
2490,
2423,
3,
12100,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many positions do the players of Chicago Black Hawks play in? | CREATE TABLE table_1213511_2 (
position VARCHAR,
nhl_team VARCHAR
) | SELECT COUNT(position) FROM table_1213511_2 WHERE nhl_team = "Chicago Black Hawks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22011,
2469,
2596,
834,
357,
41,
1102,
584,
4280,
28027,
6,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4655,
103,
8,
1508... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
22011,
2469,
2596,
834,
357,
549,
17444,
427,
3,
29,
107,
40,
834,
11650,
3274,
96,
3541,
2617,
839,
1589,
12833,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is drug code of drug name oxazepam? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Oxazepam" | [
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,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
667,
226,
9,
776,
102,
265,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the result for the 2007 WCC when Sun Yue was the alternate? | CREATE TABLE table_name_33 (result VARCHAR, alternate VARCHAR, event VARCHAR) | SELECT result FROM table_name_33 WHERE alternate = "sun yue" AND event = "2007 wcc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
13902,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
21,
8,
410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
13902,
3274,
96,
7,
202,
3,
63,
76,
15,
121,
3430,
605,
3274,
96,
20615,
3,
210,
75,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the highest events when the cuts made is less than 34, the top-25 is less than 5 and the top-10 is more than 1? | CREATE TABLE table_name_72 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR, top_25 VARCHAR) | SELECT MAX(events) FROM table_name_72 WHERE cuts_made < 34 AND top_25 < 5 AND top_10 > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
15,
2169,
7,
3,
21342,
17966,
6,
420,
834,
1714,
584,
4280,
28027,
6,
8620,
834,
4725,
584,
4280,
28027,
6,
420,
834,
1828,
584,
4280,
28027,
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,
4800,
4,
599,
15,
2169,
7,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
8620,
834,
4725,
3,
2,
6154,
3430,
420,
834,
1828,
3,
2,
305,
3430,
420,
834,
1714,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What was the date of the game in week 3? | CREATE TABLE table_24602 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
) | SELECT "Date" FROM table_24602 WHERE "Week" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3328,
357,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
371,
10270,
1776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
342,
121,
21680,
953,
834,
2266,
3328,
357,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the ids of the problems that are reported by the staff whose last name is Bosco. | CREATE TABLE problems (
problem_id VARCHAR,
reported_by_staff_id VARCHAR
)
CREATE TABLE staff (
staff_id VARCHAR,
staff_last_name VARCHAR
) | SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
982,
41,
682,
834,
23,
26,
584,
4280,
28027,
6,
2196,
834,
969,
834,
26416,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
41,
871,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19307,
834,
23,
26,
21680,
982,
6157,
332,
536,
3,
15355,
3162,
871,
6157,
332,
357,
9191,
332,
5411,
60,
16262,
834,
969,
834,
26416,
834,
23,
26,
3274,
332,
4416,
26416,
834,
23,
26,
549,
17444,
427,
... |
Name the Series with a Title of elmer's pet rabbit? | CREATE TABLE table_name_96 (series VARCHAR, title VARCHAR) | SELECT series FROM table_name_96 WHERE title = "elmer's pet rabbit" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
10833,
7,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4531,
28,
3,
9,
11029,
13,
3,
15,
40,
935,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2233,
3274,
96,
15,
40,
935,
31,
7,
3947,
18383,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country has a total less than 289 and finished t2? | CREATE TABLE table_name_22 (
country VARCHAR,
total VARCHAR,
finish VARCHAR
) | SELECT country FROM table_name_22 WHERE total < 289 AND finish = "t2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
684,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
65,
3,
9,
792,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
792,
3,
2,
204,
3914,
3430,
1992,
3274,
96,
17,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which county had a Bush number of votes of 566? | CREATE TABLE table_50585 (
"County" text,
"Kerry%" text,
"Kerry#" real,
"Bush%" text,
"Bush#" real,
"Others%" text,
"Others#" real
) | SELECT "County" FROM table_50585 WHERE "Bush#" = '566' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3449,
755,
41,
96,
10628,
63,
121,
1499,
6,
96,
439,
49,
651,
1454,
121,
1499,
6,
96,
439,
49,
651,
4663,
121,
490,
6,
96,
279,
8489,
1454,
121,
1499,
6,
96,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
63,
121,
21680,
953,
834,
1752,
3449,
755,
549,
17444,
427,
96,
279,
8489,
4663,
121,
3274,
3,
31,
755,
3539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many office admitted patients have a primary disease rash? | CREATE TABLE procedures (
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 WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.diagnosis = "RASH" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
8023,
476,
134,
4083,
20805,
21415,
87,
24833,
329,
4090,
309,
... |
What is Distance, when Pilot is 'Stanislaw Wujczak'? | CREATE TABLE table_46984 (
"Position" real,
"Pilot" text,
"Glider" text,
"Speed" text,
"Distance" text
) | SELECT "Distance" FROM table_46984 WHERE "Pilot" = 'stanislaw wujczak' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3916,
591,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
345,
23,
3171,
121,
1499,
6,
96,
517,
8130,
49,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
308,
23,
8389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
23,
8389,
121,
21680,
953,
834,
4448,
3916,
591,
549,
17444,
427,
96,
345,
23,
3171,
121,
3274,
3,
31,
5627,
159,
4207,
3,
210,
76,
354,
75,
1629,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
who was the jockey of the only horse with a starting price of below 20/1 ? | CREATE TABLE table_204_561 (
id number,
"fence" number,
"name" text,
"jockey" text,
"age" number,
"handicap (st-lb)" text,
"starting price" text,
"fate" text
) | SELECT "jockey" FROM table_204_561 WHERE "starting price" < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4834,
536,
41,
3,
23,
26,
381,
6,
96,
89,
1433,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
1927,
75,
4397,
121,
1499,
6,
96,
545,
121,
381,
6,
96,
2894,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1927,
75,
4397,
121,
21680,
953,
834,
26363,
834,
4834,
536,
549,
17444,
427,
96,
10208,
53,
594,
121,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest pick # that has a 228 overall and a round less than 7? | CREATE TABLE table_38684 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Pick #") FROM table_38684 WHERE "Overall" = '228' AND "Round" < '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
3651,
591,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
3747,
3651,
591,
549,
17444,
427,
96,
23847,
1748,
121,
3274,
3,
31,
357,
2577,
31,
3430,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
940,
31,
1,
-100,
-100,
... |
What is the nationality for the guard position from Bowling Green? | CREATE TABLE table_name_47 (
nationality VARCHAR,
position VARCHAR,
school_club_team VARCHAR
) | SELECT nationality FROM table_name_47 WHERE position = "guard" AND school_club_team = "bowling green" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1157,
485,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1102,
3274,
96,
11010,
121,
3430,
496,
834,
13442,
834,
11650,
3274,
96,
17710,
697,
1442,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of the deity that the state of Bihar was named after? | CREATE TABLE table_44784 (
"Name of Deity" text,
"Bhuta(Tatwa)" text,
"Name of the Stone (Sila)" text,
"Name of the River" text,
"Name of the State where found in India" text
) | SELECT "Name of Deity" FROM table_44784 WHERE "Name of the State where found in India" = 'bihar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
3940,
591,
41,
96,
23954,
13,
374,
485,
121,
1499,
6,
96,
279,
13985,
9,
599,
382,
144,
210,
9,
61,
121,
1499,
6,
96,
23954,
13,
8,
5614,
41,
134,
173,
9,
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,
1... | [
3,
23143,
14196,
96,
23954,
13,
374,
485,
121,
21680,
953,
834,
3628,
3940,
591,
549,
17444,
427,
96,
23954,
13,
8,
1015,
213,
435,
16,
1547,
121,
3274,
3,
31,
115,
23,
3272,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name of all customers. | CREATE TABLE customer_addresses (
customer_id number,
address_id number,
date_address_from time,
address_type text,
date_address_to time
)
CREATE TABLE customer_contact_channels (
customer_id number,
channel_code text,
active_from_date time,
active_to_date time,
contact_number t... | SELECT customer_name FROM customers | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
9,
26,
12039,
15,
7,
41,
884,
834,
23,
26,
381,
6,
1115,
834,
23,
26,
381,
6,
833,
834,
9,
26,
12039,
834,
7152,
97,
6,
1115,
834,
6137,
1499,
6,
833,
834,
9,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
884,
834,
4350,
21680,
722,
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 won the gold when Kim Hyang-Mi won the bronze? | CREATE TABLE table_name_97 (gold VARCHAR, bronze VARCHAR) | SELECT gold FROM table_name_97 WHERE bronze = "kim hyang-mi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
14910,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
8,
2045,
116,
6777,
5555,
1468,
18,
329,
23,
751,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2045,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
13467,
3274,
96,
19754,
3,
107,
63,
1468,
18,
51,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what tournament happened on march 27, 2006? | CREATE TABLE table_69926 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Tournament" FROM table_69926 WHERE "Date" = 'march 27, 2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3264,
2688,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
1211,
20205,
17,
121,
21680,
953,
834,
948,
3264,
2688,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
51,
7064,
14141,
3581,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about commission_pct over the job_id . | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
... | SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
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,
446,
10539,
834,
4309,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
42... |
How many high school principals were there in 2000-2001? | CREATE TABLE table_25037577_1 (high_school_principal VARCHAR, year VARCHAR) | SELECT high_school_principal FROM table_25037577_1 WHERE year = "2000-2001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
22954,
4013,
834,
536,
41,
6739,
834,
6646,
834,
12298,
3389,
138,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
306,
496,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6646,
834,
12298,
3389,
138,
21680,
953,
834,
11434,
22954,
4013,
834,
536,
549,
17444,
427,
215,
3274,
96,
13527,
18,
23658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the comments when the vendor and type is alcatel-lucent routers? | CREATE TABLE table_1206114_2 (
comments VARCHAR,
vendor_and_type VARCHAR
) | SELECT comments FROM table_1206114_2 WHERE vendor_and_type = "Alcatel-Lucent routers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
4241,
2534,
834,
357,
41,
2622,
584,
4280,
28027,
6,
11407,
834,
232,
834,
6137,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
2622,
116,
8,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2622,
21680,
953,
834,
15518,
4241,
2534,
834,
357,
549,
17444,
427,
11407,
834,
232,
834,
6137,
3274,
96,
188,
40,
8367,
40,
18,
11748,
295,
13696,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What rank has a gross of $35,976,000? | CREATE TABLE table_77313 (
"Rank" real,
"Title" text,
"Studio" text,
"Director(s)" text,
"Gross" text
) | SELECT "Rank" FROM table_77313 WHERE "Gross" = '$35,976,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
519,
2368,
41,
96,
22557,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
13076,
26,
23,
32,
121,
1499,
6,
96,
23620,
127,
599,
7,
61,
121,
1499,
6,
96,
517,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
121,
21680,
953,
834,
4013,
519,
2368,
549,
17444,
427,
96,
517,
1859,
7,
121,
3274,
3,
31,
3229,
2469,
6,
4327,
14835,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What year had the largest number of laps over 196? | CREATE TABLE table_name_52 (year VARCHAR, laps INTEGER) | SELECT year FROM table_name_52 WHERE laps > 196 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
1201,
584,
4280,
28027,
6,
14941,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
141,
8,
2015,
381,
13,
14941,
7,
147,
3,
26937,
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,
215,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
14941,
7,
2490,
3,
26937,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Team has Podiums of 0, and a Position of nc†? | CREATE TABLE table_name_94 (team VARCHAR, podiums VARCHAR, position VARCHAR) | SELECT team FROM table_name_94 WHERE podiums = "0" AND position = "nc†" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
11650,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2271,
65,
1908,
12925,
7,
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,
372,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
22828,
7,
3274,
96,
632,
121,
3430,
1102,
3274,
96,
29,
75,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the crime rate of counties with a city having white percentage more than 90. | CREATE TABLE city (
city_id number,
county_id number,
name text,
white number,
black number,
amerindian number,
asian number,
multiracial number,
hispanic number
)
CREATE TABLE county_public_safety (
county_id number,
name text,
population number,
police_officers num... | SELECT T2.crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.county_id = T2.county_id WHERE T1.white > 90 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
690,
834,
23,
26,
381,
6,
5435,
834,
23,
26,
381,
6,
564,
1499,
6,
872,
381,
6,
1001,
381,
6,
183,
6655,
8603,
381,
6,
3,
9,
10488,
381,
6,
1249,
52,
9,
4703,
381,
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,
332,
4416,
2685,
526,
834,
2206,
21680,
690,
6157,
332,
536,
3,
15355,
3162,
5435,
834,
15727,
834,
15233,
17,
63,
6157,
332,
357,
9191,
332,
5411,
13362,
63,
834,
23,
26,
3274,
332,
4416,
13362,
63,
834,
23,
26,
... |
With the distribution mechanism of Microsoft website and the security issues of 98-004, what is the version? | CREATE TABLE table_2263152_1 (version VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR) | SELECT version FROM table_2263152_1 WHERE security_issues = "98-004" AND distribution_mechanism = "Microsoft website" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3891,
26320,
834,
536,
41,
8674,
584,
4280,
28027,
6,
1034,
834,
13159,
7,
584,
4280,
28027,
6,
3438,
834,
526,
3441,
14378,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
988,
21680,
953,
834,
2884,
3891,
26320,
834,
536,
549,
17444,
427,
1034,
834,
13159,
7,
3274,
96,
3916,
18,
1206,
20364,
3430,
3438,
834,
526,
3441,
14378,
3274,
96,
329,
23,
2771,
12369,
475,
121,
1,
-100,
-100,
-... |
What was the attendance on September 19, 1971, after week 1? | CREATE TABLE table_61688 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Attendance") FROM table_61688 WHERE "Date" = 'september 19, 1971' AND "Week" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2938,
4060,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
948,
2938,
4060,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
12370,
17961,
31,
3430,
96,
518,
10266,
121,
2490,
3,
31,
536,
... |
What region has a 5 rank? | CREATE TABLE table_name_25 (
region VARCHAR,
rank VARCHAR
) | SELECT region FROM table_name_25 WHERE rank = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
1719,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1719,
65,
3,
9,
305,
11003,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1719,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
11003,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which round had Michael Schumacher in the pole position, David Coulthard with the fastest lap, and McLaren - Mercedes as the winning constructor? | CREATE TABLE table_72170 (
"Round" real,
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) | SELECT COUNT("Round") FROM table_72170 WHERE "Pole Position" = 'Michael Schumacher' AND "Fastest Lap" = 'David Coulthard' AND "Winning Constructor" = 'McLaren - Mercedes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2658,
2518,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
4377,
325,
102,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
940,
2658,
2518,
549,
17444,
427,
96,
8931,
15,
14258,
121,
3274,
3,
31,
329,
362,
9,
15,
40,
6824,
24113,
31,
3430,
96,
371,
9,
7,
4377,
325,
102,
12... |
What is the average frequency in MHz for stations with an ERP W of 170? | CREATE TABLE table_name_54 (
frequency_mhz INTEGER,
erp_w VARCHAR
) | SELECT AVG(frequency_mhz) FROM table_name_54 WHERE erp_w = 170 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
7321,
834,
51,
107,
172,
3,
21342,
17966,
6,
3,
49,
102,
834,
210,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
7321,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
30989,
834,
51,
107,
172,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
3,
49,
102,
834,
210,
3274,
209,
2518,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the highest jersey when points is 0, different holders is less than 3, giro wins is less than 1 and young rider is more than 1? | CREATE TABLE table_65196 (
"Rank" text,
"Country" text,
"Jerseys" real,
"Giro wins" real,
"Points" real,
"Young rider" real,
"Most recent cyclist" text,
"Most recent date" text,
"Different holders" real
) | SELECT MAX("Jerseys") FROM table_65196 WHERE "Points" = '0' AND "Different holders" < '3' AND "Giro wins" < '1' AND "Young rider" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
26937,
41,
96,
22557,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
683,
277,
15,
63,
7,
121,
490,
6,
96,
30428,
9204,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
683,
277,
15,
63,
7,
8512,
21680,
953,
834,
4122,
26937,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
308,
99,
1010,
295,
14733,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
... |
What was the build date of the railway(s) with 0-6-2 t wheels? | CREATE TABLE table_54265 (
"Railway" text,
"Loco name" text,
"Build date" real,
"Wheels" text,
"Disposal" text
) | SELECT "Build date" FROM table_54265 WHERE "Wheels" = '0-6-2 t' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
357,
4122,
41,
96,
448,
9,
173,
1343,
121,
1499,
6,
96,
434,
32,
509,
564,
121,
1499,
6,
96,
24752,
833,
121,
490,
6,
96,
518,
88,
3573,
121,
1499,
6,
96,
23664,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24752,
833,
121,
21680,
953,
834,
5062,
357,
4122,
549,
17444,
427,
96,
518,
88,
3573,
121,
3274,
3,
31,
9498,
25369,
3,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a bar chart about the distribution of meter_600 and meter_100 , and rank by the bars in ascending. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
... | SELECT meter_600, meter_100 FROM swimmer ORDER BY meter_600 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
6007,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
6007,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How may population figures are given for Settimo Torinese | CREATE TABLE table_1449176_1 (
population VARCHAR,
common_of VARCHAR
) | SELECT COUNT(population) FROM table_1449176_1 WHERE common_of = "Settimo Torinese" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3647,
26782,
834,
536,
41,
2074,
584,
4280,
28027,
6,
1017,
834,
858,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
164,
2074,
5638,
33,
787,
21,
2821,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9791,
7830,
61,
21680,
953,
834,
2534,
3647,
26782,
834,
536,
549,
17444,
427,
1017,
834,
858,
3274,
96,
17175,
2998,
32,
3794,
4477,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many values for INT's occur with more than 0 yards, over 6 sacks, and average above 17.5? | CREATE TABLE table_37003 (
"Player" text,
"Sacks" real,
"INT'S" real,
"Yards" real,
"Average" real,
"Long" text
) | SELECT COUNT("INT'S") FROM table_37003 WHERE "Yards" > '0' AND "Sacks" > '6' AND "Average" > '17.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22520,
4928,
41,
96,
15800,
49,
121,
1499,
6,
96,
134,
4365,
7,
121,
490,
6,
96,
13777,
31,
134,
121,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
188,
624,
545,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13777,
31,
134,
8512,
21680,
953,
834,
22520,
4928,
549,
17444,
427,
96,
476,
986,
7,
121,
2490,
3,
31,
632,
31,
3430,
96,
134,
4365,
7,
121,
2490,
3,
31,
948,
31,
3430,
96,
188,
624,
545,... |
On what Date was The Open Championship in Japan? | CREATE TABLE table_name_99 (
date VARCHAR,
major VARCHAR,
country VARCHAR
) | SELECT date FROM table_name_99 WHERE major = "the open championship" AND country = "japan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
833,
584,
4280,
28027,
6,
779,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
7678,
47,
37,
2384,
7666,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
779,
3274,
96,
532,
539,
10183,
121,
3430,
684,
3274,
96,
1191,
2837,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who are the mens doubles and and mens singles is lee hyun-il? | CREATE TABLE table_18803 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT "Mens doubles" FROM table_18803 WHERE "Mens singles" = 'Lee Hyun-il' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
4928,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
7,
1486,
7,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
35,
7,
1486,
7,
121,
21680,
953,
834,
25794,
4928,
549,
17444,
427,
96,
329,
35,
7,
712,
7,
121,
3274,
3,
31,
2796,
15,
5555,
202,
18,
173,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the 20 Questions section aimed at when Centerfold Model was Rachel Je n Marteen? | CREATE TABLE table_41520 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text
) | SELECT "20 Questions" FROM table_41520 WHERE "Centerfold model" = 'rachel jeán marteen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
25356,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
14218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1755,
14218,
121,
21680,
953,
834,
4853,
25356,
549,
17444,
427,
96,
24382,
10533,
825,
121,
3274,
3,
31,
52,
9,
8738,
528,
12916,
3157,
6808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the time/retired when the driver is toulo de graffenried? | CREATE TABLE table_name_51 (time_retired VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_51 WHERE driver = "toulo de graffenried" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
715,
834,
10682,
1271,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
97,
87,
10682,
1271,
116,
8,
2535,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
2535,
3274,
96,
235,
83,
32,
20,
3,
3484,
13602,
9889,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the name of the tournament that the final was played against Yi Jingqian? | CREATE TABLE table_40400 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Tournament" FROM table_40400 WHERE "Opponent in the final" = 'yi jingqian' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
5548,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
16,
8,
804,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
2445,
5548,
549,
17444,
427,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
63,
23,
3,
354,
53,
1824,
23,
152,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many hours has time elapsed since patient 013-11660's hospital admission? | 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
)
CRE... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '013-11660' AND patient.hospitaldischargetime IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
997,
1429,
41,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
3,
5211,
12224,
6431,
834,
382,
15382,
9960,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
31386,
20466,
17,
715,
61,
61,
216... |
What is the rank of the new zealand team that had fb listed under notes? | CREATE TABLE table_66486 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Rank" FROM table_66486 WHERE "Notes" = 'fb' AND "Country" = 'new zealand' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
591,
3840,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
3539,
591,
3840,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
89,
115,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
5534,
3,
776,
138,
232,
31,
1,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the founder , and group by attribute founder by a bar chart, and show x axis in desc order. | 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 T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder DESC | [
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,
332,
4416,
19145,
6,
332,
5411,
22737,
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,
350,
4630,
6880,
272,
476,
332,
4416,
1... |
What rank has 1 silver, more than 2 gold, and a total larger than 3? | CREATE TABLE table_name_61 (rank VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR) | SELECT COUNT(rank) FROM table_name_61 WHERE silver = 1 AND total > 3 AND gold > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
6254,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
11003,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
4294,
3274,
209,
3430,
792,
2490,
220,
3430,
2045,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
who received gold when silver is wolfgang eibeck austria (aut)? | CREATE TABLE table_79468 (
"Event" text,
"Class" text,
"Gold" text,
"Silver" text,
"Bronze" text
) | SELECT "Gold" FROM table_79468 WHERE "Silver" = 'wolfgang eibeck austria (aut)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
591,
3651,
41,
96,
427,
2169,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
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,
1... | [
3,
23143,
14196,
96,
23576,
121,
21680,
953,
834,
4440,
591,
3651,
549,
17444,
427,
96,
134,
173,
624,
121,
3274,
3,
31,
19747,
3810,
3,
15,
23,
12993,
185,
23387,
41,
402,
17,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart for what is the average account balance of customers with credit score below 50 for the different account types?, and show by the y-axis in ascending. | CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
)
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state ... | SELECT acc_type, AVG(acc_bal) FROM customer WHERE credit_score < 50 GROUP BY acc_type ORDER BY AVG(acc_bal) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
41,
123,
7,
17,
834,
4309,
3,
4331,
4059,
17867,
6,
123,
7,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
3,
6004,
834,
6137,
3,
4059,
14296,
6,
3,
6004,
834,
3849,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
6004,
834,
6137,
6,
71,
17217,
599,
6004,
834,
3849,
61,
21680,
884,
549,
17444,
427,
998,
834,
7,
9022,
3,
2,
943,
350,
4630,
6880,
272,
476,
3,
6004,
834,
6137,
4674,
11300,
272,
476,
71,
17217,
599,
6004,
... |
who came in next after chris jespersen of norway ? | CREATE TABLE table_204_81 (
id number,
"rank" number,
"bib" number,
"name" text,
"country" text,
"time" text,
"deficit" text
) | SELECT "name" FROM table_204_81 WHERE "rank" = (SELECT "rank" FROM table_204_81 WHERE "name" = 'chris jespersen') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4959,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
22456,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
121,
21680,
953,
834,
26363,
834,
4959,
549,
17444,
427,
96,
6254,
121,
3274,
41,
23143,
14196,
96,
6254,
121,
21680,
953,
834,
26363,
834,
4959,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
524,
52,
159,
... |
What is the average quantity for coaches manufactured in 1921/23, and had 40 seats? | CREATE TABLE table_name_87 (
quantity INTEGER,
year_s__of_manufacture VARCHAR,
seats VARCHAR
) | SELECT AVG(quantity) FROM table_name_87 WHERE year_s__of_manufacture = "1921/23" AND seats = "40" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
8708,
3,
21342,
17966,
6,
215,
834,
7,
834,
834,
858,
834,
348,
76,
8717,
1462,
584,
4280,
28027,
6,
6116,
584,
4280,
28027,
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,
71,
17217,
599,
13158,
485,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
215,
834,
7,
834,
834,
858,
834,
348,
76,
8717,
1462,
3274,
96,
19978,
17637,
519,
121,
3430,
6116,
3274,
96,
2445,
121,
1,
-100,
... |
What was the playoff result for the team name of bay area seals | CREATE TABLE table_979 (
"Year" real,
"Team Name" text,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT "Playoffs" FROM table_979 WHERE "Team Name" = 'Bay Area Seals' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4327,
1298,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
5570,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
4885,
7960,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
1647,
7,
121,
21680,
953,
834,
4327,
1298,
549,
17444,
427,
96,
18699,
5570,
121,
3274,
3,
31,
279,
9,
63,
5690,
21085,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many people got high points in game 35? | CREATE TABLE table_23274514_6 (high_points VARCHAR, game VARCHAR) | SELECT COUNT(high_points) FROM table_23274514_6 WHERE game = 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2555,
2128,
2534,
834,
948,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
530,
306,
979,
16,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6739,
834,
2700,
7,
61,
21680,
953,
834,
2773,
2555,
2128,
2534,
834,
948,
549,
17444,
427,
467,
3274,
3097,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What time was the event k-1 the challenge 1999? | CREATE TABLE table_48502 (
"Result" text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Time" FROM table_48502 WHERE "Event" = 'k-1 the challenge 1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
1752,
357,
41,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
3707,
1752,
357,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
157,
2292,
8,
1921,
5247,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the smallest silver with a Bronze smaller than 6, a Total of 3, and a Rank smaller than 9? | CREATE TABLE table_67366 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Silver") FROM table_67366 WHERE "Bronze" < '6' AND "Total" = '3' AND "Rank" < '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
519,
3539,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
3708,
519,
3539,
549,
17444,
427,
96,
22780,
29,
776,
121,
3,
2,
3,
31,
948,
31,
3430,
96,
3696,
1947,
121,
3274,
3,
31,
519,
31,
3430,
96,
22557,
121,
... |
What is the highest enrollment schools that joined the mac in 1997? | CREATE TABLE table_261906_2 (
enrollment INTEGER,
joined_mac VARCHAR
) | SELECT MAX(enrollment) FROM table_261906_2 WHERE joined_mac = 1997 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2294,
5176,
834,
357,
41,
17938,
3,
21342,
17966,
6,
3311,
834,
11101,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
17938,
2061,
24,
3311,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
35,
4046,
297,
61,
21680,
953,
834,
2688,
2294,
5176,
834,
357,
549,
17444,
427,
3311,
834,
11101,
3274,
6622,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the name of the county where 54.6% voted for Bush? | CREATE TABLE table_17957 (
"County" text,
"Kerry%" text,
"Kerry#" real,
"Bush%" text,
"Bush#" real,
"Others%" text,
"Others#" real
) | SELECT "County" FROM table_17957 WHERE "Bush%" = '54.6%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
3436,
41,
96,
10628,
63,
121,
1499,
6,
96,
439,
49,
651,
1454,
121,
1499,
6,
96,
439,
49,
651,
4663,
121,
490,
6,
96,
279,
8489,
1454,
121,
1499,
6,
96,
279,
848... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
63,
121,
21680,
953,
834,
26593,
3436,
549,
17444,
427,
96,
279,
8489,
1454,
121,
3274,
3,
31,
5062,
5,
6370,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score of the game when the attendance was 1,644? | CREATE TABLE table_name_38 (score VARCHAR, attendance VARCHAR) | SELECT score FROM table_name_38 WHERE attendance = "1,644" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
7,
9022,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
116,
8,
11364,
47,
1914,
4389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3747,
549,
17444,
427,
11364,
3274,
96,
4347,
4389,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List the names of pilots in ascending order of rank. | CREATE TABLE pilot (Pilot_name VARCHAR, Rank VARCHAR) | SELECT Pilot_name FROM pilot ORDER BY Rank | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4487,
41,
345,
23,
3171,
834,
4350,
584,
4280,
28027,
6,
3,
22557,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
3056,
13,
4487,
7,
16,
25200,
53,
455,
13,
11003,
5,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
17777,
834,
4350,
21680,
4487,
4674,
11300,
272,
476,
3,
22557,
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,
-1... |
How many weeks total did the New York Jets face the Pittsburgh Steelers? | CREATE TABLE table_32659 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
) | SELECT COUNT("Week") FROM table_32659 WHERE "Opponent" = 'pittsburgh steelers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2688,
3390,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
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,
2847,
17161,
599,
121,
518,
10266,
8512,
21680,
953,
834,
519,
2688,
3390,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
5230,
17,
7289,
107,
2470,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What cc displacement has an i6 engine in 1936? | CREATE TABLE table_60276 (
"Model" text,
"Year" text,
"Type" text,
"Engine" text,
"Displacement cc" text
) | SELECT "Displacement cc" FROM table_60276 WHERE "Engine" = 'i6' AND "Year" = '1936' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
357,
3959,
41,
96,
24663,
121,
1499,
6,
96,
476,
2741,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
23664,
11706,
297,
3,
75,
75,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23664,
11706,
297,
3,
75,
75,
121,
21680,
953,
834,
3328,
357,
3959,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
23,
948,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3420,
31,
1,
-100,
-100,
-100,
-10... |
Where did Richmond play? | CREATE TABLE table_name_10 (
venue VARCHAR,
away_team VARCHAR
) | SELECT venue FROM table_name_10 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
5669,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
17247,
577,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What municipality has 719 people and is larger than 108.46 km2? | CREATE TABLE table_78023 (
"Code" real,
"Type" text,
"Name" text,
"Area (km 2 )" real,
"Population" real,
"Regional County Municipality" text,
"Region" real
) | SELECT "Regional County Municipality" FROM table_78023 WHERE "Area (km 2 )" > '108.46' AND "Population" = '719' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2079,
2773,
41,
96,
22737,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
490,
6,
96,
27773,
7830,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17748,
6318,
1334,
16492,
485,
121,
21680,
953,
834,
940,
2079,
2773,
549,
17444,
427,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
2490,
3,
31,
16169,
5,
4448,
31,
3430,
96,
27773,
7830,
121,
3274,
3,
31,
940,
... |
How many losses did the club who had 9 bonus points and 11 wins have? | CREATE TABLE table_27293285_2 (lost VARCHAR, bonus_points VARCHAR, won VARCHAR) | SELECT lost FROM table_27293285_2 WHERE bonus_points = "9" AND won = "11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3166,
2668,
4433,
834,
357,
41,
2298,
17,
584,
4280,
28027,
6,
4023,
834,
2700,
7,
584,
4280,
28027,
6,
751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1513,
21680,
953,
834,
2555,
3166,
2668,
4433,
834,
357,
549,
17444,
427,
4023,
834,
2700,
7,
3274,
96,
1298,
121,
3430,
751,
3274,
96,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most district wide for 1639 other programs | CREATE TABLE table_2367847_2 (
district_wide INTEGER,
other_programs_ VARCHAR,
_adjustments VARCHAR
) | SELECT MAX(district_wide) FROM table_2367847_2 WHERE other_programs_ & _adjustments = 1639 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
3940,
4177,
834,
357,
41,
3939,
834,
6728,
3,
21342,
17966,
6,
119,
834,
1409,
5096,
7,
834,
584,
4280,
28027,
6,
3,
834,
9,
26,
4998,
4128,
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,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
26,
23,
20066,
834,
6728,
61,
21680,
953,
834,
357,
3420,
3940,
4177,
834,
357,
549,
17444,
427,
119,
834,
1409,
5096,
7,
834,
3,
184,
3,
834,
9,
26,
4998,
4128,
3274,
898,
3288,
1,
-100,
-100,
-10... |
Which team picked the player from the Toronto Marlboros (OHA) as Pick #32? | CREATE TABLE table_name_81 (nhl_team VARCHAR, college_junior_club_team VARCHAR, pick__number VARCHAR) | SELECT nhl_team FROM table_name_81 WHERE college_junior_club_team = "toronto marlboros (oha)" AND pick__number = "32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
29,
107,
40,
834,
11650,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
29,
107,
40,
834,
11650,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
3274,
96,
235,
4438,
32,
3157,
40,
14901,
7,
41,
32,
1024,
61,
121,
3430,
1432,
834,... |
How many benue houses have been founded? | CREATE TABLE table_name_67 (
founded VARCHAR,
house_name VARCHAR
) | SELECT COUNT(founded) FROM table_name_67 WHERE house_name = "benue" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
5710,
584,
4280,
28027,
6,
629,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
36,
29,
76,
15,
4790,
43,
118,
5710,
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,
2847,
17161,
599,
23329,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
629,
834,
4350,
3274,
96,
115,
35,
76,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Laps have a Time of +23.002, and a Grid smaller than 11? | CREATE TABLE table_name_5 (
laps INTEGER,
time VARCHAR,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_5 WHERE time = "+23.002" AND grid < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
14941,
7,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
325,
102,
7,
43,
3,
9,
2900... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
97,
3274,
96,
1220,
2773,
4200,
357,
121,
3430,
8634,
3,
2,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which song has the most downloads ? | CREATE TABLE table_204_420 (
id number,
"month" text,
"song" text,
"artist" text,
"aggregate points" number,
"total downloads" number,
"year-end chart" number
) | SELECT "song" FROM table_204_420 ORDER BY "total downloads" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
21899,
41,
3,
23,
26,
381,
6,
96,
7393,
121,
1499,
6,
96,
7,
2444,
121,
1499,
6,
96,
1408,
343,
121,
1499,
6,
96,
31761,
15,
979,
121,
381,
6,
96,
235,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7,
2444,
121,
21680,
953,
834,
26363,
834,
21899,
4674,
11300,
272,
476,
96,
235,
1947,
946,
7,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find job_id and the amount of job_id , and group by attribute job_id, and visualize them by a bar chart. | 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 countries (
COUNTRY_ID... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
2847,
17161,
599,
15355,
279,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,... |
What is Opponent, when Year is greater than 2009, and when Score is 7 5, 6 7 (6 8) , 6 1? | CREATE TABLE table_name_64 (
opponent VARCHAR,
year VARCHAR,
score VARCHAR
) | SELECT opponent FROM table_name_64 WHERE year > 2009 AND score = "7–5, 6–7 (6–8) , 6–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
15264,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4495,
9977,
6,
116,
2929,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
215,
2490,
2464,
3430,
2604,
3274,
96,
940,
104,
11116,
431,
104,
940,
11372,
104,
13520,
3,
6,
431,
104,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
whats the total number of immigrants from 1990-2001 ? | CREATE TABLE table_203_117 (
id number,
"region/country" text,
"1882-\n1918" number,
"1919-\n1948" number,
"1948-\n1951" number,
"1952-\n1960" number,
"1961-\n1971" number,
"1972-\n1979" number,
"1980-\n1989" number,
"1990-\n2001" number,
"2002-\n2010" number,
"2011-\n201... | SELECT "1990-\n2001" FROM table_203_117 WHERE "region/country" = 'total' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
20275,
41,
3,
23,
26,
381,
6,
96,
18145,
87,
17529,
121,
1499,
6,
96,
25794,
7412,
2,
29,
2294,
2606,
121,
381,
6,
96,
2294,
2294,
18,
2,
29,
2294,
3707,
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,
96,
19479,
9498,
2,
29,
23658,
121,
21680,
953,
834,
23330,
834,
20275,
549,
17444,
427,
96,
18145,
87,
17529,
121,
3274,
3,
31,
235,
1947,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000? | CREATE TABLE table_26591309_2 (
first_broadcast_uk___bbc_four__ VARCHAR,
official_tns_gallup_ratings VARCHAR
) | SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE official_tns_gallup_ratings = 1575000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3390,
2368,
4198,
834,
357,
41,
166,
834,
115,
8635,
5254,
834,
1598,
834,
834,
834,
115,
115,
75,
834,
12521,
834,
834,
584,
4280,
28027,
6,
2314,
834,
17,
29,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
166,
834,
115,
8635,
5254,
834,
1598,
834,
834,
834,
115,
115,
75,
834,
12521,
834,
834,
21680,
953,
834,
2688,
3390,
2368,
4198,
834,
357,
549,
17444,
427,
2314,
834,
17,
29,
7,
834,
6191,
40,
413,
834,
52,
1014,... |
calculate the number of patients on elective admission who had a lab test for lactate | 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 procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.label = "Lactate" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the set 5 for the game with a set 2 of 21-25 and a set 1 of 41633? | CREATE TABLE table_name_62 (
set_5 VARCHAR,
set_2 VARCHAR,
set_1 VARCHAR
) | SELECT set_5 FROM table_name_62 WHERE set_2 = "21-25" AND set_1 = "41633" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
356,
834,
755,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
6,
356,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
356,
834,
755,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
356,
834,
357,
3274,
96,
2658,
14855,
121,
3430,
356,
834,
536,
3274,
96,
591,
2938,
4201,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What season was the Formula BMW USA in? | CREATE TABLE table_42417 (
"Season" text,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"Podiums" real,
"Points" text,
"Position" text
) | SELECT "Season" FROM table_42417 WHERE "Series" = 'formula bmw usa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2266,
2517,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
591,
2266,
2517,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
2032,
83,
9,
3,
29471,
178,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the least production code for bryan moore & chris peterson | CREATE TABLE table_27988408_1 (
production_code INTEGER,
written_by VARCHAR
) | SELECT MIN(production_code) FROM table_27988408_1 WHERE written_by = "Bryan Moore & Chris Peterson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3916,
4608,
4018,
834,
536,
41,
999,
834,
4978,
3,
21342,
17966,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
999,
1081,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17684,
599,
20762,
834,
4978,
61,
21680,
953,
834,
2555,
3916,
4608,
4018,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
279,
651,
152,
11103,
3,
184,
4409,
2737,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
how many district with candidates being eliot l. engel (d) 85.2% martin richman (r) 14.8% | CREATE TABLE table_18208 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("District") FROM table_18208 WHERE "Candidates" = 'Eliot L. Engel (D) 85.2% Martin Richman (R) 14.8%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
23946,
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,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
308,
23,
20066,
8512,
21680,
953,
834,
2606,
23946,
549,
17444,
427,
96,
14050,
12416,
6203,
121,
3274,
3,
31,
10991,
23,
32,
17,
301,
5,
25936,
41,
308,
61,
11989,
5,
5406,
3394,
10825,
348,
... |
In what district would you find the candidates listed as jim cooper (d) unopposed? | CREATE TABLE table_18249 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_18249 WHERE "Candidates" = 'Jim Cooper (D) Unopposed' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
357,
3647,
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,
96,
308,
23,
20066,
121,
21680,
953,
834,
2606,
357,
3647,
549,
17444,
427,
96,
14050,
12416,
6203,
121,
3274,
3,
31,
683,
603,
10078,
41,
308,
61,
597,
28236,
3843,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Home Team has a Tie no of 13? | CREATE TABLE table_name_61 (home_team VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_61 WHERE tie_no = "13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1210,
2271,
65,
3,
9,
2262,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Finish of the Player with a Total of 273? | CREATE TABLE table_name_20 (finish VARCHAR, total VARCHAR) | SELECT finish FROM table_name_20 WHERE total = 273 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
25535,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17578,
13,
8,
12387,
28,
3,
9,
9273,
13,
204,
4552,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1992,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
792,
3274,
204,
4552,
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 province has the least population ? | CREATE TABLE table_203_3 (
id number,
"province" text,
"capital" text,
"population" number,
"density" text,
"municipalities" text,
"legal districts" number
) | SELECT "province" FROM table_203_3 ORDER BY "population" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
41,
3,
23,
26,
381,
6,
96,
1409,
2494,
565,
121,
1499,
6,
96,
4010,
9538,
121,
1499,
6,
96,
9791,
7830,
121,
381,
6,
96,
537,
7,
485,
121,
1499,
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,
1409,
2494,
565,
121,
21680,
953,
834,
23330,
834,
519,
4674,
11300,
272,
476,
96,
9791,
7830,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which country has the status of transferred, moving to of released, and Solano as the listed name? | CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR, status VARCHAR, moving_to VARCHAR) | SELECT country FROM table_name_85 WHERE status = "transferred" AND moving_to = "released" AND name = "solano" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
17529,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
1735,
834,
235,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
2637,
3274,
96,
7031,
1010,
1271,
121,
3430,
1735,
834,
235,
3274,
96,
21019,
26,
121,
3430,
564,
3274,
96,
4099,
152,
32,
121,
1,
-100,
-100,
-100,
-100,
-100... |
How many golden tickets were given out when the auditions were held in San Francisco, California? | CREATE TABLE table_name_51 (golden_tickets VARCHAR, audition_city VARCHAR) | SELECT COUNT(golden_tickets) FROM table_name_51 WHERE audition_city = "san francisco, california" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
14910,
35,
834,
26639,
7,
584,
4280,
28027,
6,
21042,
834,
6726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7069,
3500,
130,
787,
91,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
2847,
17161,
599,
14910,
35,
834,
26639,
7,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
21042,
834,
6726,
3274,
96,
7,
152,
2515,
11389,
3523,
6,
3,
15534,
1161,
29,
23,
9,
121,
1,
-100,
-100,
-100,
-10... |
Which Longi- tude is on jun 6? | CREATE TABLE table_75541 (
"Longi- tude" text,
"Usual translation" text,
"Chinese name \u00b9" text,
"Japanese name" text,
"Korean name \u00b2" text,
"Vietnamese name" text,
"Date \u00b3" text
) | SELECT "Longi- tude" FROM table_75541 WHERE "Date \u00b3" = 'jun 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
5062,
536,
41,
96,
434,
2444,
23,
18,
3,
19835,
121,
1499,
6,
96,
1265,
7,
3471,
7314,
121,
1499,
6,
96,
3541,
4477,
15,
564,
3,
2,
76,
1206,
115,
1298,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
2444,
23,
18,
3,
19835,
121,
21680,
953,
834,
3072,
5062,
536,
549,
17444,
427,
96,
308,
342,
3,
2,
76,
1206,
115,
519,
121,
3274,
3,
31,
6959,
431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Draw a bar chart of type versus the total number, could you order in descending by the the total number ? | CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest text,
Height_feet int,
Floors int
)
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Pri... | SELECT Type, COUNT(*) FROM Institution GROUP BY Type ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
740,
41,
740,
834,
23,
26,
1499,
6,
5570,
1499,
6,
1887,
834,
9,
26,
12039,
1499,
6,
13825,
834,
9,
7,
834,
17,
1748,
222,
1499,
6,
24231,
834,
89,
15,
15,
17,
16,
17,
6,
12324... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6632,
6,
2847,
17161,
599,
1935,
61,
21680,
14932,
350,
4630,
6880,
272,
476,
6632,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many eliminations did each team have. Visualize by bar chart. | CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
) | SELECT Team, COUNT(*) FROM Elimination GROUP BY Team | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7495,
14484,
41,
7495,
14484,
834,
4309,
1499,
6,
549,
6216,
1171,
834,
4309,
1499,
6,
2271,
1499,
6,
7495,
1109,
920,
834,
279,
63,
1499,
6,
7495,
14484,
834,
329,
32,
162,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
6,
2847,
17161,
599,
1935,
61,
21680,
7495,
14484,
350,
4630,
6880,
272,
476,
2271,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many flights have a velocity larger than 200? | CREATE TABLE airport (
id number,
city text,
country text,
iata text,
icao text,
name text
)
CREATE TABLE flight (
id number,
vehicle_flight_number text,
date text,
pilot text,
velocity number,
altitude number,
airport_id number,
company_id number
)
CREATE TABLE... | SELECT COUNT(*) FROM flight WHERE velocity > 200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
3,
23,
26,
381,
6,
690,
1499,
6,
684,
1499,
6,
3,
17221,
1499,
6,
3,
2617,
32,
1499,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
3777,
549,
17444,
427,
22924,
2490,
2382,
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 days have passed since patient 013-38992 has been admitted to the hospital? | 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... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '013-38992' AND patient.hospitaldischargetime IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
209,
1429,
41,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
3,
5211,
12224,
6431,
834,
382,
15382,
9960,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
31386,
20466,
17,
715,
61,
61,
216... |
What is the score for 17 April 2013? | CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_33 WHERE date = "17 april 2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
1003,
1186,
2038,
58,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
3274,
96,
2517,
3,
9,
2246,
40,
2038,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was Color of green last issued? | CREATE TABLE table_39611 (
"Value" text,
"Color" text,
"Obverse" text,
"Reverse" text,
"First issued" real
) | SELECT MAX("First issued") FROM table_39611 WHERE "Color" = 'green' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4314,
2596,
41,
96,
18392,
76,
15,
121,
1499,
6,
96,
3881,
322,
121,
1499,
6,
96,
667,
115,
7583,
121,
1499,
6,
96,
1649,
7583,
121,
1499,
6,
96,
25171,
4683,
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,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
121,
25171,
4683,
8512,
21680,
953,
834,
519,
4314,
2596,
549,
17444,
427,
96,
3881,
322,
121,
3274,
3,
31,
9423,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Date has a Record of 1-4? | CREATE TABLE table_78795 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Date" FROM table_78795 WHERE "Record" = '1-4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
940,
3301,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
308,
342,
121,
21680,
953,
834,
3940,
940,
3301,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
22840,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose admission location is emergency room admit and days of hospital stay is greater than 5? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.days_stay > "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
18464,
17063,
3,
30270,
8502,
12604,
121,
3430,
147... |
Who was the opponent at the game attended by 62,019 before week 17? | CREATE TABLE table_name_22 (
opponent VARCHAR,
week VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_name_22 WHERE week < 17 AND attendance = "62,019" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
44,
8,
467,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
471,
3,
2,
1003,
3430,
11364,
3274,
96,
4056,
6,
632,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many partners were there when the score was 7 6 (7 4) , 6 3? | CREATE TABLE table_2186447_1 (
partner VARCHAR,
score VARCHAR
) | SELECT COUNT(partner) FROM table_2186447_1 WHERE score = "7–6 (7–4) , 6–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
4389,
4177,
834,
536,
41,
2397,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3222,
130,
132,
116,
8,
2604,
47,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
12300,
61,
21680,
953,
834,
357,
2606,
4389,
4177,
834,
536,
549,
17444,
427,
2604,
3274,
96,
940,
104,
948,
13649,
104,
7256,
3,
6,
431,
104,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which round has the mv agusta f4 1000 mt? | CREATE TABLE table_name_75 (rounds VARCHAR, motorcycle VARCHAR) | SELECT rounds FROM table_name_75 WHERE motorcycle = "mv agusta f4 1000 mt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
7775,
7,
584,
4280,
28027,
6,
11718,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1751,
65,
8,
3,
51,
208,
3,
9,
17198,
9,
3,
89,
591,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14419,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
11718,
3274,
96,
51,
208,
3,
9,
17198,
9,
3,
89,
591,
5580,
3,
51,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the product ids and the number of unique orders containing each product. | CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR) | SELECT product_id, COUNT(DISTINCT order_id) FROM Order_items GROUP BY product_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5197,
834,
23,
3524,
7,
41,
15892,
834,
23,
26,
584,
4280,
28027,
6,
455,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
556,
3,
23,
26,
7,
11,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
556,
834,
23,
26,
6,
2847,
17161,
599,
15438,
25424,
6227,
455,
834,
23,
26,
61,
21680,
5197,
834,
23,
3524,
7,
350,
4630,
6880,
272,
476,
556,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
List the name of all projects that are operated longer than the average working hours of all projects. | CREATE TABLE projects (name VARCHAR, hours INTEGER) | SELECT name FROM projects WHERE hours > (SELECT AVG(hours) FROM projects) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1195,
41,
4350,
584,
4280,
28027,
6,
716,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
564,
13,
66,
1195,
24,
33,
7747,
1200,
145,
8,
1348,
464,
716,
13,
66,
1195,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
1195,
549,
17444,
427,
716,
2490,
41,
23143,
14196,
71,
17217,
599,
5842,
7,
61,
21680,
1195,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the UNGEGN, when the Khmer is greater than ? | CREATE TABLE table_name_40 (
ungegn VARCHAR,
khmer INTEGER
) | SELECT ungegn FROM table_name_40 WHERE khmer > ១០០០០០០០០ | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
3,
425,
15,
122,
29,
584,
4280,
28027,
6,
3,
157,
107,
935,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4417,
5042,
13738,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
425,
15,
122,
29,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
3,
157,
107,
935,
2490,
3,
2,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.