NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the date for the United Kingdom with an LP format? | CREATE TABLE table_60113 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue #" text
) | SELECT "Date" FROM table_60113 WHERE "Country" = 'united kingdom' AND "Format" = 'lp' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
20522,
41,
96,
10628,
651,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
10384,
1713,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3328,
20522,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
14740,
31,
3430,
96,
3809,
3357,
121,
3274,
3,
31,
40,
102,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the average grid number for cars that retired due to engine failure before 18 laps? | CREATE TABLE table_name_69 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT AVG(grid) FROM table_name_69 WHERE time_retired = "engine" AND laps < 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
3496,
26,
3,
21342,
17966,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
20165,
121,
3430,
14941,
7,
3,
2,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the average of code , and group by attribute name, and I want to rank from low to high by the x 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, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | [
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,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5411,
2... |
What is the Score of the tournament played on Clay Surface against Pablo Martin-Adalia? | CREATE TABLE table_name_97 (score VARCHAR, surface VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_97 WHERE surface = "clay" AND opponent = "pablo martin-adalia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
7,
9022,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
13,
8,
5892,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
15264,
3274,
96,
102,
9,
4672,
3157,
17,
77,
18,
9,
26,
5434,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Ratio has a Similar ISO A size of a3? | CREATE TABLE table_name_76 (
ratio INTEGER,
similar_iso_a_size VARCHAR
) | SELECT AVG(ratio) FROM table_name_76 WHERE similar_iso_a_size = "a3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
5688,
3,
21342,
17966,
6,
1126,
834,
159,
32,
834,
9,
834,
7991,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6455,
23,
32,
65,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6850,
32,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1126,
834,
159,
32,
834,
9,
834,
7991,
3274,
96,
9,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many airport with rank being 4 | CREATE TABLE table_13836704_9 (airport VARCHAR, rank VARCHAR) | SELECT COUNT(airport) FROM table_13836704_9 WHERE rank = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
3420,
2518,
591,
834,
1298,
41,
2256,
1493,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
3761,
28,
11003,
271,
314,
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,
2847,
17161,
599,
2256,
1493,
61,
21680,
953,
834,
22744,
3420,
2518,
591,
834,
1298,
549,
17444,
427,
11003,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
significant cerebrovascular disease | CREATE TABLE table_train_96 (
"id" int,
"gender" string,
"elevated_creatinine" float,
"diabetic" string,
"cerebrovascular_disease" bool,
"moca_score" int,
"parkinsonism" bool,
"NOUSE" float
) | SELECT * FROM table_train_96 WHERE cerebrovascular_disease = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4314,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
15,
10912,
920,
834,
5045,
144,
77,
630,
121,
3,
12660,
6,
96,
26,
23,
9,
346,
1225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4314,
549,
17444,
427,
14486,
5702,
15100,
834,
26,
159,
14608,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the longitude named zipaltonal fluctus in 1997 with a diameter smaller than 490? | CREATE TABLE table_name_41 (
longitude VARCHAR,
name VARCHAR,
year_named VARCHAR,
diameter__km_ VARCHAR
) | SELECT longitude FROM table_name_41 WHERE year_named = 1997 AND diameter__km_ < 490 AND name = "zipaltonal fluctus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
307,
20341,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
215,
834,
4350,
26,
584,
4280,
28027,
6,
9260,
834,
834,
5848,
834,
584,
4280,
28027,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
307,
20341,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
215,
834,
4350,
26,
3274,
6622,
3430,
9260,
834,
834,
5848,
834,
3,
2,
314,
2394,
3430,
564,
3274,
96,
13453,
2920,
9533,
23460,
7,
121,
1,
-100,
-100,
... |
Which Platforms have a Hazmat of , and a Type of urban & rural, and a Brigade of lara? | CREATE TABLE table_8399 (
"Brigade" text,
"Staffing" text,
"Type" text,
"Location" text,
"Pumpers" real,
"Tankers" real,
"Telebooms" text,
"Platforms" text,
"Cars" text,
"Hazmat" text
) | SELECT "Platforms" FROM table_8399 WHERE "Hazmat" = '–' AND "Type" = 'urban & rural' AND "Brigade" = 'lara' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4591,
3264,
41,
96,
279,
3380,
9,
221,
121,
1499,
6,
96,
134,
17,
4127,
53,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
345,
440,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10146,
2032,
7,
121,
21680,
953,
834,
4591,
3264,
549,
17444,
427,
96,
566,
9,
172,
3357,
121,
3274,
3,
31,
104,
31,
3430,
96,
25160,
121,
3274,
3,
31,
19413,
3,
184,
5372,
31,
3430,
96,
279,
3380,
9,
221,
... |
For those employees who did not have any job in the past, give me the comparison about the average of manager_id over the job_id , and group by attribute job_id, could you order X from high to low order? | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_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... | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
2168... |
List all home teams when Western Kentucky was the visiting team. | CREATE TABLE table_29078 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
) | SELECT "Home team" FROM table_29078 WHERE "Visiting team" = 'Western Kentucky' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23838,
3940,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
30338,
372,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
279,
8635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
23838,
3940,
549,
17444,
427,
96,
30338,
372,
121,
3274,
3,
31,
1326,
13072,
13401,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the attendance for the match where cambridge united was the home team? | CREATE TABLE table_name_55 (attendance VARCHAR, home_team VARCHAR) | SELECT attendance FROM table_name_55 WHERE home_team = "cambridge united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
15116,
663,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
21,
8,
1588,
213,
5511,
9818,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
234,
834,
11650,
3274,
96,
6527,
9818,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the checking balance and saving balance in the Brown s account. | CREATE TABLE checking (
balance VARCHAR,
custid VARCHAR
)
CREATE TABLE savings (
balance VARCHAR,
custid VARCHAR
)
CREATE TABLE accounts (
custid VARCHAR,
name VARCHAR
) | SELECT T2.balance, T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6450,
41,
2109,
584,
4280,
28027,
6,
123,
2248,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5051,
41,
2109,
584,
4280,
28027,
6,
123,
2248,
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... | [
3,
23143,
14196,
332,
4416,
3849,
663,
6,
332,
5787,
3849,
663,
21680,
3744,
6157,
332,
536,
3,
15355,
3162,
6450,
6157,
332,
357,
9191,
332,
5411,
1071,
2248,
26,
3274,
332,
4416,
1071,
2248,
26,
3,
15355,
3162,
5051,
6157,
332,
51... |
What is the Challenge Cup total with a League of 1, Player Simon Storey, and a Total greater than 1? | CREATE TABLE table_name_90 (challenge_cup INTEGER, total VARCHAR, league VARCHAR, player VARCHAR) | SELECT SUM(challenge_cup) FROM table_name_90 WHERE league = 1 AND player = "simon storey" AND total > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
12654,
40,
35,
397,
834,
4658,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
12654,
40,
35,
397,
834,
4658,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
5533,
3274,
209,
3430,
1959,
3274,
96,
28348,
29,
1078,
63,
121,
3430,
792,
2490,
209,
1,
-100,
-100,
-100,
-100,... |
What is the highest earnings for Tom watson who had a ranking larger than 2? | CREATE TABLE table_name_26 (earnings___ INTEGER, player VARCHAR, rank VARCHAR) | SELECT MAX(earnings___) AS $__ FROM table_name_26 WHERE player = "tom watson" AND rank > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
2741,
29,
53,
7,
834,
834,
834,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2741,
29,
53,
7,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1959,
3274,
96,
235,
51,
8036,
17,
739,
121,
3430,
11003,
2490,
204,
1,
-100,
-100,
-100,
... |
Name the attendace for 23 round | CREATE TABLE table_21269143_1 (
attendance VARCHAR,
round VARCHAR
) | SELECT attendance FROM table_21269143_1 WHERE round = "23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
3951,
25133,
834,
536,
41,
11364,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2467,
3302,
21,
1902,
1751,
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,
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,
11364,
21680,
953,
834,
24837,
3951,
25133,
834,
536,
549,
17444,
427,
1751,
3274,
96,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In which week was the game played on October 12, 1975 and the crowd was larger than 44,043? | CREATE TABLE table_name_15 (
week VARCHAR,
date VARCHAR,
attendance VARCHAR
) | SELECT COUNT(week) FROM table_name_15 WHERE date = "october 12, 1975" AND attendance > 44 OFFSET 043 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
471,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
471,
47,
8,
467,
1944,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8041,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
10440,
16312,
121,
3430,
11364,
2490,
8537,
3,
15316,
20788,
11484,
519,
1,
-100,
-100,
-100,
-100,
-100... |
what is the number of patients whose gender is f and days of hospital stay is greater than 1? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.days_stay > "1" | [
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,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
96,
536,
121,
1,
-100,... |
Find the id and first name of the student that has the most number of assessment notes? | CREATE TABLE Students (first_name VARCHAR, student_id VARCHAR); CREATE TABLE Assessment_Notes (student_id VARCHAR) | SELECT T1.student_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4375,
41,
14672,
834,
4350,
584,
4280,
28027,
6,
1236,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
15186,
834,
10358,
15,
7,
41,
8637,
295,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8637,
295,
834,
23,
26,
6,
332,
4416,
14672,
834,
4350,
21680,
15186,
834,
10358,
15,
7,
6157,
332,
536,
3,
15355,
3162,
4375,
6157,
332,
357,
9191,
332,
5411,
8637,
295,
834,
23,
26,
3274,
332,
4416,
8... |
What year was there a lotus 25 Chassis? | CREATE TABLE table_name_47 (
year VARCHAR,
chassis VARCHAR
) | SELECT year FROM table_name_47 WHERE chassis = "lotus 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
132,
3,
9,
418,
302,
944,
4004,
6500,
7,
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,
215,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
22836,
3274,
96,
3171,
302,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which winning song had a debut album in progress? | CREATE TABLE table_name_32 (
winning_song VARCHAR,
debut_album VARCHAR
) | SELECT winning_song FROM table_name_32 WHERE debut_album = "in progress" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
3447,
834,
7,
2444,
584,
4280,
28027,
6,
5695,
834,
23703,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3447,
2324,
141,
3,
9,
5695,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
7,
2444,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
5695,
834,
23703,
3274,
96,
77,
2188,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which area 1996 km has a pop 1999 of 17,510, and an area 2006 km larger than 30? | CREATE TABLE table_name_91 (
area_1996_km² INTEGER,
pop_1999 VARCHAR,
area_2006_km² VARCHAR
) | SELECT MAX(area_1996_km²) FROM table_name_91 WHERE pop_1999 = "17,510" AND area_2006_km² > 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
616,
834,
2294,
4314,
834,
5848,
357,
3,
21342,
17966,
6,
2783,
834,
2294,
3264,
584,
4280,
28027,
6,
616,
834,
21196,
834,
5848,
357,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
498,
834,
2294,
4314,
834,
5848,
7318,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2783,
834,
2294,
3264,
3274,
96,
2517,
6,
25926,
121,
3430,
616,
834,
21196,
834,
5848,
357,
2490,
604,
1,
-100... |
Bar chart x axis type y axis the total number | CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) | SELECT Type, COUNT(*) FROM ship GROUP BY Type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
868,
485,
1499,
6,
8475,
9761,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
2847,
17161,
599,
1935,
61,
21680,
4383,
350,
4630,
6880,
272,
476,
6632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Result of the game after Week 10 against Philadelphia Eagles? | CREATE TABLE table_name_26 (result VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_26 WHERE week > 10 AND opponent = "philadelphia eagles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
20119,
13,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
471,
2490,
335,
3430,
15264,
3274,
96,
18118,
15311,
11692,
9,
3,
15,
9,
3537,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Interregnum ended for Count Palatine of Saxony of john george ii, elector of saxony? | CREATE TABLE table_53877 (
"Interregnum began" text,
"Interregnum ended" text,
"Duration" text,
"Count Palatine of Saxony" text,
"Count Palatine of the Rhine" text
) | SELECT "Interregnum ended" FROM table_53877 WHERE "Count Palatine of Saxony" = 'john george ii, elector of saxony' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
27697,
41,
96,
17555,
60,
122,
5525,
1553,
121,
1499,
6,
96,
17555,
60,
122,
5525,
3492,
121,
1499,
6,
96,
12998,
2661,
121,
1499,
6,
96,
10628,
14294,
4070,
13,
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,
17555,
60,
122,
5525,
3492,
121,
21680,
953,
834,
4867,
27697,
549,
17444,
427,
96,
10628,
14294,
4070,
13,
3,
30004,
63,
121,
3274,
3,
31,
27341,
873,
1677,
15,
3,
23,
23,
6,
11924,
127,
13,
3,
7,
9,
226,
... |
find the number of medicines offered by each trade. | CREATE TABLE medicine (trade_name VARCHAR) | SELECT trade_name, COUNT(*) FROM medicine GROUP BY trade_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
41,
16628,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
253,
8,
381,
13,
16766,
1860,
57,
284,
1668,
5,
1,
0,
0,
0,
0,
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,
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,
0,
0,
0... | [
3,
23143,
14196,
1668,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
4404,
350,
4630,
6880,
272,
476,
1668,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the Team which has a Time/Retired of contact, and a Grid smaller than 17? | CREATE TABLE table_46935 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" text
) | SELECT "Team" FROM table_46935 WHERE "Time/Retired" = 'contact' AND "Grid" < '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3951,
2469,
41,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
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,
96,
18699,
121,
21680,
953,
834,
591,
3951,
2469,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
27608,
31,
3430,
96,
13313,
26,
121,
3,
2,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
which country had the least bronze medals ? | CREATE TABLE table_203_377 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_203_377 ORDER BY "bronze" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
4013,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
121,
21680,
953,
834,
23330,
834,
519,
4013,
4674,
11300,
272,
476,
96,
13711,
776,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the 2nd leg result when team 2 is Morocco? | CREATE TABLE table_name_16 (
team_2 VARCHAR
) | SELECT 2 AS nd_leg FROM table_name_16 WHERE team_2 = "morocco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
372,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
204,
727,
4553,
741,
116,
372,
204,
19,
25559,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
204,
6157,
3,
727,
834,
5772,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
372,
834,
357,
3274,
96,
2528,
13377,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What type of surface was played on when julie halard-decugis was the partner on October 8, 2000? | CREATE TABLE table_37360 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Surface" FROM table_37360 WHERE "Partner" = 'julie halard-decugis' AND "Date" = 'october 8, 2000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
19208,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
667,
102,
9977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
4861,
121,
21680,
953,
834,
4118,
19208,
549,
17444,
427,
96,
13725,
687,
121,
3274,
3,
31,
2047,
1896,
3,
3828,
986,
18,
221,
75,
25297,
7,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
... |
What is the CB CW of the song which has a BB Pop of 11? | CREATE TABLE table_name_73 (cb_cw VARCHAR, bb_pop VARCHAR) | SELECT cb_cw FROM table_name_73 WHERE bb_pop = "11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
75,
115,
834,
75,
210,
584,
4280,
28027,
6,
3,
115,
115,
834,
9791,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
205,
279,
3,
181... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
75,
115,
834,
75,
210,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
3,
115,
115,
834,
9791,
3274,
96,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the L1 Cache, when the Model Number is X5-133 ADY? | CREATE TABLE table_49745 (
"Model number" text,
"Frequency" text,
"L1 Cache" text,
"Mult." real,
"Voltage" text
) | SELECT "L1 Cache" FROM table_49745 WHERE "Model number" = 'x5-133 ady' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4327,
2128,
41,
96,
24663,
381,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
434,
536,
205,
4933,
121,
1499,
6,
96,
329,
83,
17,
535,
490,
6,
96,
22803... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
536,
205,
4933,
121,
21680,
953,
834,
591,
4327,
2128,
549,
17444,
427,
96,
24663,
381,
121,
3274,
3,
31,
226,
755,
18,
22974,
3,
9,
26,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year did Canada get a silver in the olympics in the Men's Coxless Pair event? | CREATE TABLE table_name_65 (
year INTEGER,
event VARCHAR,
championship VARCHAR,
nation VARCHAR,
result VARCHAR
) | SELECT MIN(year) FROM table_name_65 WHERE nation = "canada" AND result = "silver" AND championship = "olympics" AND event = "men's coxless pair" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
215,
3,
21342,
17966,
6,
605,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
2982,
3274,
96,
658,
18089,
121,
3430,
741,
3274,
96,
7,
173,
624,
121,
3430,
10183,
3274,
96,
32,
120,
51,
6174,
7,
121,
3430,
605,
3274... |
What day was the opposing team Australia and the against 25? | CREATE TABLE table_name_77 (date VARCHAR, against VARCHAR, opposing_teams VARCHAR) | SELECT date FROM table_name_77 WHERE against = 25 AND opposing_teams = "australia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
5522,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
47,
8,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
581,
3274,
944,
3430,
10720,
53,
834,
11650,
7,
3274,
96,
2064,
8792,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many caps does Jon Dahl Tomasson, who has less than 0.46 goals per match, have? | CREATE TABLE table_name_97 (caps VARCHAR, name VARCHAR, goals_per_match VARCHAR) | SELECT COUNT(caps) FROM table_name_97 WHERE name = "jon dahl tomasson" AND goals_per_match < 0.46 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
4010,
7,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
1766,
834,
883,
834,
19515,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
16753,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4010,
7,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
564,
3274,
96,
15429,
836,
107,
40,
12,
2754,
739,
121,
3430,
1766,
834,
883,
834,
19515,
3,
2,
4097,
4448,
1,
-100,
-100,
-100,
-1... |
What is the most common mill type, and how many are there? | CREATE TABLE bridge (
architect_id number,
id number,
name text,
location text,
length_meters number,
length_feet number
)
CREATE TABLE architect (
id text,
name text,
nationality text,
gender text
)
CREATE TABLE mill (
architect_id number,
id number,
location text,... | SELECT type, COUNT(*) FROM mill GROUP BY type ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4716,
41,
13188,
834,
23,
26,
381,
6,
3,
23,
26,
381,
6,
564,
1499,
6,
1128,
1499,
6,
2475,
834,
4401,
7,
381,
6,
2475,
834,
89,
15,
15,
17,
381,
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,
686,
6,
2847,
17161,
599,
1935,
61,
21680,
3293,
350,
4630,
6880,
272,
476,
686,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many Seat Orders (Right to Left) have a Series 3 of deborah meaden? | CREATE TABLE table_name_83 (seat_order__right_to_left_ VARCHAR, series_3 VARCHAR) | SELECT COUNT(seat_order__right_to_left_) FROM table_name_83 WHERE series_3 = "deborah meaden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
7,
1544,
834,
9397,
834,
834,
3535,
834,
235,
834,
17068,
834,
584,
4280,
28027,
6,
939,
834,
519,
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,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
7,
1544,
834,
9397,
834,
834,
3535,
834,
235,
834,
17068,
834,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
939,
834,
519,
3274,
96,
221,
6693,
9,
107,
140,
9,
537,
121,
1,
-100,
-100,
... |
What is the average agricultural panel of the composition with a labour panel less than 6, more than 0 nominations by Taoiseach, and a total less than 4? | CREATE TABLE table_name_62 (agricultural_panel INTEGER, total VARCHAR, labour_panel VARCHAR, nominated_by_the_taoiseach VARCHAR) | SELECT AVG(agricultural_panel) FROM table_name_62 WHERE labour_panel < 6 AND nominated_by_the_taoiseach > 0 AND total < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
9,
3496,
14700,
834,
28726,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
12568,
834,
28726,
584,
4280,
28027,
6,
150,
1109,
920,
834,
969,
834,
532,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
9,
3496,
14700,
834,
28726,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
12568,
834,
28726,
3,
2,
431,
3430,
150,
1109,
920,
834,
969,
834,
532,
834,
17,
9,
32,
159,
15,
1836,
2490,
3,
... |
What was the listed attendance when north melbourne was the home team? | CREATE TABLE table_32683 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_32683 WHERE "Home team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
3651,
519,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
3623,
26,
121,
21680,
953,
834,
2668,
3651,
519,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the score when the home team is sunderland? | CREATE TABLE table_name_91 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_91 WHERE home_team = "sunderland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
7,
9022,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2604,
116,
8,
234,
372,
19,
1997,
221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
7248,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
body _ mass index greater than or equal to 25 | CREATE TABLE table_train_221 (
"id" int,
"gender" string,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_221 WHERE body_mass_index_bmi >= 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
2658,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
6965,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
121,
3,
12660,
6,
96,
545,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
357,
2658,
549,
17444,
427,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
2490,
2423,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the dates where the versus team is South Africa? | CREATE TABLE table_21907770_4 (date VARCHAR, versus VARCHAR) | SELECT date FROM table_21907770_4 WHERE versus = "South Africa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
11776,
4013,
2518,
834,
591,
41,
5522,
584,
4280,
28027,
6,
3,
8911,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
5128,
213,
8,
3,
8911,
372,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
357,
11776,
4013,
2518,
834,
591,
549,
17444,
427,
3,
8911,
3274,
96,
22081,
2648,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score of the game that had a loss of Williams (1-1)? | CREATE TABLE table_name_48 (
score VARCHAR,
loss VARCHAR
) | SELECT score FROM table_name_48 WHERE loss = "williams (1-1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
2604,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
24,
141,
3,
9,
1453,
13,
6060,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1453,
3274,
96,
8894,
23,
265,
7,
4077,
18,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which song is from Volume:Issue 64:11-12? | CREATE TABLE table_34330 (
"Volume:Issue" text,
"Issue date" text,
"Weeks on numbe one" text,
"Song" text,
"Artist(s)" text
) | SELECT "Song" FROM table_34330 WHERE "Volume:Issue" = '64:11-12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
17225,
41,
96,
22803,
440,
15,
10,
196,
7,
7,
76,
15,
121,
1499,
6,
96,
196,
7,
7,
76,
15,
833,
121,
1499,
6,
96,
1326,
16789,
30,
3,
5525,
346,
80,
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,
134,
2444,
121,
21680,
953,
834,
3710,
17225,
549,
17444,
427,
96,
22803,
440,
15,
10,
196,
7,
7,
76,
15,
121,
3274,
3,
31,
4389,
10,
2596,
5947,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which crime rate per 1,000 people is associated with a cost per capita of $152? | CREATE TABLE table_17628 (
"Municipality" text,
"Population" real,
"Police officers" real,
"Residents per officer" real,
"Total costs (2005)" text,
"Cost per capita" text,
"Case burden" real,
"Crime rate per 1,000 people" real,
"Police force" text
) | SELECT MAX("Crime rate per 1,000 people") FROM table_17628 WHERE "Cost per capita" = '$152' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26782,
2577,
41,
96,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
8931,
867,
5803,
121,
490,
6,
96,
1649,
7,
4215,
7,
399,
5502,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
254,
5397,
15,
1080,
399,
11668,
151,
8512,
21680,
953,
834,
26782,
2577,
549,
17444,
427,
96,
254,
3481,
399,
23219,
121,
3274,
3,
31,
3229,
26320,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the opponent when the round was more than 2? | CREATE TABLE table_name_30 (
opponent VARCHAR,
round INTEGER
) | SELECT opponent FROM table_name_30 WHERE round > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
15264,
584,
4280,
28027,
6,
1751,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
116,
8,
1751,
47,
72,
145,
204,
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,
15264,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1751,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On which date after week 11 was the opponent the arizona cardinals? | CREATE TABLE table_48421 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Date" FROM table_48421 WHERE "Week" > '11' AND "Opponent" = 'arizona cardinals' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
591,
2658,
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,
308,
342,
121,
21680,
953,
834,
3707,
591,
2658,
549,
17444,
427,
96,
518,
10266,
121,
2490,
3,
31,
2596,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
1665,
8892,
9,
895,
10270,
7,
31,
1,
-100,
-100,
-100... |
What is the sector when the population change 2002-2012 (%) is 79.6? | CREATE TABLE table_12496904_1 (
sector VARCHAR,
population_change_2002_2012___percentage_ VARCHAR
) | SELECT sector FROM table_12496904_1 WHERE population_change_2002_2012___percentage_ = "79.6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
3647,
3951,
6348,
834,
536,
41,
2393,
584,
4280,
28027,
6,
2074,
834,
13073,
834,
24898,
834,
12172,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
3,
61,
3,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2393,
21680,
953,
834,
2122,
3647,
3951,
6348,
834,
536,
549,
17444,
427,
2074,
834,
13073,
834,
24898,
834,
12172,
834,
834,
834,
883,
3728,
545,
834,
3274,
96,
4440,
5,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
In which round was Jerry Butler chosen? | CREATE TABLE table_8947 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
) | SELECT "Round" FROM table_8947 WHERE "Player" = 'jerry butler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3914,
4177,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
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,
0,
0... | [
3,
23143,
14196,
96,
448,
32,
1106,
121,
21680,
953,
834,
3914,
4177,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
12488,
651,
68,
1171,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the home record for the Auxerre club? | CREATE TABLE table_62613 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"Home" text,
"Away" text,
"Aggregate" text
) | SELECT "Home" FROM table_62613 WHERE "Club" = 'auxerre' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2688,
2368,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
19040,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
948,
2688,
2368,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
1724,
49,
60,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Points have a Drawn larger than 1? | CREATE TABLE table_36136 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT AVG("Points") FROM table_36136 WHERE "Drawn" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
23459,
41,
96,
23055,
7,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
22512,
7,
1750,
121,
1499,
6,
96,
22512,
7,
121,
490,
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,
71,
17217,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3420,
23459,
549,
17444,
427,
96,
308,
10936,
29,
121,
2490,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago Freight Car Leasing Australia? | CREATE TABLE table_name_90 (
serial_no VARCHAR,
entered_service VARCHAR,
owner VARCHAR
) | SELECT serial_no FROM table_name_90 WHERE entered_service = "november 1984" AND owner = "chicago freight car leasing australia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
10501,
834,
29,
32,
584,
4280,
28027,
6,
5136,
834,
5114,
584,
4280,
28027,
6,
2527,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10501,
834,
29,
32,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
5136,
834,
5114,
3274,
96,
5326,
18247,
13480,
121,
3430,
2527,
3274,
96,
1436,
658,
839,
17746,
443,
21209,
23407,
121,
1,
-100,
-100,
-100,
-100... |
How many times did li ju win the womens singles and wang liqin win the mens singles? | CREATE TABLE table_28138035_6 (
womens_doubles VARCHAR,
womens_singles VARCHAR,
mens_singles VARCHAR
) | SELECT COUNT(womens_doubles) FROM table_28138035_6 WHERE womens_singles = "Li Ju" AND mens_singles = "Wang Liqin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2368,
2079,
2469,
834,
948,
41,
887,
7,
834,
25761,
7,
584,
4280,
28027,
6,
887,
7,
834,
7,
53,
965,
584,
4280,
28027,
6,
1076,
7,
834,
7,
53,
965,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
210,
32,
904,
7,
834,
25761,
7,
61,
21680,
953,
834,
2577,
2368,
2079,
2469,
834,
948,
549,
17444,
427,
887,
7,
834,
7,
53,
965,
3274,
96,
434,
23,
3736,
121,
3430,
1076,
7,
834,
7,
53,
965,
... |
How many years did the soap opera run in which the character Clemens Richter was included? | CREATE TABLE table_name_2 (
duration VARCHAR,
character VARCHAR
) | SELECT duration FROM table_name_2 WHERE character = "clemens richter" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
8659,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
410,
8,
10758,
6329,
661,
16,
84,
8,
1848,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8659,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1848,
3274,
96,
2482,
904,
7,
2354,
449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
bleeding / hemorrhage as likely cause of hypotension | CREATE TABLE table_train_7 (
"id" int,
"bleeding" int,
"hypotension" bool,
"burn_injury" int,
"hypoperfusion" bool,
"hypertension" bool,
"age" float,
"lactate" int,
"NOUSE" float
) | SELECT * FROM table_train_7 WHERE bleeding = 1 OR hypotension = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
940,
41,
96,
23,
26,
121,
16,
17,
6,
96,
27779,
53,
121,
16,
17,
6,
96,
13397,
32,
13177,
121,
3,
12840,
40,
6,
96,
7223,
834,
77,
10609,
63,
121,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
940,
549,
17444,
427,
19021,
3274,
209,
4674,
10950,
13177,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Headquarter, when Language is English, and when Type is Independent Online News Portal? | CREATE TABLE table_76721 (
"Newspaper/Magazine" text,
"Type" text,
"Language" text,
"Headquarter" text,
"Status" text
) | SELECT "Headquarter" FROM table_76721 WHERE "Language" = 'english' AND "Type" = 'independent online news portal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3708,
2658,
41,
96,
6861,
7,
19587,
87,
24773,
15,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
3845,
9,
26,
19973,
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,
3845,
9,
26,
19973,
121,
21680,
953,
834,
940,
3708,
2658,
549,
17444,
427,
96,
434,
1468,
76,
545,
121,
3274,
3,
31,
4606,
40,
1273,
31,
3430,
96,
25160,
121,
3274,
3,
31,
77,
17631,
367,
1506,
8948,
31,
1,... |
What is the highest Year with a Competition that is new york city marathon? | CREATE TABLE table_41086 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT MAX("Year") FROM table_41086 WHERE "Competition" = 'new york city marathon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24175,
3840,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10358,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
24175,
3840,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
5534,
25453,
690,
17625,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What city had a score of 20 in aigburth after 1907? | CREATE TABLE table_name_76 (city VARCHAR, venue VARCHAR, year VARCHAR, score VARCHAR) | SELECT city FROM table_name_76 WHERE year > 1907 AND score > 20 AND venue = "aigburth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
6726,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
690,
141,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
690,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
215,
2490,
957,
4560,
3430,
2604,
2490,
460,
3430,
5669,
3274,
96,
9,
23,
122,
5808,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the value in 2006 when 2003 was not held and 2012 was A? | CREATE TABLE table_name_40 (Id VARCHAR) | SELECT 2006 FROM table_name_40 WHERE 2003 = "not held" AND 2012 = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
701,
16,
3581,
116,
3888,
47,
59,
1213,
11,
1673,
47,
71,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3581,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
3888,
3274,
96,
2264,
1213,
121,
3430,
1673,
3274,
96,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the s wicket value associated with Shaun Young? | CREATE TABLE table_name_51 (s_wicket VARCHAR, player VARCHAR) | SELECT s_wicket FROM table_name_51 WHERE player = "shaun young" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
7,
834,
5981,
15,
17,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
7,
29719,
701,
1968,
28,
3926,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
7,
834,
5981,
15,
17,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1959,
3274,
96,
7,
1024,
202,
1021,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date was the score 6–4, 7–5? | CREATE TABLE table_name_69 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_69 WHERE score = "6–4, 7–5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
2604,
431,
104,
8525,
489,
104,
755,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
2604,
3274,
96,
948,
104,
8525,
489,
104,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of job_id and the amount of job_id , and group by attribute job_id, and sort JOB_ID in ascending order. | 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(... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID | [
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,
446,
10539,
834,
4309,
6,
2847,
17161,
599,
15355,
279,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,... |
What is the lowest number of laps for ryan newman with over 96 points, a cur number under 24, | CREATE TABLE table_name_49 (
laps INTEGER,
driver VARCHAR,
points VARCHAR,
car__number VARCHAR
) | SELECT MIN(laps) FROM table_name_49 WHERE points > 96 AND car__number < 24 AND driver = "ryan newman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
14941,
7,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
443,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
979,
2490,
3,
4314,
3430,
443,
834,
834,
5525,
1152,
3,
2,
997,
3430,
2535,
3274,
96,
651,
152,
126,
348,
121,
1,
-100,
-100,
-100,
... |
how many patients whose marital status is divorced and lab test category is blood gas? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "DIVORCED" AND lab."CATEGORY" = "Blood Gas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
calculate the minimum age of married patients who had elective type hospital admission. | 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 prescriptions (
subject_id text,
hadm_id... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admission_type = "ELECTIVE" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121... |
What is the average Attendance, when Venue is 'Candlestick Park', and when Date is 'December 27'? | CREATE TABLE table_name_71 (
attendance INTEGER,
venue VARCHAR,
date VARCHAR
) | SELECT AVG(attendance) FROM table_name_71 WHERE venue = "candlestick park" AND date = "december 27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
11364,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
22497,
663,
6,
116... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
5669,
3274,
96,
75,
232,
109,
9656,
2447,
121,
3430,
833,
3274,
96,
221,
75,
18247,
2307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Return a bar chart on how many musicals has each nominee been nominated for?, and could you order the total number in desc order? | CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
) | SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
1983,
127,
834,
4309,
16,
17,
6,
5570,
1499,
6,
22307,
834,
4309,
16,
17,
6,
20087,
1499,
6,
20610,
1499,
6,
1246,
16,
17,
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,
465,
8695,
15,
6,
2847,
17161,
599,
1935,
61,
21680,
4183,
350,
4630,
6880,
272,
476,
465,
8695,
15,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What shows as the format for catalog 11 135? | CREATE TABLE table_name_61 (format VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_61 WHERE catalog = "11 135" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
8995,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1267,
38,
8,
1910,
21,
10173,
850,
209,
2469,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1910,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
10173,
3274,
96,
2596,
1179,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which 2008-12 has a 2007 of A, and a Tournament of us open? | CREATE TABLE table_33985 (
"Tournament" text,
"2006" text,
"2007" text,
"2008-12" text,
"2013" text
) | SELECT "2008-12" FROM table_33985 WHERE "2007" = 'a' AND "Tournament" = 'us open' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3288,
4433,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
5947,
121,
1499,
6,
96,
11138,
121,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16128,
5947,
121,
21680,
953,
834,
519,
3288,
4433,
549,
17444,
427,
96,
20615,
121,
3274,
3,
31,
9,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
302,
539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones, and count them by a bar chart | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
) | SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
14230,
490,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
2847,
17161,
599,
308,
342,
834,
858,
834,
279,
23,
52,
189,
61,
21680,
3,
12290,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
24337,
834,
4309,
... |
Which district had SC reserved and 169 Constituents? | CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) | SELECT district FROM table_name_2 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "169" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
26,
23,
20066,
584,
4280,
28027,
6,
14040,
834,
1161,
834,
834,
834,
7,
75,
834,
834,
834,
7,
17,
834,
834,
29,
782,
834,
584,
4280,
28027,
6,
6439,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3939,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
14040,
834,
1161,
834,
834,
834,
7,
75,
834,
834,
834,
7,
17,
834,
834,
29,
782,
834,
3274,
96,
7,
75,
121,
3430,
6439,
4392,
834,
5525,
1152,
3274,
96,
27... |
What is the average of the player with 124 yards and less than 13 rec.? | CREATE TABLE table_name_16 (
avg INTEGER,
yards VARCHAR,
rec VARCHAR
) | SELECT AVG(avg) FROM table_name_16 WHERE yards = 124 AND rec < 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
3,
9,
208,
122,
3,
21342,
17966,
6,
6460,
584,
4280,
28027,
6,
5026,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
13,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
9,
208,
122,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
6460,
3274,
3,
22504,
3430,
5026,
3,
2,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many total families are there in regions with 5.8 percent of the population being made up of deportees? | CREATE TABLE table_20509 (
"Region of USSR" text,
"Number of families" real,
"Number of people" real,
"Average family size" text,
"% of total deportees" text
) | SELECT COUNT("Number of families") FROM table_20509 WHERE "% of total deportees" = '5.8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
4198,
41,
96,
17748,
23,
106,
13,
837,
6857,
121,
1499,
6,
96,
567,
5937,
49,
13,
1791,
121,
490,
6,
96,
567,
5937,
49,
13,
151,
121,
490,
6,
96,
188,
624,
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,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
567,
5937,
49,
13,
1791,
8512,
21680,
953,
834,
23201,
4198,
549,
17444,
427,
96,
1454,
13,
792,
20,
1493,
15,
15,
7,
121,
3274,
3,
31,
9125,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the first party for Lord John Hay earlier than 1857? | CREATE TABLE table_60784 (
"Year" real,
"First member" text,
"First party" text,
"Second member" text,
"Second party" text
) | SELECT "First party" FROM table_60784 WHERE "Year" < '1857' AND "First member" = 'lord john hay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3940,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
25171,
1144,
121,
1499,
6,
96,
25171,
1088,
121,
1499,
6,
96,
134,
15,
1018,
26,
1144,
121,
1499,
6,
96,
134,
15,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25171,
1088,
121,
21680,
953,
834,
3328,
3940,
591,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2606,
3436,
31,
3430,
96,
25171,
1144,
121,
3274,
3,
31,
322,
26,
3,
27341,
3,
12687,
31,
1,
-100,
-100,
... |
in the drum module td-5 what are the tom-tom pads | CREATE TABLE table_2889300_6 (tom_tom_pads VARCHAR, drum_module VARCHAR) | SELECT tom_tom_pads FROM table_2889300_6 WHERE drum_module = "TD-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3914,
5426,
834,
948,
41,
235,
51,
834,
235,
51,
834,
5612,
7,
584,
4280,
28027,
6,
5253,
834,
22763,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
16,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
51,
834,
235,
51,
834,
5612,
7,
21680,
953,
834,
2577,
3914,
5426,
834,
948,
549,
17444,
427,
5253,
834,
22763,
15,
3274,
96,
10494,
18,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many members does each district have ? | CREATE TABLE table_204_699 (
id number,
"district" text,
"name" text,
"party" text,
"residence" text,
"first served" number
) | SELECT COUNT(*) FROM table_204_699 GROUP BY "district" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
3264,
41,
3,
23,
26,
381,
6,
96,
26,
23,
20066,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
60,
1583,
3772,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
948,
3264,
350,
4630,
6880,
272,
476,
96,
26,
23,
20066,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the series count at for game 5? | CREATE TABLE table_11963601_11 (series VARCHAR, game VARCHAR) | SELECT series FROM table_11963601_11 WHERE game = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4314,
19208,
536,
834,
2596,
41,
10833,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
939,
3476,
44,
21,
467,
305,
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... | [
3,
23143,
14196,
939,
21680,
953,
834,
2596,
4314,
19208,
536,
834,
2596,
549,
17444,
427,
467,
3274,
305,
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 number of states with more than 5 people elected ? | CREATE TABLE table_203_562 (
id number,
"state" text,
"no. of candidates" number,
"no. of elected" number,
"total no. of seats in assembly" number,
"year of election" number
) | SELECT COUNT("state") FROM table_203_562 WHERE "no. of elected" > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4834,
357,
41,
3,
23,
26,
381,
6,
96,
5540,
121,
1499,
6,
96,
29,
32,
5,
13,
4341,
121,
381,
6,
96,
29,
32,
5,
13,
8160,
121,
381,
6,
96,
235,
1947,
150... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5540,
8512,
21680,
953,
834,
23330,
834,
4834,
357,
549,
17444,
427,
96,
29,
32,
5,
13,
8160,
121,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Date has a Distance of 3,000 m? | CREATE TABLE table_38590 (
"Distance" text,
"Time" text,
"Date" text,
"Location" text,
"Notes" text
) | SELECT "Date" FROM table_38590 WHERE "Distance" = '3,000 m' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4433,
2394,
41,
96,
308,
23,
8389,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10358,
15,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
519,
4433,
2394,
549,
17444,
427,
96,
308,
23,
8389,
121,
3274,
3,
31,
11212,
3,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what are the details of the cmi masters that have the cross reference code 'Tax', and count them by a bar chart, could you order in ascending by the x-axis? | CREATE TABLE Customer_Master_Index (
master_customer_id INTEGER,
cmi_details VARCHAR(255)
)
CREATE TABLE Benefits_Overpayments (
council_tax_id INTEGER,
cmi_cross_ref_id INTEGER
)
CREATE TABLE Council_Tax (
council_tax_id INTEGER,
cmi_cross_ref_id INTEGER
)
CREATE TABLE CMI_Cross_References (... | SELECT cmi_details, COUNT(cmi_details) FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax' GROUP BY cmi_details ORDER BY cmi_details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
20608,
834,
26267,
226,
41,
2325,
834,
25697,
49,
834,
23,
26,
3,
21342,
17966,
6,
2446,
23,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2446,
23,
834,
221,
5756,
7,
6,
2847,
17161,
599,
75,
51,
23,
834,
221,
5756,
7,
61,
21680,
7327,
834,
20608,
834,
26267,
226,
6157,
332,
536,
3,
15355,
3162,
205,
7075,
834,
254,
1859,
7,
834,
1649,
11788,
7,
6... |
Tell me the country for lane of 6 | CREATE TABLE table_4328 (
"Heat Rank" real,
"Lane" real,
"Swimmer" text,
"Country" text,
"Time" real,
"Overall Rank" text
) | SELECT "Country" FROM table_4328 WHERE "Lane" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
2577,
41,
96,
3845,
144,
3,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
134,
210,
12174,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
4906,
2577,
549,
17444,
427,
96,
434,
152,
15,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Weeks on Top have an Issue Date(s) of 20 november? | CREATE TABLE table_75169 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" real,
"Song" text,
"Artist" text
) | SELECT SUM("Weeks on Top") FROM table_75169 WHERE "Issue Date(s)" = '20 november' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
27096,
41,
96,
22803,
440,
15,
10,
196,
7,
7,
76,
15,
121,
1499,
6,
96,
196,
7,
7,
76,
15,
7678,
599,
7,
61,
121,
1499,
6,
96,
1326,
16789,
30,
2224,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
1326,
16789,
30,
2224,
8512,
21680,
953,
834,
3072,
27096,
549,
17444,
427,
96,
196,
7,
7,
76,
15,
7678,
599,
7,
61,
121,
3274,
3,
31,
1755,
3,
5326,
18247,
31,
1,
-100,
-100,
-100,
-100,
-1... |
How many project staff worked as leaders or started working before '1989-04-24 23:51:54'? | CREATE TABLE Project_Staff (role_code VARCHAR, date_from VARCHAR) | SELECT COUNT(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2786,
834,
134,
17,
4127,
41,
3491,
15,
834,
4978,
584,
4280,
28027,
6,
833,
834,
7152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
516,
871,
1279,
38,
2440,
42,
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,
2847,
17161,
599,
1935,
61,
21680,
2786,
834,
134,
17,
4127,
549,
17444,
427,
1075,
834,
4978,
3274,
3,
31,
22900,
31,
4674,
833,
834,
7152,
3,
2,
3,
31,
2294,
3914,
18083,
14962,
1902,
10,
5553,
10,
5062,
31,
1,
... |
What was the Tie no when then home team was Stoke City for the game played on 9 February 1946? | CREATE TABLE table_name_19 (tie_no VARCHAR, home_team VARCHAR, date VARCHAR) | SELECT tie_no FROM table_name_19 WHERE home_team = "stoke city" AND date = "9 february 1946" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
17,
23,
15,
834,
29,
32,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6177,
834,
29,
32,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
235,
1050,
690,
121,
3430,
833,
3274,
96,
1298,
29976,
76,
1208,
25021,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the GDP per capita (US$) of the country that has a Population of 2,011,473? | CREATE TABLE table_name_54 (gdp_per_capita__us$_ VARCHAR, population VARCHAR) | SELECT gdp_per_capita__us$_ FROM table_name_54 WHERE population = "2,011,473" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
122,
26,
102,
834,
883,
834,
4010,
155,
9,
834,
834,
302,
3229,
834,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
122,
26,
102,
834,
883,
834,
4010,
155,
9,
834,
834,
302,
3229,
834,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
2074,
3274,
96,
4482,
4542,
4347,
4177,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients whose primary disease is bladder cancer/sda? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BLADDER CANCER/SDA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
8775,
6762,
11300,
205,
15083,
448,
87,
134,
4296,
121,
1,
-100,
-100,... |
What was the prize when the show was aired on Ant1, was presented by Andreas Mikroutsikos, and was launched on March 10, 2003? | CREATE TABLE table_15002 (
"Series" text,
"TV Channel" text,
"Launch Date" text,
"Finale Date" text,
"Days" real,
"The Winner" text,
"The Prize" text,
"The Presenter" text
) | SELECT "The Prize" FROM table_15002 WHERE "TV Channel" = 'ant1' AND "The Presenter" = 'andreas mikroutsikos' AND "Launch Date" = 'march 10, 2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
4305,
41,
96,
12106,
7,
121,
1499,
6,
96,
4562,
9916,
121,
1499,
6,
96,
3612,
202,
524,
7678,
121,
1499,
6,
96,
371,
10270,
15,
7678,
121,
1499,
6,
96,
16803,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
634,
11329,
121,
21680,
953,
834,
12278,
4305,
549,
17444,
427,
96,
4562,
9916,
121,
3274,
3,
31,
288,
536,
31,
3430,
96,
634,
18795,
49,
121,
3274,
3,
31,
232,
864,
7,
3,
20068,
52,
670,
7,
12027,
7,
31,
... |
count the number of patients whose admission year is less than 2197 and lab test fluid is blood? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2197" AND lab.fluid = "Blood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the venue when the score is 1 goal, and the date is August 27, 1980? | CREATE TABLE table_name_94 (
venue VARCHAR,
score VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_94 WHERE score = "1 goal" AND date = "august 27, 1980" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
5669,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
116,
8,
2604,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
2604,
3274,
96,
536,
1288,
121,
3430,
833,
3274,
96,
402,
17198,
14141,
6694,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of times player outcome was runner up ? | CREATE TABLE table_203_220 (
id number,
"outcome" text,
"no." number,
"date" text,
"tournament" text,
"surface" text,
"opponent in the final" text,
"score" text
) | SELECT COUNT(*) FROM table_203_220 WHERE "outcome" = 'runner-up' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
1755,
41,
3,
23,
26,
381,
6,
96,
670,
287,
15,
121,
1499,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
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,
1935,
61,
21680,
953,
834,
23330,
834,
357,
1755,
549,
17444,
427,
96,
670,
287,
15,
121,
3274,
3,
31,
10806,
18,
413,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the player for 7 round | CREATE TABLE table_name_74 (player VARCHAR, round VARCHAR) | SELECT player FROM table_name_74 WHERE round = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
20846,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1959,
21,
489,
1751,
1,
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,
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... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1751,
3274,
489,
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... |
Name the college/junior club team for pick number 63 | CREATE TABLE table_1473672_4 (
college_junior_club_team VARCHAR,
pick__number VARCHAR
) | SELECT college_junior_club_team FROM table_1473672_4 WHERE pick__number = 63 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
3420,
5865,
834,
591,
41,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
21680,
953,
834,
24719,
3420,
5865,
834,
591,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
3,
3891,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose diagnoses short title is hx traumatic fracture? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Hx traumatic fracture" | [
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... |
Who is the visitor at the axa sports center in round 20? | CREATE TABLE table_name_6 (visitor VARCHAR, venue VARCHAR, round VARCHAR) | SELECT visitor FROM table_name_6 WHERE venue = "axa sports center" AND round = 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
3466,
155,
127,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
7019,
44,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
5669,
3274,
96,
9,
226,
9,
2100,
1530,
121,
3430,
1751,
3274,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team was the opponent with a record of 5 0? | CREATE TABLE table_name_94 (
opponent VARCHAR,
record VARCHAR
) | SELECT opponent FROM table_name_94 WHERE record = "5–0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
15264,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
15264,
28,
3,
9,
1368,
13,
305,
3,
632,
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... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1368,
3274,
96,
755,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the total number of points when the vancouver burrards have fewer than 9 losses and more than 24 games? | CREATE TABLE table_name_18 (
points VARCHAR,
team_name VARCHAR,
losses VARCHAR,
games VARCHAR
) | SELECT COUNT(points) FROM table_name_18 WHERE losses < 9 AND games > 24 AND team_name = "vancouver burrards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
979,
584,
4280,
28027,
6,
372,
834,
4350,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
8467,
3,
2,
668,
3430,
1031,
2490,
997,
3430,
372,
834,
4350,
3274,
96,
2132,
3422,
624,
7018,
52,
986,
7,
121,
1,
-100,
-100,
-100... |
What is the Round with 1 Behinds? | CREATE TABLE table_name_50 (
round VARCHAR,
behinds VARCHAR
) | SELECT round FROM table_name_50 WHERE behinds = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
1751,
584,
4280,
28027,
6,
1187,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9609,
28,
209,
17088,
7,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1187,
7,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3? | CREATE TABLE table_name_61 (area_km_2 INTEGER, member_state VARCHAR, population_in_millions VARCHAR) | SELECT MIN(area_km_2) FROM table_name_61 WHERE member_state = "czech republic" AND population_in_millions < 10.3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
498,
834,
5848,
834,
357,
3,
21342,
17966,
6,
1144,
834,
5540,
584,
4280,
28027,
6,
2074,
834,
77,
834,
17030,
7,
584,
4280,
28027,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
498,
834,
5848,
834,
7318,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
1144,
834,
5540,
3274,
96,
75,
776,
524,
20237,
121,
3430,
2074,
834,
77,
834,
17030,
7,
3,
2,
5477,
519,
1,
-100,
-100,... |
What year was the League the malaysian super league, and a Malaysia Cup of group stage? | CREATE TABLE table_name_73 (year VARCHAR, league VARCHAR, malaysia_cup VARCHAR) | SELECT year FROM table_name_73 WHERE league = "malaysian super league" AND malaysia_cup = "group stage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
1201,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
954,
20244,
23,
9,
834,
4658,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
5533,
3274,
96,
1982,
9,
63,
10488,
1355,
5533,
121,
3430,
954,
20244,
23,
9,
834,
4658,
3274,
96,
10739,
1726,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many engines were built with a cylinder size of 20 ½” x 26”, firebox is belpaire and valve gear is from Stephenson? | CREATE TABLE table_25695027_1 (number_built VARCHAR, valve_gear VARCHAR, cylinder_size VARCHAR, firebox VARCHAR) | SELECT number_built FROM table_25695027_1 WHERE cylinder_size = "20 ½” x 26”" AND firebox = "Belpaire" AND valve_gear = "Stephenson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
25188,
2555,
834,
536,
41,
5525,
1152,
834,
16152,
584,
4280,
28027,
6,
9522,
834,
397,
291,
584,
4280,
28027,
6,
3,
12980,
834,
7991,
584,
4280,
28027,
6,
1472,
2689,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
381,
834,
16152,
21680,
953,
834,
19337,
25188,
2555,
834,
536,
549,
17444,
427,
3,
12980,
834,
7991,
3274,
96,
1755,
209,
2,
357,
153,
3,
226,
2208,
153,
121,
3430,
1472,
2689,
3274,
96,
2703,
40,
102,
2378,
121,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.