NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which partnership has a run number of 27? | CREATE TABLE table_name_70 (
partnerships VARCHAR,
runs VARCHAR
) | SELECT partnerships FROM table_name_70 WHERE runs = "27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
13416,
584,
4280,
28027,
6,
3154,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4696,
65,
3,
9,
661,
381,
13,
2307,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13416,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
3154,
3274,
96,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
modified hachinski ischemia scale score of >= 4 | CREATE TABLE table_train_81 (
"id" int,
"high_glucose" bool,
"mini_mental_state_examination_mmse" int,
"uncontrolled_diabetes" bool,
"modified_hachinski_ischemia_scale" int,
"clinical_dementia_rating_cdr" float,
"NOUSE" float
) | SELECT * FROM table_train_81 WHERE modified_hachinski_ischemia_scale >= 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4959,
41,
96,
23,
26,
121,
16,
17,
6,
96,
6739,
834,
13492,
509,
7,
15,
121,
3,
12840,
40,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4959,
549,
17444,
427,
8473,
834,
1024,
5675,
4009,
834,
2499,
11658,
834,
6649,
2490,
2423,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the least 10,000+ places for louisville | CREATE TABLE table_25582 (
"Rank" real,
"Metropolitan area" text,
"Principal city" text,
"10,000+ places" real,
"Densest incorporated place" text,
"Density" text
) | SELECT MIN("10,000+ places") FROM table_25582 WHERE "Principal city" = 'Louisville' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
4613,
41,
96,
22557,
121,
490,
6,
96,
329,
15252,
21631,
29,
616,
121,
1499,
6,
96,
7855,
29,
3389,
138,
690,
121,
1499,
6,
96,
29573,
1220,
1747,
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,
29573,
1220,
1747,
8512,
21680,
953,
834,
25502,
4613,
549,
17444,
427,
96,
7855,
29,
3389,
138,
690,
121,
3274,
3,
31,
28365,
1420,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the highest First Elected with a Result of Re-elected and DIstrict of California 5? | CREATE TABLE table_name_21 (first_elected INTEGER, result VARCHAR, district VARCHAR) | SELECT MAX(first_elected) FROM table_name_21 WHERE result = "re-elected" AND district = "california 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
14672,
834,
19971,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2030,
1485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14672,
834,
19971,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
741,
3274,
96,
60,
18,
19971,
121,
3430,
3939,
3274,
96,
15534,
1161,
29,
23,
9,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-... |
how many air date with overall being 83/95 | CREATE TABLE table_13110459_2 (
air_date VARCHAR,
overall VARCHAR
) | SELECT COUNT(air_date) FROM table_13110459_2 WHERE overall = "83/95" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22048,
15442,
3390,
834,
357,
41,
799,
834,
5522,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
799,
833,
28,
1879,
271,
3,
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,
2256,
834,
5522,
61,
21680,
953,
834,
22048,
15442,
3390,
834,
357,
549,
17444,
427,
1879,
3274,
96,
4591,
87,
3301,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Scatterplot of acc_percent vs team id by All_Neutral | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY All_Neutral | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
26288,
8792,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
total number of middle earth video games published by melbourne house | CREATE TABLE table_204_398 (
id number,
"title" text,
"year" number,
"publisher" text,
"developer" text,
"platforms" text
) | SELECT COUNT("title") FROM table_204_398 WHERE "publisher" = 'melbourne house' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
3916,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
1201,
121,
381,
6,
96,
29337,
49,
121,
1499,
6,
96,
29916,
49,
121,
1499,
6,
96,
29100,
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,
2847,
17161,
599,
121,
21869,
8512,
21680,
953,
834,
26363,
834,
519,
3916,
549,
17444,
427,
96,
29337,
49,
121,
3274,
3,
31,
2341,
26255,
629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the runner-up in 2004? | CREATE TABLE table_name_82 (
runner_up VARCHAR,
year VARCHAR
) | SELECT runner_up FROM table_name_82 WHERE year = 2004 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
3,
10806,
834,
413,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3,
10806,
18,
413,
16,
4406,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
413,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
215,
3274,
4406,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which text has traditional characters of 心如猨猴? | CREATE TABLE table_name_47 (text VARCHAR, traditional_characters VARCHAR) | SELECT text FROM table_name_47 WHERE traditional_characters = "心如猨猴" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
6327,
584,
4280,
28027,
6,
1435,
834,
31886,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1499,
65,
1435,
2850,
13,
3,
2,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1499,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1435,
834,
31886,
7,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the opponent with a 0-1 record? | CREATE TABLE table_61355 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Opponent" FROM table_61355 WHERE "Record" = '0-1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
2469,
755,
41,
96,
1649,
7,
535,
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,
667,
102,
9977,
121,
21680,
953,
834,
4241,
2469,
755,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
632,
2292,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the longitude of the feature named Razia Patera? | CREATE TABLE table_72814 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" text,
"Year named" real,
"Name origin" text
) | SELECT "Longitude" FROM table_72814 WHERE "Name" = 'Razia Patera' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2577,
2534,
41,
96,
23954,
121,
1499,
6,
96,
3612,
6592,
121,
1499,
6,
96,
434,
2444,
20341,
121,
1499,
6,
96,
23770,
4401,
41,
5848,
61,
121,
1499,
6,
96,
476,
2741... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20341,
121,
21680,
953,
834,
940,
2577,
2534,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
448,
9,
702,
9,
5192,
1498,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the MSRP for the laptop with storage of 128-512 GB SSD? | CREATE TABLE table_name_2 (msrp VARCHAR, storage VARCHAR) | SELECT msrp FROM table_name_2 WHERE storage = "128-512 gb ssd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
51,
7,
52,
102,
584,
4280,
28027,
6,
1606,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5266,
6294,
21,
8,
4544,
28,
1606,
13,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
51,
7,
52,
102,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1606,
3274,
96,
536,
2577,
18,
24163,
3,
122,
115,
3,
7,
7,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
WHAT IS THE FORWARD CASTE WITH A SCHEDULED TRIBE OF 0.90%? | CREATE TABLE table_8030 (
"Religion" text,
"Scheduled Caste" text,
"Scheduled Tribe" text,
"Other Backward Class" text,
"Forward caste" text
) | SELECT "Forward caste" FROM table_8030 WHERE "Scheduled Tribe" = '0.90%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
1458,
41,
96,
1649,
2825,
23,
106,
121,
1499,
6,
96,
134,
4513,
76,
1361,
11583,
15,
121,
1499,
6,
96,
134,
4513,
76,
1361,
2702,
346,
121,
1499,
6,
96,
667,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3809,
2239,
4061,
15,
121,
21680,
953,
834,
2079,
1458,
549,
17444,
427,
96,
134,
4513,
76,
1361,
2702,
346,
121,
3274,
3,
31,
23758,
6932,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many Points have a Drawn smaller than 0? | CREATE TABLE table_5104 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT COUNT("Points") FROM table_5104 WHERE "Drawn" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
15442,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22512,
7,
8512,
21680,
953,
834,
755,
15442,
549,
17444,
427,
96,
308,
10936,
29,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the bus power for the Controlnet Fieldbus? | CREATE TABLE table_43941 (
"Fieldbus" text,
"Bus power" text,
"Cabling redundancy" text,
"Synchronisation" text,
"Sub millisecond cycle" text
) | SELECT "Bus power" FROM table_43941 WHERE "Fieldbus" = 'controlnet' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3288,
4853,
41,
96,
3183,
8804,
3465,
121,
1499,
6,
96,
7793,
7,
579,
121,
1499,
6,
96,
254,
9,
7428,
1131,
1106,
6833,
121,
1499,
6,
96,
24863,
107,
52,
106,
2121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7793,
7,
579,
121,
21680,
953,
834,
591,
3288,
4853,
549,
17444,
427,
96,
3183,
8804,
3465,
121,
3274,
3,
31,
15247,
1582,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the away score for Carlton? | CREATE TABLE table_name_41 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_41 WHERE away_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
8006,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
2604,
21,
3,
30339,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of all the different reviewers who rates Gone with the Wind? | CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
) | SELECT DISTINCT T3.name FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid JOIN reviewer AS T3 ON T1.rid = T3.rid WHERE T2.title = 'Gone with the Wind' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1132,
49,
41,
5413,
381,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1974,
41,
2076,
381,
6,
2233,
1499,
6,
215,
381,
6,
2090,
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,
3,
15438,
25424,
6227,
332,
5787,
4350,
21680,
5773,
6157,
332,
536,
3,
15355,
3162,
1974,
6157,
332,
357,
9191,
332,
5411,
6983,
3274,
332,
4416,
6983,
3,
15355,
3162,
1132,
49,
6157,
332,
519,
9191,
332,
5411,
4055,... |
Which home team score occurred at Victoria Park? | CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_42 WHERE venue = "victoria park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
234,
372,
2604,
6935,
44,
7488,
1061,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
5669,
3274,
96,
7287,
3600,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest Feb value having an opponent of the Philadelphia Flyers and is after game 63? | CREATE TABLE table_name_43 (
february INTEGER,
opponent VARCHAR,
game VARCHAR
) | SELECT MAX(february) FROM table_name_43 WHERE opponent = "philadelphia flyers" AND game > 63 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
29976,
76,
1208,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
8037,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
89,
15,
9052,
1208,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
15264,
3274,
96,
18118,
15311,
11692,
9,
3971,
277,
121,
3430,
467,
2490,
3,
3891,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many votes did Obama have at 32.12% | CREATE TABLE table_20722805_1 (
obama_number INTEGER,
obama_percentage VARCHAR
) | SELECT MIN(obama_number) FROM table_20722805_1 WHERE obama_percentage = "32.12%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
5865,
2577,
3076,
834,
536,
41,
3,
32,
115,
265,
9,
834,
5525,
1152,
3,
21342,
17966,
6,
3,
32,
115,
265,
9,
834,
883,
3728,
545,
584,
4280,
28027,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
32,
115,
265,
9,
834,
5525,
1152,
61,
21680,
953,
834,
1755,
5865,
2577,
3076,
834,
536,
549,
17444,
427,
3,
32,
115,
265,
9,
834,
883,
3728,
545,
3274,
96,
2668,
5,
26821,
121,
1,
-100,
-100,
-10... |
what is the five most common specimen test done in 2104? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) | SELECT t1.culturesite FROM (SELECT microlab.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microlab WHERE STRFTIME('%y', microlab.culturetakentime) = '2104' GROUP BY microlab.culturesite) AS t1 WHERE t1.c1 <= 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
98... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
10547,
3585,
21680,
41,
23143,
14196,
2179,
9339,
5,
10547,
3585,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
75,
... |
Name the total number of written by for 26 july 2010 | CREATE TABLE table_27218002_1 (written_by VARCHAR, originalairdate VARCHAR) | SELECT COUNT(written_by) FROM table_27218002_1 WHERE originalairdate = "26 July 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2658,
6192,
357,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
926,
2256,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
1545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
14973,
834,
969,
61,
21680,
953,
834,
2555,
2658,
6192,
357,
834,
536,
549,
17444,
427,
926,
2256,
5522,
3274,
96,
2688,
1718,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Population is the lowest one that has a Median family income of $74,905, and a Number of households smaller than 145,790? | CREATE TABLE table_name_37 (
population INTEGER,
median_family_income VARCHAR,
number_of_households VARCHAR
) | SELECT MIN(population) FROM table_name_37 WHERE median_family_income = "$74,905" AND number_of_households < 145 OFFSET 790 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
2074,
3,
21342,
17966,
6,
15572,
834,
15474,
834,
15759,
584,
4280,
28027,
6,
381,
834,
858,
834,
1840,
6134,
7,
584,
4280,
28027,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
15572,
834,
15474,
834,
15759,
3274,
96,
3229,
4581,
6,
2394,
17395,
3430,
381,
834,
858,
834,
1840,
6134,
7,
3,
2,
3,
20987,
3,
15... |
What is the result of the game at kyiv, ukraine? | CREATE TABLE table_name_2 (result VARCHAR, venue VARCHAR) | SELECT result FROM table_name_2 WHERE venue = "kyiv, ukraine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
8,
467,
44,
3,
3781,
23,
208,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
5669,
3274,
96,
3781,
23,
208,
6,
3,
1598,
6559,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What score has 3 as the place? | CREATE TABLE table_58823 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Score" FROM table_58823 WHERE "Place" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
4613,
519,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3449,
4613,
519,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
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 last_name , and could you sort by the COMMISSION_PCT in descending? | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) | SELECT LAST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
301,
12510,
834,
567,
17683,
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,
174... |
li haiqiang and xu deshuai both played which position ? | CREATE TABLE table_204_968 (
id number,
"squad #" number,
"position" text,
"player" text,
"transferred to" text,
"fee" text,
"date" text
) | SELECT "position" FROM table_204_968 WHERE "player" = 'li haiqiang' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4314,
927,
41,
3,
23,
26,
381,
6,
96,
7,
4960,
26,
1713,
121,
381,
6,
96,
4718,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
7031,
1010,
1271,
12,
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,
4718,
121,
21680,
953,
834,
26363,
834,
4314,
927,
549,
17444,
427,
96,
20846,
121,
3274,
3,
31,
40,
23,
4244,
23,
1824,
23,
1468,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the intro date for the interface that equals pci? | CREATE TABLE table_29778616_1 (intro_date VARCHAR, interface VARCHAR) | SELECT intro_date FROM table_29778616_1 WHERE interface = "PCI" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4013,
3840,
2938,
834,
536,
41,
20322,
32,
834,
5522,
584,
4280,
28027,
6,
3459,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
16728,
833,
21,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16728,
834,
5522,
21680,
953,
834,
3166,
4013,
3840,
2938,
834,
536,
549,
17444,
427,
3459,
3274,
96,
4051,
196,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date did the game end with the result w 43-14? | CREATE TABLE table_13258806_2 (
date VARCHAR,
result VARCHAR
) | SELECT date FROM table_13258806_2 WHERE result = "W 43-14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
1828,
4060,
5176,
834,
357,
41,
833,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
8,
467,
414,
28,
8,
741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2368,
1828,
4060,
5176,
834,
357,
549,
17444,
427,
741,
3274,
96,
518,
8838,
11590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What region does the University of California, Los Angeles play in? | CREATE TABLE table_33009 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
) | SELECT "Region" FROM table_33009 WHERE "State" = 'california' AND "Host" = 'university of california, los angeles' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17225,
4198,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
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,
17748,
23,
106,
121,
21680,
953,
834,
17225,
4198,
549,
17444,
427,
96,
134,
4748,
121,
3274,
3,
31,
15534,
1161,
29,
23,
9,
31,
3430,
96,
566,
3481,
121,
3274,
3,
31,
7846,
485,
13,
3,
15534,
1161,
29,
23,
... |
When 1.79 is the height what is the geographical region? | CREATE TABLE table_18618707_1 (geographical_regions VARCHAR, height VARCHAR) | SELECT geographical_regions FROM table_18618707_1 WHERE height = "1.79" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
25828,
4560,
834,
536,
41,
397,
32,
16982,
834,
18145,
7,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
1300,
4440,
19,
8,
3902,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
20187,
834,
18145,
7,
21680,
953,
834,
25398,
25828,
4560,
834,
536,
549,
17444,
427,
3902,
3274,
96,
5411,
4440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Opponent has a Result of l 24 3? | CREATE TABLE table_47965 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Opponent" FROM table_47965 WHERE "Result" = 'l 24–3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4440,
4122,
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,
96,
667,
102,
9977,
121,
21680,
953,
834,
591,
4440,
4122,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
997,
104,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the names of phones in ascending order of price. | CREATE TABLE phone_market (
market_id number,
phone_id text,
num_of_stock number
)
CREATE TABLE phone (
name text,
phone_id number,
memory_in_g number,
carrier text,
price number
)
CREATE TABLE market (
market_id number,
district text,
num_of_employees number,
num_of_shops number,
ranking number
) | SELECT name FROM phone ORDER BY price | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
834,
8809,
41,
512,
834,
23,
26,
381,
6,
951,
834,
23,
26,
1499,
6,
3,
5525,
834,
858,
834,
7149,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
41,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
951,
4674,
11300,
272,
476,
594,
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,
-10... |
how many designs have a weight of at least 45 ? | CREATE TABLE table_204_131 (
id number,
"tops design code" text,
"electrical system" text,
"max speed" text,
"weight" text,
"brakes" text,
"route availability" number,
"notes" text
) | SELECT COUNT("tops design code") FROM table_204_131 WHERE "weight" >= 45 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
22048,
41,
3,
23,
26,
381,
6,
96,
2916,
7,
408,
1081,
121,
1499,
6,
96,
17470,
138,
358,
121,
1499,
6,
96,
9128,
1634,
121,
1499,
6,
96,
9378,
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,
2916,
7,
408,
1081,
8512,
21680,
953,
834,
26363,
834,
22048,
549,
17444,
427,
96,
9378,
121,
2490,
2423,
3479,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What report has tour match as the status, with an against less than 22? | CREATE TABLE table_name_92 (report VARCHAR, status VARCHAR, against VARCHAR) | SELECT report FROM table_name_92 WHERE status = "tour match" AND against < 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
60,
1493,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
934,
65,
1552,
1588,
38,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2637,
3274,
96,
17,
1211,
1588,
121,
3430,
581,
3,
2,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the size of the crowd that saw the Home team score 11.10 (76)? | CREATE TABLE table_33256 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT COUNT("Crowd") FROM table_33256 WHERE "Home team score" = '11.10 (76)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
19337,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
4201,
19337,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
10032,
1714,
41,
3959,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Delivered as name of the H3 Locomotive? | CREATE TABLE table_6594 (
"Locomotive" text,
"Delivered as" text,
"Entered service" text,
"Owner" text,
"Status" text
) | SELECT "Delivered as" FROM table_6594 WHERE "Locomotive" = 'h3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
4240,
41,
96,
434,
32,
287,
32,
3268,
121,
1499,
6,
96,
2962,
7591,
1271,
38,
121,
1499,
6,
96,
16924,
3737,
313,
121,
1499,
6,
96,
667,
210,
687,
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,
2962,
7591,
1271,
38,
121,
21680,
953,
834,
4122,
4240,
549,
17444,
427,
96,
434,
32,
287,
32,
3268,
121,
3274,
3,
31,
107,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Super G has Victories of 26, and a Country of austria? | CREATE TABLE table_name_31 (super_g VARCHAR, victories VARCHAR, country VARCHAR) | SELECT super_g FROM table_name_31 WHERE victories = 26 AND country = "austria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
21771,
834,
122,
584,
4280,
28027,
6,
19900,
7,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2011,
350,
65,
8884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1355,
834,
122,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
19900,
7,
3274,
2208,
3430,
684,
3274,
96,
402,
23387,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is maximum days of hospital stay of patients whose primary disease is overdose? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "OVERDOSE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
23288,
308,
22177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Cultural and Educational Panel has a Labour Panel larger than 5, and an Industrial and Commercial Panel larger than 9? | CREATE TABLE table_40215 (
"Administrative Panel" real,
"Agricultural Panel" real,
"Cultural and Educational Panel" real,
"Industrial and Commercial Panel" real,
"Labour Panel" real,
"National University of Ireland" real,
"University of Dublin" real,
"Nominated by the Taoiseach" real,
"Total" real
) | SELECT COUNT("Cultural and Educational Panel") FROM table_40215 WHERE "Labour Panel" > '5' AND "Industrial and Commercial Panel" > '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
357,
1808,
41,
96,
16313,
343,
52,
1528,
9871,
121,
490,
6,
96,
24354,
9871,
121,
490,
6,
96,
254,
83,
17,
9709,
11,
19173,
9871,
121,
490,
6,
96,
1570,
8655,
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,
2847,
17161,
599,
121,
254,
83,
17,
9709,
11,
19173,
9871,
8512,
21680,
953,
834,
2445,
357,
1808,
549,
17444,
427,
96,
18506,
1211,
9871,
121,
2490,
3,
31,
755,
31,
3430,
96,
1570,
8655,
17,
12042,
11,
9747,
9871,
... |
Who was the opponent at the game attended by 62,657? | CREATE TABLE table_name_34 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_34 WHERE attendance = "62,657" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
32,
102,
9977,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
44,
8,
467,
5526,
57,
3,
4056,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
11364,
3274,
96,
4056,
6,
948,
3436,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who wrote the episode with 3.96 million US viewers? | CREATE TABLE table_2866514_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) | SELECT written_by FROM table_2866514_1 WHERE us_viewers__million_ = "3.96" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3840,
4122,
2534,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
264... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
357,
3840,
4122,
2534,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
5787,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Venue with a Result that is lost? | CREATE TABLE table_name_40 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_40 WHERE result = "lost" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
15098,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
29940,
28,
3,
9,
3,
20119,
24,
19,
1513,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
741,
3274,
96,
2298,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the rank of Manuel Cortina Mart nez? | CREATE TABLE table_name_46 (
rank VARCHAR,
athletes VARCHAR
) | SELECT rank FROM table_name_46 WHERE athletes = "manuel cortina martínez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
11003,
584,
4280,
28027,
6,
9227,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
21630,
2487,
17,
77,
9,
11163,
3,
9645... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
9227,
3274,
96,
348,
76,
15,
40,
4301,
17,
77,
9,
3157,
17,
2,
9645,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the highest 3rd place for nation of perak fa | CREATE TABLE table_79793 (
"Nation" text,
"Winners" real,
"Runners-up" real,
"3rd Place" real,
"4th Place" real
) | SELECT MAX("3rd Place") FROM table_79793 WHERE "Nation" = 'perak fa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
4440,
519,
41,
96,
567,
257,
121,
1499,
6,
96,
18455,
687,
7,
121,
490,
6,
96,
23572,
7,
18,
413,
121,
490,
6,
96,
519,
52,
26,
3399,
121,
490,
6,
96,
591,
189,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
519,
52,
26,
3399,
8512,
21680,
953,
834,
4440,
4440,
519,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
883,
1639,
3,
89,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For what tournament was Bubba Watson the runner-up? | CREATE TABLE table_15461 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Tournament" FROM table_15461 WHERE "Runner(s)-up" = 'bubba watson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
4241,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
96,
7286,
122,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27308,
4241,
549,
17444,
427,
96,
23572,
599,
7,
61,
18,
413,
121,
3274,
3,
31,
115,
21207,
9,
8036,
17,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games have Points smaller than 4, and an October smaller than 5? | CREATE TABLE table_39154 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT COUNT("Game") FROM table_39154 WHERE "Points" < '4' AND "October" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
27308,
41,
96,
23055,
121,
490,
6,
96,
28680,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
22512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
8512,
21680,
953,
834,
3288,
27308,
549,
17444,
427,
96,
22512,
7,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
28680,
121,
3,
2,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
find out the primary disease and name of the patient with patient id 2560. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.name, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
4350,
6,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times is denmark ranked in technology? | CREATE TABLE table_72471 (
"Country" real,
"Rank" text,
"Aid" text,
"Trade" text,
"Investment" text,
"Migration" text,
"Environment" text,
"Security" text,
"Technology" text,
"Overall (Average)" text
) | SELECT COUNT("Technology") FROM table_72471 WHERE "Rank" = 'Denmark' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2266,
4450,
41,
96,
10628,
651,
121,
490,
6,
96,
22557,
121,
1499,
6,
96,
188,
23,
26,
121,
1499,
6,
96,
9402,
221,
121,
1499,
6,
96,
13898,
297,
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,
2847,
17161,
599,
121,
9542,
29,
1863,
8512,
21680,
953,
834,
940,
2266,
4450,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
308,
35,
3920,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the service chage of the boat howitzers with a 12-pdr light destination? | CREATE TABLE table_35342 (
"Designation" text,
"Bore" text,
"Weight" text,
"Service Charge" text,
"Range (yards)" text,
"Number Made" real
) | SELECT "Service Charge" FROM table_35342 WHERE "Designation" = '12-pdr light' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3710,
357,
41,
96,
19103,
257,
121,
1499,
6,
96,
279,
127,
15,
121,
1499,
6,
96,
1326,
2632,
121,
1499,
6,
96,
15260,
15907,
121,
1499,
6,
96,
448,
3280,
41,
6636,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15260,
15907,
121,
21680,
953,
834,
2469,
3710,
357,
549,
17444,
427,
96,
19103,
257,
121,
3274,
3,
31,
2122,
18,
102,
26,
52,
659,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many different parties are listed ? | CREATE TABLE table_203_354 (
id number,
"party" text,
"candidate(s)" text,
"votes" number,
"percentage" number
) | SELECT COUNT(DISTINCT "party") FROM table_203_354 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2469,
591,
41,
3,
23,
26,
381,
6,
96,
8071,
121,
1499,
6,
96,
1608,
12416,
342,
599,
7,
61,
121,
1499,
6,
96,
1621,
1422,
121,
381,
6,
96,
883,
3728,
545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
15438,
25424,
6227,
96,
8071,
8512,
21680,
953,
834,
23330,
834,
2469,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
A list of the top 10 countries by average invoice size. List country name and average invoice size. | CREATE TABLE customers (
id number,
first_name text,
last_name text,
company text,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text,
support_rep_id number
)
CREATE TABLE playlists (
id number,
name text
)
CREATE TABLE employees (
id number,
last_name text,
first_name text,
title text,
reports_to number,
birth_date time,
hire_date time,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text
)
CREATE TABLE artists (
id number,
name text
)
CREATE TABLE playlist_tracks (
playlist_id number,
track_id number
)
CREATE TABLE genres (
id number,
name text
)
CREATE TABLE media_types (
id number,
name text
)
CREATE TABLE sqlite_sequence (
name text,
seq text
)
CREATE TABLE invoice_lines (
id number,
invoice_id number,
track_id number,
unit_price number,
quantity number
)
CREATE TABLE albums (
id number,
title text,
artist_id number
)
CREATE TABLE tracks (
id number,
name text,
album_id number,
media_type_id number,
genre_id number,
composer text,
milliseconds number,
bytes number,
unit_price number
)
CREATE TABLE invoices (
id number,
customer_id number,
invoice_date time,
billing_address text,
billing_city text,
billing_state text,
billing_country text,
billing_postal_code text,
total number
) | SELECT billing_country, AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
3,
23,
26,
381,
6,
166,
834,
4350,
1499,
6,
336,
834,
4350,
1499,
6,
349,
1499,
6,
1115,
1499,
6,
690,
1499,
6,
538,
1499,
6,
684,
1499,
6,
19085,
834,
4978,
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,
14425,
834,
17529,
6,
71,
17217,
599,
235,
1947,
61,
21680,
10921,
7,
350,
4630,
6880,
272,
476,
14425,
834,
17529,
4674,
11300,
272,
476,
71,
17217,
599,
235,
1947,
61,
309,
25067,
8729,
12604,
335,
1,
-100,
-100,
... |
What is the away team's score at western oval? | CREATE TABLE table_name_73 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_73 WHERE venue = "western oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
550,
372,
31,
7,
2604,
44,
8282,
17986,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
5669,
3274,
96,
24411,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many goals was by Rix from Eng who started before 2005 in the youth system? | CREATE TABLE table_name_38 (goals VARCHAR, name VARCHAR, since VARCHAR, nat VARCHAR, transfer_fee VARCHAR) | SELECT COUNT(goals) FROM table_name_38 WHERE nat = "eng" AND transfer_fee = "youth system" AND since < 2005 AND name = "rix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
839,
5405,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
437,
584,
4280,
28027,
6,
3,
29,
144,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
839,
5405,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
3,
29,
144,
3274,
96,
4606,
121,
3430,
2025,
834,
89,
15,
15,
3274,
96,
4188,
189,
358,
121,
3430,
437,
3,
2,
3105,
3430,
564,
... |
What's listed for the Registered Voters with a Ngilu of 3,429? | CREATE TABLE table_35713 (
"Province" text,
"Kibaki" text,
"Raila" text,
"Wamalwa" text,
"Ngilu" text,
"Others" text,
"Registered Voters" text,
"Turnout %" text
) | SELECT "Registered Voters" FROM table_35713 WHERE "Ngilu" = '3,429' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3436,
2368,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
439,
23,
19272,
23,
121,
1499,
6,
96,
448,
9,
173,
9,
121,
1499,
6,
96,
518,
9,
1982,
210,
9,
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,
17748,
343,
3737,
3152,
4849,
121,
21680,
953,
834,
519,
3436,
2368,
549,
17444,
427,
96,
567,
122,
173,
76,
121,
3274,
3,
31,
6355,
591,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
has patient 030-53416 been treated with a bronchoscopy? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-53416')) AND treatment.treatmentname = 'bronchoscopy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
what is the number of patients whose discharge location is snf and diagnoses long title is pneumonitis due to inhalation of food or vomitus? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "SNF" AND diagnoses.long_title = "Pneumonitis due to inhalation of food or vomitus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps? | CREATE TABLE table_name_26 (
tottenham_hotspur_career VARCHAR,
club_apps VARCHAR,
position VARCHAR,
goals VARCHAR,
nationality VARCHAR
) | SELECT tottenham_hotspur_career FROM table_name_26 WHERE goals = "10" AND nationality = "england" AND position = "df" AND club_apps = "118" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
12,
17,
324,
1483,
834,
10718,
7,
3791,
834,
2864,
49,
584,
4280,
28027,
6,
1886,
834,
3096,
7,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1766,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
17,
324,
1483,
834,
10718,
7,
3791,
834,
2864,
49,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1766,
3274,
96,
1714,
121,
3430,
1157,
485,
3274,
96,
4606,
40,
232,
121,
3430,
1102,
3274,
96,
26,
89,
121... |
What is the title when u.s. viewers (millions) is 3.97? | CREATE TABLE table_18481791_3 (title VARCHAR, us_viewers__in_millions_ VARCHAR) | SELECT title FROM table_18481791_3 WHERE us_viewers__in_millions_ = "3.97" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3707,
2517,
4729,
834,
519,
41,
21869,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
77,
834,
17030,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2606,
3707,
2517,
4729,
834,
519,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
77,
834,
17030,
7,
834,
3274,
96,
5787,
4327,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who placed t1 in Scotland? | CREATE TABLE table_60493 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_60493 WHERE "Place" = 't1' AND "Country" = 'scotland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3647,
519,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
15800,
49,
121,
21680,
953,
834,
3328,
3647,
519,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
536,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
7,
4310,
40,
232,
31,
1,
-100,
-100,
-100,
-100,
-100... |
How many providers are there where the resale category is yes and bandwith is up is 1024? | CREATE TABLE table_1773908_3 (
provider VARCHAR,
resale VARCHAR,
up__up_to_kbit_s_ VARCHAR
) | SELECT COUNT(provider) FROM table_1773908_3 WHERE resale = "yes" AND up__up_to_kbit_s_ = 1024 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26793,
3288,
4018,
834,
519,
41,
3175,
584,
4280,
28027,
6,
3,
60,
7,
9,
109,
584,
4280,
28027,
6,
95,
834,
834,
413,
834,
235,
834,
157,
2360,
834,
7,
834,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29189,
52,
61,
21680,
953,
834,
26793,
3288,
4018,
834,
519,
549,
17444,
427,
3,
60,
7,
9,
109,
3274,
96,
10070,
121,
3430,
95,
834,
834,
413,
834,
235,
834,
157,
2360,
834,
7,
834,
3274,
335,
... |
what is admission time and diagnoses short title of subject name josette orr? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.admittime, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Josette Orr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
20466,
17,
715,
6,
18730,
7,
5,
7,
14184,
834,
21869,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
549,
17444,
4... |
how many literate males are there that has a district population of 6.65? | CREATE TABLE table_28939145_2 (Literate VARCHAR, _percentage_of_district_population VARCHAR) | SELECT Literate AS male FROM table_28939145_2 WHERE _percentage_of_district_population = "6.65" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4271,
4729,
2128,
834,
357,
41,
16278,
2206,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
858,
834,
26,
23,
20066,
834,
9791,
7830,
584,
4280,
28027,
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,
16515,
342,
6157,
5069,
21680,
953,
834,
2577,
4271,
4729,
2128,
834,
357,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
858,
834,
26,
23,
20066,
834,
9791,
7830,
3274,
96,
28833,
17395,
1,
-100,
-100,
-100,
-100,
-... |
What was the Forbers rank (all companies) in 2012 for cenovus energy? | CREATE TABLE table_23950611_2 (rank__all__2012 VARCHAR, name VARCHAR) | SELECT rank__all__2012 FROM table_23950611_2 WHERE name = "Cenovus Energy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3301,
5176,
2596,
834,
357,
41,
6254,
834,
834,
1748,
834,
834,
12172,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
242,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
834,
834,
1748,
834,
834,
12172,
21680,
953,
834,
2773,
3301,
5176,
2596,
834,
357,
549,
17444,
427,
564,
3274,
96,
254,
15,
5326,
302,
4654,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
are the wins for finland more/less than their losses at home ? | CREATE TABLE table_203_513 (
id number,
"no." number,
"date" text,
"home team" text,
"visiting team" text,
"goals" text,
"score" text,
"result" text,
"venue" text,
"competition" text
) | SELECT (SELECT COUNT(*) FROM table_203_513 WHERE "result" = 'win' AND "home team" = 'finland') > (SELECT COUNT(*) FROM table_203_513 WHERE "result" = 'loss' AND "home team" = 'finland') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
2368,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
1499,
6,
96,
5515,
372,
121,
1499,
6,
96,
3466,
155,
53,
372,
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,
41,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
755,
2368,
549,
17444,
427,
96,
60,
7,
83,
17,
121,
3274,
3,
31,
3757,
31,
3430,
96,
5515,
372,
121,
3274,
3,
31,
89,
25948,
31,
61,
249... |
Name the gt 2.0 winning team for sports 2.0 winning team for #16 trans ocean motors for castle rock | CREATE TABLE table_27561503_2 (gt_20_winning_team VARCHAR, sports_20_winning_team VARCHAR, circuit VARCHAR) | SELECT COUNT(gt_20_winning_team) FROM table_27561503_2 WHERE sports_20_winning_team = "#16 Trans Ocean Motors" AND circuit = "Castle Rock" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4834,
12278,
519,
834,
357,
41,
122,
17,
834,
1755,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
2100,
834,
1755,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
4558,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
122,
17,
834,
1755,
834,
8163,
834,
11650,
61,
21680,
953,
834,
2555,
4834,
12278,
519,
834,
357,
549,
17444,
427,
2100,
834,
1755,
834,
8163,
834,
11650,
3274,
96,
4663,
2938,
4946,
7087,
5083,
7,
... |
What is the total attendance for the August 8 game? | CREATE TABLE table_name_48 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_48 WHERE date = "august 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
15116,
663,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
11364,
21,
8,
1660,
505,
467,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
833,
3274,
96,
402,
17198,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is minimum age for different job title, and could you list names from low to high order please? | CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
) | SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY job | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1246,
3,
21342,
17966,
6,
690,
3,
3463,
4,
382,
6,
7285,
3,
3463,
4,
382,
6,
613,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
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,
613,
6,
3,
17684,
599,
545,
61,
21680,
5780,
350,
4630,
6880,
272,
476,
613,
4674,
11300,
272,
476,
613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date had a score of 5-1? | CREATE TABLE table_70079 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_70079 WHERE "Score" = '5-1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9295,
4440,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
9295,
4440,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
755,
2292,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many gb's have an iso number of cn-65? | CREATE TABLE table_254234_1 (
gb VARCHAR,
iso_№ VARCHAR
) | SELECT COUNT(gb) FROM table_254234_1 WHERE iso_№ = "CN-65" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4165,
3710,
834,
536,
41,
3,
122,
115,
584,
4280,
28027,
6,
19,
32,
834,
4168,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
122,
115,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
122,
115,
61,
21680,
953,
834,
1828,
4165,
3710,
834,
536,
549,
17444,
427,
19,
32,
834,
4168,
3274,
96,
10077,
18,
4122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where is the headquarters of Alpha Nu Omega | CREATE TABLE table_10054296_1 (
headquarters VARCHAR,
member VARCHAR
) | SELECT headquarters FROM table_10054296_1 WHERE member = "Alpha Nu Omega" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
5062,
357,
4314,
834,
536,
41,
13767,
584,
4280,
28027,
6,
1144,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
13767,
13,
12503,
1174,
20336,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13767,
21680,
953,
834,
2915,
5062,
357,
4314,
834,
536,
549,
17444,
427,
1144,
3274,
96,
19240,
1024,
1174,
20336,
121,
1,
-100,
-100,
-100,
-100,
-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, visualize a bar chart about the distribution of phone_number and department_id , I want to rank from high to low by the Y please. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT PHONE_NUMBER, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY DEPARTMENT_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8023,
7894,
834,
567,
6122,
12920,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
... |
Name the number of date for dallas | CREATE TABLE table_22893781_6 (date VARCHAR, team VARCHAR) | SELECT COUNT(date) FROM table_22893781_6 WHERE team = "Dallas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3914,
4118,
4959,
834,
948,
41,
5522,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
833,
21,
836,
195,
9,
7,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
2884,
3914,
4118,
4959,
834,
948,
549,
17444,
427,
372,
3274,
96,
308,
1748,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what are all the pole position where date is 26 july | CREATE TABLE table_1137704_2 (
pole_position VARCHAR,
date VARCHAR
) | SELECT pole_position FROM table_1137704_2 WHERE date = "26 July" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
4013,
6348,
834,
357,
41,
11148,
834,
4718,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
33,
66,
8,
11148,
1102,
213,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11148,
834,
4718,
21680,
953,
834,
20522,
4013,
6348,
834,
357,
549,
17444,
427,
833,
3274,
96,
2688,
1718,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the others# when bush% is 57.0%? | CREATE TABLE table_1302886_1 (others_number INTEGER, bush_percentage VARCHAR) | SELECT MAX(others_number) FROM table_1302886_1 WHERE bush_percentage = "57.0%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
2577,
3840,
834,
536,
41,
9269,
7,
834,
5525,
1152,
3,
21342,
17966,
6,
17907,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9269,
7,
834,
5525,
1152,
61,
21680,
953,
834,
21448,
2577,
3840,
834,
536,
549,
17444,
427,
17907,
834,
883,
3728,
545,
3274,
96,
3436,
5,
6932,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When the money list rank was n/a, what was the scoring average? | CREATE TABLE table_15883 (
"Year" real,
"Tournaments played" real,
"Cuts made*" real,
"Wins" real,
"2nd" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" real,
"Money list rank" text,
"Scoring average" text,
"Scoring rank" text
) | SELECT "Scoring average" FROM table_15883 WHERE "Money list rank" = 'n/a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26556,
4591,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
29,
9,
4128,
1944,
121,
490,
6,
96,
15784,
17,
7,
263,
1935,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
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,
134,
5715,
53,
1348,
121,
21680,
953,
834,
26556,
4591,
549,
17444,
427,
96,
9168,
15,
63,
570,
11003,
121,
3274,
3,
31,
29,
87,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Can you tell me the Score that has the Country of united states, and the Place of t2, and the Player of tom watson? | CREATE TABLE table_7841 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Score" FROM table_7841 WHERE "Country" = 'united states' AND "Place" = 't2' AND "Player" = 'tom watson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4853,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
96,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3940,
4853,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
345,
11706,
121,
3274,
3,
31,
17,
357,
31,
3430,
96,
15800,
49,
121,
3274,
3... |
What is the Record of the game on November 15 against Visitor Chicago Black Hawks with a Score of 1–3? | CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR, score VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_32 WHERE score = "1–3" AND visitor = "chicago black hawks" AND date = "november 15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
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,
1368,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2604,
3274,
96,
536,
104,
519,
121,
3430,
7019,
3274,
96,
1436,
658,
839,
1001,
3,
14400,
7,
121,
3430,
833,
3274,
96,
5326,
18247,
627,
121,
1,
-100,
-100,
... |
In how many different years was the warship that weights 1130 tons built? | CREATE TABLE table_26175 (
"Warship" text,
"tons ( L.ton )" real,
"Horse- power" real,
"Speed ( Knots )" text,
"Armour (Inch)" text,
"Main Artillery" text,
"Built Year" real
) | SELECT COUNT("Built Year") FROM table_26175 WHERE "tons ( L.ton )" = '1130' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4241,
3072,
41,
96,
21032,
2009,
121,
1499,
6,
96,
8057,
41,
301,
5,
17,
106,
3,
61,
121,
490,
6,
96,
566,
127,
7,
15,
18,
579,
121,
490,
6,
96,
28328,
41,
10624... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7793,
173,
17,
2929,
8512,
21680,
953,
834,
357,
4241,
3072,
549,
17444,
427,
96,
8057,
41,
301,
5,
17,
106,
3,
61,
121,
3274,
3,
31,
2596,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all employees who have the letters D or S in their first name, show me about the correlation between manager_id and department_id in a scatter 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE 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)
) | SELECT MANAGER_ID, DEPARTMENT_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
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,
283,
15610,
17966,
834,
4309,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
134,... |
Name the number of region for 경상남도 | CREATE TABLE table_160510_5 (region VARCHAR, hangul_chosongul VARCHAR) | SELECT COUNT(region) FROM table_160510_5 WHERE hangul_chosongul = "경상남도" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
25926,
834,
755,
41,
18145,
584,
4280,
28027,
6,
5168,
83,
834,
3995,
739,
6106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
1719,
21,
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,
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,
18145,
61,
21680,
953,
834,
19129,
25926,
834,
755,
549,
17444,
427,
5168,
83,
834,
3995,
739,
6106,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients whose year of birth is less than 2023 and item id is 51263? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2023" AND lab.itemid = "51263" | [
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,... |
How many Assists for the Player with more than 25 Games? | CREATE TABLE table_43052 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Assists" real
) | SELECT SUM("Assists") FROM table_43052 WHERE "Games" > '25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25449,
5373,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
188,
7,
7,
343,
7,
121,
490,
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,
180,
6122,
599,
121,
188,
7,
7,
343,
7,
8512,
21680,
953,
834,
25449,
5373,
549,
17444,
427,
96,
23055,
7,
121,
2490,
3,
31,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Lost has Points smaller than 12, and a Drawn larger than 1? | CREATE TABLE table_name_39 (lost VARCHAR, points VARCHAR, drawn VARCHAR) | SELECT COUNT(lost) FROM table_name_39 WHERE points < 12 AND drawn > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
2298,
17,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
19576,
65,
4564,
7,
2755,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
979,
3,
2,
586,
3430,
6796,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was United States place when the player was Fred Couples? | CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR) | SELECT place FROM table_name_26 WHERE country = "united states" AND player = "fred couples" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
4687,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
907,
1323,
286,
116,
8,
1959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
89,
1271,
11992,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the highest level of team Astana since 2007? | CREATE TABLE table_name_96 (level INTEGER, team VARCHAR, season VARCHAR) | SELECT MAX(level) FROM table_name_96 WHERE team = "astana" AND season > 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
4563,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2030,
593,
13,
372,
13131,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4563,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
372,
3274,
96,
9,
5627,
9,
121,
3430,
774,
2490,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Opponent of @ blue jays, and a Loss of lyon (5-4) had what opponent? | CREATE TABLE table_33881 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Record" FROM table_33881 WHERE "Opponent" = '@ blue jays' AND "Loss" = 'lyon (5-4)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
4060,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
1649,
7621,
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,
1649,
7621,
121,
21680,
953,
834,
4201,
4060,
536,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
1741,
1692,
2662,
63,
7,
31,
3430,
96,
434,
32,
7,
7,
121,
3274,
3,
31,
120,
106,
9209,
18,
7256,
3... |
What Name has a Winning constructor of ansaldo? | CREATE TABLE table_60592 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
) | SELECT "Name" FROM table_60592 WHERE "Winning constructor" = 'ansaldo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3390,
357,
41,
96,
23954,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
2535,
121,
1499,
6,
96,
518,
10503,
6774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
3328,
3390,
357,
549,
17444,
427,
96,
518,
10503,
6774,
127,
121,
3274,
3,
31,
3247,
138,
26,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What record has c. j. miles (20) in the high points? | CREATE TABLE table_29872 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_29872 WHERE "High points" = 'C. J. Miles (20)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4225,
357,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
7621,
121,
21680,
953,
834,
3166,
4225,
357,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
254,
5,
446,
5,
11705,
7,
17543,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those records from the products and each product's manufacturer, show me about the distribution of name and revenue , and group by attribute name in a bar chart, order in descending by the y-axis. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T2.Revenue DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23954,
6,
332,
4416,
1649,
15098,
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,
5... |
Which 2009/10 has a 2005/06 of not held, and a 2010/11 of not held? | CREATE TABLE table_37819 (
"2005/ 06" text,
"2006/ 07" text,
"2007/ 08" text,
"2008/ 09" text,
"2009/ 10" text,
"2010/ 11" text,
"2011/ 12" text,
"2012/ 13" text
) | SELECT "2009/ 10" FROM table_37819 WHERE "2005/ 06" = 'not held' AND "2010/ 11" = 'not held' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3940,
2294,
41,
96,
22594,
87,
13574,
121,
1499,
6,
96,
21196,
87,
10668,
121,
1499,
6,
96,
20615,
87,
12046,
121,
1499,
6,
96,
16128,
87,
14146,
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,
1... | [
3,
23143,
14196,
96,
16660,
87,
335,
121,
21680,
953,
834,
519,
3940,
2294,
549,
17444,
427,
96,
22594,
87,
13574,
121,
3274,
3,
31,
2264,
1213,
31,
3430,
96,
14926,
87,
850,
121,
3274,
3,
31,
2264,
1213,
31,
1,
-100,
-100,
-100,
... |
What party did hilda solis represent? | CREATE TABLE table_1805191_6 (
party VARCHAR,
incumbent VARCHAR
) | SELECT party FROM table_1805191_6 WHERE incumbent = "Hilda Solis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
5553,
4729,
834,
948,
41,
1088,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1088,
410,
3,
107,
173,
26,
9,
9467,
159,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
20829,
5553,
4729,
834,
948,
549,
17444,
427,
28406,
3274,
96,
566,
173,
26,
9,
5175,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112 | CREATE TABLE table_name_12 (declination___j2000__ VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR) | SELECT declination___j2000__ FROM table_name_12 WHERE apparent_magnitude > 10.4 AND ngc_number = 5112 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
221,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
584,
4280,
28027,
6,
10320,
834,
7493,
29,
20341,
584,
4280,
28027,
6,
3,
1725,
75,
834,
5525,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
10320,
834,
7493,
29,
20341,
2490,
5477,
591,
3430,
3,
1725,
75,
834,
5525,
1152,
3274,
11696,
2122,
1,
-100,
-... |
what is the number of clubs that were founded after 1950 ? | CREATE TABLE table_204_959 (
id number,
"club" text,
"founded" number,
"nickname" text,
"location" text,
"home ground" text,
"entered competition" number,
"most recent promotion" number
) | SELECT COUNT("club") FROM table_204_959 WHERE "founded" > 1950 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3301,
1298,
41,
3,
23,
26,
381,
6,
96,
13442,
121,
1499,
6,
96,
23329,
121,
381,
6,
96,
11191,
4350,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
5515,
1591,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13442,
8512,
21680,
953,
834,
26363,
834,
3301,
1298,
549,
17444,
427,
96,
23329,
121,
2490,
10247,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is his low win total when he has over 3 top 25s and under 9 cuts made? | CREATE TABLE table_name_95 (
wins INTEGER,
top_25 VARCHAR,
cuts_made VARCHAR
) | SELECT MIN(wins) FROM table_name_95 WHERE top_25 = 3 AND cuts_made < 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
9204,
3,
21342,
17966,
6,
420,
834,
1828,
584,
4280,
28027,
6,
8620,
834,
4725,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
112,
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,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
420,
834,
1828,
3274,
220,
3430,
8620,
834,
4725,
3,
2,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the group d winner for modena? | CREATE TABLE table_16656 (
"Season" text,
"Group A Winner" text,
"Group B Winner" text,
"Group C Winner" text,
"Group D Winner" text
) | SELECT "Group D Winner" FROM table_16656 WHERE "Group B Winner" = 'Modena' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26811,
4834,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
27247,
71,
18125,
121,
1499,
6,
96,
27247,
272,
18125,
121,
1499,
6,
96,
27247,
205,
18125,
121,
1499,
6,
96,
2724... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27247,
309,
18125,
121,
21680,
953,
834,
26811,
4834,
549,
17444,
427,
96,
27247,
272,
18125,
121,
3274,
3,
31,
15594,
35,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the pos from 2003, and the f event? | CREATE TABLE table_name_64 (pos VARCHAR, year VARCHAR, event VARCHAR) | SELECT pos FROM table_name_64 WHERE year = "2003" AND event = "f" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
2748,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
2748,
45,
3888,
6,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2748,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
215,
3274,
96,
23948,
121,
3430,
605,
3274,
96,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what team has a score of 11 | CREATE TABLE table_name_3 (record VARCHAR, game VARCHAR) | SELECT record FROM table_name_3 WHERE game = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
60,
7621,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
372,
65,
3,
9,
2604,
13,
850,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
467,
3274,
850,
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,
... |
Who was the champion in the game played at the St. Andrews Links with Dick Chapman as the runner-up? | CREATE TABLE table_name_87 (champion VARCHAR, runner_up VARCHAR, venue VARCHAR) | SELECT champion FROM table_name_87 WHERE runner_up = "dick chapman" AND venue = "st. andrews links" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
17788,
12364,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
6336,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6336,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
26,
3142,
15064,
348,
121,
3430,
5669,
3274,
96,
7,
17,
5,
11,
60,
210,
7,
2416,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the average clean and jerk for snatch of 140 and total kg less than 315 | CREATE TABLE table_77710 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & jerk" real,
"Total (kg)" real
) | SELECT AVG("Clean & jerk") FROM table_77710 WHERE "Snatch" = '140' AND "Total (kg)" < '315' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26225,
1714,
41,
96,
23954,
121,
1499,
6,
96,
279,
9666,
9378,
121,
490,
6,
96,
134,
29,
14547,
121,
490,
6,
96,
254,
109,
152,
3,
184,
3,
12488,
157,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
254,
109,
152,
3,
184,
3,
12488,
157,
8512,
21680,
953,
834,
26225,
1714,
549,
17444,
427,
96,
134,
29,
14547,
121,
3274,
3,
31,
22012,
31,
3430,
96,
3696,
1947,
41,
8711,
61,
121,
3,
2,
3,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.