NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what's the points for with points against being 556 | CREATE TABLE table_19039 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Points for" FROM table_19039 WHERE "Points against" = '556' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
3288,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
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,
22512,
7,
21,
121,
21680,
953,
834,
11776,
3288,
549,
17444,
427,
96,
22512,
7,
581,
121,
3274,
3,
31,
3769,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which venue hosted a race in 1967? | CREATE TABLE table_54244 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Event" text
) | SELECT "Venue" FROM table_54244 WHERE "Year" = '1967' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
357,
3628,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
427,
2169,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
5062,
357,
3628,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3708,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the game played that started at 7:00 p.m.? | CREATE TABLE table_24396664_2 (
game_site VARCHAR,
kickoff VARCHAR
) | SELECT game_site FROM table_24396664_2 WHERE kickoff = "7:00 p.m." | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3288,
3539,
4389,
834,
357,
41,
467,
834,
3585,
584,
4280,
28027,
6,
4583,
1647,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
1944,
24,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
3585,
21680,
953,
834,
2266,
3288,
3539,
4389,
834,
357,
549,
17444,
427,
4583,
1647,
3274,
96,
18735,
3,
102,
5,
51,
535,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the high checkout when played is 2 and 36 is 100+? | CREATE TABLE table_24017 (
"Player" text,
"Played" real,
"Legs Won" real,
"Legs Lost" real,
"LWAT" real,
"100+" real,
"140+" real,
"180s" real,
"High Checkout" real,
"3-dart Average" text
) | SELECT MIN("High Checkout") FROM table_24017 WHERE "Played" = '2' AND "100+" = '36' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
2517,
41,
96,
15800,
49,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
2796,
122,
7,
549,
106,
121,
490,
6,
96,
2796,
122,
7,
19576,
121,
490,
6,
96,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
21417,
1972,
670,
8512,
21680,
953,
834,
11944,
2517,
549,
17444,
427,
96,
15800,
15,
26,
121,
3274,
3,
31,
357,
31,
3430,
96,
2915,
1220,
121,
3274,
3,
31,
3420,
31,
1,
-100,
-100,
-100,
-100,... |
Find the name, type, and flag of the ship that is built in the most recent year. | CREATE TABLE ship (name VARCHAR, TYPE VARCHAR, flag VARCHAR, built_year VARCHAR) | SELECT name, TYPE, flag FROM ship ORDER BY built_year DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
4350,
584,
4280,
28027,
6,
3,
12016,
5668,
584,
4280,
28027,
6,
5692,
584,
4280,
28027,
6,
1192,
834,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
564,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
6,
3,
12016,
5668,
6,
5692,
21680,
4383,
4674,
11300,
272,
476,
1192,
834,
1201,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many people attended the game on December 2, 1951? | CREATE TABLE table_name_69 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_69 WHERE date = "december 2, 1951" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
8,
467,
30,
1882,
3547,
25684,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
3547,
25684,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the minimal amount ($) of the 1st prize in the tournaments in New Mexico? | CREATE TABLE table_16953 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
) | SELECT MIN("1st Prize( $ )") FROM table_16953 WHERE "Location" = 'New Mexico' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27096,
4867,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
345,
3589,
15,
599,
1514,
3,
61,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
536,
7,
17,
11329,
599,
1514,
3,
61,
8512,
21680,
953,
834,
27096,
4867,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
6861,
4726,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which position has a pick less than 41 from Ohio State? | CREATE TABLE table_45214 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"School/Club Team" text
) | SELECT "Position" FROM table_45214 WHERE "Pick" < '41' AND "School/Club Team" = 'ohio state' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
27357,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
2128,
27357,
549,
17444,
427,
96,
345,
3142,
121,
3,
2,
3,
31,
4853,
31,
3430,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
32,
107,
23,
32,
538,
31,
1,
-100,
... |
Where is the free fare zone for the Arena station? | CREATE TABLE table_59135 (
"Station Name" text,
"Opening Year" text,
"Municipality" text,
"Park and Ride Lot" text,
"Free Fare Zone" text
) | SELECT "Free Fare Zone" FROM table_59135 WHERE "Station Name" = 'arena' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
536,
2469,
41,
96,
134,
6821,
5570,
121,
1499,
6,
96,
22696,
53,
2929,
121,
1499,
6,
96,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
26163,
11,
17392,
10805,
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,
16393,
5186,
15,
11628,
121,
21680,
953,
834,
3390,
536,
2469,
549,
17444,
427,
96,
134,
6821,
5570,
121,
3274,
3,
31,
9,
1536,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which game does the quentyn martell have? | CREATE TABLE table_name_54 (game VARCHAR, pov_character VARCHAR) | SELECT game FROM table_name_54 WHERE pov_character = "quentyn martell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
7261,
584,
4280,
28027,
6,
3,
26981,
834,
31886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
467,
405,
8,
3,
19404,
63,
29,
3157,
6714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
3,
26981,
834,
31886,
3274,
96,
19404,
63,
29,
3157,
6714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the highest events when wins is more than 0 and cuts made is more than 14? | CREATE TABLE table_name_64 (
events INTEGER,
wins VARCHAR,
cuts_made VARCHAR
) | SELECT MAX(events) FROM table_name_64 WHERE wins > 0 AND cuts_made > 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
984,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
8620,
834,
4725,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
984,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15,
2169,
7,
61,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
9204,
2490,
3,
632,
3430,
8620,
834,
4725,
2490,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is City of License, when Frequency is greater than 1380? | CREATE TABLE table_59394 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"City of License" text,
"Type" text
) | SELECT "City of License" FROM table_59394 WHERE "Frequency" > '1380' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
3288,
591,
41,
96,
371,
60,
835,
11298,
121,
490,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
18304,
727,
121,
1499,
6,
96,
254,
485,
13,
16452,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
13,
16452,
121,
21680,
953,
834,
3390,
3288,
591,
549,
17444,
427,
96,
371,
60,
835,
11298,
121,
2490,
3,
31,
2368,
2079,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2012 with A in 2009 and 2r in 2010? | CREATE TABLE table_name_96 (Id VARCHAR) | SELECT 2012 FROM table_name_96 WHERE 2009 = "a" AND 2010 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1673,
28,
71,
16,
2464,
11,
204,
52,
16,
2735,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1673,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2464,
3274,
96,
9,
121,
3430,
2735,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result in the year greaters than 2008 with an award of Jahat and had a category of Stacy? | CREATE TABLE table_78769 (
"Year" real,
"Competition" text,
"Awards" text,
"Category" text,
"Result" text
) | SELECT "Result" FROM table_78769 WHERE "Category" = 'stacy' AND "Year" > '2008' AND "Awards" = 'jahat' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
940,
3951,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
188,
2239,
7,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3940,
940,
3951,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
7,
17,
4710,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
16128,
31,
3430,
96,
188,
2239,
7,
121,
3274,
3,... |
What is the score of game 25? | CREATE TABLE table_name_37 (
score VARCHAR,
game VARCHAR
) | SELECT score FROM table_name_37 WHERE game = 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
2604,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
467,
944,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
467,
3274,
944,
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,... |
uncontrolled anxiety or panic disorder | CREATE TABLE table_train_185 (
"id" int,
"dyscrasia" bool,
"bleeding" int,
"panic_disorder" bool,
"renal_disease" bool,
"anxiety" bool,
"creatinine_clearance_cl" float,
"alcohol_abuse" bool,
"retinopathy" bool,
"NOUSE" float
) | SELECT * FROM table_train_185 WHERE anxiety = 1 OR panic_disorder = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
21594,
41,
96,
23,
26,
121,
16,
17,
6,
96,
26,
63,
7,
75,
19867,
9,
121,
3,
12840,
40,
6,
96,
27779,
53,
121,
16,
17,
6,
96,
2837,
447,
834,
26,
159,
939... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21594,
549,
17444,
427,
6261,
3274,
209,
4674,
13647,
834,
26,
159,
9397,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What party did Frank J. Becker represent? | CREATE TABLE table_746 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Party" FROM table_746 WHERE "Incumbent" = 'Frank J. Becker' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4448,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
940,
4448,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
371,
6254,
446,
5,
9864,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the tournament with a 2r in 2009 and a 2r in 2010? | CREATE TABLE table_name_96 (
tournament VARCHAR
) | SELECT tournament FROM table_name_96 WHERE 2009 = "2r" AND 2010 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5892,
28,
3,
9,
204,
52,
16,
2464,
11,
3,
9,
204,
52,
16,
2735,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2464,
3274,
96,
357,
52,
121,
3430,
2735,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the total points agains the score of 63? | CREATE TABLE table_17816 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Points against" FROM table_17816 WHERE "Points" = '63' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
2938,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
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,
22512,
7,
581,
121,
21680,
953,
834,
27640,
2938,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
3891,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title. | CREATE TABLE Movie (title VARCHAR, director VARCHAR); CREATE TABLE Movie (director VARCHAR, title VARCHAR) | SELECT T1.title, T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title ORDER BY T1.director, T1.title | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
21869,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
25982,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
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,
332,
5411,
21869,
6,
332,
5411,
25982,
21680,
10743,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
25982,
3274,
332,
4416,
25982,
549,
17444,
427,
332,
5411,
21869,
3,
2,
3155,
332,
4416,
218... |
which teams were played before the bye week ? | CREATE TABLE table_204_918 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" number,
"bye" text
) | SELECT "opponent" FROM table_204_918 WHERE "week" < (SELECT "week" FROM table_204_918 WHERE "bye" = 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1298,
2606,
41,
3,
23,
26,
381,
6,
96,
8041,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
26363,
834,
1298,
2606,
549,
17444,
427,
96,
8041,
121,
3,
2,
41,
23143,
14196,
96,
8041,
121,
21680,
953,
834,
26363,
834,
1298,
2606,
549,
17444,
427,
96,
969,
15,
121,
3... |
What is the Tamil Name of ( 2)? | CREATE TABLE table_6947 (
"Date" text,
"English Name" text,
"Chinese Name" text,
"Tamil Name" text,
"Type" text
) | SELECT "Type" FROM table_6947 WHERE "Tamil Name" = 'சந்திர புத்தாண்டு (தினம் 2)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
4177,
41,
96,
308,
342,
121,
1499,
6,
96,
26749,
5570,
121,
1499,
6,
96,
3541,
4477,
15,
5570,
121,
1499,
6,
96,
382,
265,
173,
5570,
121,
1499,
6,
96,
25160,
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,
25160,
121,
21680,
953,
834,
3951,
4177,
549,
17444,
427,
96,
382,
265,
173,
5570,
121,
3274,
3,
31,
2,
3,
2,
41,
2,
9266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many rounds total were there on may 31? | CREATE TABLE table_4800 (
"Round" real,
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning car" text
) | SELECT COUNT("Round") FROM table_4800 WHERE "Date" = 'may 31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
6192,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
2535,
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,
2847,
17161,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
591,
6192,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
2664,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the partnering for round sf | CREATE TABLE table_22825058_23 (
partnering VARCHAR,
round VARCHAR
) | SELECT partnering FROM table_22825058_23 WHERE round = "SF" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
11434,
3449,
834,
2773,
41,
3,
26361,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
26361,
21,
1751,
3,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
26361,
21680,
953,
834,
357,
2577,
11434,
3449,
834,
2773,
549,
17444,
427,
1751,
3274,
96,
7016,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Among patients who received additive therapy, how many of them were born before the year 2182? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2182" AND prescriptions.drug_type = "ADDITIVE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Find those years for all exhibitions with ticket prices lower than 15, group by year, and count year, and display by the the number of year from high to low. | CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
) | SELECT Year, COUNT(Year) FROM exhibition WHERE Ticket_Price < 15 GROUP BY Year ORDER BY COUNT(Year) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
9152,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
2929,
834,
683,
32,
77,
16,
17,
6,
7526,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
2929,
6,
2847,
17161,
599,
476,
2741,
61,
21680,
4473,
549,
17444,
427,
3,
15569,
834,
345,
4920,
3,
2,
627,
350,
4630,
6880,
272,
476,
2929,
4674,
11300,
272,
476,
2847,
17161,
599,
476,
2741,
61,
309,
25067,
1,
... |
What is the New Zealand Kennel Club Toy Group with papillon as the Australian National Kennel Council Toy Dogs Group breed? | CREATE TABLE table_name_26 (new_zealand_kennel_club_toy_group VARCHAR, australian_national_kennel_council_toy_dogs_group VARCHAR) | SELECT new_zealand_kennel_club_toy_group FROM table_name_26 WHERE australian_national_kennel_council_toy_dogs_group = "papillon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
5534,
834,
776,
138,
232,
834,
9376,
15,
40,
834,
13442,
834,
235,
63,
834,
10739,
584,
4280,
28027,
6,
23407,
29,
834,
16557,
834,
9376,
15,
40,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
126,
834,
776,
138,
232,
834,
9376,
15,
40,
834,
13442,
834,
235,
63,
834,
10739,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
23407,
29,
834,
16557,
834,
9376,
15,
40,
834,
509,
15254,
40,
834,
235,
63,
834... |
Show different parties of people along with the number of people in each party with a bar chart. | CREATE TABLE debate_people (
Debate_ID int,
Affirmative int,
Negative int,
If_Affirmative_Win bool
)
CREATE TABLE people (
People_ID int,
District text,
Name text,
Party text,
Age int
)
CREATE TABLE debate (
Debate_ID int,
Date text,
Venue text,
Num_of_Audience int
) | SELECT Party, COUNT(*) FROM people GROUP BY Party | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5054,
834,
16588,
41,
9794,
342,
834,
4309,
16,
17,
6,
71,
89,
7001,
1528,
16,
17,
6,
17141,
1528,
16,
17,
6,
156,
834,
188,
89,
7001,
1528,
834,
18455,
3,
12840,
40,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3450,
6,
2847,
17161,
599,
1935,
61,
21680,
151,
350,
4630,
6880,
272,
476,
3450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Color commentator has a Channel of fsn new england, and a Year of 2004-05? | CREATE TABLE table_name_41 (
color_commentator_s_ VARCHAR,
channel VARCHAR,
year VARCHAR
) | SELECT color_commentator_s_ FROM table_name_41 WHERE channel = "fsn new england" AND year = "2004-05" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
945,
834,
287,
297,
1016,
834,
7,
834,
584,
4280,
28027,
6,
4245,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
945,
834,
287,
297,
1016,
834,
7,
834,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
4245,
3274,
96,
89,
7,
29,
126,
3,
4606,
40,
232,
121,
3430,
215,
3274,
96,
21653,
18,
3076,
121,
1,
-100,
-100,
-100,
-1... |
Name the most municipalities for alto alentejo province (partly ribatejo) | CREATE TABLE table_221375_1 (
municipalities INTEGER,
province_of_1936 VARCHAR
) | SELECT MAX(municipalities) FROM table_221375_1 WHERE province_of_1936 = "Alto Alentejo Province (partly Ribatejo)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2368,
3072,
834,
536,
41,
24858,
3,
21342,
17966,
6,
7985,
834,
858,
834,
2294,
3420,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
24858,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
11760,
3389,
138,
2197,
61,
21680,
953,
834,
2884,
2368,
3072,
834,
536,
549,
17444,
427,
7985,
834,
858,
834,
2294,
3420,
3274,
96,
188,
40,
235,
901,
4617,
1927,
19573,
41,
2274,
120,
2403,
3697,
15,... |
What is every result for the ceremony year of 2007 (80th)? | CREATE TABLE table_22128871_1 (result VARCHAR, year__ceremony_ VARCHAR) | SELECT result FROM table_22128871_1 WHERE year__ceremony_ = "2007 (80th)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2122,
4060,
4450,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
215,
834,
834,
2110,
15,
21208,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
2884,
2122,
4060,
4450,
834,
536,
549,
17444,
427,
215,
834,
834,
2110,
15,
21208,
834,
3274,
96,
20615,
41,
2079,
189,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many years have a Player name of ronnie bull? | CREATE TABLE table_name_75 (
year INTEGER,
player_name VARCHAR
) | SELECT SUM(year) FROM table_name_75 WHERE player_name = "ronnie bull" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
215,
3,
21342,
17966,
6,
1959,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
43,
3,
9,
12387,
564,
13,
3,
52,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1959,
834,
4350,
3274,
96,
52,
32,
11113,
8434,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What percent did GRÜNE get in Tyrol where RETTÖ got 0.6%? | CREATE TABLE table_name_14 (grüne VARCHAR, rettö VARCHAR, state VARCHAR) | SELECT grüne FROM table_name_14 WHERE rettö = "0.6%" AND state = "tyrol" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
11059,
15,
584,
4280,
28027,
6,
3,
60,
17,
17,
1872,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1093,
410,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
11059,
15,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
3,
60,
17,
17,
1872,
3274,
96,
22787,
1454,
121,
3430,
538,
3274,
96,
17,
63,
3491,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the dates conducted for plaid cymru of 19% | CREATE TABLE table_78209 (
"Date(s) conducted" text,
"Polling organisation/client" text,
"Cons" text,
"Plaid Cymru" text,
"Lib Dem" text,
"Others" text,
"Lead" text
) | SELECT "Date(s) conducted" FROM table_78209 WHERE "Plaid Cymru" = '19%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
357,
4198,
41,
96,
308,
342,
599,
7,
61,
4468,
121,
1499,
6,
96,
8931,
697,
5102,
87,
26693,
121,
1499,
6,
96,
4302,
7,
121,
1499,
6,
96,
345,
40,
6146,
6400,
51,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
599,
7,
61,
4468,
121,
21680,
953,
834,
3940,
357,
4198,
549,
17444,
427,
96,
345,
40,
6146,
6400,
51,
52,
76,
121,
3274,
3,
31,
2294,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which driver had an accident and laps smaller than 53? | CREATE TABLE table_36332 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" text
) | SELECT "Driver" FROM table_36332 WHERE "Laps" < '53' AND "Time/Retired" = 'accident' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
519,
2668,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
3420,
519,
2668,
549,
17444,
427,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
4867,
31,
3430,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
6004,
4215,
31,
1,
-100,
-100,
-100,
... |
What is the sum of Events played when the cuts made is less than 0? | CREATE TABLE table_name_82 (events_played INTEGER, cuts_made INTEGER) | SELECT SUM(events_played) FROM table_name_82 WHERE cuts_made < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
15,
2169,
7,
834,
4895,
15,
26,
3,
21342,
17966,
6,
8620,
834,
4725,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
11137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
15,
2169,
7,
834,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
8620,
834,
4725,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What venue is in Santa Barbara, California? | CREATE TABLE table_name_58 (venue VARCHAR, state VARCHAR, city VARCHAR) | SELECT venue FROM table_name_58 WHERE state = "california" AND city = "santa barbara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
15098,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5669,
19,
16,
4625,
13163,
6,
1826,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
538,
3274,
96,
15534,
1161,
29,
23,
9,
121,
3430,
690,
3274,
96,
7,
288,
9,
9935,
2551,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show name, address road, and city for all branches sorted by open year. | CREATE TABLE branch (name VARCHAR, address_road VARCHAR, city VARCHAR, open_year VARCHAR) | SELECT name, address_road, city FROM branch ORDER BY open_year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6421,
41,
4350,
584,
4280,
28027,
6,
1115,
834,
8635,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
6,
539,
834,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
564,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
6,
1115,
834,
8635,
6,
690,
21680,
6421,
4674,
11300,
272,
476,
539,
834,
1201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many patients stayed in hospital for more than 15 days and were diagnosed for respiratory distress syn? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "15" AND diagnoses.short_title = "Respiratory distress syn" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
with rank of 31 what is the year? | CREATE TABLE table_name_48 (
year VARCHAR,
rank VARCHAR
) | SELECT COUNT(year) FROM table_name_48 WHERE rank = "31" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
215,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
28,
11003,
13,
2664,
125,
19,
8,
215,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
11003,
3274,
96,
3341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Attendance on November 29, 1953? | CREATE TABLE table_35920 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT SUM("Attendance") FROM table_35920 WHERE "Date" = 'november 29, 1953' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
27749,
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,
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,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
2469,
27749,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
14405,
23726,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of price over the headquarter , and group by attribute headquarter by a bar chart, order in descending by the bars. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Headquarter, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
6,
180,
6122,
599,
345,
4920,
61,
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,
3642... |
Who were the candidates in the Kentucky 9 district? | CREATE TABLE table_28878 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "Candidates" FROM table_28878 WHERE "District" = 'Kentucky 9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4060,
3940,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14050,
12416,
6203,
121,
21680,
953,
834,
357,
4060,
3940,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
439,
295,
4636,
63,
668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of self pay insurance patients who have had allogeneic hematopoietic stem cell transplant without purging? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Self Pay" AND procedures.long_title = "Allogeneic hematopoietic stem cell transpant without purging" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Did the nominated work of white valentine win an award? | CREATE TABLE table_name_61 (result VARCHAR, nominated_work VARCHAR) | SELECT result FROM table_name_61 WHERE nominated_work = "white valentine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
150,
1109,
920,
834,
1981,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3963,
8,
150,
1109,
920,
161,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
150,
1109,
920,
834,
1981,
3274,
96,
13698,
3,
15592,
630,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
among patients tested for ascites, how many of them had alcoh dep nec/nos-unspec? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Alcoh dep NEC/NOS-unspec" AND lab.fluid = "Ascites" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Find the first name of students who are living in the Smith Hall. | CREATE TABLE student (
fname VARCHAR,
stuid VARCHAR
)
CREATE TABLE lives_in (
stuid VARCHAR,
dormid VARCHAR
)
CREATE TABLE dorm (
dormid VARCHAR,
dorm_name VARCHAR
) | SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
3,
89,
4350,
584,
4280,
28027,
6,
21341,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1342,
834,
77,
41,
21341,
23,
26,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
89,
4350,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
1342,
834,
77,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
7,
17,
76,
23,
26,
3,
15355,
3162,
103,
52,
51,
6157,
332,
... |
what is the number of patients whose marital status is divorced and with admission year before 2115? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.admityear < "2115" | [
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,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
20466,
17,
... |
What was the kickoff time for week 11's game? | CREATE TABLE table_41391 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff Time" text,
"Attendance" text
) | SELECT "Kickoff Time" FROM table_41391 WHERE "Week" = '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2368,
4729,
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,
439,
3142,
1647,
2900,
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,
439,
3142,
1647,
2900,
121,
21680,
953,
834,
591,
2368,
4729,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show different locations and the number of performances at each location. | CREATE TABLE member_attendance (
Member_ID int,
Performance_ID int,
Num_of_Pieces int
)
CREATE TABLE performance (
Performance_ID real,
Date text,
Host text,
Location text,
Attendance int
)
CREATE TABLE member (
Member_ID text,
Name text,
Nationality text,
Role text
) | SELECT Location, COUNT(*) FROM performance GROUP BY Location | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
15116,
663,
41,
8541,
834,
4309,
16,
17,
6,
8233,
834,
4309,
16,
17,
6,
1174,
51,
834,
858,
834,
345,
23,
15,
2319,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
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,
10450,
6,
2847,
17161,
599,
1935,
61,
21680,
821,
350,
4630,
6880,
272,
476,
10450,
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 men's doubles when there was no competition? | CREATE TABLE table_14904221_1 (
mixed_doubles VARCHAR,
mens_doubles VARCHAR
) | SELECT mixed_doubles FROM table_14904221_1 WHERE mens_doubles = "no competition" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2394,
4165,
2658,
834,
536,
41,
4838,
834,
25761,
7,
584,
4280,
28027,
6,
1076,
7,
834,
25761,
7,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4838,
834,
25761,
7,
21680,
953,
834,
2534,
2394,
4165,
2658,
834,
536,
549,
17444,
427,
1076,
7,
834,
25761,
7,
3274,
96,
29,
32,
2259,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
On how many different dates was the race at the Silverstone circuit? | CREATE TABLE table_22334183_3 (
date VARCHAR,
circuit VARCHAR
) | SELECT COUNT(date) FROM table_22334183_3 WHERE circuit = "Silverstone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2773,
3710,
24361,
834,
519,
41,
833,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
149,
186,
315,
5128,
47,
8,
1964,
44,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
357,
2773,
3710,
24361,
834,
519,
549,
17444,
427,
4558,
3274,
96,
134,
173,
624,
3009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the names for projects that will be completed after 2016? | CREATE TABLE table_name_65 (name VARCHAR, year_completion_expected INTEGER) | SELECT name FROM table_name_65 WHERE year_completion_expected > 2016 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
4350,
584,
4280,
28027,
6,
215,
834,
7699,
109,
1575,
834,
31643,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3056,
21,
1195,
24,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
215,
834,
7699,
109,
1575,
834,
31643,
2490,
1421,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Round has a College of stanford, and an Overall smaller than 8? | CREATE TABLE table_name_57 (round INTEGER, college VARCHAR, overall VARCHAR) | SELECT AVG(round) FROM table_name_57 WHERE college = "stanford" AND overall < 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
7775,
3,
21342,
17966,
6,
1900,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9609,
65,
3,
9,
1888,
13,
3,
5627... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
1900,
3274,
96,
5627,
2590,
121,
3430,
1879,
3,
2,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the supporting actress in "For Whom the Bell Tolls"? | CREATE TABLE table_24225238_1 (supporting_actress VARCHAR, film VARCHAR) | SELECT supporting_actress FROM table_24225238_1 WHERE film = "For Whom the Bell Tolls" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
20489,
357,
3747,
834,
536,
41,
20390,
53,
834,
2708,
9377,
584,
4280,
28027,
6,
814,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3956,
15676,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3956,
834,
2708,
9377,
21680,
953,
834,
2266,
20489,
357,
3747,
834,
536,
549,
17444,
427,
814,
3274,
96,
3809,
2645,
51,
8,
5377,
304,
195,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many papers published in sigcse in 2010 ? | CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
) | SELECT DISTINCT COUNT(paper.paperid) FROM paper, venue WHERE paper.year = 2010 AND venue.venueid = paper.venueid AND venue.venuename = 'sigcse' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
843,
27111,
41,
843,
27111,
23,
26,
16,
17,
6,
843,
27111,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2847,
17161,
599,
19587,
5,
19587,
23,
26,
61,
21680,
1040,
6,
5669,
549,
17444,
427,
1040,
5,
1201,
3274,
2735,
3430,
5669,
5,
15098,
23,
26,
3274,
1040,
5,
15098,
23,
26,
3430,
5669,
5,
15... |
how many patients whose discharge location is snf and primary disease is abdominal pain? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "ABDOMINAL PAIN" | [
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,
26,
159,
7993,
834,
14836,
3274,
96,
134,
12619,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
... |
How many games was High Points andre iguodala (29)? | CREATE TABLE table_21524 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("Game") FROM table_21524 WHERE "High points" = 'Andre Iguodala (29)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
2266,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23055,
8512,
21680,
953,
834,
357,
1808,
2266,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
7175,
60,
27,
1744,
32,
26,
138,
9,
4743,
11728,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Set 4, when Set 1 is 19-25, and when Set 2 is 23-25? | CREATE TABLE table_6880 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Total" text
) | SELECT "Set 4" FROM table_6880 WHERE "Set 1" = '19-25' AND "Set 2" = '23-25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
2079,
41,
96,
308,
342,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
17175,
220,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17175,
3,
20364,
21680,
953,
834,
3651,
2079,
549,
17444,
427,
96,
17175,
209,
121,
3274,
3,
31,
2294,
14855,
31,
3430,
96,
17175,
204,
121,
3274,
3,
31,
2773,
14855,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the english title where the premiere is less than 30.0 and the finale is bigger than 36.0? | CREATE TABLE table_11173827_1 (
english_title VARCHAR,
premiere VARCHAR,
finale VARCHAR
) | SELECT english_title FROM table_11173827_1 WHERE premiere < 30.0 AND finale > 36.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2517,
3747,
2555,
834,
536,
41,
22269,
834,
21869,
584,
4280,
28027,
6,
13539,
584,
4280,
28027,
6,
13604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
22269,
834,
21869,
21680,
953,
834,
2596,
2517,
3747,
2555,
834,
536,
549,
17444,
427,
13539,
3,
2,
220,
11739,
3430,
13604,
2490,
220,
22642,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of first_name and manager_id in a bar chart, and I want to sort from low to high by the y-axis please. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) | SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_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,
30085,
834,
567,
17683,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,... |
Location of boston garden, and a Record of 58-23 involved what opponent? | CREATE TABLE table_5184 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Opponent" FROM table_5184 WHERE "Location" = 'boston garden' AND "Record" = '58-23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
4608,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
5553,
4608,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
115,
32,
4411,
2004,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
3449,
18,
2773,
31,
1,
-100,
-100,
... |
What is the total of countys where Obama is popular by 35.44%? | CREATE TABLE table_23817 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real
) | SELECT COUNT("County") FROM table_23817 WHERE "Obama%" = '35.44%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3747,
2517,
41,
96,
10628,
63,
121,
1499,
6,
96,
667,
115,
265,
9,
1454,
121,
1499,
6,
96,
667,
115,
265,
9,
4663,
121,
490,
6,
96,
329,
75,
254,
9,
77,
1454,
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,
2847,
17161,
599,
121,
10628,
63,
8512,
21680,
953,
834,
357,
3747,
2517,
549,
17444,
427,
96,
667,
115,
265,
9,
1454,
121,
3274,
3,
31,
519,
27436,
5988,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which year had a Score of kapunda 14-13-97 tanunda 5-14-44? | CREATE TABLE table_name_53 (
year INTEGER,
score VARCHAR
) | SELECT SUM(year) FROM table_name_53 WHERE score = "kapunda 14-13-97 tanunda 5-14-44" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
215,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
141,
3,
9,
17763,
13,
3,
18852,
1106,
9,
968,
13056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
2604,
3274,
96,
18852,
1106,
9,
968,
13056,
18,
4327,
3,
17,
152,
1106,
9,
305,
11590,
18,
3628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total number of goals of the club with 4 wins and less than 0 draws? | CREATE TABLE table_name_45 (goals_conceded VARCHAR, wins VARCHAR, draws VARCHAR) | SELECT COUNT(goals_conceded) FROM table_name_45 WHERE wins = 4 AND draws < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
839,
5405,
834,
11620,
221,
26,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
14924,
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,
2847,
17161,
599,
839,
5405,
834,
11620,
221,
26,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
9204,
3274,
314,
3430,
14924,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What event did tedd williams fight bill parker? | CREATE TABLE table_49148 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text
) | SELECT "Event" FROM table_49148 WHERE "Opponent" = 'bill parker' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
24748,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
3647,
24748,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
3727,
40,
2447,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the date of the gp citt di camaiore race? | CREATE TABLE table_name_54 (
date VARCHAR,
race_name VARCHAR
) | SELECT date FROM table_name_54 WHERE race_name = "gp città di camaiore" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
833,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
3,
122,
102,
6895,
17,
122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1964,
834,
4350,
3274,
96,
122,
102,
6895,
17,
85,
1227,
212,
6840,
127,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
when was the premiere of the episode whose production code is 415? | CREATE TABLE table_27622417_1 (original_us_air_date VARCHAR, prod_code VARCHAR) | SELECT original_us_air_date FROM table_27622417_1 WHERE prod_code = "415" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4056,
2266,
2517,
834,
536,
41,
21878,
834,
302,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
813,
26,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
302,
834,
2256,
834,
5522,
21680,
953,
834,
2555,
4056,
2266,
2517,
834,
536,
549,
17444,
427,
813,
26,
834,
4978,
3274,
96,
4853,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the highest Top-10, when the Top-5 was greater than 3, when the Cuts made were 20, and when the Top-25 was more than 10? | CREATE TABLE table_name_77 (
top_10 INTEGER,
top_25 VARCHAR,
top_5 VARCHAR,
cuts_made VARCHAR
) | SELECT MAX(top_10) FROM table_name_77 WHERE top_5 > 3 AND cuts_made = 20 AND top_25 > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
420,
834,
1714,
3,
21342,
17966,
6,
420,
834,
1828,
584,
4280,
28027,
6,
420,
834,
755,
584,
4280,
28027,
6,
8620,
834,
4725,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
2916,
834,
16968,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
420,
834,
755,
2490,
220,
3430,
8620,
834,
4725,
3274,
460,
3430,
420,
834,
1828,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many episodes have Valerie? | CREATE TABLE table_73283 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
) | SELECT COUNT("Episode Summary") FROM table_73283 WHERE "Coach" = 'Valerie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
2577,
519,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
427,
102,
159,
32,
221,
20698,
121,
1499,
6,
96,
10572,
51,
972,
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,
2847,
17161,
599,
121,
427,
102,
159,
32,
221,
20698,
8512,
21680,
953,
834,
4552,
2577,
519,
549,
17444,
427,
96,
3881,
1836,
121,
3274,
3,
31,
18392,
4074,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many votes for brown in the place that had 84.1% for coakley? | CREATE TABLE table_2995 (
"Municipality" text,
"Coakley votes" real,
"Coakley %" text,
"Brown votes" real,
"Brown %" text,
"Kennedy votes" real,
"Kennedy %" text,
"Total vote" real,
"Turnout %" text
) | SELECT MAX("Brown votes") FROM table_2995 WHERE "Coakley %" = '84.1%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3301,
41,
96,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
3881,
1639,
1306,
11839,
121,
490,
6,
96,
3881,
1639,
1306,
3,
1454,
121,
1499,
6,
96,
279,
3623,
29,
118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
3623,
29,
11839,
8512,
21680,
953,
834,
3166,
3301,
549,
17444,
427,
96,
3881,
1639,
1306,
3,
1454,
121,
3274,
3,
31,
4608,
5,
4704,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What team has more than 49 laps and a grid of 8? | CREATE TABLE table_name_63 (
team VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT team FROM table_name_63 WHERE laps > 49 AND grid = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
372,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
65,
72,
145,
9526,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
14941,
7,
2490,
9526,
3430,
8634,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the maximum in 2004 when 2009 is higher than 26.1? | CREATE TABLE table_name_86 (Id VARCHAR) | SELECT MAX(2004) FROM table_name_86 WHERE 2009 > 26.1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
16,
4406,
116,
2464,
19,
1146,
145,
204,
23769,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
21653,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
2464,
2490,
204,
23769,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose admission year is less than 2137 and drug name is glucagon? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2137" AND prescriptions.drug = "Glucagon" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What player from the United States had a total of 297? | CREATE TABLE table_name_33 (player VARCHAR, country VARCHAR, total VARCHAR) | SELECT player FROM table_name_33 WHERE country = "united states" AND total = 297 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
20846,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
45,
8,
907,
1323,
141,
3,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
792,
3274,
204,
4327,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what was the floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9.475? | CREATE TABLE table_54116 (
"Gymnast" text,
"Floor Exercise" real,
"Pommel Horse" real,
"Rings" real,
"Vault" real,
"Parallel Bars" real,
"Horizontal Bar" real,
"Total" real
) | SELECT MAX("Floor Exercise") FROM table_54116 WHERE "Pommel Horse" = '9.65' AND "Horizontal Bar" > '9.475' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
20159,
41,
96,
517,
63,
51,
29,
9,
7,
17,
121,
1499,
6,
96,
11251,
127,
21414,
121,
490,
6,
96,
345,
7649,
40,
13538,
121,
490,
6,
96,
448,
53,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
11251,
127,
21414,
8512,
21680,
953,
834,
5062,
20159,
549,
17444,
427,
96,
345,
7649,
40,
13538,
121,
3274,
3,
31,
8797,
4122,
31,
3430,
96,
4489,
13266,
106,
1947,
1386,
121,
2490,
3,
31,
8797,
... |
In which championship was the partner Jie Zheng? | CREATE TABLE table_2516282_3 (
championship VARCHAR,
partner VARCHAR
) | SELECT championship FROM table_2516282_3 WHERE partner = "Jie Zheng" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2938,
2577,
357,
834,
519,
41,
10183,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
10183,
47,
8,
2397,
7802,
15,
1027,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10183,
21680,
953,
834,
1828,
2938,
2577,
357,
834,
519,
549,
17444,
427,
2397,
3274,
96,
683,
23,
15,
1027,
88,
1725,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What college has an overall less than 243, and tony green as the name? | CREATE TABLE table_name_70 (
college VARCHAR,
overall VARCHAR,
name VARCHAR
) | SELECT college FROM table_name_70 WHERE overall < 243 AND name = "tony green" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
1900,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
65,
46,
1879,
705,
145,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1879,
3,
2,
3,
27730,
3430,
564,
3274,
96,
17,
106,
63,
1442,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
A bar chart shows the distribution of Date_of_Birth and Height , and order X-axis from low to high order please. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
) | SELECT Date_of_Birth, Height FROM people ORDER BY Date_of_Birth | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
679,
226,
1499,
6,
5570,
1499,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
6,
24231,
490,
6,
14230,
490,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
24231,
21680,
151,
4674,
11300,
272,
476,
7678,
834,
858,
834,
279,
23,
52,
189,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which season has more than 5 episodes each 159 minutes in length? | CREATE TABLE table_name_12 (
season VARCHAR,
episode_count VARCHAR,
time_length VARCHAR
) | SELECT season FROM table_name_12 WHERE episode_count > 5 AND time_length = "159 minutes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
774,
584,
4280,
28027,
6,
5640,
834,
13362,
584,
4280,
28027,
6,
97,
834,
19457,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
5640,
834,
13362,
2490,
305,
3430,
97,
834,
19457,
3274,
96,
27904,
676,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the latest year the miss internet www pageant had a result of second runner-up? | CREATE TABLE table_62333 (
"Year" real,
"Delegate" text,
"Hometown" text,
"Pageant" text,
"Result" text,
"Other awards" text
) | SELECT MAX("Year") FROM table_62333 WHERE "Pageant" = 'miss internet www' AND "Result" = 'second runner-up' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
23360,
41,
96,
476,
2741,
121,
490,
6,
96,
2962,
8791,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
345,
545,
288,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4056,
23360,
549,
17444,
427,
96,
345,
545,
288,
121,
3274,
3,
31,
11502,
1396,
2442,
31,
3430,
96,
20119,
121,
3274,
3,
31,
12091,
3,
10806,
18,
413,
31,
1,
... |
what's the bleeding time with condition being liver failure, end-stage | CREATE TABLE table_19063 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
) | SELECT "Bleeding time" FROM table_19063 WHERE "Condition" = 'Liver failure, end-stage' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
3891,
41,
96,
4302,
10569,
121,
1499,
6,
96,
3174,
8514,
51,
4517,
97,
121,
1499,
6,
96,
13212,
10646,
3,
8514,
6310,
23918,
77,
97,
121,
1499,
6,
96,
279,
40,
695... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
40,
6958,
53,
97,
121,
21680,
953,
834,
11776,
3891,
549,
17444,
427,
96,
4302,
10569,
121,
3274,
3,
31,
24179,
52,
3338,
6,
414,
18,
10705,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Draw a bar chart for what are the ids and details of events that have more than one participants? | CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
) | SELECT T1.Event_Details, T1.Event_ID FROM Events AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_Details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19204,
41,
15077,
288,
834,
4309,
3,
21342,
17966,
6,
15077,
288,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
15077,
288,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
427,
2169,
834,
2962,
5756,
7,
6,
332,
5411,
427,
2169,
834,
4309,
21680,
11137,
6157,
332,
536,
3,
15355,
3162,
19204,
834,
77,
834,
427,
2169,
7,
6157,
332,
357,
9191,
332,
5411,
427,
2169,
834,
4309,
... |
What is Frequency, when Model Number is Pentium II 400? | CREATE TABLE table_name_59 (frequency VARCHAR, model_number VARCHAR) | SELECT frequency FROM table_name_59 WHERE model_number = "pentium ii 400" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
30989,
584,
4280,
28027,
6,
825,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
5532,
835,
11298,
6,
116,
5154,
7720,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7321,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
825,
834,
5525,
1152,
3274,
96,
102,
295,
2552,
3,
23,
23,
4837,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What date was the race in 1968 run on? | CREATE TABLE table_22648285_1 (
date VARCHAR,
year VARCHAR
) | SELECT date FROM table_22648285_1 WHERE year = 1968 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4389,
4613,
4433,
834,
536,
41,
833,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
1964,
16,
16506,
661,
30,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2884,
4389,
4613,
4433,
834,
536,
549,
17444,
427,
215,
3274,
16506,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Kaimganj has what reserved for (SC / ST /None)? | CREATE TABLE table_name_87 (
reserved_for___sc___st__none_ VARCHAR,
name VARCHAR
) | SELECT reserved_for___sc___st__none_ FROM table_name_87 WHERE name = "kaimganj" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
14040,
834,
1161,
834,
834,
834,
7,
75,
834,
834,
834,
7,
17,
834,
834,
29,
782,
834,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
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,
14040,
834,
1161,
834,
834,
834,
7,
75,
834,
834,
834,
7,
17,
834,
834,
29,
782,
834,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
564,
3274,
96,
1258,
603,
2565,
354,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What batting partners were the most successful in 2004? | CREATE TABLE table_20973 (
"Runs" text,
"Wicket" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
) | SELECT "Batting partners" FROM table_20973 WHERE "Season" = '2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4327,
519,
41,
96,
448,
202,
7,
121,
1499,
6,
96,
518,
447,
8044,
121,
1499,
6,
96,
279,
9,
6031,
3222,
121,
1499,
6,
96,
279,
9,
6031,
372,
121,
1499,
6,
96,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
279,
9,
6031,
3222,
121,
21680,
953,
834,
1755,
4327,
519,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
21653,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose primary disease is celo-vessicle fistula? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CELO-VESSICLE FISTULA" | [
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,
25930,
4844,
159,
3274,
96,
4770,
5017,
18,
553,
10087,
196,
22704,
377,
13582,
4254,
188,
121,
1,... |
What country speaks Vietnamese? | CREATE TABLE table_54970 (
"Country/Region" text,
"Languages" text,
"Premiere" text,
"Seasons" text,
"Status" text
) | SELECT "Country/Region" FROM table_54970 WHERE "Languages" = 'vietnamese' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3647,
2518,
41,
96,
10628,
651,
87,
17748,
23,
106,
121,
1499,
6,
96,
434,
1468,
76,
2568,
121,
1499,
6,
96,
10572,
2720,
60,
121,
1499,
6,
96,
134,
15,
9,
6577,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
87,
17748,
23,
106,
121,
21680,
953,
834,
755,
3647,
2518,
549,
17444,
427,
96,
434,
1468,
76,
2568,
121,
3274,
3,
31,
5914,
17,
4350,
7,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is maximum age of patients whose marital status is married and insurance is self pay? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.insurance = "Self Pay" | [
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,
4800,
4,
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,
29441,
3274,
96,
134,
10386,
5077,
121,
1,
-100,
-100,
-1... |
List the carriers of devices that have no devices in stock. | CREATE TABLE stock (Carrier VARCHAR, Device_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR) | SELECT Carrier FROM device WHERE NOT Device_ID IN (SELECT Device_ID FROM stock) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1519,
41,
6936,
6711,
584,
4280,
28027,
6,
15511,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1407,
41,
6936,
6711,
584,
4280,
28027,
6,
15511,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1184,
6711,
21680,
1407,
549,
17444,
427,
4486,
15511,
834,
4309,
3388,
41,
23143,
14196,
15511,
834,
4309,
21680,
1519,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Can you tell me the Home or the Away that has the Shirt Number larger than 18? | CREATE TABLE table_name_25 (home_or_away VARCHAR, shirt_number INTEGER) | SELECT home_or_away FROM table_name_25 WHERE shirt_number > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
5515,
834,
127,
834,
8006,
584,
4280,
28027,
6,
8677,
834,
5525,
1152,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
1210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
127,
834,
8006,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
8677,
834,
5525,
1152,
2490,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Return the average price of products that have each category code, and sort in ascending by the names. | CREATE TABLE Customers (
customer_id INTEGER,
customer_type_code VARCHAR(20),
address_line_1 VARCHAR(80),
address_line_2 VARCHAR(80),
town_city VARCHAR(80),
state VARCHAR(80),
email_address VARCHAR(255),
phone_number VARCHAR(80)
)
CREATE TABLE Complaints (
complaint_id INTEGER,
product_id INTEGER,
customer_id INTEGER,
complaint_outcome_code VARCHAR(20),
complaint_status_code VARCHAR(20),
complaint_type_code VARCHAR(20),
date_complaint_raised DATETIME,
date_complaint_closed DATETIME,
staff_id INTEGER
)
CREATE TABLE Staff (
staff_id INTEGER,
gender VARCHAR(1),
first_name VARCHAR(80),
last_name VARCHAR(80),
email_address VARCHAR(255),
phone_number VARCHAR(80)
)
CREATE TABLE Products (
product_id INTEGER,
parent_product_id INTEGER,
product_category_code VARCHAR(20),
date_product_first_available DATETIME,
date_product_discontinued DATETIME,
product_name VARCHAR(80),
product_description VARCHAR(255),
product_price DECIMAL(19,4)
) | SELECT product_category_code, AVG(product_price) FROM Products GROUP BY product_category_code ORDER BY product_category_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
1755,
201,
1115,
834,
747,
834,
536,
584,
4280,
28027,
599,
2079,
201,
1115,
834,
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,
556,
834,
8367,
839,
651,
834,
4978,
6,
71,
17217,
599,
15892,
834,
102,
4920,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
556,
834,
8367,
839,
651,
834,
4978,
4674,
11300,
272,
476,
556,
834,
8367,
839,
651,
834,
... |
What is the most legs lost of all? | CREATE TABLE table_18621456_22 (
legs_lost INTEGER
) | SELECT MAX(legs_lost) FROM table_18621456_22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
27357,
4834,
834,
2884,
41,
6217,
834,
2298,
17,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
6217,
1513,
13,
66,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
5772,
7,
834,
2298,
17,
61,
21680,
953,
834,
25398,
27357,
4834,
834,
2884,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many points did the 2005 1st place team receive? | CREATE TABLE table_name_90 (points VARCHAR, year VARCHAR) | SELECT points FROM table_name_90 WHERE year = 2005 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
2700,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
410,
8,
3105,
209,
7,
17,
286,
372,
911,
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,
979,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
215,
3274,
3105,
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,... |
Where was the game against Atlanta Falcons held? | CREATE TABLE table_14971788_1 (game_site VARCHAR, opponent VARCHAR) | SELECT game_site FROM table_14971788_1 WHERE opponent = "Atlanta Falcons" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4327,
2517,
4060,
834,
536,
41,
7261,
834,
3585,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
581,
9673,
22150,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
3585,
21680,
953,
834,
2534,
4327,
2517,
4060,
834,
536,
549,
17444,
427,
15264,
3274,
96,
188,
17,
6761,
9,
22150,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the county name and population of all counties. Show the proportion. | CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
) | SELECT County_name, Population FROM county | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
1334,
834,
196,
26,
16,
17,
6,
1334,
834,
4350,
1499,
6,
29659,
490,
6,
22296,
834,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1334,
834,
4350,
6,
29659,
21680,
5435,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What week that shows a game record of 0 1? | CREATE TABLE table_name_94 (
week INTEGER,
record VARCHAR
) | SELECT AVG(week) FROM table_name_94 WHERE record = "0–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
471,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
471,
24,
1267,
3,
9,
467,
1368,
13,
3,
632,
209,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1368,
3274,
96,
632,
104,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Episode of 16 involves which performer 1? | CREATE TABLE table_name_64 (performer_1 VARCHAR, episode VARCHAR) | SELECT performer_1 FROM table_name_64 WHERE episode = 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
883,
2032,
49,
834,
536,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
16112,
13,
898,
5806,
84,
1912,
49,
209,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1912,
49,
834,
536,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
5640,
3274,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was olympics, Canada and the Men's Eight Event ended with a silver medal? | CREATE TABLE table_name_92 (year INTEGER, result VARCHAR, nation VARCHAR, championship VARCHAR, event VARCHAR) | SELECT MAX(year) FROM table_name_92 WHERE championship = "olympics" AND event = "men's eight" AND nation = "canada" AND result = "silver" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
1201,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
6,
605,
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,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
10183,
3274,
96,
32,
120,
51,
6174,
7,
121,
3430,
605,
3274,
96,
904,
31,
7,
2641,
121,
3430,
2982,
3274,
96,
658,
18089,
121,
3430,
741,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.