NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what is the highest grid for new zealand? | CREATE TABLE table_name_59 (grid INTEGER, team VARCHAR) | SELECT MAX(grid) FROM table_name_59 WHERE team = "new zealand" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
3496,
26,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
8634,
21,
126,
3,
776,
138,
232,
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,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
372,
3274,
96,
5534,
3,
776,
138,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the rank for more than 120.44 points in East Germany and a SP+FS of 3? | CREATE TABLE table_name_21 (
rank VARCHAR,
points VARCHAR,
nation VARCHAR,
sp VARCHAR,
fs VARCHAR
) | SELECT COUNT(rank) FROM table_name_21 WHERE points > 120.44 AND nation = "east germany" AND sp + fs = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
11003,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
3,
7,
102,
584,
4280,
28027,
6,
3,
89,
7,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
979,
2490,
5864,
5,
3628,
3430,
2982,
3274,
96,
11535,
13692,
63,
121,
3430,
3,
7,
102,
1768,
3,
89,
7,
3274,
220,
1,
-100,
-100,
-100... |
What is the fewest number of points scored by Goulds' Garage (Bristol), engines of Maserati Straight-6, in years before 1956? | CREATE TABLE table_name_41 (points INTEGER, year VARCHAR, entrant VARCHAR, engine VARCHAR) | SELECT MIN(points) FROM table_name_41 WHERE entrant = "goulds' garage (bristol)" AND engine = "maserati straight-6" AND year < 1956 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
2700,
7,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
3,
295,
3569,
3274,
96,
839,
83,
26,
7,
31,
3543,
41,
115,
17149,
40,
61,
121,
3430,
1948,
3274,
96,
2754,
15,
6850,
2541,
5783,
121... |
What is the team in 1989? | CREATE TABLE table_41831 (
"Year" text,
"Team" text,
"Comp" text,
"Rate" text,
"RAtt" text,
"RYds" text,
"RAvg" text
) | SELECT "Team" FROM table_41831 WHERE "Year" = '1989' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2606,
3341,
41,
96,
476,
2741,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
5890,
102,
121,
1499,
6,
96,
448,
342,
121,
1499,
6,
96,
4763,
17,
17,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
591,
2606,
3341,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3914,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When Tom Watson (5/6) won the Senior British Open who won the Senior PGA Championship? | CREATE TABLE table_name_41 (senior_pga_championship VARCHAR, senior_british_open VARCHAR) | SELECT senior_pga_championship FROM table_name_41 WHERE senior_british_open = "tom watson (5/6)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
7,
35,
23,
127,
834,
102,
122,
9,
834,
17788,
12364,
2009,
584,
4280,
28027,
6,
2991,
834,
2160,
17,
1273,
834,
8751,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2991,
834,
102,
122,
9,
834,
17788,
12364,
2009,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
2991,
834,
2160,
17,
1273,
834,
8751,
3274,
96,
235,
51,
8036,
17,
739,
9209,
87,
10938,
121,
1,
-100,
-100,
-100,
... |
How many faculty members participate in each activity? Return the activity names and the number of faculty members by a bar chart, and could you rank by the Y from high to low? | CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Activity (
actid INTEGER,
a... | SELECT activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_Participates_in AS T2 ON T1.actid = T2.actid GROUP BY T1.actid ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
834,
13725,
23,
3389,
6203,
834,
77,
41,
1699,
75,
4309,
3,
21342,
17966,
6,
1810,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
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,
1756,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
22536,
6157,
332,
536,
3,
15355,
3162,
16896,
834,
13725,
23,
3389,
6203,
834,
77,
6157,
332,
357,
9191,
332,
5411,
2708,
23,
26,
3274,
332,
4416,
2708,
23,
26,... |
What was the score when there were 7 ties? | CREATE TABLE table_name_36 (
score VARCHAR,
tie_no VARCHAR
) | SELECT score FROM table_name_36 WHERE tie_no = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
2604,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
132,
130,
489,
3,
3010,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the detail of products whose detail contains the word "Latte" or the word "Americano" | CREATE TABLE products (product_details VARCHAR) | SELECT product_details FROM products WHERE product_details LIKE "%Latte%" OR product_details LIKE "%Americano%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
15892,
834,
221,
5756,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
2736,
13,
494,
3,
2544,
2736,
2579,
8,
1448,
96,
434,
10206,
121,
42,
8,
1448,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
556,
834,
221,
5756,
7,
21680,
494,
549,
17444,
427,
556,
834,
221,
5756,
7,
8729,
9914,
96,
1454,
434,
10206,
1454,
121,
4674,
556,
834,
221,
5756,
7,
8729,
9914,
96,
1454,
8778,
32,
1454,
121,
1,
-100,
-100,
-10... |
Type of primary, and a Call letters of kktx-fm has what average Frequency (MHz)? | CREATE TABLE table_5632 (
"Frequency (MHz)" real,
"Call letters" text,
"Licensed location" text,
"Type" text,
"Format" text
) | SELECT AVG("Frequency (MHz)") FROM table_5632 WHERE "Type" = 'primary' AND "Call letters" = 'kktx-fm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
2668,
41,
96,
371,
60,
835,
11298,
41,
20210,
61,
121,
490,
6,
96,
254,
1748,
5487,
121,
1499,
6,
96,
28492,
1128,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
3809,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
371,
60,
835,
11298,
41,
20210,
61,
8512,
21680,
953,
834,
4834,
2668,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
8234,
1208,
31,
3430,
96,
254,
1748,
5487,
121,
3274,
3,
31,
8511,
17,
226,... |
the release dates are no earlier than what year ? | CREATE TABLE table_203_607 (
id number,
"catalogue number" text,
"artist" text,
"release title" text,
"format" text,
"release date" text
) | SELECT MIN("release date") FROM table_203_607 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3328,
940,
41,
3,
23,
26,
381,
6,
96,
2138,
9,
10384,
381,
121,
1499,
6,
96,
1408,
343,
121,
1499,
6,
96,
21019,
2233,
121,
1499,
6,
96,
8995,
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,
3,
17684,
599,
121,
21019,
833,
8512,
21680,
953,
834,
23330,
834,
3328,
940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name of dorms that do not have any amenity | CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity number,
gender text
)
CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
c... | SELECT dorm_name FROM dorm WHERE NOT dormid IN (SELECT dormid FROM has_amenity) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
103,
52,
51,
41,
103,
52,
6983,
381,
6,
103,
52,
51,
834,
4350,
1499,
6,
1236,
834,
4010,
9,
6726,
381,
6,
7285,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
103,
52,
51,
834,
4350,
21680,
103,
52,
51,
549,
17444,
427,
4486,
103,
52,
6983,
3388,
41,
23143,
14196,
103,
52,
6983,
21680,
65,
834,
9,
904,
485,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Date, when Margin Of Victory is 4 Strokes? | CREATE TABLE table_48755 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Date" FROM table_48755 WHERE "Margin of victory" = '4 strokes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3072,
755,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3707,
3072,
755,
549,
17444,
427,
96,
7286,
122,
77,
13,
6224,
121,
3274,
3,
31,
591,
9529,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of seats of the Christian Democratic Union (CDU) party? | CREATE TABLE table_name_34 (total_seats VARCHAR, party VARCHAR) | SELECT total_seats FROM table_name_34 WHERE party = "christian democratic union (cdu)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
235,
1947,
834,
7,
1544,
7,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
6116,
13,
8,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
834,
7,
1544,
7,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1088,
3274,
96,
15294,
23,
152,
15053,
7021,
41,
75,
1259,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
With 10 as the points for foundation, what is the maximum points for ordinary? | CREATE TABLE table_12934 (
"Percentage Range" text,
"Grade" text,
"Points for Higher" real,
"Points for Ordinary" real,
"Points for Foundation" real
) | SELECT MAX("Points for Ordinary") FROM table_12934 WHERE "Points for Foundation" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22174,
3710,
41,
96,
12988,
3728,
545,
10971,
121,
1499,
6,
96,
4744,
221,
121,
1499,
6,
96,
22512,
7,
21,
16808,
121,
490,
6,
96,
22512,
7,
21,
21983,
1208,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
21,
21983,
1208,
8512,
21680,
953,
834,
22174,
3710,
549,
17444,
427,
96,
22512,
7,
21,
2941,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What number pick was Danny Walters in the 1983 NFL draft? | CREATE TABLE table_27354 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("Pick #") FROM table_27354 WHERE "Player" = 'Danny Walters' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2469,
591,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
12619,
434,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
3142,
1713,
8512,
21680,
953,
834,
2555,
2469,
591,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
308,
15159,
13171,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Result has an Award of virgin media tv awards? | CREATE TABLE table_name_45 (
result VARCHAR,
award VARCHAR
) | SELECT result FROM table_name_45 WHERE award = "virgin media tv awards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
741,
584,
4280,
28027,
6,
2760,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
20119,
65,
46,
3677,
13,
24556,
783,
3,
17,
208,
6120,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2760,
3274,
96,
5771,
122,
77,
783,
3,
17,
208,
6120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the drivetrain for 2ur-fse | CREATE TABLE table_21530474_1 (
drivetrain VARCHAR,
engine_code VARCHAR
) | SELECT drivetrain FROM table_21530474_1 WHERE engine_code = "2UR-FSE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
23702,
4581,
834,
536,
41,
1262,
9719,
584,
4280,
28027,
6,
1948,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1262,
9719,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1262,
9719,
21680,
953,
834,
357,
1808,
23702,
4581,
834,
536,
549,
17444,
427,
1948,
834,
4978,
3274,
96,
357,
5905,
18,
371,
4132,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What nominees had a net vote of 34.46%? | CREATE TABLE table_19870 (
"Eviction No." real,
"Nominee" text,
"Vote to Save" text,
"Vote to Evict" text,
"Net vote" text,
"Eviction result" text
) | SELECT "Nominee" FROM table_19870 WHERE "Net vote" = '34.46%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
2518,
41,
96,
427,
29797,
465,
535,
490,
6,
96,
4168,
8695,
15,
121,
1499,
6,
96,
553,
32,
17,
15,
12,
7242,
121,
1499,
6,
96,
553,
32,
17,
15,
12,
262,
7287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4168,
8695,
15,
121,
21680,
953,
834,
24151,
2518,
549,
17444,
427,
96,
9688,
2902,
121,
3274,
3,
31,
519,
23444,
6370,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest rank for a nation with 26 golds and over 17 silvers? | CREATE TABLE table_name_39 (rank INTEGER, gold VARCHAR, silver VARCHAR) | SELECT MAX(rank) FROM table_name_39 WHERE gold = 26 AND silver > 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
6254,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
11003,
21,
3,
9,
2982... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2045,
3274,
2208,
3430,
4294,
2490,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many rounds did the match go for the Bellator 72 event? | CREATE TABLE table_36229 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT SUM("Round") FROM table_36229 WHERE "Event" = 'bellator 72' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
357,
3166,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
3420,
357,
3166,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
7708,
1016,
9455,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which week has a record of 5-7-1? | CREATE TABLE table_name_58 (week VARCHAR, record VARCHAR) | SELECT week FROM table_name_58 WHERE record = "5-7-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
8041,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
471,
65,
3,
9,
1368,
13,
3,
23440,
2292,
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,
471,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1368,
3274,
96,
23440,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the time in week 3? | CREATE TABLE table_name_29 (tv_time VARCHAR, week VARCHAR) | SELECT tv_time FROM table_name_29 WHERE week = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
17,
208,
834,
715,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
97,
16,
471,
220,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
208,
834,
715,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
471,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
when there were 48 → 32 clubs? | CREATE TABLE table_name_82 (new_entries_this_round VARCHAR, clubs VARCHAR) | SELECT new_entries_this_round FROM table_name_82 WHERE clubs = "48 → 32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
5534,
834,
35,
9000,
834,
8048,
834,
7775,
584,
4280,
28027,
6,
8122,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
116,
132,
130,
4678,
3,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
126,
834,
35,
9000,
834,
8048,
834,
7775,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
8122,
3274,
96,
3707,
3,
2,
3538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many laps for a grid of over 18 and retired due to electrical failure? | CREATE TABLE table_name_31 (
laps INTEGER,
grid VARCHAR,
time_retired VARCHAR
) | SELECT SUM(laps) FROM table_name_31 WHERE grid > 18 AND time_retired = "electrical" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
14941,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
8634,
2490,
507,
3430,
97,
834,
10682,
1271,
3274,
96,
17470,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the attendance for the game on May 25? | CREATE TABLE table_name_33 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_33 WHERE date = "may 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11364,
21,
8,
467,
30,
932,
944,
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,
11364,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
3274,
96,
13726,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
After Round 5, which player was drafted for Defensive Tackle? | CREATE TABLE table_name_68 (player VARCHAR, round VARCHAR, position VARCHAR) | SELECT player FROM table_name_68 WHERE round > 5 AND position = "defensive tackle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
20846,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
621,
9609,
7836,
84,
1959,
47,
3,
23505... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1751,
2490,
305,
3430,
1102,
3274,
96,
221,
23039,
15,
8000,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Visualize a bar chart for what are the names and account balances of customers with the letter 'a' in their names?, rank names from low to high order. | CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
)
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state ... | SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' ORDER BY cust_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
41,
123,
7,
17,
834,
4309,
3,
4331,
4059,
17867,
6,
123,
7,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
3,
6004,
834,
6137,
3,
4059,
14296,
6,
3,
6004,
834,
3849,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
123,
7,
17,
834,
4350,
6,
3,
6004,
834,
3849,
21680,
884,
549,
17444,
427,
123,
7,
17,
834,
4350,
8729,
9914,
3,
31,
1454,
9,
1454,
31,
4674,
11300,
272,
476,
123,
7,
17,
834,
4350,
1,
-100,
-100,
-100,
-100,
... |
Create a bar chart showing the total number across city code, rank from high to low by the X-axis. | CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
... | SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6200,
51,
41,
103,
52,
6983,
3,
21342,
17966,
6,
103,
52,
51,
834,
4350,
584,
4280,
28027,
599,
1755,
201,
1236,
834,
4010,
9,
6726,
3,
21342,
17966,
6,
7285,
584,
4280,
28027,
14296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
690,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
690,
834,
4978,
4674,
11300,
272,
476,
690,
834,
4978,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What eagle riders where ova (harmony gold dub) is lord zortek? | CREATE TABLE table_17480471_3 (
eagle_riders VARCHAR,
ova__harmony_gold_dub_ VARCHAR
) | SELECT eagle_riders FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Lord Zortek" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
20579,
4177,
536,
834,
519,
41,
3,
15,
9,
3537,
834,
4055,
277,
584,
4280,
28027,
6,
3,
6194,
834,
834,
3272,
21208,
834,
14910,
834,
1259,
115,
834,
584,
4280,
28027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15,
9,
3537,
834,
4055,
277,
21680,
953,
834,
2517,
20579,
4177,
536,
834,
519,
549,
17444,
427,
3,
6194,
834,
834,
3272,
21208,
834,
14910,
834,
1259,
115,
834,
3274,
96,
434,
127,
26,
1027,
127,
15150,
121,
1... |
How many singles does Lisa Stansfield have? | CREATE TABLE table_26400075_2 (
single VARCHAR,
artist VARCHAR
) | SELECT COUNT(single) FROM table_26400075_2 WHERE artist = "Lisa Stansfield" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
2313,
3072,
834,
357,
41,
712,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
712,
7,
405,
11712,
11469,
7,
1846,
43,
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,
2847,
17161,
599,
7,
53,
109,
61,
21680,
953,
834,
26755,
2313,
3072,
834,
357,
549,
17444,
427,
2377,
3274,
96,
434,
159,
9,
11469,
7,
1846,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which weightlifter, who had a bodyweight of less than 136.16 and a clean and jerk larger than 135, had the highest Total? | CREATE TABLE table_name_43 (
total__kg_ INTEGER,
bodyweight VARCHAR,
clean_ VARCHAR,
_jerk VARCHAR
) | SELECT MAX(total__kg_) FROM table_name_43 WHERE bodyweight < 136.16 AND clean_ & _jerk > 135 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
792,
834,
834,
8711,
834,
3,
21342,
17966,
6,
643,
9378,
584,
4280,
28027,
6,
1349,
834,
584,
4280,
28027,
6,
3,
834,
12488,
157,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
235,
1947,
834,
834,
8711,
834,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
643,
9378,
3,
2,
3,
23459,
5,
2938,
3430,
1349,
834,
3,
184,
3,
834,
12488,
157,
2490,
209,
2469,
1,
-100,
-10... |
Name the Country which has Stolen Ends larger than 7, and a Skip of david murdoch? | CREATE TABLE table_45660 (
"Country" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot %" real
) | SELECT "Country" FROM table_45660 WHERE "Stolen Ends" > '7' AND "Skip" = 'david murdoch' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
27720,
41,
96,
10628,
651,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
8532,
26,
7,
549,
106,
121,
490,
6,
96,
8532,
26,
7,
19576,
121,
490,
6,
96,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2128,
27720,
549,
17444,
427,
96,
134,
235,
40,
35,
3720,
7,
121,
2490,
3,
31,
940,
31,
3430,
96,
134,
2168,
102,
121,
3274,
3,
31,
26,
9,
6961,
9593,
3327,
31,
1,
-100,
-... |
What was Arkady Vyatchanin's time? | CREATE TABLE table_name_86 (time VARCHAR, name VARCHAR) | SELECT time FROM table_name_86 WHERE name = "arkady vyatchanin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
715,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
22710,
9,
26,
63,
584,
63,
144,
8694,
77,
31,
7,
97,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
564,
3274,
96,
6604,
9,
26,
63,
3,
208,
63,
144,
8694,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what's the first elected with district illinois 18 | CREATE TABLE table_18187 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "First elected" FROM table_18187 WHERE "District" = 'Illinois 18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
25828,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
1499,
6,
96,
20119,
121,
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,
25171,
8160,
121,
21680,
953,
834,
2606,
25828,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
196,
195,
77,
32,
159,
507,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of field goals when the points were less than 5? | CREATE TABLE table_75349 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MIN("Field goals") FROM table_75349 WHERE "Points" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
519,
3647,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
7681,
449,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3183,
8804,
1766,
8512,
21680,
953,
834,
3072,
519,
3647,
549,
17444,
427,
96,
22512,
7,
121,
3,
2,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Name, when Location is Tanzania, and when Novelty is Gen Nov? | CREATE TABLE table_name_88 (
name VARCHAR,
location VARCHAR,
novelty VARCHAR
) | SELECT name FROM table_name_88 WHERE location = "tanzania" AND novelty = "gen nov" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
564,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
30372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
5570,
6,
116,
10450,
19,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1128,
3274,
96,
14137,
11219,
121,
3430,
30372,
3274,
96,
729,
3,
5326,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Home team score for Geelong, whereby the Away team has a score of 18.13 (121)? | CREATE TABLE table_54420 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_54420 WHERE "Away team score" = '18.13 (121)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
21899,
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,
19040,
372,
2604,
121,
21680,
953,
834,
5062,
21899,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
2606,
5,
2368,
16465,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Where were games played when the record was 9-1? | CREATE TABLE table_25453 (
"Date" text,
"Location" text,
"Opponent" text,
"Terps Points" real,
"Opp. Points" real,
"Record" text
) | SELECT "Location" FROM table_25453 WHERE "Record" = '9-1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2128,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
382,
49,
102,
7,
4564,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
1828,
2128,
519,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1298,
2292,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all locations and the total number of platforms and passengers for all train stations in each location. | CREATE TABLE train_station (
train_id number,
station_id number
)
CREATE TABLE station (
station_id number,
name text,
annual_entry_exit number,
annual_interchanges number,
total_passengers number,
location text,
main_services text,
number_of_platforms number
)
CREATE TABLE tra... | SELECT location, SUM(number_of_platforms), SUM(total_passengers) FROM station GROUP BY location | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
834,
6682,
41,
2412,
834,
23,
26,
381,
6,
2478,
834,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
2478,
834,
23,
26,
381,
6,
564,
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,
1128,
6,
180,
6122,
599,
5525,
1152,
834,
858,
834,
29100,
7,
201,
180,
6122,
599,
235,
1947,
834,
3968,
4606,
277,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
1128,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the country names and the corresponding number of players Show bar chart, could you order in desc by the x axis? | CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_language text
)
CREATE TABLE team (
Team_id int,
Name text
)
CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL text,
... | SELECT Country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name ORDER BY Country_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
684,
41,
6993,
834,
23,
26,
16,
17,
6,
6993,
834,
4350,
1499,
6,
5826,
1499,
6,
13686,
834,
29,
1528,
834,
24925,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6993,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
684,
6157,
332,
536,
3,
15355,
3162,
1588,
834,
9476,
6157,
332,
357,
9191,
332,
5411,
10628,
651,
834,
23,
26,
3274,
332,
4416,
10628,
651,
350,
4630,
6880,
27... |
What left office date happened in Washington? | CREATE TABLE table_name_94 (
Left VARCHAR,
location VARCHAR
) | SELECT Left AS office FROM table_name_94 WHERE location = "washington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
14298,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
646,
828,
833,
2817,
16,
2386,
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,
14298,
6157,
828,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1128,
3274,
96,
14710,
6029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date is Isabel cueto the opponent in the final? | CREATE TABLE table_11690 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Date" FROM table_11690 WHERE "Opponent in the final" = 'isabel cueto' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
2394,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
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,
308,
342,
121,
21680,
953,
834,
20159,
2394,
549,
17444,
427,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
159,
10333,
123,
15,
235,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
for the name of jamar jackson what is the total of Number? | CREATE TABLE table_name_99 (number VARCHAR, name VARCHAR) | SELECT COUNT(number) FROM table_name_99 WHERE name = "jamar jackson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
5525,
1152,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21,
8,
564,
13,
7620,
291,
3,
9325,
739,
125,
19,
8,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
564,
3274,
96,
1191,
1635,
3,
9325,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result of the week 9 game? | CREATE TABLE table_name_48 (
result VARCHAR,
week VARCHAR
) | SELECT result FROM table_name_48 WHERE week = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
741,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
471,
668,
467,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
471,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had 2 WSOP cashes and was 6th in final place? | CREATE TABLE table_23696862_6 (name VARCHAR, wsop_cashes VARCHAR, final_place VARCHAR) | SELECT name FROM table_23696862_6 WHERE wsop_cashes = 2 AND final_place = "6th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3951,
3651,
4056,
834,
948,
41,
4350,
584,
4280,
28027,
6,
3,
210,
7,
32,
102,
834,
75,
23604,
584,
4280,
28027,
6,
804,
834,
4687,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
953,
834,
2773,
3951,
3651,
4056,
834,
948,
549,
17444,
427,
3,
210,
7,
32,
102,
834,
75,
23604,
3274,
204,
3430,
804,
834,
4687,
3274,
96,
948,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the number for evening gown in kansas with less than 9.357 interviews? | CREATE TABLE table_name_96 (
evening_gown INTEGER,
state VARCHAR,
interview VARCHAR
) | SELECT SUM(evening_gown) FROM table_name_96 WHERE state = "kansas" AND interview < 9.357 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
2272,
834,
122,
9197,
3,
21342,
17966,
6,
538,
584,
4280,
28027,
6,
2772,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
6190,
53,
834,
122,
9197,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
538,
3274,
96,
3304,
7,
9,
7,
121,
3430,
2772,
3,
2,
5835,
519,
3436,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the Total (kg) of a Snatch of 132.5? | CREATE TABLE table_name_86 (
total__kg_ VARCHAR,
snatch VARCHAR
) | SELECT total__kg_ FROM table_name_86 WHERE snatch = 132.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
792,
834,
834,
8711,
834,
584,
4280,
28027,
6,
3,
7,
29,
14547,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
9273,
41,
8711... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
792,
834,
834,
8711,
834,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
3,
7,
29,
14547,
3274,
1179,
15967,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the lowest Drawn that has a Lost that's less than 0? | CREATE TABLE table_name_1 (
drawn INTEGER,
lost INTEGER
) | SELECT MIN(drawn) FROM table_name_1 WHERE lost < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
6796,
3,
21342,
17966,
6,
1513,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
7402,
19183,
29,
24,
65,
3,
9,
19576,
24,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
1513,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of overall draft picks for Fred Nixon? | CREATE TABLE table_name_37 (overall VARCHAR, player VARCHAR) | SELECT COUNT(overall) FROM table_name_37 WHERE player = "fred nixon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
1890,
1748,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
1879,
6488,
1432,
7,
21,
12264,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1959,
3274,
96,
89,
1271,
3,
29,
2407,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average Year that has a Quantity of 10, and a GWR Numbers of 409, 290, 315, 317 321, 324, 333? | CREATE TABLE table_8402 (
"Year" real,
"Quantity" real,
"Manufacturer" text,
"Serial Number" text,
"TVR Numbers" text,
"GWR Numbers" text
) | SELECT AVG("Year") FROM table_8402 WHERE "Quantity" = '10' AND "GWR Numbers" = '409, 290, 315, 317–321, 324, 333' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26311,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
5991,
288,
485,
121,
490,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
134,
15,
12042,
7720,
121,
1499,
6,
96,
4562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
8512,
21680,
953,
834,
26311,
357,
549,
17444,
427,
96,
5991,
288,
485,
121,
3274,
3,
31,
1714,
31,
3430,
96,
517,
15472,
7720,
7,
121,
3274,
3,
31,
591,
4198,
6,
3,
23838,
6,
220... |
what is the procedure icd9 code and name for the patient id 9258? | 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 procedures.icd9_code, procedures.long_title FROM procedures WHERE procedures.subject_id = "9258" | [
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,
4293,
5,
447,
26,
1298,
834,
4978,
6,
4293,
5,
2961,
834,
21869,
21680,
4293,
549,
17444,
427,
4293,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4508,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the averae top 25 with events less than 0 | CREATE TABLE table_name_31 (top_25 INTEGER, events INTEGER) | SELECT AVG(top_25) FROM table_name_31 WHERE events < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
2916,
834,
1828,
3,
21342,
17966,
6,
984,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
9,
624,
9,
15,
420,
944,
28,
984,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
984,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the the name of the NHL team that is in the same market as the NBA team, Nuggets? | CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, nba_team_s_ VARCHAR) | SELECT nhl_team_s_ FROM table_1205598_1 WHERE nba_team_s_ = "Nuggets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
3769,
3916,
834,
536,
41,
29,
107,
40,
834,
11650,
834,
7,
834,
584,
4280,
28027,
6,
3,
29,
115,
9,
834,
11650,
834,
7,
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,
3,
29,
107,
40,
834,
11650,
834,
7,
834,
21680,
953,
834,
15518,
3769,
3916,
834,
536,
549,
17444,
427,
3,
29,
115,
9,
834,
11650,
834,
7,
834,
3274,
96,
12924,
122,
2782,
7,
121,
1,
-100,
-100,
-100,
-100,
-100... |
Show the names and genders of players with a coach starting after 2011. | CREATE TABLE player (
Player_name VARCHAR,
gender VARCHAR,
Player_ID VARCHAR
)
CREATE TABLE coach (
Coach_ID VARCHAR
)
CREATE TABLE player_coach (
Coach_ID VARCHAR,
Player_ID VARCHAR,
Starting_year INTEGER
) | SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
12387,
834,
4350,
584,
4280,
28027,
6,
7285,
584,
4280,
28027,
6,
12387,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3763,
41,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5787,
15800,
49,
834,
4350,
6,
332,
5787,
122,
3868,
21680,
1959,
834,
509,
1836,
6157,
332,
536,
3,
15355,
3162,
3763,
6157,
332,
357,
9191,
332,
5411,
3881,
1836,
834,
4309,
3274,
332,
4416,
3881,
1836,
834,
... |
What is Home, when Time is 18:00, and when Geust is Servette FC (CHL)? | CREATE TABLE table_name_49 (home VARCHAR, time VARCHAR, geust VARCHAR) | SELECT home FROM table_name_49 WHERE time = "18:00" AND geust = "servette fc (chl)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
5515,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
873,
302,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1210,
6,
116,
2900,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
97,
3274,
96,
536,
15692,
121,
3430,
873,
302,
17,
3274,
96,
3473,
1954,
3,
89,
75,
41,
524,
40,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many are there in 2003 that have 0 in 2001, more than 0 in 2009 and fewer than 0 in 1999? | CREATE TABLE table_name_97 (
Id VARCHAR
) | SELECT SUM(2003) FROM table_name_97 WHERE 2001 = 0 AND 2009 > 0 AND 1999 < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
33,
132,
16,
3888,
24,
43,
3,
632,
16,
4402,
6,
72,
145,
3,
632,
16,
2464... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
31210,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
4402,
3274,
3,
632,
3430,
2464,
2490,
3,
632,
3430,
5247,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In which year did Kati Klinzing finish 3rd? | CREATE TABLE table_10755 (
"Year" real,
"Location" text,
"Champion" text,
"Second" text,
"Third" text
) | SELECT "Year" FROM table_10755 WHERE "Third" = 'kati klinzing' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
3769,
41,
96,
476,
2741,
121,
490,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
382,
9288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
18057,
3769,
549,
17444,
427,
96,
382,
9288,
26,
121,
3274,
3,
31,
8682,
23,
3,
20529,
29,
8128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 of 47.91, and an Upper index MJ/ Nm 3 larger than 53.28? | CREATE TABLE table_name_93 (
upper_index_kcal__nm_3 INTEGER,
lower_index_mj__nm_3 VARCHAR,
upper_index_mj__nm_3 VARCHAR
) | SELECT SUM(upper_index_kcal__nm_3) FROM table_name_93 WHERE lower_index_mj__nm_3 = 47.91 AND upper_index_mj__nm_3 > 53.28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
4548,
834,
18288,
834,
157,
1489,
834,
834,
29,
51,
834,
519,
3,
21342,
17966,
6,
1364,
834,
18288,
834,
51,
354,
834,
834,
29,
51,
834,
519,
584,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
15689,
834,
18288,
834,
157,
1489,
834,
834,
29,
51,
834,
5268,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1364,
834,
18288,
834,
51,
354,
834,
834,
29,
51,
834,
519,
3274,
10635,
5,
4729,
... |
How many wins did he have with carlin motorsport? | CREATE TABLE table_25671 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" real,
"Wins" real,
"Poles" real,
"FLaps" real,
"Podiums" real,
"Points" real,
"Final Placing" text
) | SELECT COUNT("Wins") FROM table_25671 WHERE "Team Name" = 'Carlin Motorsport' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
4450,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
448,
9,
2319,
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,
2847,
17161,
599,
121,
18455,
7,
8512,
21680,
953,
834,
19337,
4450,
549,
17444,
427,
96,
18699,
5570,
121,
3274,
3,
31,
6936,
40,
77,
30045,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is average age of patients whose admission location is emergency room admit and primary disease is s/p hanging? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "S/P HANGING" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
18464,
17063,
3,
30270,
8502,
12604,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
... |
What was the score for the April 12 game? | CREATE TABLE table_name_73 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_73 WHERE date = "april 12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
1186,
586,
467,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
586,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the winning team when max busnelli is the winning driver? | CREATE TABLE table_23315271_2 (winning_team VARCHAR, winning_driver VARCHAR) | SELECT winning_team FROM table_23315271_2 WHERE winning_driver = "Max Busnelli" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
26320,
4450,
834,
357,
41,
8163,
834,
11650,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3447,
372,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
11650,
21680,
953,
834,
20879,
26320,
4450,
834,
357,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
21298,
5703,
10361,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What were the years active where Asian Cup played as a captain is Iran 1976? | CREATE TABLE table_272865_20 (
years_active VARCHAR,
asian_cup_played_as_a_captain VARCHAR
) | SELECT years_active FROM table_272865_20 WHERE asian_cup_played_as_a_captain = "Iran 1976" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2577,
4122,
834,
1755,
41,
203,
834,
6645,
584,
4280,
28027,
6,
3,
9,
10488,
834,
4658,
834,
4895,
15,
26,
834,
9,
7,
834,
9,
834,
4010,
17,
9,
77,
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,
203,
834,
6645,
21680,
953,
834,
2555,
2577,
4122,
834,
1755,
549,
17444,
427,
3,
9,
10488,
834,
4658,
834,
4895,
15,
26,
834,
9,
7,
834,
9,
834,
4010,
17,
9,
77,
3274,
96,
196,
2002,
16164,
121,
1,
-100,
-100,
... |
What is the percentage listed for the team who scored 63 points? | CREATE TABLE table_26200568_16 (
percentage VARCHAR,
points_for VARCHAR
) | SELECT percentage FROM table_26200568_16 WHERE points_for = 63 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
22594,
3651,
834,
2938,
41,
5294,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5294,
2616,
21,
8,
372,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5294,
21680,
953,
834,
2688,
22594,
3651,
834,
2938,
549,
17444,
427,
979,
834,
1161,
3274,
3,
3891,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Pleasure, when Drug is 'LSD', and when Psychological Dependence is greater than 1.1? | CREATE TABLE table_name_57 (
pleasure INTEGER,
drug VARCHAR,
psychological_dependence VARCHAR
) | SELECT SUM(pleasure) FROM table_name_57 WHERE drug = "lsd" AND psychological_dependence > 1.1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
5565,
3,
21342,
17966,
6,
2672,
584,
4280,
28027,
6,
11041,
834,
18790,
1433,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
4788,
9,
4334,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
2672,
3274,
96,
40,
7,
26,
121,
3430,
11041,
834,
18790,
1433,
2490,
3,
11039,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is maximum days of hospital stay of patients whose admission year is greater than or equal to 2177? | 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 prescriptions (
subject_id text,
hadm_id... | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.admityear >= "2177" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
2658,
4013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Why did Robert L. Bacon (r) vacate? | CREATE TABLE table_2159547_3 (reason_for_change VARCHAR, vacator VARCHAR) | SELECT reason_for_change FROM table_2159547_3 WHERE vacator = "Robert L. Bacon (R)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
3301,
4177,
834,
519,
41,
864,
739,
834,
1161,
834,
13073,
584,
4280,
28027,
6,
3,
8938,
1016,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1615,
410,
2715... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1053,
834,
1161,
834,
13073,
21680,
953,
834,
357,
1808,
3301,
4177,
834,
519,
549,
17444,
427,
3,
8938,
1016,
3274,
96,
24372,
49,
17,
301,
5,
13456,
106,
41,
448,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the away side at windy hill? | CREATE TABLE table_name_35 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team FROM table_name_35 WHERE venue = "windy hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
550,
596,
44,
2943,
63,
9956,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
5669,
3274,
96,
5165,
63,
9956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the horse when the jockey was Peter Wells? | CREATE TABLE table_24915874_1 (
horse VARCHAR,
jockey VARCHAR
) | SELECT horse FROM table_24915874_1 WHERE jockey = "Peter Wells" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4729,
3449,
4581,
834,
536,
41,
4952,
584,
4280,
28027,
6,
8624,
4397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4952,
116,
8,
8624,
4397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4952,
21680,
953,
834,
2266,
4729,
3449,
4581,
834,
536,
549,
17444,
427,
8624,
4397,
3274,
96,
345,
15,
449,
1548,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the co-drivers in 2008? | CREATE TABLE table_71638 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
) | SELECT "Co-Drivers" FROM table_71638 WHERE "Year" = '2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2938,
3747,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
3881,
18,
20982,
52,
7,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
3612,
102,
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,
96,
3881,
18,
20982,
52,
7,
121,
21680,
953,
834,
940,
2938,
3747,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
16128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which 1st prize ($) has a Winner of scott simpson (7)? | CREATE TABLE table_name_21 (
winner VARCHAR
) | SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_21 WHERE winner = "scott simpson (7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
209,
7,
17,
6441,
8785,
61,
65,
3,
9,
18125,
13,
3,
7,
10405,
108,
1167,
739,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
536,
6157,
3,
7,
17,
834,
2246,
776,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
4668,
3274,
96,
7,
10405,
108,
1167,
739,
3,
24358,
121,
1,
-100,
... |
What was the status of the election featuring incumbent margaret kaiser? | CREATE TABLE table_26416704_2 (
status VARCHAR,
incumbent VARCHAR
) | SELECT status FROM table_26416704_2 WHERE incumbent = "Margaret Kaiser" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
27650,
6348,
834,
357,
41,
2637,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2637,
13,
8,
4356,
4767,
28406,
3157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2637,
21680,
953,
834,
26755,
27650,
6348,
834,
357,
549,
17444,
427,
28406,
3274,
96,
7286,
1478,
15,
17,
20993,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the players name in the guard position? | CREATE TABLE table_5160 (
"Round" text,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"Team" text
) | SELECT "Name" FROM table_5160 WHERE "Position" = 'guard' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
3328,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
5553,
3328,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
11010,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Total has an A Score of 6.5, and a Position larger than 5? | CREATE TABLE table_name_79 (total INTEGER, a_score VARCHAR, position VARCHAR) | SELECT MIN(total) FROM table_name_79 WHERE a_score = 6.5 AND position > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
235,
1947,
3,
21342,
17966,
6,
3,
9,
834,
7,
9022,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9273,
65,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
3,
9,
834,
7,
9022,
3274,
3,
17255,
3430,
1102,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What frequency has temagami as the city of license? | CREATE TABLE table_name_92 (frequency VARCHAR, city_of_license VARCHAR) | SELECT frequency FROM table_name_92 WHERE city_of_license = "temagami" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
30989,
584,
4280,
28027,
6,
690,
834,
858,
834,
28062,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
7321,
65,
17922,
8758,
23,
38,
8,
690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7321,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
690,
834,
858,
834,
28062,
3274,
96,
3524,
9,
8758,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the pali word for pride in poison/klesha? | CREATE TABLE table_61850 (
"Poison/Klesha" text,
"Sanskrit" text,
"Pali" text,
"Tibetan" text,
"Alternate translations" text
) | SELECT "Pali" FROM table_61850 WHERE "Poison/Klesha" = 'pride' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
17246,
41,
96,
345,
32,
23,
739,
87,
439,
965,
1024,
121,
1499,
6,
96,
134,
3247,
10648,
17,
121,
1499,
6,
96,
345,
4288,
121,
1499,
6,
96,
382,
23,
346,
17,
152,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
4288,
121,
21680,
953,
834,
4241,
17246,
549,
17444,
427,
96,
345,
32,
23,
739,
87,
439,
965,
1024,
121,
3274,
3,
31,
2246,
221,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What person has the alma mater of Eastern Nazarene ('74), and greater than 19 experience? | CREATE TABLE table_name_86 (
name VARCHAR,
experience VARCHAR,
alma_mater VARCHAR
) | SELECT name FROM table_name_86 WHERE experience > 19 AND alma_mater = "eastern nazarene ('74)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
564,
584,
4280,
28027,
6,
351,
584,
4280,
28027,
6,
491,
51,
9,
834,
3357,
49,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
568,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
351,
2490,
957,
3430,
491,
51,
9,
834,
3357,
49,
3274,
96,
15,
9,
13072,
28577,
9,
1536,
15,
41,
31,
4581,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the school of the player from Lake Charles, LA? | CREATE TABLE table_11677100_18 (
school VARCHAR,
hometown VARCHAR
) | SELECT school FROM table_11677100_18 WHERE hometown = "Lake Charles, LA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
4013,
2915,
834,
2606,
41,
496,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
496,
13,
8,
1959,
45,
2154,
5417,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
21680,
953,
834,
20159,
4013,
2915,
834,
2606,
549,
17444,
427,
22295,
3274,
96,
3612,
1050,
5417,
6,
5292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news? | CREATE TABLE table_name_24 (
time VARCHAR,
news_freq VARCHAR,
local_networked VARCHAR,
ad_freq VARCHAR
) | SELECT time FROM table_name_24 WHERE local_networked = "local" AND ad_freq = "20 minutes" AND news_freq = "n/a after 7pm news" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
97,
584,
4280,
28027,
6,
1506,
834,
89,
60,
1824,
584,
4280,
28027,
6,
415,
834,
1582,
1981,
15,
26,
584,
4280,
28027,
6,
3,
9,
26,
834,
89,
60,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
415,
834,
1582,
1981,
15,
26,
3274,
96,
16882,
121,
3430,
3,
9,
26,
834,
89,
60,
1824,
3274,
96,
1755,
676,
121,
3430,
1506,
834,
89,
60,
1824,
3274,
96,
29... |
What country has a medical school established in 1969 with both an IMED and avicenna? | CREATE TABLE table_63243 (
"Country/Territory" text,
"Established" real,
"Degree" text,
"Regional/Offshore" text,
"IMED/Avicenna Listed" text
) | SELECT "Country/Territory" FROM table_63243 WHERE "IMED/Avicenna Listed" = 'both' AND "Established" = '1969' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
27730,
41,
96,
10628,
651,
87,
382,
21301,
10972,
121,
1499,
6,
96,
14997,
15403,
11904,
121,
490,
6,
96,
2962,
3584,
15,
121,
1499,
6,
96,
17748,
6318,
87,
21265,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
87,
382,
21301,
10972,
121,
21680,
953,
834,
3891,
27730,
549,
17444,
427,
96,
15382,
308,
87,
188,
7287,
35,
29,
9,
3,
28886,
121,
3274,
3,
31,
17158,
31,
3430,
96,
14997,
15403,
11904,
121,
3274,
... |
What the B Score when the total is 16.125 and the position is less than 7? | CREATE TABLE table_79240 (
"Position" real,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
) | SELECT SUM("B Score") FROM table_79240 WHERE "Position" < '7' AND "Total" = '16.125' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
11944,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
517,
63,
51,
29,
9,
7,
17,
121,
1499,
6,
96,
188,
17763,
121,
490,
6,
96,
279,
17763,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
279,
17763,
8512,
21680,
953,
834,
4440,
11944,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
940,
31,
3430,
96,
3696,
1947,
121,
3274,
3,
31,
2938,
5,
10124,
31,
1,
-100,
-100,
... |
provide the number of patients whose diagnoses icd9 code is 56731 and lab test category is blood gas? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "56731" AND lab."CATEGORY" = "Blood Gas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Can you tell me the Record that has the Date of january 29? | CREATE TABLE table_name_57 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_57 WHERE date = "january 29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
11392,
24,
65,
8,
7678,
13,
3,
7066,
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,
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,
3436,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
2838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Season when the Lead was don bartlett, and the third was don walchuk, and a Second of carter rycroft? | CREATE TABLE table_41283 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Season" FROM table_41283 WHERE "Lead" = 'don bartlett' AND "Third" = 'don walchuk' AND "Second" = 'carter rycroft' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
4591,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
591,
2122,
4591,
549,
17444,
427,
96,
2796,
9,
26,
121,
3274,
3,
31,
2029,
1207,
17,
1655,
17,
31,
3430,
96,
382,
9288,
26,
121,
3274,
3,
31,
2029,
3,
5380,
524,
1598... |
how many procedures of cpap/peep therapy - 10-15 cm h2o have been performed since 6 years ago? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE p... | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'cpap/peep therapy - 10-15 cm h2o' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-6 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1058,
549,
17444,
427,
1058,
5,
26889,
4350,
3274,
3,
31,
75,
16281,
87,
855,
15,
102,
3918,
3,
18,
25446,
2446,
3,
107,
357,
32,
31,
3430,
309,
6048,
382,
15382,
599,
26889,
5,
... |
what was the last year where this team was a part of the usl a league ? | CREATE TABLE table_204_590 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text,
"avg. attendance" number
) | SELECT MAX("year") FROM table_204_590 WHERE "league" = 'usl a-league' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
2394,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
26,
23,
6610,
121,
381,
6,
96,
29512,
121,
1499,
6,
96,
60,
122,
4885,
774,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
1201,
8512,
21680,
953,
834,
26363,
834,
755,
2394,
549,
17444,
427,
96,
29512,
121,
3274,
3,
31,
302,
40,
3,
9,
18,
29512,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Result when the memphis grizzlies ( 2) were the loser? | CREATE TABLE table_6905 (
"Year" text,
"Playoff round" text,
"Venue" text,
"Winner" text,
"Result" text,
"Loser" text
) | SELECT "Result" FROM table_6905 WHERE "Loser" = 'memphis grizzlies ( 2)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3076,
41,
96,
476,
2741,
121,
1499,
6,
96,
15800,
1647,
1751,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
20119,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3951,
3076,
549,
17444,
427,
96,
434,
32,
7,
49,
121,
3274,
3,
31,
526,
7656,
159,
3,
3496,
5271,
4664,
41,
9266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date did the capitols play the toronto maple leafs? | CREATE TABLE table_2863 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Date" FROM table_2863 WHERE "Opponent" = 'Toronto Maple Leafs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3891,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
2577,
3891,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
3696,
4438,
32,
23153,
19407,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is 2nd Leg, when Team #2 is 'San Lorenzo'? | CREATE TABLE table_name_96 (
team__number2 VARCHAR
) | SELECT 2 AS nd_leg FROM table_name_96 WHERE team__number2 = "san lorenzo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
372,
834,
834,
5525,
1152,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
204,
727,
18978,
6,
116,
2271,
15493,
19,
3,
31,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4314,
549,
17444,
427,
372,
834,
834,
5525,
1152,
357,
3274,
96,
7,
152,
3,
322,
15,
20547,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score in Hampden Park, Glasgow? | CREATE TABLE table_name_68 (score VARCHAR, venue VARCHAR) | SELECT score FROM table_name_68 WHERE venue = "hampden park, glasgow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
7,
9022,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
16,
5845,
102,
537,
1061,
6,
18588,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
5669,
3274,
96,
1483,
102,
537,
2447,
6,
3,
16985,
839,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of the home wins of the Boston College Eagles, which has more than 6 wins? | CREATE TABLE table_name_89 (Home INTEGER, institution VARCHAR, wins VARCHAR) | SELECT SUM(Home) AS wins FROM table_name_89 WHERE institution = "boston college eagles" AND wins > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
19040,
3,
21342,
17966,
6,
6568,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
234,
9204,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
19040,
61,
6157,
9204,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
6568,
3274,
96,
115,
32,
4411,
1900,
3,
15,
9,
3537,
7,
121,
3430,
9204,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List venues of all matches in the order of their dates starting from the most recent one. | CREATE TABLE MATCH (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM MATCH ORDER BY date DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
283,
29572,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
11778,
13,
66,
6407,
16,
8,
455,
13,
70,
5128,
1684,
45,
8,
167,
1100,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
283,
29572,
4674,
11300,
272,
476,
833,
309,
25067,
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,
-... |
I want to know the HP model with a #HDD of 1 of sides of ds | CREATE TABLE table_name_68 (hp_model VARCHAR, _number_hdd VARCHAR, sides VARCHAR) | SELECT hp_model FROM table_name_68 WHERE _number_hdd = 1 AND sides = "ds" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
107,
102,
834,
21770,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
107,
26,
26,
584,
4280,
28027,
6,
4458,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
107,
102,
834,
21770,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
3,
834,
5525,
1152,
834,
107,
26,
26,
3274,
209,
3430,
4458,
3274,
96,
26,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what song on prophets vs. profits has no producer ? | CREATE TABLE table_203_37 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"performer(s)" text,
"length" text
) | SELECT "title" FROM table_203_37 WHERE "producer(s)" IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4118,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
1409,
4817,
49,
599,
7,
61,
121,
1499,
6,
96,
883,
2032,
49,
599,
7,
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,
21869,
121,
21680,
953,
834,
23330,
834,
4118,
549,
17444,
427,
96,
1409,
4817,
49,
599,
7,
61,
121,
6827,
13046,
10376,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the venue for 23 january 2009 | CREATE TABLE table_34006 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_34006 WHERE "Date" = '23 january 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21129,
5176,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
21129,
5176,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2773,
3,
7066,
76,
1208,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was richard anderson 's latest paper ? | CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE T... | SELECT DISTINCT writes.paperid FROM author, paper, writes WHERE author.authorname = 'richard anderson' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid ORDER BY paper.year DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
4397,
27111,
41,
1040,
23,
26,
16,
17,
6,
843,
27111,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
11858,
5,
19587,
23,
26,
21680,
2291,
6,
1040,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
3723,
986,
11,
13515,
31,
3430,
11858,
5,
17415,
23,
26,
3274,
2291,
5,
17415,
23... |
Which Nebraska has 2004 year? | CREATE TABLE table_name_25 (
nebraska VARCHAR,
year VARCHAR
) | SELECT nebraska FROM table_name_25 WHERE year = "2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
3,
29,
15,
1939,
10717,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
19074,
65,
4406,
215,
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,
3,
29,
15,
1939,
10717,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
215,
3274,
96,
21653,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Can you tell me the Date that has the Week smaller than 13, and the Opponent of green bay packers? | CREATE TABLE table_name_16 (date VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_16 WHERE week < 13 AND opponent = "green bay packers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
5522,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
7678,
24,
65,
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,
833,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
471,
3,
2,
1179,
3430,
15264,
3274,
96,
9423,
10210,
4153,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average Total with a Nation of ethiopia (eth) and a Rank that is larger than 9? | CREATE TABLE table_75839 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Total") FROM table_75839 WHERE "Nation" = 'ethiopia (eth)' AND "Rank" > '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
927,
3288,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
3072,
927,
3288,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
15,
7436,
18916,
41,
15,
189,
61,
31,
3430,
96,
22557,
121,
2490,
3,
31,
1298,
31,
1,
-10... |
bmi > 18.5 kg / m2 and < 40 kg / m2. | CREATE TABLE table_train_230 (
"id" int,
"anemia" bool,
"diabetic" string,
"lactose_intolerance" bool,
"hb" float,
"body_mass_index_bmi" float,
"NOUSE" float
) | SELECT * FROM table_train_230 WHERE body_mass_index_bmi > 18.5 AND body_mass_index_bmi < 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
13427,
41,
96,
23,
26,
121,
16,
17,
6,
96,
152,
11658,
121,
3,
12840,
40,
6,
96,
26,
23,
9,
346,
1225,
121,
6108,
6,
96,
9700,
235,
7,
15,
834,
77,
235,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
13427,
549,
17444,
427,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
2490,
209,
19253,
3430,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
3,
2,
1283,
1,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.