NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the name of the primary with a DCSF number larger than 2337 and an Ofsted number smaller than 135339? | CREATE TABLE table_33918 (
"Name" text,
"Faith" text,
"Type" text,
"DCSF number" real,
"Ofsted number" real
) | SELECT "Name" FROM table_33918 WHERE "Type" = 'primary' AND "DCSF number" > '2337' AND "Ofsted number" < '135339' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3288,
2606,
41,
96,
23954,
121,
1499,
6,
96,
371,
9,
23,
189,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
6338,
7016,
381,
121,
490,
6,
96,
667,
89,
6265,
381,
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,
23954,
121,
21680,
953,
834,
519,
3288,
2606,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
8234,
1208,
31,
3430,
96,
6338,
7016,
381,
121,
2490,
3,
31,
2773,
4118,
31,
3430,
96,
667,
89,
6265,
381,
121,
3,
... |
Name the 2003 for atp masters series 1998 | CREATE TABLE table_name_83 (
Id VARCHAR
) | SELECT 2003 FROM table_name_83 WHERE 1998 = "atp masters series" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3888,
21,
44,
102,
2325,
7,
939,
6260,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3888,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
6260,
3274,
96,
144,
102,
2325,
7,
939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many wins had a podium larger than 6 after season 2008? | CREATE TABLE table_name_29 (
wins VARCHAR,
season VARCHAR,
podiums VARCHAR
) | SELECT COUNT(wins) FROM table_name_29 WHERE season > 2008 AND podiums > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
9204,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9204,
141,
3,
9,
22828... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
774,
2490,
2628,
3430,
22828,
7,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the countries having more than 4 addresses listed. | CREATE TABLE customer_contact_channels (
customer_id number,
channel_code text,
active_from_date time,
active_to_date time,
contact_number text
)
CREATE TABLE order_items (
order_id number,
product_id number,
order_quantity text
)
CREATE TABLE customer_addresses (
customer_id numbe... | SELECT country FROM addresses GROUP BY country HAVING COUNT(address_id) > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
27608,
834,
19778,
7,
41,
884,
834,
23,
26,
381,
6,
4245,
834,
4978,
1499,
6,
1676,
834,
7152,
834,
5522,
97,
6,
1676,
834,
235,
834,
5522,
97,
6,
574,
834,
5525,
1152,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
684,
21680,
7181,
350,
4630,
6880,
272,
476,
684,
454,
6968,
2365,
2847,
17161,
599,
9,
26,
12039,
834,
23,
26,
61,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Alexander Wronski's Position? | CREATE TABLE table_name_31 (
position VARCHAR,
name VARCHAR
) | SELECT position FROM table_name_31 WHERE name = "alexander wronski" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
1102,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
10135,
549,
6447,
2168,
31,
7,
14258,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
564,
3274,
96,
138,
994,
11849,
3,
210,
6447,
2168,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the total number of yards for avg of 9 and rec of 1 | CREATE TABLE table_name_99 (yards VARCHAR, avg VARCHAR, rec VARCHAR) | SELECT COUNT(yards) FROM table_name_99 WHERE avg = 9 AND rec = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
6636,
7,
584,
4280,
28027,
6,
3,
9,
208,
122,
584,
4280,
28027,
6,
5026,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6636,
7,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
3,
9,
208,
122,
3274,
668,
3430,
5026,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Opponents in the game with a Date of nov. 25? | CREATE TABLE table_63268 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Dolphins points" real,
"Opponents" real,
"Record" text,
"Attendance" real
) | SELECT MIN("Opponents") FROM table_63268 WHERE "Date" = 'nov. 25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
357,
3651,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
308,
23589,
77,
7,
979,
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,
667,
102,
9977,
7,
8512,
21680,
953,
834,
3891,
357,
3651,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
5,
944,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the number of patients whose ethnicity is black/cape verdean and days of hospital stay is greater than 8? | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.days_stay > "8" | [
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,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
16986,
427,
3,
16174,
308,
20152,
121,
3430,
14798,... |
Which Finalist has a Semi finalists of monica seles conchita martínez? | CREATE TABLE table_name_69 (finalist VARCHAR, semi_finalists VARCHAR) | SELECT finalist FROM table_name_69 WHERE semi_finalists = "monica seles conchita martínez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
12406,
343,
584,
4280,
28027,
6,
4772,
834,
28077,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6514,
343,
65,
3,
9,
22217,
3,
28077,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
804,
343,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
4772,
834,
28077,
3274,
96,
2157,
2617,
142,
965,
975,
1436,
17,
9,
3157,
17,
2,
9645,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Crows' Feat's production number? | CREATE TABLE table_name_49 (production_number VARCHAR, title VARCHAR) | SELECT production_number FROM table_name_49 WHERE title = "crows' feat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
20762,
834,
5525,
1152,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
15343,
7,
31,
4163,
144,
31,
7,
999,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
999,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
2233,
3274,
96,
75,
3623,
7,
31,
20906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Tom Kite with a Score of 68's To Par? | CREATE TABLE table_name_92 (
to_par VARCHAR,
score VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_92 WHERE score = 68 AND player = "tom kite" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
12,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3059,
5747,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2604,
3274,
3,
3651,
3430,
1959,
3274,
96,
235,
51,
3650,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the namesake of the ship that was commissioned or completed(*) 16 april 1864? | CREATE TABLE table_17728 (
"Ship" text,
"Builder" text,
"Namesake" text,
"Renamed" text,
"Laid down" real,
"Launched" text,
"Commissioned or completed(*)" text
) | SELECT "Namesake" FROM table_17728 WHERE "Commissioned or completed(*)" = '16 April 1864' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26793,
2577,
41,
96,
134,
10462,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
23954,
7,
9,
1050,
121,
1499,
6,
96,
1649,
4350,
26,
121,
1499,
6,
96,
434,
6146,
323,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
7,
9,
1050,
121,
21680,
953,
834,
26793,
2577,
549,
17444,
427,
96,
5890,
5451,
15,
26,
42,
2012,
599,
1935,
61,
121,
3274,
3,
31,
2938,
1186,
507,
4389,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Season has a UFL Cup of tbd? | CREATE TABLE table_name_52 (
season VARCHAR,
ufl_cup VARCHAR
) | SELECT season FROM table_name_52 WHERE ufl_cup = "tbd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
774,
584,
4280,
28027,
6,
3,
76,
89,
40,
834,
4658,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7960,
65,
3,
9,
412,
10765,
3802,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
3,
76,
89,
40,
834,
4658,
3274,
96,
17,
115,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of the all around with a 37.75 total? | CREATE TABLE table_59701 (
"Place" real,
"Nation" text,
"All Around" real,
"Final" real,
"Total" real
) | SELECT SUM("All Around") FROM table_59701 WHERE "Total" = '37.75' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
2518,
536,
41,
96,
345,
11706,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
6838,
16140,
121,
490,
6,
96,
371,
10270,
121,
490,
6,
96,
3696,
1947,
121,
490,
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,
180,
6122,
599,
121,
6838,
16140,
8512,
21680,
953,
834,
3390,
2518,
536,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
4118,
5,
3072,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele borovnica. | CREATE TABLE table_10798421_1 (
village__german_ VARCHAR,
village__slovenian_ VARCHAR
) | SELECT village__german_ FROM table_10798421_1 WHERE village__slovenian_ = "Sele Borovnica" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4440,
4608,
2658,
834,
536,
41,
3309,
834,
834,
1304,
348,
834,
584,
4280,
28027,
6,
3309,
834,
834,
7,
5850,
15,
15710,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3309,
834,
834,
1304,
348,
834,
21680,
953,
834,
1714,
4440,
4608,
2658,
834,
536,
549,
17444,
427,
3309,
834,
834,
7,
5850,
15,
15710,
834,
3274,
96,
134,
400,
1491,
8843,
12878,
121,
1,
-100,
-100,
-100,
-100,
-10... |
What is the NBA draft result of the player from Kingston, PA? | CREATE TABLE table_58208 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT "NBA Draft" FROM table_58208 WHERE "Hometown" = 'kingston, pa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
23946,
41,
96,
15800,
49,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
6,
96,
567,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
4882,
21409,
121,
21680,
953,
834,
3449,
23946,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
1765,
4411,
6,
2576,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Draw for the team tramwajarz łódź? | CREATE TABLE table_name_94 (draw VARCHAR, team VARCHAR) | SELECT draw FROM table_name_94 WHERE team = "tramwajarz łódź" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
19489,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
19183,
21,
8,
372,
20649,
210,
9,
5670,
172,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3314,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
372,
3274,
96,
17,
2375,
210,
9,
5670,
172,
3,
2,
4922,
26,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Fastest Lap, when Date is Leeds, Alabama, and when Circuit is April 19? | CREATE TABLE table_47410 (
"Circuit" text,
"Location" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winner" text
) | SELECT "Fastest Lap" FROM table_47410 WHERE "Date" = 'leeds, alabama' AND "Circuit" = 'april 19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
24175,
41,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
4177,
24175,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
40,
6958,
7,
6,
3,
9,
9339,
265,
9,
31,
3430,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
9,
... |
combination with other organs function failure: severe liver dysfunction, severe renal insufficiency,severe heart failure ( nyha class 3 and 4 ) , acute or chronic infectious diseases, disease of immune system, asthma, malignant tumor, other advanced disease, etc. | CREATE TABLE table_test_19 (
"id" int,
"gender" string,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"acute_infectious" bool,
"hypertensive_retinopathy" bool,
"leukocyte_count" int,
"severe_uncontrolled_hypertension" bool,
"chronic_infectious" boo... | SELECT * FROM table_test_19 WHERE organ_failure = 1 OR (liver_disease = 1 OR renal_disease = 1 OR (heart_disease = 1 OR nyha_class = 3 OR nyha_class = 4) OR acute_infectious = 1 OR chronic_infectious = 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
2294,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
17068,
834,
31695,
834,
15,
21440,
834,
22513,
834,
40,
162,
89,
121,
16,
17,
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,
1429,
21680,
953,
834,
4377,
834,
2294,
549,
17444,
427,
3640,
834,
89,
9,
173,
1462,
3274,
209,
4674,
41,
7591,
52,
834,
26,
159,
14608,
3274,
209,
4674,
23328,
834,
26,
159,
14608,
3274,
209,
4674,
41,
88,
1408,
... |
What's the l2 cache of the model with TDP of 5.5-10 w? | CREATE TABLE table_24099916_1 (l2_cache VARCHAR, tdp VARCHAR) | SELECT l2_cache FROM table_24099916_1 WHERE tdp = "5.5-10 W" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
19446,
2938,
834,
536,
41,
40,
357,
834,
75,
4933,
584,
4280,
28027,
6,
3,
17,
26,
102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
40,
357,
834,
75,
4933,
21680,
953,
834,
11944,
19446,
2938,
834,
536,
549,
17444,
427,
3,
17,
26,
102,
3274,
96,
15938,
4536,
549,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many nationalities are there after rank 5 ? | CREATE TABLE table_204_174 (
id number,
"rank" number,
"name" text,
"nationality" text,
"result" number,
"notes" text
) | SELECT COUNT(DISTINCT "nationality") FROM table_204_174 WHERE "rank" > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
27693,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
381,
6,
96,
7977,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
96,
16557,
485,
8512,
21680,
953,
834,
26363,
834,
27693,
549,
17444,
427,
96,
6254,
121,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the earliest year with 16 points? | CREATE TABLE table_name_33 (year INTEGER, pts VARCHAR) | SELECT MIN(year) FROM table_name_33 WHERE pts = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
1201,
3,
21342,
17966,
6,
3,
102,
17,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
28,
898,
979,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
3,
102,
17,
7,
3274,
96,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many patients with hypertension do not have coronary artery disease or cardiac catheterization as their primary disease and have a chemistry lab test category? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH" AND lab."CATEGORY" = "Chemistry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the grid total when there are 37 laps? | CREATE TABLE table_name_57 (
grid VARCHAR,
laps VARCHAR
) | SELECT COUNT(grid) FROM table_name_57 WHERE laps = 37 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
8634,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8634,
792,
116,
132,
33,
6862,
14941,
7,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
14941,
7,
3274,
6862,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the authority for morrinsville college | CREATE TABLE table_name_88 (authority VARCHAR, name VARCHAR) | SELECT authority FROM table_name_88 WHERE name = "morrinsville college" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
17415,
485,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5015,
21,
8030,
52,
77,
9727,
1900,
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,
5015,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
564,
3274,
96,
2528,
52,
77,
9727,
1900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
At the home game in Collingwood, how much did the away team score? | CREATE TABLE table_52505 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_52505 WHERE "Home team" = 'collingwood' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
3076,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
755,
1828,
3076,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
3297,
697,
2037,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is jamar martin's highest pick? | CREATE TABLE table_name_33 (pick INTEGER, player VARCHAR) | SELECT MAX(pick) FROM table_name_33 WHERE player = "jamar martin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
17967,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7620,
291,
3157,
17,
77,
31,
7,
2030,
1432,
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,
4800,
4,
599,
17967,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1959,
3274,
96,
1191,
1635,
3157,
17,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Score of the Player from South Africa? | CREATE TABLE table_name_64 (score VARCHAR, country VARCHAR) | SELECT score FROM table_name_64 WHERE country = "south africa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
7,
9022,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
13,
8,
12387,
45,
1013,
2648,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
684,
3274,
96,
7,
670,
107,
24040,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What about the average amounts of payments by each method code? You can give me a bar chart, sort from high to low by the y-axis. | CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGE... | SELECT Payment_Method_Code, AVG(Amount_Payment) FROM Payments GROUP BY Payment_Method_Code ORDER BY AVG(Amount_Payment) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
8931,
447,
725,
41,
7587,
834,
4309,
3,
21342,
17966,
6,
7327,
834,
4309,
3,
21342,
17966,
6,
7587,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
3273,
834,
308,
342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12248,
834,
23351,
107,
32,
26,
834,
22737,
6,
71,
17217,
599,
188,
11231,
834,
19702,
297,
61,
21680,
12248,
7,
350,
4630,
6880,
272,
476,
12248,
834,
23351,
107,
32,
26,
834,
22737,
4674,
11300,
272,
476,
71,
1721... |
What are the names of cities, as well as the names of the counties they correspond to? | CREATE TABLE city (
city_id number,
county_id number,
name text,
white number,
black number,
amerindian number,
asian number,
multiracial number,
hispanic number
)
CREATE TABLE county_public_safety (
county_id number,
name text,
population number,
police_officers num... | SELECT T1.name, T2.name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.county_id = T2.county_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
690,
834,
23,
26,
381,
6,
5435,
834,
23,
26,
381,
6,
564,
1499,
6,
872,
381,
6,
1001,
381,
6,
183,
6655,
8603,
381,
6,
3,
9,
10488,
381,
6,
1249,
52,
9,
4703,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
4416,
4350,
21680,
690,
6157,
332,
536,
3,
15355,
3162,
5435,
834,
15727,
834,
15233,
17,
63,
6157,
332,
357,
9191,
332,
5411,
13362,
63,
834,
23,
26,
3274,
332,
4416,
13362,
63,
834,
23,
... |
What are the aircrafts with top 3 shortest lengthes? List their names. | CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE employee (
eid number,
name text,
salary number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
... | SELECT name FROM aircraft ORDER BY distance LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6442,
41,
3052,
381,
6,
564,
1499,
6,
2357,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
3,
15,
23,
26,
381,
6,
564,
1499,
6,
9090,
381,
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,
564,
21680,
6442,
4674,
11300,
272,
476,
2357,
8729,
12604,
220,
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,
-... |
What position did the player who was with the grizzlies from 2007-2009 play? | CREATE TABLE table_name_89 (
position VARCHAR,
years_for_grizzlies VARCHAR
) | SELECT position FROM table_name_89 WHERE years_for_grizzlies = "2007-2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
1102,
584,
4280,
28027,
6,
203,
834,
1161,
834,
3496,
5271,
4664,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
410,
8,
1959,
113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
203,
834,
1161,
834,
3496,
5271,
4664,
3274,
96,
20615,
18,
16660,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many consecutive games were played in dublin in 2010 ? | CREATE TABLE table_204_282 (
id number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text,
"#" number
) | SELECT COUNT(*) FROM table_204_282 WHERE "venue" = 'dublin' AND "date" = 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2577,
357,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
60,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
2577,
357,
549,
17444,
427,
96,
15098,
121,
3274,
3,
31,
1259,
21746,
31,
3430,
96,
5522,
121,
3274,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the total number of positions with goal difference more than -17 and played less than 38 | CREATE TABLE table_name_12 (position VARCHAR, goal_difference VARCHAR, played VARCHAR) | SELECT COUNT(position) FROM table_name_12 WHERE goal_difference > -17 AND played < 38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
4718,
584,
4280,
28027,
6,
1288,
834,
26,
99,
11788,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1288,
834,
26,
99,
11788,
2490,
3,
10794,
3430,
1944,
3,
2,
6654,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What date was Apes of Wrath written by Friz Freleng, production number higher than 1496 from series mm released? | CREATE TABLE table_name_37 (release_date VARCHAR, title VARCHAR, series VARCHAR, director VARCHAR, production_number VARCHAR) | SELECT release_date FROM table_name_37 WHERE director = "friz freleng" AND production_number > 1496 AND series = "mm" AND title = "apes of wrath" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
6,
999,
834,
5525,
1152,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
2090,
3274,
96,
89,
13266,
2515,
400,
1725,
121,
3430,
999,
834,
5525,
1152,
2490,
968,
4314,
3430,
939,
3274,
96,
635,
121,
3430,
2233,
3274,
96,
... |
Name the number of events for 3031 | CREATE TABLE table_26589 (
"#" real,
"Player" text,
"Country" text,
"Points" real,
"Reset points" real,
"Events" real
) | SELECT COUNT("Events") FROM table_26589 WHERE "Points" = '3031' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4122,
3914,
41,
96,
4663,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
1649,
2244,
979,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
427,
2169,
7,
8512,
21680,
953,
834,
357,
4122,
3914,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
1458,
3341,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the number of start dates of all the apartment bookings made by guests with gender code 'Female' for each year in a bar chart, and rank the number of booking start date in desc order. | CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGE... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female" ORDER BY COUNT(booking_start_date) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
22360,
41,
3886,
834,
23,
26,
3,
21342,
17966,
6,
7285,
834,
4978,
3,
28027,
14296,
6,
3886,
834,
14672,
834,
4350,
584,
4280,
28027,
599,
2079,
201,
3886,
834,
5064,
834,
4350,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5038,
834,
10208,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
10208,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
3,
22360,
6157,
332,
357,
9191,
332,
5411,
15991,
17,
834,
23,
... |
count the number of patients whose admission type is emergency and procedure long title is aortography? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.long_title = "Aortography" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who is the player in 20th place? | CREATE TABLE table_name_65 (player VARCHAR, placing VARCHAR) | SELECT player FROM table_name_65 WHERE placing = "20th place" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
20846,
584,
4280,
28027,
6,
9308,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
16,
460,
189,
286,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
9308,
3274,
96,
1755,
189,
286,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the game played where the record was 10-1? | CREATE TABLE table_27715173_6 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_27715173_6 WHERE record = "10-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4013,
26578,
4552,
834,
948,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
1944,
213,
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,
1128,
834,
15116,
663,
21680,
953,
834,
357,
4013,
26578,
4552,
834,
948,
549,
17444,
427,
1368,
3274,
96,
1714,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A scatter chart shows the correlation between Team_ID and School_ID . | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT Team_ID, School_ID FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the first member in the 1868 election? | CREATE TABLE table_name_79 (first_member VARCHAR, election VARCHAR) | SELECT first_member FROM table_name_79 WHERE election = "1868" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
14672,
834,
12066,
584,
4280,
28027,
6,
4356,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
166,
1144,
16,
8,
507,
3651,
4356,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
12066,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
4356,
3274,
96,
2606,
3651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the episode title for number 7 in the season? | CREATE TABLE table_23981882_1 (
title VARCHAR,
no_in_season VARCHAR
) | SELECT title FROM table_23981882_1 WHERE no_in_season = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3916,
2606,
4613,
834,
536,
41,
2233,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5640,
2233,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2773,
3916,
2606,
4613,
834,
536,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the top crowd when essendon played away? | CREATE TABLE table_10571 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MAX("Crowd") FROM table_10571 WHERE "Away team" = 'essendon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
4450,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
12869,
4450,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
8185,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What country has a 14 to par? | CREATE TABLE table_13196 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" text
) | SELECT "Country" FROM table_13196 WHERE "To par" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
26937,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
490,
6,
96,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
2368,
26937,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is average age of patients whose gender is f and days of hospital stay is 23? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.days_stay = "23" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest YARDS with a TCKL more than 51 and less than 2 SACK? | CREATE TABLE table_name_61 (yards INTEGER, tckl VARCHAR, sack VARCHAR) | SELECT MAX(yards) FROM table_name_61 WHERE tckl > 51 AND sack < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
6636,
7,
3,
21342,
17966,
6,
3,
17,
2406,
40,
584,
4280,
28027,
6,
3,
15525,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
6636,
7,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
3,
17,
2406,
40,
2490,
11696,
3430,
3,
15525,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average games a player born on 17 March 1915 and debut before 1935 had? | CREATE TABLE table_77668 (
"Debut year" real,
"Player" text,
"Date of birth" text,
"Games" real,
"Goals" real,
"Years at club" text
) | SELECT AVG("Games") FROM table_77668 WHERE "Date of birth" = '17 march 1915' AND "Debut year" < '1935' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3539,
927,
41,
96,
2962,
2780,
215,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
308,
342,
13,
3879,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
6221,
5405,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
23055,
7,
8512,
21680,
953,
834,
4013,
3539,
927,
549,
17444,
427,
96,
308,
342,
13,
3879,
121,
3274,
3,
31,
2517,
10556,
957,
1808,
31,
3430,
96,
2962,
2780,
215,
121,
3,
2,
3,
31,
2294,
24... |
was there more downloads in may or october ? | CREATE TABLE table_204_420 (
id number,
"month" text,
"song" text,
"artist" text,
"aggregate points" number,
"total downloads" number,
"year-end chart" number
) | SELECT "month" FROM table_204_420 WHERE "month" IN (5, 10) ORDER BY "total downloads" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
21899,
41,
3,
23,
26,
381,
6,
96,
7393,
121,
1499,
6,
96,
7,
2444,
121,
1499,
6,
96,
1408,
343,
121,
1499,
6,
96,
31761,
15,
979,
121,
381,
6,
96,
235,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7393,
121,
21680,
953,
834,
26363,
834,
21899,
549,
17444,
427,
96,
7393,
121,
3388,
9209,
6,
3,
16968,
4674,
11300,
272,
476,
96,
235,
1947,
946,
7,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,... |
Which Round has a Position of lb, and a Pick smaller than 25? | CREATE TABLE table_name_3 (round VARCHAR, position VARCHAR, pick VARCHAR) | SELECT COUNT(round) FROM table_name_3 WHERE position = "lb" AND pick < 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
7775,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9609,
65,
3,
9,
14258,
13,
3,
40,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1102,
3274,
96,
40,
115,
121,
3430,
1432,
3,
2,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what's the status in the style of ballet/ gymnastics? | CREATE TABLE table_name_73 (
status VARCHAR,
style VARCHAR
) | SELECT status FROM table_name_73 WHERE style = "ballet/ gymnastics" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2637,
584,
4280,
28027,
6,
869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
2637,
16,
8,
869,
13,
22201,
87,
23379,
7636,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2637,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
869,
3274,
96,
3184,
15,
17,
87,
23379,
7636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the theme when the date of issue is 11 january 2010? | CREATE TABLE table_25468520_1 (theme VARCHAR, date_of_issue VARCHAR) | SELECT theme FROM table_25468520_1 WHERE date_of_issue = "11 January 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4448,
4433,
1755,
834,
536,
41,
532,
526,
584,
4280,
28027,
6,
833,
834,
858,
834,
13159,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3800,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3800,
21680,
953,
834,
1828,
4448,
4433,
1755,
834,
536,
549,
17444,
427,
833,
834,
858,
834,
13159,
3274,
96,
2596,
1762,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the place that speaks xhosa, has a population less than 87,585, an area smaller than 1.28 squared kilometers, and a code larger than 27504? | CREATE TABLE table_76460 (
"Place" text,
"Code" real,
"Area (km 2 )" real,
"Population" real,
"Most spoken language" text
) | SELECT "Place" FROM table_76460 WHERE "Population" < '87,585' AND "Area (km 2 )" < '1.28' AND "Code" > '27504' AND "Most spoken language" = 'xhosa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
25991,
41,
96,
345,
11706,
121,
1499,
6,
96,
22737,
121,
490,
6,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
490,
6,
96,
27773,
7830,
121,
490,
6,
96,
329,
3481,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
3959,
25991,
549,
17444,
427,
96,
27773,
7830,
121,
3,
2,
3,
31,
4225,
6,
3449,
755,
31,
3430,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
3,
2,
3,
31,
10917,
927,
31,
3430,
... |
What is the lowest geohash length when the lat bits are less than 7, and the km error of ±2500? | CREATE TABLE table_name_94 (geohash_length INTEGER, lat_bits VARCHAR, km_error VARCHAR) | SELECT MIN(geohash_length) FROM table_name_94 WHERE lat_bits < 7 AND km_error = "±2500" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
397,
32,
107,
3198,
834,
19457,
3,
21342,
17966,
6,
50,
17,
834,
2360,
7,
584,
4280,
28027,
6,
2280,
834,
17262,
584,
4280,
28027,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
397,
32,
107,
3198,
834,
19457,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
50,
17,
834,
2360,
7,
3,
2,
489,
3430,
2280,
834,
17262,
3274,
96,
2,
357,
2560,
121,
1,
-100,
-100,
-100,
-1... |
In the Tournament during which Ji Nov k made it to the 1st round(1R) in 1995, how did he do in 2001? | CREATE TABLE table_7415 (
"Tournament" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text
) | SELECT "2001" FROM table_7415 WHERE "1995" = '1r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
1808,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
19479,
17395,
1499,
6,
96,
2294,
4314,
121,
1499,
6,
96,
2294,
4327,
121,
1499,
6,
96,
2294,
3916,
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,
23658,
121,
21680,
953,
834,
4581,
1808,
549,
17444,
427,
96,
19479,
17395,
3274,
3,
31,
536,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the percentage listed for the team who scored 63 points? | CREATE TABLE table_28428 (
"Club" text,
"Wins" real,
"Losses" real,
"Points For" real,
"Points Against" real,
"Percentage" text,
"Points" real
) | SELECT "Percentage" FROM table_28428 WHERE "Points For" = '63' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
2577,
41,
96,
254,
11158,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
22512,
7,
242,
121,
490,
6,
96,
22512,
7,
3,
20749,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12988,
3728,
545,
121,
21680,
953,
834,
357,
4608,
2577,
549,
17444,
427,
96,
22512,
7,
242,
121,
3274,
3,
31,
3891,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When is the winner panathinaikos, the runner-up olympiacos and the venue nikos goumas stadium? | CREATE TABLE table_name_65 (
year VARCHAR,
venue VARCHAR,
winner VARCHAR,
runner_up VARCHAR
) | SELECT year FROM table_name_65 WHERE winner = "panathinaikos" AND runner_up = "olympiacos" AND venue = "nikos goumas stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
215,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
4668,
3274,
96,
2837,
144,
2907,
9,
12027,
7,
121,
3430,
3,
10806,
834,
413,
3274,
96,
32,
120,
1167,
23,
9,
509,
7,
121,
3430,
5669,
3274,
96,
4953,
32,
7... |
What was the record when the high rebound was Deandre Jordan (11)? | CREATE TABLE table_name_63 (
record VARCHAR,
high_rebounds VARCHAR
) | SELECT record FROM table_name_63 WHERE high_rebounds = "deandre jordan (11)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
1368,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
116,
8,
306,
20756,
47,
374,
232,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
306,
834,
23768,
3274,
96,
221,
232,
60,
3,
12775,
3768,
4077,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest value for 1990, when the Region is East Asia (10 Economies), and when 1960 has a value less than 12.6? | CREATE TABLE table_48980 (
"Region" text,
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"2000" real
) | SELECT MIN("1990") FROM table_48980 WHERE "Region" = 'east asia (10 economies)' AND "1960" < '12.6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3914,
2079,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
2294,
1752,
121,
490,
6,
96,
2294,
3328,
121,
490,
6,
96,
2294,
2518,
121,
490,
6,
96,
2294,
2079,
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,
2294,
2394,
8512,
21680,
953,
834,
591,
3914,
2079,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
11535,
3,
15974,
11704,
18239,
61,
31,
3430,
96,
2294,
3328,
121,
3,
2,
3,
31,
9368,
... |
What kind of Pada 4 has a Pada 1 of ju/khi? | CREATE TABLE table_75566 (
"Name" text,
"Pada 1" text,
"Pada 2" text,
"Pada 3" text,
"Pada 4" text
) | SELECT "Pada 4" FROM table_75566 WHERE "Pada 1" = 'खी ju/khi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
755,
3539,
41,
96,
23954,
121,
1499,
6,
96,
21853,
9,
209,
121,
1499,
6,
96,
21853,
9,
204,
121,
1499,
6,
96,
21853,
9,
220,
121,
1499,
6,
96,
21853,
9,
3,
20364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21853,
9,
3,
20364,
21680,
953,
834,
3072,
755,
3539,
549,
17444,
427,
96,
21853,
9,
209,
121,
3274,
3,
31,
2,
3,
2047,
87,
29392,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what are the allergy types and how many allergies correspond to each one?, could you display in desc by the Y-axis please? | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGE... | SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
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,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
432,
49,
122,
63,
834,
25160,
350,
4630,
6880,
272,
476,
432,
49,
122,
63,
25160,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-1... |
During melbourne's home game, who was the away team? | CREATE TABLE table_name_51 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_51 WHERE home_team = "melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
2092,
3,
2341,
26255,
31,
7,
234,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
234,
834,
11650,
3274,
96,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose diagnoses icd9 code is 9600 and drug type is additive? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "9600" AND prescriptions.drug_type = "ADDITIVE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
does cadiz or granada have a laerger population ? | CREATE TABLE table_203_3 (
id number,
"province" text,
"capital" text,
"population" number,
"density" text,
"municipalities" text,
"legal districts" number
) | SELECT "province" FROM table_203_3 WHERE "province" IN ('cadiz', 'granada') ORDER BY "population" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
41,
3,
23,
26,
381,
6,
96,
1409,
2494,
565,
121,
1499,
6,
96,
4010,
9538,
121,
1499,
6,
96,
9791,
7830,
121,
381,
6,
96,
537,
7,
485,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1409,
2494,
565,
121,
21680,
953,
834,
23330,
834,
519,
549,
17444,
427,
96,
1409,
2494,
565,
121,
3388,
41,
31,
658,
26,
23,
172,
31,
6,
3,
31,
3484,
18089,
31,
61,
4674,
11300,
272,
476,
96,
9791,
7830,
12... |
for loss , what 's the number of times labor party is listed ? | CREATE TABLE table_203_81 (
id number,
"date" text,
"constituency" text,
"gain" text,
"loss" text,
"note" text
) | SELECT COUNT(*) FROM table_203_81 WHERE "loss" = 'labour party' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4959,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
8056,
17,
155,
76,
4392,
121,
1499,
6,
96,
16720,
121,
1499,
6,
96,
2298,
7,
121,
1499,
6,
96,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
4959,
549,
17444,
427,
96,
2298,
7,
121,
3274,
3,
31,
9339,
1211,
1088,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the average losses for draws larger than 6 and played more than 38 | CREATE TABLE table_name_58 (
losses INTEGER,
draws VARCHAR,
played VARCHAR
) | SELECT AVG(losses) FROM table_name_58 WHERE draws > 6 AND played > 38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
8467,
3,
21342,
17966,
6,
14924,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
8467,
21,
14924,
2186,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
14924,
2490,
431,
3430,
1944,
2490,
6654,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many different original air dates did the episode number 6 have? | CREATE TABLE table_13426649_1 (original_air_date VARCHAR, _number VARCHAR) | SELECT COUNT(original_air_date) FROM table_13426649_1 WHERE _number = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
3539,
3647,
834,
536,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
21878,
834,
2256,
834,
5522,
61,
21680,
953,
834,
2368,
4165,
3539,
3647,
834,
536,
549,
17444,
427,
3,
834,
5525,
1152,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the time (GMT) for the 12A Serial? | CREATE TABLE table_name_9 (time___gmt__ VARCHAR, serial VARCHAR) | SELECT time___gmt__ FROM table_name_9 WHERE serial = "12a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
715,
834,
834,
834,
122,
51,
17,
834,
834,
584,
4280,
28027,
6,
10501,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
97,
41,
7381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
834,
834,
834,
122,
51,
17,
834,
834,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
10501,
3274,
96,
2122,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the n Africa in 2012 with an N/A as the CPLP? | CREATE TABLE table_name_54 (
n_africa_rank VARCHAR,
year VARCHAR,
cplp_rank VARCHAR
) | SELECT n_africa_rank FROM table_name_54 WHERE year = 2012 AND cplp_rank = "n/a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
3,
29,
834,
9,
89,
2234,
9,
834,
6254,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
3,
75,
102,
40,
102,
834,
6254,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
29,
834,
9,
89,
2234,
9,
834,
6254,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
215,
3274,
1673,
3430,
3,
75,
102,
40,
102,
834,
6254,
3274,
96,
29,
87,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which music is jive? | CREATE TABLE table_name_20 (
music VARCHAR,
style VARCHAR
) | SELECT music FROM table_name_20 WHERE style = "jive" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
723,
584,
4280,
28027,
6,
869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
723,
19,
3,
354,
757,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
723,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
869,
3274,
96,
354,
757,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
when points were 36 and points against 489 what is the lost? | CREATE TABLE table_name_58 (lost VARCHAR, points VARCHAR, points_against VARCHAR) | SELECT lost FROM table_name_58 WHERE points = "36" AND points_against = "489" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
2298,
17,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
116,
979,
130,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1513,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
979,
3274,
96,
3420,
121,
3430,
979,
834,
9,
16720,
7,
17,
3274,
96,
591,
3914,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name and salary for employee with id 242518965? | CREATE TABLE Employee (name VARCHAR, salary VARCHAR, eid VARCHAR) | SELECT name, salary FROM Employee WHERE eid = 242518965 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15871,
41,
4350,
584,
4280,
28027,
6,
9090,
584,
4280,
28027,
6,
3,
15,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
11,
9090,
21,
3490,
28,
3,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
6,
9090,
21680,
15871,
549,
17444,
427,
3,
15,
23,
26,
3274,
997,
1828,
25312,
4122,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average number played of the team with 1 drawn and 24 against? | CREATE TABLE table_name_79 (played INTEGER, drawn VARCHAR, against VARCHAR) | SELECT AVG(played) FROM table_name_79 WHERE drawn = 1 AND against = 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
4895,
15,
26,
3,
21342,
17966,
6,
6796,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
1944,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
6796,
3274,
209,
3430,
581,
3274,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was there a school founded in 1927? | CREATE TABLE table_2064747_1 (location_s_ VARCHAR, founded VARCHAR) | SELECT location_s_ FROM table_2064747_1 WHERE founded = 1927 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24643,
4177,
4177,
834,
536,
41,
14836,
834,
7,
834,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
132,
3,
9,
496,
5710,
16,
957... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
834,
7,
834,
21680,
953,
834,
24643,
4177,
4177,
834,
536,
549,
17444,
427,
5710,
3274,
957,
2555,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the episode title for number 7 in the season? | CREATE TABLE table_26455 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Title" FROM table_26455 WHERE "No. in season" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
3769,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
26755,
3769,
549,
17444,
427,
96,
4168,
5,
16,
774,
121,
3274,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of times patient 002-39247 has been tested for creatinine in labs since 51 months ago. | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
sy... | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-39247')) AND lab.labname = 'creatinine' AND DATETIME(lab.labresulttime) >= DATETIME(CURR... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
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,
2847,
17161,
599,
1935,
61,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
... |
how many porphyria have substrate δ-aminolevulinic acid | CREATE TABLE table_182499_1 (porphyria VARCHAR, substrate VARCHAR) | SELECT COUNT(porphyria) FROM table_182499_1 WHERE substrate = "δ-Aminolevulinic acid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2266,
3264,
834,
536,
41,
102,
127,
6941,
52,
23,
9,
584,
4280,
28027,
6,
17019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
5569,
6941,
52,
23,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
102,
127,
6941,
52,
23,
9,
61,
21680,
953,
834,
2606,
2266,
3264,
834,
536,
549,
17444,
427,
17019,
3274,
96,
2,
18,
188,
1109,
32,
10912,
83,
77,
447,
3562,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
Name the most point with population less than 144,444 and age of 1.0 | CREATE TABLE table_67742 (
"Island" text,
"Nickname" text,
"Area" text,
"Population (as of 2010)" real,
"Highest point" text,
"Elevation" text,
"Age ( Ma )" text
) | SELECT "Highest point" FROM table_67742 WHERE "Population (as of 2010)" < '144,444' AND "Age ( Ma )" = '1.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4581,
357,
41,
96,
196,
7,
40,
232,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
27773,
7830,
41,
9,
7,
13,
2735,
61,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
222,
500,
121,
21680,
953,
834,
3708,
4581,
357,
549,
17444,
427,
96,
27773,
7830,
41,
9,
7,
13,
2735,
61,
121,
3,
2,
3,
31,
20885,
6,
591,
3628,
31,
3430,
96,
188,
397,
41,
1534,
3,
61,
121,
3274,
... |
I want the circuit for jim clark | CREATE TABLE table_name_25 (
circuit VARCHAR,
fastest_lap VARCHAR
) | SELECT circuit FROM table_name_25 WHERE fastest_lap = "jim clark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
4558,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
4558,
21,
3,
354,
603,
6860,
157,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4558,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
10391,
834,
8478,
3274,
96,
354,
603,
6860,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by weekday. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309... |
when did patient 015-59871 receive procedures for the first time during their last hospital visit? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalp... | SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-59871' AND NOT patient.hospitaldischargetime IS NULL ORDER BY... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
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,
1058,
5,
26889,
715,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
... |
How many weeks are there? | CREATE TABLE table_16216 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT MAX("Week") FROM table_16216 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
27184,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
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,
4800,
4,
599,
121,
518,
10266,
8512,
21680,
953,
834,
2938,
27184,
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,... |
What record has February 25 as the date? | CREATE TABLE table_37846 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Record" FROM table_37846 WHERE "Date" = 'february 25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3940,
4448,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
519,
3940,
4448,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
89,
15,
9052,
1208,
944,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the person with a type of end of contract, nat of sco, and the Moving to is cardiff city? | CREATE TABLE table_51978 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text
) | SELECT "Name" FROM table_51978 WHERE "Type" = 'end of contract' AND "Nat." = 'sco' AND "Moving to" = 'cardiff city' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
21441,
41,
96,
567,
144,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
329,
32,
3745,
12,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
18474,
1010,
2034,
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,
23954,
121,
21680,
953,
834,
5553,
21441,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
989,
13,
1696,
31,
3430,
96,
567,
144,
535,
3274,
3,
31,
3523,
31,
3430,
96,
329,
32,
3745,
12,
121,
3274,
3,
31,
6043,... |
Who was the association that Daniel Mananta belonged to after 2011? | CREATE TABLE table_9703 (
"Year" real,
"Association" text,
"Category" text,
"Nominee" text,
"Result" text
) | SELECT "Association" FROM table_9703 WHERE "Nominee" = 'daniel mananta' AND "Year" > '2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4327,
4928,
41,
96,
476,
2741,
121,
490,
6,
96,
25714,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
4168,
8695,
15,
121,
1499,
6,
96,
20119,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25714,
121,
21680,
953,
834,
4327,
4928,
549,
17444,
427,
96,
4168,
8695,
15,
121,
3274,
3,
31,
26,
2738,
15,
40,
388,
288,
9,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
13907,
31,
1,
-100,
-100,
-100,
-100,... |
What was the highest number of oppenents points recorded for game 9 when the attendance was less than 60,091? | CREATE TABLE table_name_85 (
opponents INTEGER,
game VARCHAR,
attendance VARCHAR
) | SELECT MAX(opponents) FROM table_name_85 WHERE game = 9 AND attendance < 60 OFFSET 091 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
16383,
3,
21342,
17966,
6,
467,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
381,
13,
3,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
32,
102,
9977,
7,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
467,
3274,
668,
3430,
11364,
3,
2,
1640,
3,
15316,
20788,
14146,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What draft pick number was Ric Jackman? | CREATE TABLE table_2840500_1 (pick INTEGER, player VARCHAR) | SELECT MIN(pick) FROM table_2840500_1 WHERE player = "Ric Jackman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2445,
2560,
834,
536,
41,
17967,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
6488,
1432,
381,
47,
2403,
75,
4496,
348,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17967,
61,
21680,
953,
834,
2577,
2445,
2560,
834,
536,
549,
17444,
427,
1959,
3274,
96,
448,
447,
4496,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the amount of hire_date bin hire_date by time, list by the Y from low to high please. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
... |
provide the number of patients whose year of death is less than or equal to 2183 and diagnoses long title is cerebral thrombosis with cerebral infarction? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2183.0" AND diagnoses.long_title = "Cerebral thrombosis with cerebral infarction" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which Faroese has an English of white? | CREATE TABLE table_56604 (
"Faroese" text,
"Norwegian (bokm\u00e5l)" text,
"Norwegian (nynorsk)" text,
"English" text,
"Icelandic" text,
"Danish" text,
"Swedish" text,
"German" text,
"Dutch" text
) | SELECT "Faroese" FROM table_56604 WHERE "English" = 'white' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
3328,
591,
41,
96,
371,
291,
32,
15,
7,
15,
121,
1499,
6,
96,
567,
127,
1123,
22898,
41,
22483,
51,
2,
76,
1206,
15,
755,
40,
61,
121,
1499,
6,
96,
567,
127,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
291,
32,
15,
7,
15,
121,
21680,
953,
834,
4834,
3328,
591,
549,
17444,
427,
96,
26749,
121,
3274,
3,
31,
13698,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many assets in billions US$, for the company that ranked 1532 overall in 2013? | CREATE TABLE table_23950611_2 (
assets__bil_usd__ VARCHAR,
rank__all__2013 VARCHAR
) | SELECT assets__bil_usd__ FROM table_23950611_2 WHERE rank__all__2013 = 1532 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3301,
5176,
2596,
834,
357,
41,
4089,
834,
834,
3727,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
11003,
834,
834,
1748,
834,
834,
11138,
584,
4280,
28027,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4089,
834,
834,
3727,
834,
302,
26,
834,
834,
21680,
953,
834,
2773,
3301,
5176,
2596,
834,
357,
549,
17444,
427,
11003,
834,
834,
1748,
834,
834,
11138,
3274,
627,
2668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many viewers in millions watched the episode with the number 10.18? | CREATE TABLE table_3269 (
"Episode Number" text,
"Episode" text,
"Original Airdate" text,
"Rating" text,
"Share" text,
"Rating/Share (18\u201349)" text,
"Viewers (millions)" text,
"Weekly Rank" real
) | SELECT "Viewers (millions)" FROM table_3269 WHERE "Episode Number" = '10.18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
3951,
41,
96,
427,
102,
159,
32,
221,
7720,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
667,
3380,
10270,
1761,
5522,
121,
1499,
6,
96,
448,
1014,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15270,
277,
41,
17030,
7,
61,
121,
21680,
953,
834,
2668,
3951,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
7720,
121,
3274,
3,
31,
10415,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the team's record against philadelphia? | CREATE TABLE table_27882867_8 (
record VARCHAR,
team VARCHAR
) | SELECT record FROM table_27882867_8 WHERE team = "Philadelphia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4060,
2577,
3708,
834,
927,
41,
1368,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
372,
31,
7,
1368,
581,
3,
18118,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
2555,
4060,
2577,
3708,
834,
927,
549,
17444,
427,
372,
3274,
96,
23305,
15311,
11692,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Driver has a Date of 16th september 1951, and a Race of dns? | CREATE TABLE table_name_8 (driver VARCHAR, date VARCHAR, race VARCHAR) | SELECT driver FROM table_name_8 WHERE date = "16th september 1951" AND race = "dns" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
13739,
52,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
10546,
65,
3,
9,
7678,
13,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
833,
3274,
96,
2938,
189,
16022,
18247,
25684,
121,
3430,
1964,
3274,
96,
26,
29,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had a transfer fee of dkk 6m? | CREATE TABLE table_name_39 (name VARCHAR, transfer_fee VARCHAR) | SELECT name FROM table_name_39 WHERE transfer_fee = "dkk 6m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
4350,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
3,
9,
2025,
2572,
13,
3,
26,
8511,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2025,
834,
89,
15,
15,
3274,
96,
26,
8511,
431,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which player attended Hoover High School? | CREATE TABLE table_name_94 (
player VARCHAR,
school VARCHAR
) | SELECT player FROM table_name_94 WHERE school = "hoover high school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1959,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
5526,
1546,
1890,
1592,
1121,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
496,
3274,
96,
107,
32,
1890,
306,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what are all the district with incumbent being sam hobbs | CREATE TABLE table_18622 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_18622 WHERE "Incumbent" = 'Sam Hobbs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
2884,
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,
308,
23,
20066,
121,
21680,
953,
834,
25398,
2884,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
134,
265,
26100,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many different engines are there for the model with model designation 97G00? | CREATE TABLE table_20866024_2 (
engine VARCHAR,
model_designation VARCHAR
) | SELECT COUNT(engine) FROM table_20866024_2 WHERE model_designation = "97G00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23946,
27720,
2266,
834,
357,
41,
1948,
584,
4280,
28027,
6,
825,
834,
9124,
257,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
7277,
33,
132,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20165,
61,
21680,
953,
834,
23946,
27720,
2266,
834,
357,
549,
17444,
427,
825,
834,
9124,
257,
3274,
96,
4327,
517,
1206,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the coronie with a 0.7% nickerie? | CREATE TABLE table_name_92 (coronie VARCHAR, nickerie VARCHAR) | SELECT coronie FROM table_name_92 WHERE nickerie = "0.7%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
509,
18074,
15,
584,
4280,
28027,
6,
3,
11191,
4074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
576,
18074,
15,
28,
3,
9,
4097,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
576,
18074,
15,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
3,
11191,
4074,
3274,
96,
22426,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Captain has Lost 13? | CREATE TABLE table_name_28 (captain VARCHAR, lost VARCHAR) | SELECT captain FROM table_name_28 WHERE lost = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
4010,
17,
9,
77,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
12202,
65,
19576,
1179,
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,
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,
14268,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1513,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.