NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which team scores 119 in round 4? | CREATE TABLE table_name_1 (
club_team VARCHAR,
round VARCHAR,
overall VARCHAR
) | SELECT club_team FROM table_name_1 WHERE round = 4 AND overall = 119 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
1886,
834,
11650,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
7586,
3,
19993,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1886,
834,
11650,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
1751,
3274,
314,
3430,
1879,
3274,
3,
19993,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Entered service date of the T413? | CREATE TABLE table_name_32 (entered_service VARCHAR, delivered_as VARCHAR) | SELECT entered_service FROM table_name_32 WHERE delivered_as = "t413" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
35,
11196,
834,
5114,
584,
4280,
28027,
6,
3566,
834,
9,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
695,
11196,
313,
833,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5136,
834,
5114,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3566,
834,
9,
7,
3274,
96,
17,
591,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Set 1 with a Set 2 that is 25-19? | CREATE TABLE table_name_12 (set_1 VARCHAR, set_2 VARCHAR) | SELECT set_1 FROM table_name_12 WHERE set_2 = "25-19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
2244,
834,
536,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2821,
209,
28,
3,
9,
2821,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
356,
834,
536,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
356,
834,
357,
3274,
96,
1828,
4481,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Date for less than 122 countries and a 47% rank? | CREATE TABLE table_name_60 (
date VARCHAR,
countries_surveyed VARCHAR,
_percentage_rank VARCHAR
) | SELECT date FROM table_name_60 WHERE countries_surveyed < 122 AND _percentage_rank = "47" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
833,
584,
4280,
28027,
6,
1440,
834,
25384,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
6254,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1440,
834,
25384,
3,
2,
3,
20889,
3430,
3,
834,
883,
3728,
545,
834,
6254,
3274,
96,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of points for 1952 | CREATE TABLE table_68479 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT COUNT("Points") FROM table_68479 WHERE "Year" = '1952' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
591,
4440,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3651,
591,
4440,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
22464,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the candidate when the result - % was 0.4%? | CREATE TABLE table_25818630_2 (
candidate VARCHAR,
result____percentage VARCHAR
) | SELECT candidate FROM table_25818630_2 WHERE result____percentage = "0.4%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4959,
3840,
1458,
834,
357,
41,
4775,
584,
4280,
28027,
6,
741,
834,
834,
834,
834,
883,
3728,
545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4775,
21680,
953,
834,
1828,
4959,
3840,
1458,
834,
357,
549,
17444,
427,
741,
834,
834,
834,
834,
883,
3728,
545,
3274,
96,
22776,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the chambering for the 8339 f bolt ( kgf )? | CREATE TABLE table_26967904_2 (
chambering VARCHAR,
f_bolt___kgf__ VARCHAR
) | SELECT chambering FROM table_26967904_2 WHERE f_bolt___kgf__ = 8339 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4314,
4440,
6348,
834,
357,
41,
10751,
53,
584,
4280,
28027,
6,
3,
89,
834,
4243,
17,
834,
834,
834,
8711,
89,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
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,
10751,
53,
21680,
953,
834,
2688,
4314,
4440,
6348,
834,
357,
549,
17444,
427,
3,
89,
834,
4243,
17,
834,
834,
834,
8711,
89,
834,
834,
3274,
3,
4591,
3288,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the game number when the record is 30-22? | CREATE TABLE table_47035 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT AVG("Game") FROM table_47035 WHERE "Record" = '30-22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27760,
2469,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
23055,
8512,
21680,
953,
834,
27760,
2469,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1458,
16149,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the Time/Retired of Ivan Capelli? | CREATE TABLE table_name_61 (time_retired VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_61 WHERE driver = "ivan capelli" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
715,
834,
10682,
1271,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2900,
87,
1649,
11809,
26,
13,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
2535,
3274,
96,
23,
2132,
2468,
7999,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the method of opponent georges st-pierre? | CREATE TABLE table_name_22 (method VARCHAR, opponent VARCHAR) | SELECT method FROM table_name_22 WHERE opponent = "georges st-pierre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
23152,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1573,
13,
15264,
873,
127,
2897,
3,
7,
17,
18,
8343... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1573,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
15264,
3274,
96,
397,
127,
2897,
3,
7,
17,
18,
8343,
60,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many apperances for shakhtar donetsk? | CREATE TABLE table_name_84 (
appearances VARCHAR,
team VARCHAR
) | SELECT COUNT(appearances) FROM table_name_84 WHERE team = "shakhtar donetsk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
3179,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1120,
49,
663,
7,
21,
6660,
18965,
2046,
612,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3096,
2741,
663,
7,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
372,
3274,
96,
7,
15416,
107,
2046,
612,
17,
7,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of the game against Philadelphia Eagles? | CREATE TABLE table_43637 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Date" FROM table_43637 WHERE "Opponent" = 'philadelphia eagles' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3420,
4118,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
3420,
4118,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
18118,
15311,
11692,
9,
3,
15,
9,
3537,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the church name for the church located in Kyrkjeb ? | CREATE TABLE table_1770 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sogn)" text,
"Church Name" text,
"Year Built" real,
"Location of the Church" text
) | SELECT "Church Name" FROM table_1770 WHERE "Location of the Church" = 'Kyrkjebø' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2518,
41,
96,
13212,
1273,
41,
10572,
849,
122,
354,
8804,
61,
121,
1499,
6,
96,
25252,
18,
13212,
1273,
41,
5231,
122,
29,
61,
121,
1499,
6,
96,
3541,
450,
524,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3541,
450,
524,
5570,
121,
21680,
953,
834,
2517,
2518,
549,
17444,
427,
96,
434,
32,
75,
257,
13,
8,
2345,
121,
3274,
3,
31,
439,
63,
52,
157,
1924,
115,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which visitor lives in Minnesota? | CREATE TABLE table_name_23 (visitor VARCHAR, home VARCHAR) | SELECT visitor FROM table_name_23 WHERE home = "minnesota" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
3466,
155,
127,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7019,
1342,
16,
9745,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
234,
3274,
96,
1109,
1496,
32,
17,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What record has November 15 as the date? | CREATE TABLE table_name_32 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_32 WHERE date = "november 15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1368,
65,
1671,
627,
38,
8,
833,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title for episode number in series of 28? | CREATE TABLE table_24475 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT "Title" FROM table_24475 WHERE "No. in series" = '28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3628,
3072,
41,
96,
4168,
5,
16,
939,
121,
1499,
6,
96,
4168,
5,
16,
774,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
357,
3628,
3072,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
With the Winter Olympics was 1960, what was the country? | CREATE TABLE table_name_53 (
country VARCHAR,
winter_olympics VARCHAR
) | SELECT country FROM table_name_53 WHERE winter_olympics = "1960" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
684,
584,
4280,
28027,
6,
2265,
834,
32,
120,
51,
6174,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
8,
4272,
17793,
47,
8754,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
2265,
834,
32,
120,
51,
6174,
7,
3274,
96,
2294,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many matches has Mohammad Al-Shamlan played when there is 1 win? | CREATE TABLE table_name_43 (
matches VARCHAR,
wins VARCHAR,
name VARCHAR
) | SELECT matches FROM table_name_43 WHERE wins = "1" AND name = "mohammad al-shamlan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
6407,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6407,
65,
1290,
1483,
11374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6407,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
9204,
3274,
96,
536,
121,
3430,
564,
3274,
96,
51,
32,
1483,
11374,
491,
18,
7,
1483,
1618,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
During which years did number 13 play for the Rockets? | CREATE TABLE table_11734041_3 (
years_for_rockets VARCHAR,
no_s_ VARCHAR
) | SELECT years_for_rockets FROM table_11734041_3 WHERE no_s_ = "13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
21129,
4853,
834,
519,
41,
203,
834,
1161,
834,
6133,
15,
17,
7,
584,
4280,
28027,
6,
150,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
1161,
834,
6133,
15,
17,
7,
21680,
953,
834,
20275,
21129,
4853,
834,
519,
549,
17444,
427,
150,
834,
7,
834,
3274,
96,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many different poll companies are represented ? | CREATE TABLE table_204_639 (
id number,
"poll company" text,
"source" text,
"publication date" text,
"psuv" number,
"opposition" number,
"undecided" number
) | SELECT COUNT(DISTINCT "poll company") FROM table_204_639 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
3288,
41,
3,
23,
26,
381,
6,
96,
3233,
40,
349,
121,
1499,
6,
96,
7928,
121,
1499,
6,
96,
15727,
257,
833,
121,
1499,
6,
96,
102,
7,
76,
208,
121,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3233,
40,
349,
8512,
21680,
953,
834,
26363,
834,
948,
3288,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many losing hands are there before 2007? | CREATE TABLE table_12454156_1 (losing_hand VARCHAR, year VARCHAR) | SELECT COUNT(losing_hand) FROM table_12454156_1 WHERE year = 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
5062,
25463,
834,
536,
41,
2298,
53,
834,
2894,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5489,
1780,
33,
132,
274,
4101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2298,
53,
834,
2894,
61,
21680,
953,
834,
22504,
5062,
25463,
834,
536,
549,
17444,
427,
215,
3274,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which largest average had 1229 yards? | CREATE TABLE table_52703 (
"Player" text,
"Rec." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
) | SELECT MAX("Avg.") FROM table_52703 WHERE "Yards" = '1229' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
2518,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
1649,
75,
535,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
188,
208,
122,
535,
490,
6,
96,
10494,
31,
7,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
188,
208,
122,
5,
8512,
21680,
953,
834,
5373,
2518,
519,
549,
17444,
427,
96,
476,
986,
7,
121,
3274,
3,
31,
2122,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many clubs remained when there were 4 winners from the previous round? | CREATE TABLE table_31235 (
"Round" text,
"Clubs remaining" real,
"Clubs involved" real,
"Winners from previous round" real,
"New entries this round" text,
"Leagues entering at this round" text
) | SELECT "Clubs remaining" FROM table_31235 WHERE "Winners from previous round" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
25174,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
11158,
7,
4080,
121,
490,
6,
96,
254,
11158,
7,
1381,
121,
490,
6,
96,
18455,
687,
7,
45,
1767,
1751,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
11158,
7,
4080,
121,
21680,
953,
834,
3341,
25174,
549,
17444,
427,
96,
18455,
687,
7,
45,
1767,
1751,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the number of opening years for three churches that opened most recently in a bar chart. Bin the year into the weekday interval. | CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age int
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of t... | SELECT Open_Date, COUNT(Open_Date) FROM church ORDER BY Open_Date DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
27,
7,
834,
329,
9,
109,
1499,
6,
7526,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2384,
834,
308,
342,
6,
2847,
17161,
599,
22696,
834,
308,
342,
61,
21680,
2078,
4674,
11300,
272,
476,
2384,
834,
308,
342,
309,
25067,
8729,
12604,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those records from the products and each product's manufacturer, show me about the distribution of name and the sum of price , and group by attribute name in a bar chart, show x axis in asc order please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
441... |
What is the contract length when rejected is the status? | CREATE TABLE table_name_55 (
contract_length VARCHAR,
status VARCHAR
) | SELECT contract_length FROM table_name_55 WHERE status = "rejected" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
1696,
834,
19457,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1696,
2475,
116,
12967,
19,
8,
2637,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1696,
834,
19457,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
2637,
3274,
96,
60,
354,
7633,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the insurance and drug code for the patient id 24425? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT demographic.insurance, prescriptions.formulary_drug_cd FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "24425" | [
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,
14798,
5,
29441,
6,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549,
... |
What is the 2nd leg for the team #2 junior? | CREATE TABLE table_name_18 (
team__number2 VARCHAR
) | SELECT 2 AS nd_leg FROM table_name_18 WHERE team__number2 = "junior" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
372,
834,
834,
5525,
1152,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
204,
727,
4553,
21,
8,
372,
15493,
9212,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
204,
6157,
3,
727,
834,
5772,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
372,
834,
834,
5525,
1152,
357,
3274,
96,
6959,
23,
127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where is the club 'Pen and Paper Gaming' located? | CREATE TABLE member_of_club (
stuid number,
clubid number,
position text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE club (
clubid number,
clubname text,
clubdes... | SELECT clublocation FROM club WHERE clubname = "Pen and Paper Gaming" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
858,
834,
13442,
41,
21341,
23,
26,
381,
6,
1886,
23,
26,
381,
6,
1102,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
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,
1886,
14836,
21680,
1886,
549,
17444,
427,
1886,
4350,
3274,
96,
345,
35,
11,
6564,
18613,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many games total were played ? | CREATE TABLE table_204_388 (
id number,
"#" number,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"pts" number
) | SELECT COUNT(*) FROM table_204_388 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
4060,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
3466,
155,
127,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
5515,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
519,
4060,
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... |
Which College/junior/club team has a Round of 4? | CREATE TABLE table_name_11 (college_junior_club_team VARCHAR, round VARCHAR) | SELECT college_junior_club_team FROM table_name_11 WHERE round = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
3297,
7883,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1888,
87,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
1751,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country has the Highest mountain of rettlkirchspitze? | CREATE TABLE table_52140 (
"AVE- No." text,
"Name" text,
"Country" text,
"Highest mountain" text,
"Height (m)" real
) | SELECT "Country" FROM table_52140 WHERE "Highest mountain" = 'rettlkirchspitze' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
22012,
41,
96,
18111,
18,
465,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
21417,
222,
4180,
121,
1499,
6,
96,
3845,
2632,
41,
51,
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,
10628,
651,
121,
21680,
953,
834,
5373,
22012,
549,
17444,
427,
96,
21417,
222,
4180,
121,
3274,
3,
31,
60,
17,
17,
40,
18413,
524,
27933,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the name of the airport with an IATA of KUF? | CREATE TABLE table_name_68 (
airport VARCHAR,
iata VARCHAR
) | SELECT airport FROM table_name_68 WHERE iata = "kuf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
3761,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
3761,
28,
46,
27,
19282,
13,
480... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3761,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
3,
17221,
3274,
96,
2729,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When tim mack is on team usa what is the progressive total? | CREATE TABLE table_19072602_3 (progressive_total VARCHAR, team_usa VARCHAR) | SELECT progressive_total FROM table_19072602_3 WHERE team_usa = "Tim Mack" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4560,
18365,
357,
834,
519,
41,
1409,
10292,
757,
834,
235,
1947,
584,
4280,
28027,
6,
372,
834,
302,
9,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9018,
834,
235,
1947,
21680,
953,
834,
2294,
4560,
18365,
357,
834,
519,
549,
17444,
427,
372,
834,
302,
9,
3274,
96,
382,
603,
19155,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score when York City was home? | CREATE TABLE table_46926 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_46926 WHERE "Home team" = 'york city' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3951,
2688,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
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,
134,
9022,
121,
21680,
953,
834,
591,
3951,
2688,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
63,
127,
157,
690,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many bush% with total# being 191269 | CREATE TABLE table_13608101_1 (
bush_percentage VARCHAR,
total_number VARCHAR
) | SELECT COUNT(bush_percentage) FROM table_13608101_1 WHERE total_number = 191269 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
4018,
19621,
834,
536,
41,
17907,
834,
883,
3728,
545,
584,
4280,
28027,
6,
792,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3465,
107,
834,
883,
3728,
545,
61,
21680,
953,
834,
23459,
4018,
19621,
834,
536,
549,
17444,
427,
792,
834,
5525,
1152,
3274,
957,
2122,
3951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Date with a Score that is 46-77? | CREATE TABLE table_name_65 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_65 WHERE score = "46-77" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
28,
3,
9,
17763,
24,
19,
9668,
18,
4013,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
2604,
3274,
96,
4448,
18,
4013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
With a Date of 22 July, what is the Winning team? | CREATE TABLE table_name_43 (
winning_team VARCHAR,
date VARCHAR
) | SELECT winning_team FROM table_name_43 WHERE date = "22 july" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
3447,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
9,
7678,
13,
1630,
1718,
6,
125,
19,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
11650,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
833,
3274,
96,
2884,
3,
2047,
120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the number of music directors where the suresh wadkar co singer of bhayanak? | CREATE TABLE table_11827596_4 (music_director VARCHAR, co_singer VARCHAR, film_name VARCHAR) | SELECT COUNT(music_director) FROM table_11827596_4 WHERE co_singer = "Suresh Wadkar" AND film_name = "Bhayanak" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
25988,
4314,
834,
591,
41,
22170,
834,
25982,
584,
4280,
28027,
6,
576,
834,
7,
9963,
584,
4280,
28027,
6,
814,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22170,
834,
25982,
61,
21680,
953,
834,
20056,
25988,
4314,
834,
591,
549,
17444,
427,
576,
834,
7,
9963,
3274,
96,
134,
7665,
107,
3129,
26,
4031,
121,
3430,
814,
834,
4350,
3274,
96,
279,
12687,
... |
Count the number of accounts. | CREATE TABLE accounts (
account_id number,
customer_id number,
account_name text,
other_account_details text
)
CREATE TABLE financial_transactions (
transaction_id number,
previous_transaction_id number,
account_id number,
card_id number,
transaction_type text,
transaction_date ... | SELECT COUNT(*) FROM accounts | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3744,
41,
905,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
905,
834,
4350,
1499,
6,
119,
834,
9,
75,
13362,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3744,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
At what date is the score 66-72-64-65=267? | CREATE TABLE table_1529260_2 (dates VARCHAR, score VARCHAR) | SELECT dates FROM table_1529260_2 WHERE score = 66 - 72 - 64 - 65 = 267 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3166,
18365,
834,
357,
41,
5522,
7,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
833,
19,
8,
2604,
431,
25302,
7412,
4389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5128,
21680,
953,
834,
1808,
3166,
18365,
834,
357,
549,
17444,
427,
2604,
3274,
3,
3539,
3,
18,
9455,
3,
18,
6687,
3,
18,
7123,
3274,
204,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many patients admitted before the year 2151 were diagnosed with icd9 code v3001? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2151" AND diagnoses.icd9_code = "V3001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which Position has a Round of 4, and a School/Club Team of concordia? | CREATE TABLE table_name_34 (
position VARCHAR,
round VARCHAR,
school_club_team VARCHAR
) | SELECT position FROM table_name_34 WHERE round = 4 AND school_club_team = "concordia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
1102,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1751,
3274,
314,
3430,
496,
834,
13442,
834,
11650,
3274,
96,
1018,
7621,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which catalogue is from the UK region, and is on vinyl, and was dated in 1986? | CREATE TABLE table_71779 (
"Date" text,
"Region" text,
"Label" text,
"Catalogue" text,
"Format" text
) | SELECT "Catalogue" FROM table_71779 WHERE "Region" = 'uk' AND "Format" = 'vinyl' AND "Date" = '1986' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2517,
4440,
41,
96,
308,
342,
121,
1499,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
18610,
9,
10384,
121,
1499,
6,
96,
3809,
3357,
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,
18610,
9,
10384,
121,
21680,
953,
834,
940,
2517,
4440,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
1598,
31,
3430,
96,
3809,
3357,
121,
3274,
3,
31,
2494,
63,
40,
31,
3430,
96,
308,
342,
121,
327... |
what number of patients whose primary disease is st-segment elevation myocardial infarction\cardiac cath died before the year 2115.0? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\CARDIAC CATH" AND demographic.dod_year <= "2115.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
4209,
18,
134,
8579,
11810,
3,
16479,
553,
8015,
283,
476,
5618,
10327... |
What is every Swedish name for residence city is Loviisa? | CREATE TABLE table_198175_2 (
swedish_name VARCHAR,
residence_city VARCHAR
) | SELECT swedish_name FROM table_198175_2 WHERE residence_city = "Loviisa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4959,
3072,
834,
357,
41,
3,
7,
1123,
26,
1273,
834,
4350,
584,
4280,
28027,
6,
6198,
834,
6726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
7,
1123,
26,
1273,
834,
4350,
21680,
953,
834,
2294,
4959,
3072,
834,
357,
549,
17444,
427,
6198,
834,
6726,
3274,
96,
434,
9881,
159,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many sections does course ACCT-211 has? | CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension text
)
CREATE TABLE professor (
emp_num number,
dept_code text,
prof_office text,
prof_extension text,
prof_high_degree text
)
CREATE TABLE course (... | SELECT COUNT(DISTINCT class_section) FROM class WHERE crs_code = 'ACCT-211' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4978,
1499,
6,
20,
102,
17,
834,
4350,
1499,
6,
496,
834,
4978,
1499,
6,
8943,
834,
5525,
381,
6,
20,
102,
17,
834,
9,
26,
12039,
1499,
6,
20,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
853,
834,
14309,
61,
21680,
853,
549,
17444,
427,
5764,
7,
834,
4978,
3274,
3,
31,
14775,
382,
18,
27278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Rotterterrode has a Reimboldsh 80? | CREATE TABLE table_14770 (
"Gersdorf" text,
"Gershausen" text,
"Heddersdorf" text,
"Kemmerode" text,
"Kirchheim" text,
"Reckerode ****" text,
"Reimboldsh." text,
"Rotterterode" text,
"Willingshain" text
) | SELECT "Rotterterode" FROM table_14770 WHERE "Reimboldsh." = '80' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
2518,
41,
96,
517,
277,
8716,
121,
1499,
6,
96,
517,
277,
18535,
121,
1499,
6,
96,
3845,
26,
588,
7,
8716,
121,
1499,
6,
96,
439,
15,
635,
29145,
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,
448,
14708,
52,
17,
29145,
121,
21680,
953,
834,
24719,
2518,
549,
17444,
427,
96,
1649,
603,
4243,
26,
7,
107,
535,
3274,
3,
31,
2079,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the player that plays position c on the New York Knicks? | CREATE TABLE table_name_54 (player VARCHAR, team VARCHAR, position VARCHAR) | SELECT player FROM table_name_54 WHERE team = "new york knicks" AND position = "c" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
20846,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
24,
4805,
1102,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
372,
3274,
96,
5534,
25453,
3,
157,
11191,
7,
121,
3430,
1102,
3274,
96,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Opponent had a week of 14? | CREATE TABLE table_name_60 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_60 WHERE week = 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
32,
102,
9977,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
141,
3,
9,
471,
13,
968,
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,
15264,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
471,
3274,
968,
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... |
What's the lowest round Justin Forsett was drafted in, with a draft pick larger than 233? | CREATE TABLE table_name_62 (
round INTEGER,
name VARCHAR,
pick VARCHAR
) | SELECT MIN(round) FROM table_name_62 WHERE name = "justin forsett" AND pick > 233 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
1751,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
7402,
1751,
12446,
242... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
564,
3274,
96,
4998,
77,
21,
2244,
17,
121,
3430,
1432,
2490,
3,
20879,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many patients who had icd9 code 3324 died in or before the year 2158? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2158.0" AND procedures.icd9_code = "3324" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What year did Orlando have a School/Club team in Clemson? | CREATE TABLE table_41753 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | SELECT "Years in Orlando" FROM table_41753 WHERE "School/Club Team" = 'clemson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2517,
4867,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
16,
14374,
121,
1499,
6,
96,
29364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
7,
16,
14374,
121,
21680,
953,
834,
591,
2517,
4867,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
2482,
51,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is Yes? | CREATE TABLE table_7691 (
"Regulator" text,
"Rights of audience" text,
"Conduct of litigation" text,
"Reserved instruments" text,
"Probate activities" text,
"Notarial activities" text,
"Administration of oaths" text
) | SELECT "Reserved instruments" FROM table_7691 WHERE "Conduct of litigation" = 'yes' AND "Probate activities" = 'yes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4729,
41,
96,
17748,
83,
1016,
121,
1499,
6,
96,
448,
2632,
7,
13,
2417,
121,
1499,
6,
96,
4302,
7472,
13,
13326,
121,
1499,
6,
96,
1649,
3473,
15,
26,
7778,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
3473,
15,
26,
7778,
121,
21680,
953,
834,
3959,
4729,
549,
17444,
427,
96,
4302,
7472,
13,
13326,
121,
3274,
3,
31,
10070,
31,
3430,
96,
3174,
3697,
15,
1087,
121,
3274,
3,
31,
10070,
31,
1,
-100,
-100,
... |
Which Draws has Goals against smaller than 47, and a Position smaller than 13, and Goals for of 52? | CREATE TABLE table_12774 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MIN("Draws") FROM table_12774 WHERE "Goals against" < '47' AND "Position" < '13' AND "Goals for" = '52' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
4581,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
10936,
7,
8512,
21680,
953,
834,
22367,
4581,
549,
17444,
427,
96,
6221,
5405,
581,
121,
3,
2,
3,
31,
4177,
31,
3430,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
2368,
31,
3430,
96,
6221,
... |
What year shows 4 points? | CREATE TABLE table_name_65 (
year VARCHAR,
points VARCHAR
) | SELECT year FROM table_name_65 WHERE points = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
215,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
1267,
314,
979,
58,
1,
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,
215,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
979,
3274,
314,
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,
... |
What is the average laps when the manufacturer is yamaha, and the rider is garry mccoy and the grid is smaller than 4? | CREATE TABLE table_name_71 (
laps INTEGER,
grid VARCHAR,
manufacturer VARCHAR,
rider VARCHAR
) | SELECT AVG(laps) FROM table_name_71 WHERE manufacturer = "yamaha" AND rider = "garry mccoy" AND grid < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
14941,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
6,
4818,
584,
4280,
28027,
6,
2564,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
4818,
3274,
96,
22990,
1024,
121,
3430,
2564,
52,
3274,
96,
1478,
651,
3,
51,
75,
509,
63,
121,
3430,
8634,
3,
2,
314,
1,
-100,
-10... |
Which Date has a Record of 29 47? | CREATE TABLE table_name_4 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_4 WHERE record = "29–47" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
11392,
13,
2838,
10635,
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,
833,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
1368,
3274,
96,
3166,
104,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose primary disease is left femur fracture? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT FEMUR FRACTURE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
3765,
6245,
377,
6037,
5905,
377,
22034,
25380,
121,
1,
-100,
-100,
-1... |
How many times did episode 79 originally air? | CREATE TABLE table_11111116_6 (original_air_date VARCHAR, no_in_series VARCHAR) | SELECT COUNT(original_air_date) FROM table_11111116_6 WHERE no_in_series = 79 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
15866,
2938,
834,
948,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
21878,
834,
2256,
834,
5522,
61,
21680,
953,
834,
15866,
15866,
2938,
834,
948,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
3,
4440,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the away team score for the game played at MCG? | CREATE TABLE table_58214 (
"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_58214 WHERE "Venue" = 'mcg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
27357,
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,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
3449,
27357,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
51,
75,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Romani associated with a Domari of na? | CREATE TABLE table_name_44 (romani VARCHAR, domari VARCHAR) | SELECT romani FROM table_name_44 WHERE domari = "na" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
3522,
2738,
584,
4280,
28027,
6,
103,
17289,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3385,
23,
1968,
28,
3,
9,
531,
17289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3408,
23,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
103,
17289,
3274,
96,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many prime ministers were born before 1850 ? | CREATE TABLE table_204_812 (
id number,
"#" number,
"prime minister" text,
"date of birth" text,
"start date\nof (first) term" text,
"age at beginning\nof (first) term" text,
"end date\nof (final) term" text,
"total time in\noffice" text,
"date of death" text,
"lifespan" text
) | SELECT COUNT("prime minister") FROM table_204_812 WHERE "date of birth" < 1850 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4959,
357,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
8234,
15,
6323,
121,
1499,
6,
96,
5522,
13,
3879,
121,
1499,
6,
96,
10208,
833,
2,
29,
858,
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,
2847,
17161,
599,
121,
8234,
15,
6323,
8512,
21680,
953,
834,
26363,
834,
4959,
357,
549,
17444,
427,
96,
5522,
13,
3879,
121,
3,
2,
507,
1752,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the area of Ulim with less than 30 villages? | CREATE TABLE table_14707 (
"Subdistrict ( kecamatan )" text,
"Capital" text,
"Land area (Km 2 )" real,
"Total area (Km 2 )" real,
"Percentage (%)" real,
"Subdistrict divisions" real,
"Villages" real
) | SELECT AVG("Land area (Km 2 )") FROM table_14707 WHERE "Capital" = 'ulim' AND "Villages" < '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
4560,
41,
96,
25252,
26,
23,
20066,
41,
3,
1050,
6527,
144,
152,
3,
61,
121,
1499,
6,
96,
19566,
9538,
121,
1499,
6,
96,
434,
232,
616,
41,
439,
51,
204,
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,
71,
17217,
599,
121,
434,
232,
616,
41,
439,
51,
204,
3,
61,
8512,
21680,
953,
834,
24719,
4560,
549,
17444,
427,
96,
19566,
9538,
121,
3274,
3,
31,
83,
603,
31,
3430,
96,
553,
17614,
7,
121,
3,
2,
3,
31,
1458... |
In 1972, how many points did the entrant with the March 721G Chassis have? | CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, chassis VARCHAR) | SELECT points FROM table_name_74 WHERE year > 1972 AND chassis = "march 721g" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
2700,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
16583,
6,
149,
186,
979,
410,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
215,
2490,
16583,
3430,
22836,
3274,
96,
51,
7064,
489,
2658,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose age is less than 59 and drug name is ranitidine? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "59" AND prescriptions.drug = "Ranitidine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
How many points does the team with 3 losses have? | CREATE TABLE table_name_52 (points VARCHAR, lost VARCHAR) | SELECT points FROM table_name_52 WHERE lost = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
2700,
7,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
405,
8,
372,
28,
220,
8467,
43,
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,
979,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1513,
3274,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the type that joined 2007 | CREATE TABLE table_262560_1 (type VARCHAR, joined VARCHAR) | SELECT type FROM table_262560_1 WHERE joined = 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1828,
3328,
834,
536,
41,
6137,
584,
4280,
28027,
6,
3311,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
686,
24,
3311,
4101,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
2688,
1828,
3328,
834,
536,
549,
17444,
427,
3311,
3274,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what's the mole with airdate being 8 january 2009 | CREATE TABLE table_17948 (
"Season" text,
"Airdate" text,
"The Mole" text,
"Winner" text,
"Runner-up" text,
"Prize money" text,
"International destination" text
) | SELECT "The Mole" FROM table_17948 WHERE "Airdate" = '8 January 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
3707,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
20162,
5522,
121,
1499,
6,
96,
634,
11019,
15,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
413,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
634,
11019,
15,
121,
21680,
953,
834,
26593,
3707,
549,
17444,
427,
96,
20162,
5522,
121,
3274,
3,
31,
927,
1762,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date the high rebounds were by lamarcus aldridge (6)? | CREATE TABLE table_29903 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_29903 WHERE "High rebounds" = 'LaMarcus Aldridge (6)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2394,
519,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3166,
2394,
519,
549,
17444,
427,
96,
21417,
3,
23768,
121,
3274,
3,
31,
3612,
7286,
1071,
7,
901,
26,
7700,
3,
18669,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the average shot volume (cm 3) when the shot diameter (cm) is less than 6.04? | CREATE TABLE table_name_73 (shot_volume__cm_3__ INTEGER, shot_diameter__cm_ INTEGER) | SELECT AVG(shot_volume__cm_3__) FROM table_name_73 WHERE shot_diameter__cm_ < 6.04 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
11159,
834,
23439,
834,
834,
75,
51,
834,
519,
834,
834,
3,
21342,
17966,
6,
2538,
834,
26,
23,
9,
4401,
834,
834,
75,
51,
834,
3,
21342,
17966,
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,
71,
17217,
599,
11159,
834,
23439,
834,
834,
75,
51,
834,
519,
834,
834,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
2538,
834,
26,
23,
9,
4401,
834,
834,
75,
51,
834,
3,
2,
4357,
6348,
1,
-100,
-100,... |
Name the catalogue with song title of love me tonight | CREATE TABLE table_name_33 (catalogue VARCHAR, song_title VARCHAR) | SELECT catalogue FROM table_name_33 WHERE song_title = "love me tonight" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
2138,
9,
10384,
584,
4280,
28027,
6,
2324,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
14978,
28,
2324,
2233,
13,
333,
140,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14978,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
2324,
834,
21869,
3274,
96,
5850,
15,
140,
8988,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which 1st member has Thomas Grimsditch as a 2nd member? | CREATE TABLE table_61561 (
"Election" real,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | SELECT "1st Member" FROM table_61561 WHERE "2nd Member" = 'thomas grimsditch' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
1808,
4241,
41,
96,
427,
12252,
121,
490,
6,
96,
536,
7,
17,
8541,
121,
1499,
6,
96,
536,
7,
17,
3450,
121,
1499,
6,
96,
357,
727,
8541,
121,
1499,
6,
96,
357,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
7,
17,
8541,
121,
21680,
953,
834,
948,
1808,
4241,
549,
17444,
427,
96,
357,
727,
8541,
121,
3274,
3,
31,
189,
32,
2754,
20425,
7,
26,
7059,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me mean rating by languages in a histogram, order by the mean rating in ascending please. | CREATE TABLE artist (
artist_name varchar2(50),
country varchar2(20),
gender varchar2(20),
preferred_genre varchar2(50)
)
CREATE TABLE files (
f_id number(10),
artist_name varchar2(50),
file_size varchar2(20),
duration varchar2(20),
formats varchar2(20)
)
CREATE TABLE genre (
g... | SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY AVG(rating) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
2377,
834,
4350,
3,
4331,
4059,
357,
599,
1752,
201,
684,
3,
4331,
4059,
357,
599,
1755,
201,
7285,
3,
4331,
4059,
357,
599,
1755,
201,
6241,
834,
729,
60,
3,
4331,
4059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8024,
6,
71,
17217,
599,
52,
1014,
61,
21680,
2324,
350,
4630,
6880,
272,
476,
8024,
4674,
11300,
272,
476,
71,
17217,
599,
52,
1014,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many forms have less than 18 pages? | CREATE TABLE table_name_72 (form VARCHAR, pages INTEGER) | SELECT COUNT(form) FROM table_name_72 WHERE pages < 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
2032,
584,
4280,
28027,
6,
1688,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2807,
43,
705,
145,
507,
1688,
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,
2847,
17161,
599,
2032,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1688,
3,
2,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Team Record, when Attendance is 16,151? | CREATE TABLE table_name_34 (team_record VARCHAR, attendance VARCHAR) | SELECT team_record FROM table_name_34 WHERE attendance = "16,151" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
11650,
834,
60,
7621,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2271,
11392,
6,
116,
22497,
663,
19,
1194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
834,
60,
7621,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
11364,
3274,
96,
2938,
6,
26578,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
A bar chart for what are the number of the wines that have prices lower than 50 and have appelations in Monterey county? | CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No... | SELECT Name, COUNT(Name) FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.Price < 50 GROUP BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
9426,
651,
3,
3463,
4,
382,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5570,
3,
3463,
4,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
23954,
61,
21680,
8319,
6105,
7,
6157,
332,
536,
3,
15355,
3162,
2013,
6157,
332,
357,
9191,
332,
5411,
27794,
257,
3274,
332,
4416,
27794,
257,
549,
17444,
427,
332,
5411,
10628,
63,
3274,
... |
Why did Geninho leave as manager? | CREATE TABLE table_29414946_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR) | SELECT manner_of_departure FROM table_29414946_3 WHERE outgoing_manager = "Geninho" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4240,
24816,
4448,
834,
519,
41,
2434,
49,
834,
858,
834,
221,
2274,
1462,
584,
4280,
28027,
6,
91,
9545,
834,
24185,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3107,
834,
858,
834,
221,
2274,
1462,
21680,
953,
834,
357,
4240,
24816,
4448,
834,
519,
549,
17444,
427,
91,
9545,
834,
24185,
3274,
96,
13714,
23738,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which AFC cup does Kenji Arai have? | CREATE TABLE table_name_43 (afc_cup VARCHAR, name VARCHAR) | SELECT afc_cup FROM table_name_43 WHERE name = "kenji arai" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
9,
89,
75,
834,
4658,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
71,
5390,
4119,
405,
2566,
21391,
71,
7253,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
9,
89,
75,
834,
4658,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
564,
3274,
96,
1050,
21391,
3,
9,
7253,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Daytime which has Saturday of yes and a Name of exmouth? | CREATE TABLE table_name_5 (
daytime VARCHAR,
saturday VARCHAR,
name VARCHAR
) | SELECT daytime FROM table_name_5 WHERE saturday = "yes" AND name = "exmouth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
239,
715,
584,
4280,
28027,
6,
3,
7,
6010,
1135,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1430,
715,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
239,
715,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
3,
7,
6010,
1135,
3274,
96,
10070,
121,
3430,
564,
3274,
96,
994,
11975,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Chart peak has a Time of 3:11? | CREATE TABLE table_7125 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release date" text,
"Chart peak" text,
"Song title" text,
"Writer(s)" text,
"Time" text
) | SELECT "Chart peak" FROM table_7125 WHERE "Time" = '3:11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
1828,
41,
96,
382,
16729,
121,
490,
6,
96,
1649,
7621,
15,
26,
121,
1499,
6,
96,
18610,
9,
10384,
121,
1499,
6,
96,
1649,
40,
14608,
833,
121,
1499,
6,
96,
18947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18947,
17,
6734,
121,
21680,
953,
834,
4450,
1828,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
519,
10,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which week has a result showing L 24-10? | CREATE TABLE table_name_82 (
week VARCHAR,
result VARCHAR
) | SELECT week FROM table_name_82 WHERE result = "l 24-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
471,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
471,
65,
3,
9,
741,
2924,
301,
997,
4536,
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,
471,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
741,
3274,
96,
40,
997,
4536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many registed students do each course have? List course name and the number of their registered students, display X in descending order. | CREATE TABLE Courses (
course_id VARCHAR(100),
course_name VARCHAR(120),
course_description VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Student_Course_Registrations (
student_id INTEGER,
course_id INTEGER,
registration_date DATETIME
)
CREATE TABLE People (
person_id INTEGER... | SELECT course_name, COUNT(*) FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id JOIN Courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id ORDER BY course_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
7,
41,
503,
834,
23,
26,
584,
4280,
28027,
599,
2915,
201,
503,
834,
4350,
584,
4280,
28027,
599,
15518,
201,
503,
834,
221,
11830,
584,
4280,
28027,
599,
25502,
201,
119,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
503,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
4375,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
3881,
3589,
15,
834,
18752,
1628,
6157,
332,
357,
9191,
332,
5411,
8637,
295,
834,
23,
26,
3274,
332,
4416,
8637... |
Name the to par for score of 74-74-74-71=293 | CREATE TABLE table_name_64 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_64 WHERE score = 74 - 74 - 74 - 71 = 293 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
235,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
12,
260,
21,
2604,
13,
3,
4581,
18,
4581,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
2604,
3274,
3,
4581,
3,
18,
3,
4581,
3,
18,
3,
4581,
3,
18,
3,
4450,
3274,
204,
4271,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the grid when the laps were 24? | CREATE TABLE table_name_69 (
grid VARCHAR,
laps VARCHAR
) | SELECT COUNT(grid) FROM table_name_69 WHERE laps = 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
8634,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8634,
116,
8,
14941,
7,
130,
997,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
14941,
7,
3274,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What player is from Russia? | CREATE TABLE table_45879 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/junior/club team (league)" text
) | SELECT "Player" FROM table_45879 WHERE "Nationality" = 'russia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
927,
4440,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
2128,
927,
4440,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
26165,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Piano di Sorrento, Napoli lowest km2 with a total smaller than 121.14 km2? | CREATE TABLE table_name_26 (
area__km²_ INTEGER,
total__km²_ VARCHAR,
province VARCHAR,
comune VARCHAR
) | SELECT MIN(area__km²_) FROM table_name_26 WHERE province = "napoli" AND comune = "piano di sorrento" AND total__km²_ < 121.14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
616,
834,
834,
5848,
357,
834,
3,
21342,
17966,
6,
792,
834,
834,
5848,
357,
834,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
6,
20883,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
498,
834,
834,
5848,
357,
834,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
7985,
3274,
96,
29,
9,
3003,
121,
3430,
20883,
3274,
96,
21851,
32,
1227,
78,
52,
5320,
32,
121,
3430,
792,
834,... |
What was the average amount of losses for teams with played less than 14? | CREATE TABLE table_name_5 (lost INTEGER, played INTEGER) | SELECT AVG(lost) FROM table_name_5 WHERE played < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
2298,
17,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
866,
13,
8467,
21,
2323,
28,
1944,
705,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
1944,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the date of the game played in the bangalore , karnataka, india location | CREATE TABLE table_29127804_3 (date VARCHAR, location VARCHAR) | SELECT date FROM table_29127804_3 WHERE location = "Bangalore , Karnataka, India" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
22367,
2079,
591,
834,
519,
41,
5522,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
833,
13,
8,
467,
1944,
16,
8,
4514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
3166,
22367,
2079,
591,
834,
519,
549,
17444,
427,
1128,
3274,
96,
279,
1468,
9,
322,
15,
3,
6,
4556,
29,
144,
5667,
6,
1547,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the average Jersey # of Steve Griffith, when his Weight (kg) was less than 84? | CREATE TABLE table_name_71 (jersey__number INTEGER, name VARCHAR, weight__kg_ VARCHAR) | SELECT AVG(jersey__number) FROM table_name_71 WHERE name = "steve griffith" AND weight__kg_ < 84 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
12488,
7,
15,
63,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
1293,
834,
834,
8711,
834,
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,
71,
17217,
599,
12488,
7,
15,
63,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
564,
3274,
96,
849,
162,
3,
11442,
23,
189,
121,
3430,
1293,
834,
834,
8711,
834,
3,
2,
3,
4608,
1,
... |
Name the record for 21 january 2008 | CREATE TABLE table_name_4 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_4 WHERE date = "21 january 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1368,
21,
1401,
3,
7066,
76,
1208,
2628,
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,
1368,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
833,
3274,
96,
2658,
3,
7066,
76,
1208,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which run 2 with final of 5:24.47? | CREATE TABLE table_name_18 (run_2 VARCHAR, final VARCHAR) | SELECT run_2 FROM table_name_18 WHERE final = "5:24.47" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
4312,
834,
357,
584,
4280,
28027,
6,
804,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
661,
204,
28,
804,
13,
305,
10,
2266,
5,
4177,
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,
661,
834,
357,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
804,
3274,
96,
755,
10,
2266,
5,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what section did frank park run in | CREATE TABLE table_1342393_10 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_1342393_10 WHERE incumbent = "Frank Park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
4271,
834,
1714,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
1375,
410,
3,
89,
6254,
2447,
661,
16,
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,
3939,
21680,
953,
834,
23747,
2773,
4271,
834,
1714,
549,
17444,
427,
28406,
3274,
96,
371,
6254,
1061,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Date of the game with a Score of 4 6, 4 6? | CREATE TABLE table_43592 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Date" FROM table_43592 WHERE "Score" = '4–6, 4–6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
3390,
357,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4906,
3390,
357,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
591,
104,
11071,
314,
104,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose diagnoses short title is cardiac arrest and drug type is main? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | 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.short_title = "Cardiac arrest" AND prescriptions.drug_type = "MAIN" | [
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,
3... |
What is the loss when the time was 3:16, and a Record of 15 15? | CREATE TABLE table_67922 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." text,
"Record" text
) | SELECT "Loss" FROM table_67922 WHERE "Time" = '3:16' AND "Record" = '15–15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4508,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
13368,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
7,
121,
21680,
953,
834,
3708,
4508,
357,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
519,
10,
2938,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
1808,
104,
1808,
31,
1,
-100,
-100,
-100,
-100,
... |
Height of 5' 10', and a Games started of 7 involves which hometown? | CREATE TABLE table_34215 (
"Player" text,
"Position" text,
"Games started" text,
"Hometown" text,
"Height" text,
"Weight" real,
"Class" text,
"Previous experience" text
) | SELECT "Hometown" FROM table_34215 WHERE "Height" = '5'' 10' AND "Games started" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
357,
1808,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
23055,
7,
708,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
3845,
2632,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
3540,
121,
21680,
953,
834,
3710,
357,
1808,
549,
17444,
427,
96,
3845,
2632,
121,
3274,
3,
31,
755,
31,
31,
335,
31,
3430,
96,
23055,
7,
708,
121,
3274,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-10... |
What is the to par of the player from the United States with a score of 69-68-65=202? | CREATE TABLE table_66758 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "To par" FROM table_66758 WHERE "Country" = 'united states' AND "Score" = '69-68-65=202' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3072,
927,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
3539,
3072,
927,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
3951,
18,
3651,
18,
4122,
2423,
19818,
31,
... |
What is the competition when 2nd leg is 0 8? | CREATE TABLE table_502 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"1st leg" text,
"2nd leg" text,
"Aggregate" text
) | SELECT "Competition" FROM table_502 WHERE "2nd leg" = '0–8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
357,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
536,
7,
17,
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,
5890,
4995,
4749,
121,
21680,
953,
834,
1752,
357,
549,
17444,
427,
96,
357,
727,
4553,
121,
3274,
3,
31,
632,
104,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Venue has a Date of 1 march 2006? | CREATE TABLE table_name_41 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_41 WHERE date = "1 march 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
15098,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
29940,
65,
3,
9,
7678,
13,
209,
10556,
3581,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
833,
3274,
96,
536,
10556,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.