NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which city had the charleston area convention center as its callback location | CREATE TABLE table_11129123_1 (audition_city VARCHAR, callback_venue VARCHAR) | SELECT audition_city FROM table_11129123_1 WHERE callback_venue = "Charleston Area Convention Center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
3166,
14574,
834,
536,
41,
402,
10569,
834,
6726,
584,
4280,
28027,
6,
580,
1549,
834,
15098,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
690,
141,
8,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
21042,
834,
6726,
21680,
953,
834,
15866,
3166,
14574,
834,
536,
549,
17444,
427,
580,
1549,
834,
15098,
3274,
96,
18947,
109,
4411,
5690,
11347,
1166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the largest number of assists for the second rank when there were less than 2 games? | CREATE TABLE table_42352 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Assists" real
) | SELECT MAX("Assists") FROM table_42352 WHERE "Rank" = '2' AND "Games" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
2469,
357,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
188,
7,
7,
343,
7,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
188,
7,
7,
343,
7,
8512,
21680,
953,
834,
4165,
2469,
357,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
357,
31,
3430,
96,
23055,
7,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the lowest Game, when Location is Philips Arena, and when Attendance is less than 15,619? | CREATE TABLE table_name_68 (
game INTEGER,
location VARCHAR,
attendance VARCHAR
) | SELECT MIN(game) FROM table_name_68 WHERE location = "philips arena" AND attendance < 15 OFFSET 619 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
467,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
4435,
6,
116,
1045... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1128,
3274,
96,
18118,
15432,
15134,
121,
3430,
11364,
3,
2,
627,
3,
15316,
20788,
431,
2294,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the game in Week 9 played? | CREATE TABLE table_5424 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
) | SELECT "Date" FROM table_5424 WHERE "Week" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
2266,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
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,
96,
308,
342,
121,
21680,
953,
834,
5062,
2266,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find total capacity of dorms for each gender in a bar chart. | 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 Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTE... | SELECT gender, SUM(student_capacity) FROM Dorm GROUP BY gender | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7285,
6,
180,
6122,
599,
8637,
295,
834,
4010,
9,
6726,
61,
21680,
6200,
51,
350,
4630,
6880,
272,
476,
7285,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the opponent before game 5 with a 0-1-0 record? | CREATE TABLE table_name_31 (
opponent VARCHAR,
game VARCHAR,
record VARCHAR
) | SELECT opponent FROM table_name_31 WHERE game < 5 AND record = "0-1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
15264,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
15264,
274,
467,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
467,
3,
2,
305,
3430,
1368,
3274,
96,
9498,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score when Richmond was the opponent? | CREATE TABLE table_name_45 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_45 WHERE opponent = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
7,
9022,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
17247,
47,
8,
15264,
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,
2604,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
15264,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which film was made before 2002? | CREATE TABLE table_name_1 (film VARCHAR, year INTEGER) | SELECT film FROM table_name_1 WHERE year < 2002 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
9988,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
814,
47,
263,
274,
4407,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
814,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
215,
3,
2,
4407,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average PCT when it has a PTS smaller than 9 a wins larger than 1? | CREATE TABLE table_name_45 (
pct INTEGER,
pts VARCHAR,
wins VARCHAR
) | SELECT AVG(pct) FROM table_name_45 WHERE pts < 9 AND wins > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
3,
102,
75,
17,
3,
21342,
17966,
6,
3,
102,
17,
7,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
102,
75,
17,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
3,
102,
17,
7,
3,
2,
668,
3430,
9204,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
when was the first procedure patient 006-157753 had on this hospital encounter? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
... | SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-157753' AND patient.hospitaldischargetime IS NULL)) ORDER BY ... | [
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,
23886,
41,
23886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1058,
5,
26889,
715,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
... |
What is the smallest population recorded back in 2002? | CREATE TABLE table_878 (
"Commune" text,
"Area (km 2 )" text,
"2002 population" real,
"Density (km 2 )" text,
"Government website" text
) | SELECT MIN("2002 population") FROM table_878 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
927,
3940,
41,
96,
10205,
444,
121,
1499,
6,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
1499,
6,
96,
24898,
2074,
121,
490,
6,
96,
308,
35,
7,
485,
41,
5848,
204,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
24898,
2074,
8512,
21680,
953,
834,
927,
3940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the attendance? | CREATE TABLE table_23466021_4 (attendance INTEGER) | SELECT MAX(attendance) FROM table_23466021_4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4448,
3328,
2658,
834,
591,
41,
15116,
663,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11364,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
2773,
4448,
3328,
2658,
834,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the innings when the highest score is 72? | CREATE TABLE table_28846752_4 (
innings INTEGER,
highest_score VARCHAR
) | SELECT MAX(innings) FROM table_28846752_4 WHERE highest_score = "72" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4608,
3708,
5373,
834,
591,
41,
19714,
3,
21342,
17966,
6,
2030,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
19714,
116,
8,
2030... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
10503,
7,
61,
21680,
953,
834,
2577,
4608,
3708,
5373,
834,
591,
549,
17444,
427,
2030,
834,
7,
9022,
3274,
96,
5865,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many millions of U.S. viewers watched the episode titled 'Lost Boys'? | CREATE TABLE table_29480 (
"No. in Series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "U.S. viewers (millions)" FROM table_29480 WHERE "Title" = 'Lost Boys' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
20579,
41,
96,
4168,
5,
16,
4531,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
21680,
953,
834,
3166,
20579,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
434,
3481,
16575,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Draw a pie chart for how many rooms have king beds? Report the number for each decor type. | CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | SELECT decor, COUNT(*) FROM Rooms WHERE bedType = "King" GROUP BY decor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4181,
7,
41,
4181,
196,
26,
3,
3463,
4,
382,
6,
562,
23954,
3,
3463,
4,
382,
6,
8326,
3,
21342,
17966,
6,
1953,
25160,
3,
3463,
4,
382,
6,
9858,
667,
75,
4658,
6833,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4469,
6,
2847,
17161,
599,
1935,
61,
21680,
4181,
7,
549,
17444,
427,
1953,
25160,
3274,
96,
439,
53,
121,
350,
4630,
6880,
272,
476,
4469,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is average age of patients whose gender is f and death status is 1? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.expire_flag = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
In which district is anna university - tiruchirappalli campus, whose website is http://www.annauniv.edu, located? | CREATE TABLE table_name_3 (district VARCHAR, weblink VARCHAR, college_or_campus_name VARCHAR) | SELECT district FROM table_name_3 WHERE weblink = "http://www.annauniv.edu" AND college_or_campus_name = "anna university - tiruchirappalli campus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
26,
23,
20066,
584,
4280,
28027,
6,
765,
4907,
584,
4280,
28027,
6,
1900,
834,
127,
834,
25532,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3939,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
765,
4907,
3274,
96,
5948,
1303,
1986,
5,
10878,
202,
23,
208,
5,
15,
1259,
121,
3430,
1900,
834,
127,
834,
25532,
834,
4350,
3274,
96,
10878,
3819,
3,
18,
1... |
What's the score of Game 5? | CREATE TABLE table_name_79 (score VARCHAR, game VARCHAR) | SELECT score FROM table_name_79 WHERE game = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
7,
9022,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2604,
13,
4435,
305,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
467,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is 2009, when 2011 is 'Q2'? | CREATE TABLE table_62440 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2009" FROM table_62440 WHERE "2011" = 'q2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
22335,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
121,
1499,
6,
96,
12172,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16660,
121,
21680,
953,
834,
4056,
22335,
549,
17444,
427,
96,
13907,
121,
3274,
3,
31,
1824,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the planet associated with the direction of south? | CREATE TABLE table_14850099_18 (planet VARCHAR, cardinal_direction VARCHAR) | SELECT planet FROM table_14850099_18 WHERE cardinal_direction = "South" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24748,
2560,
3264,
834,
2606,
41,
3767,
15,
17,
584,
4280,
28027,
6,
895,
10270,
834,
10258,
4985,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4345,
1968... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4345,
21680,
953,
834,
24748,
2560,
3264,
834,
2606,
549,
17444,
427,
895,
10270,
834,
10258,
4985,
3274,
96,
22081,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the name of customer who has the highest amount of loans. | CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR) | SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2289,
41,
1071,
7,
17,
834,
23,
26,
584,
4280,
28027,
6,
866,
3,
21342,
17966,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
41,
1071,
7,
17,
834,
4350,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
1071,
7,
17,
834,
4350,
21680,
884,
6157,
332,
536,
3,
15355,
3162,
2289,
6157,
332,
357,
9191,
332,
5411,
1071,
7,
17,
834,
23,
26,
3274,
332,
4416,
1071,
7,
17,
834,
23,
26,
350,
4630,
6880,
272,
47... |
Which Margin of victory has a Runner(s)-up of buddy gardner? | CREATE TABLE table_name_1 (
margin_of_victory VARCHAR,
runner_s__up VARCHAR
) | SELECT margin_of_victory FROM table_name_1 WHERE runner_s__up = "buddy gardner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
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,
0... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
3007,
8155,
3,
6390,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What high points did a game earlier than 80 have with a score of l 123–142? | CREATE TABLE table_name_47 (high_points VARCHAR, game VARCHAR, score VARCHAR) | SELECT high_points FROM table_name_47 WHERE game < 80 AND score = "l 123–142" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
306,
979,
410,
3,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
467,
3,
2,
2775,
3430,
2604,
3274,
96,
40,
3,
14574,
104,
24978,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date that a ship sank in the South Atlantic? | CREATE TABLE table_name_59 (date VARCHAR, where_sunk VARCHAR) | SELECT date FROM table_name_59 WHERE where_sunk = "south atlantic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
5522,
584,
4280,
28027,
6,
213,
834,
7,
6513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
24,
3,
9,
4383,
3,
7,
5979,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
213,
834,
7,
6513,
3274,
96,
7,
670,
107,
3,
31767,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Bar graph to show sum revenue from different name, and rank bars in asc order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Name, SUM(Revenue) FROM Manufacturers GROUP BY Name ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
180,
6122,
599,
1649,
15098,
61,
21680,
15248,
7,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which score has an Opponent of white sox, and a Record of 2-0? | CREATE TABLE table_name_92 (score VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT score FROM table_name_92 WHERE opponent = "white sox" AND record = "2-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
7,
9022,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2604,
65,
46,
4495,
9977,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
15264,
3274,
96,
13698,
78,
226,
121,
3430,
1368,
3274,
96,
19423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which administrative division had a 2011 population of 606,699 according to the siak database? | CREATE TABLE table_73334 (
"Administrative division" text,
"Area (km\u00b2) 2005" text,
"Population 2010 Census" real,
"Population 2011 SIAK Database" text,
"Population density (/km\u00b2 2010)" real
) | SELECT "Administrative division" FROM table_73334 WHERE "Population 2011 SIAK Database" = '606,699' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
519,
3710,
41,
96,
16313,
343,
52,
1528,
4889,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
3105,
121,
1499,
6,
96,
27773,
7830,
2735,
23086,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16313,
343,
52,
1528,
4889,
121,
21680,
953,
834,
4552,
519,
3710,
549,
17444,
427,
96,
27773,
7830,
2722,
7933,
12396,
20230,
121,
3274,
3,
31,
3328,
11071,
948,
3264,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13? | CREATE TABLE table_41190 (
"City" text,
"Comprehension of Danish" text,
"Comprehension of Swedish" text,
"Comprehension of Norwegian" text,
"Average" real
) | SELECT "Comprehension of Danish" FROM table_41190 WHERE "Average" < '6.85' AND "Comprehension of Norwegian" = '4.13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
11776,
41,
96,
254,
485,
121,
1499,
6,
96,
5890,
22459,
106,
13,
23124,
121,
1499,
6,
96,
5890,
22459,
106,
13,
16531,
121,
1499,
6,
96,
5890,
22459,
106,
13,
21894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
22459,
106,
13,
23124,
121,
21680,
953,
834,
4853,
11776,
549,
17444,
427,
96,
188,
624,
545,
121,
3,
2,
3,
31,
948,
5,
4433,
31,
3430,
96,
5890,
22459,
106,
13,
21894,
121,
3274,
3,
31,
19708,
519,
31... |
Which episode had 2.75 million viewers in the U.S.? | CREATE TABLE table_25740548_4 (
title VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT title FROM table_25740548_4 WHERE us_viewers__million_ = "2.75" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4581,
3076,
3707,
834,
591,
41,
2233,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5640... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
1828,
4581,
3076,
3707,
834,
591,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
21280,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients under the age of 74 whose insurance is self pay. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Self Pay" AND demographic.age < "74" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
134,
10386,
5077,
121,
3430,
14798,
5,
545,
3,
2,
96,
4581,
121,
1,
-100,
-100,... |
What was the Record on the Date May 8? | CREATE TABLE table_name_15 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_15 WHERE date = "may 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11392,
30,
8,
7678,
932,
505,
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,
1368,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
833,
3274,
96,
13726,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Bats have Throws of r, and a DOB of 22 may 1973? | CREATE TABLE table_36839 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
) | SELECT "Bats" FROM table_36839 WHERE "Throws" = 'r' AND "D.O.B." = '22 may 1973' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3651,
3288,
41,
96,
134,
450,
4350,
121,
1499,
6,
96,
25171,
121,
1499,
6,
96,
308,
5,
667,
5,
279,
535,
1499,
6,
96,
279,
144,
7,
121,
1499,
6,
96,
11889,
2381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
279,
144,
7,
121,
21680,
953,
834,
519,
3651,
3288,
549,
17444,
427,
96,
11889,
2381,
7,
121,
3274,
3,
31,
52,
31,
3430,
96,
308,
5,
667,
5,
279,
535,
3274,
3,
31,
2884,
164,
17107,
31,
1,
-100,
-100,
-100... |
Name the discipline for bronze being 0 | CREATE TABLE table_22360_3 (discipline VARCHAR, bronze VARCHAR) | SELECT discipline FROM table_22360_3 WHERE bronze = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
19208,
834,
519,
41,
26,
159,
3389,
747,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
7998,
21,
13467,
271,
3,
632,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7998,
21680,
953,
834,
2884,
19208,
834,
519,
549,
17444,
427,
13467,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many values for joined occur at Guilford College? | CREATE TABLE table_261954_1 (joined VARCHAR, institution VARCHAR) | SELECT COUNT(joined) FROM table_261954_1 WHERE institution = "Guilford College" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2294,
5062,
834,
536,
41,
1927,
630,
26,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2620,
21,
3311,
4093,
44,
2846,
173,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
1927,
630,
26,
61,
21680,
953,
834,
2688,
2294,
5062,
834,
536,
549,
17444,
427,
6568,
3274,
96,
9105,
173,
2590,
1888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Saint-Blaise-Sur-Richelieu is smaller than 68.42 km^2, what is the population of this type M municipality? | CREATE TABLE table_name_64 (
population INTEGER,
area__km_2__ VARCHAR,
type VARCHAR,
name VARCHAR
) | SELECT MIN(population) FROM table_name_64 WHERE type = "m" AND name = "saint-blaise-sur-richelieu" AND area__km_2__ < 68.42 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
2074,
3,
21342,
17966,
6,
616,
834,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
686,
3274,
96,
51,
121,
3430,
564,
3274,
96,
7,
9,
77,
17,
18,
4605,
159,
15,
18,
3042,
18,
3723,
15,
1896,
76,
121,
3430,
616,
... |
Who directed episode 21? | CREATE TABLE table_26432 (
"No. by series" real,
"No. by season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production number" real,
"U.S. viewers (in millions)" text
) | SELECT "Directed by" FROM table_26432 WHERE "No. by season" = '21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
2668,
41,
96,
4168,
5,
57,
939,
121,
490,
6,
96,
4168,
5,
57,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23620,
15,
26,
57,
121,
21680,
953,
834,
26755,
2668,
549,
17444,
427,
96,
4168,
5,
57,
774,
121,
3274,
3,
31,
2658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is melbourne's home team score? | CREATE TABLE table_33581 (
"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_33581 WHERE "Home team" = 'melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2469,
4959,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
519,
2469,
4959,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the first class team of the player born on 23 February 1973? | CREATE TABLE table_51626 (
"Player" text,
"Date of Birth" text,
"Batting Style" text,
"Bowling Style" text,
"First Class Team" text
) | SELECT "First Class Team" FROM table_51626 WHERE "Date of Birth" = '23 february 1973' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2938,
2688,
41,
96,
15800,
49,
121,
1499,
6,
96,
308,
342,
13,
26337,
121,
1499,
6,
96,
279,
9,
6031,
7936,
121,
1499,
6,
96,
279,
2381,
697,
7936,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25171,
4501,
2271,
121,
21680,
953,
834,
755,
2938,
2688,
549,
17444,
427,
96,
308,
342,
13,
26337,
121,
3274,
3,
31,
2773,
29976,
76,
1208,
17107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000. Visualize by pie chart. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40)... | SELECT JOB_TITLE, MAX_SALARY - MIN_SALARY FROM jobs WHERE MAX_SALARY BETWEEN 12000 AND 18000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
382,
3177,
3765,
6,
4800,
4,
834,
134,
4090,
24721,
3,
18,
3,
17684,
834,
134,
4090,
24721,
21680,
2476,
549,
17444,
427,
4800,
4,
834,
134,
4090,
24721,
272,
7969,
518,
23394,
586,
2313,
3430,
507,... |
Which Position has a Years in Orlando of 1997 1998? | CREATE TABLE table_name_68 (
position VARCHAR,
years_in_orlando VARCHAR
) | SELECT position FROM table_name_68 WHERE years_in_orlando = "1997–1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
1102,
584,
4280,
28027,
6,
203,
834,
77,
834,
32,
7721,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
65,
3,
9,
13825,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
203,
834,
77,
834,
32,
7721,
32,
3274,
96,
2294,
4327,
104,
2294,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
acute myocardial infarction or pulmonary embolization | CREATE TABLE table_train_41 (
"id" int,
"pulmonary_embolization" bool,
"hiv_infection" bool,
"neutrophil_count" int,
"renal_disease" bool,
"liver_disease" bool,
"serum_creatinine" float,
"myocardial_infarction" bool,
"NOUSE" float
) | SELECT * FROM table_train_41 WHERE myocardial_infarction = 1 OR pulmonary_embolization = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4853,
41,
96,
23,
26,
121,
16,
17,
6,
96,
26836,
834,
15,
51,
4243,
1707,
121,
3,
12840,
40,
6,
96,
107,
23,
208,
834,
77,
17856,
121,
3,
12840,
40,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
4853,
549,
17444,
427,
82,
32,
16464,
138,
834,
77,
5544,
4985,
3274,
209,
4674,
3,
26836,
834,
15,
51,
4243,
1707,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what country has dubai | CREATE TABLE table_name_89 (country VARCHAR, town VARCHAR) | SELECT country FROM table_name_89 WHERE town = "dubai" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
17529,
584,
4280,
28027,
6,
1511,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
684,
65,
146,
9441,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1511,
3274,
96,
1259,
9441,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did Mathieu play against Antonio Vei ? | CREATE TABLE table_71831 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the Final" text,
"Score in the Final" text
) | SELECT "Date" FROM table_71831 WHERE "Opponent in the Final" = 'antonio veić' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2606,
3341,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
16,
8,
6514,
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,
940,
2606,
3341,
549,
17444,
427,
96,
667,
102,
9977,
16,
8,
6514,
121,
3274,
3,
31,
9,
6992,
23,
32,
6033,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of UCI points for Kim Kirchen? | CREATE TABLE table_name_42 (uci_points INTEGER, cyclist VARCHAR) | SELECT SUM(uci_points) FROM table_name_42 WHERE cyclist = "kim kirchen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
6809,
834,
2700,
7,
3,
21342,
17966,
6,
21074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
412,
3597,
979,
21,
6777,
194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
6809,
834,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
21074,
3274,
96,
19754,
3,
16089,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was game 78 played on? | CREATE TABLE table_23248967_10 (date VARCHAR, game VARCHAR) | SELECT date FROM table_23248967_10 WHERE game = 78 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3914,
3708,
834,
1714,
41,
5522,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
467,
3,
3940,
1944,
30,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2773,
2266,
3914,
3708,
834,
1714,
549,
17444,
427,
467,
3274,
3,
3940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many different partners were played with during French Open (0/1)? | CREATE TABLE table_2201541_3 (partner VARCHAR, championship__titles_finals_ VARCHAR) | SELECT COUNT(partner) FROM table_2201541_3 WHERE championship__titles_finals_ = "French Open (0/1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
8651,
4853,
834,
519,
41,
12300,
584,
4280,
28027,
6,
10183,
834,
834,
21869,
7,
834,
12406,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
12300,
61,
21680,
953,
834,
357,
8651,
4853,
834,
519,
549,
17444,
427,
10183,
834,
834,
21869,
7,
834,
12406,
7,
834,
3274,
96,
371,
60,
5457,
2384,
17482,
87,
6982,
121,
1,
-100,
-100,
-100,
-100... |
Show all student ids and the number of hours played. | CREATE TABLE Plays_games (Stuid VARCHAR, hours_played INTEGER) | SELECT Stuid, SUM(hours_played) FROM Plays_games GROUP BY Stuid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2911,
7,
834,
7261,
7,
41,
13076,
23,
26,
584,
4280,
28027,
6,
716,
834,
4895,
15,
26,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
1236,
3,
23,
26,
7,
11,
8,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
13076,
23,
26,
6,
180,
6122,
599,
5842,
7,
834,
4895,
15,
26,
61,
21680,
2911,
7,
834,
7261,
7,
350,
4630,
6880,
272,
476,
3,
13076,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which game at Arden Street Oval had the lowest attendance? | CREATE TABLE table_56505 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_56505 WHERE "Venue" = 'arden street oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
1752,
755,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
4834,
1752,
755,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
986,
35,
2815,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Date, when Home Team is "Chester City"? | CREATE TABLE table_name_18 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_18 WHERE home_team = "chester city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
5522,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
1210,
2271,
19,
96,
254,
88,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
234,
834,
11650,
3274,
96,
13263,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bandwidth (MB/s) smaller than 4800, and a Bus width (bits) smaller than 16 has what highest Clock rate (MHz)? | CREATE TABLE table_name_75 (
clock_rate__mhz_ INTEGER,
bandwidth__mb_s_ VARCHAR,
bus_width__bits_ VARCHAR
) | SELECT MAX(clock_rate__mhz_) FROM table_name_75 WHERE bandwidth__mb_s_ < 4800 AND bus_width__bits_ < 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
6702,
834,
2206,
834,
834,
51,
107,
172,
834,
3,
21342,
17966,
6,
19703,
834,
834,
51,
115,
834,
7,
834,
584,
4280,
28027,
6,
2601,
834,
12018,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17407,
834,
2206,
834,
834,
51,
107,
172,
834,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
19703,
834,
834,
51,
115,
834,
7,
834,
3,
2,
314,
6192,
3430,
2601,
834,
12018,
189,
834,
834,
... |
What is the athlete muna lee lowest time? | CREATE TABLE table_name_45 (time INTEGER, athlete VARCHAR) | SELECT MIN(time) FROM table_name_45 WHERE athlete = "muna lee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
715,
3,
21342,
17966,
6,
17893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17893,
13844,
9,
90,
15,
7402,
97,
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,
17684,
599,
715,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
17893,
3274,
96,
51,
202,
9,
90,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which week had the highest attendance with 58,701? | CREATE TABLE table_name_77 (week INTEGER, attendance VARCHAR) | SELECT MAX(week) FROM table_name_77 WHERE attendance = "58,701" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
8041,
3,
21342,
17966,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
471,
141,
8,
2030,
11364,
28,
3,
3449,
6,
2518,
536,
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,
4800,
4,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
11364,
3274,
96,
3449,
6,
2518,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which stadium name contains the substring 'Bank'? | CREATE TABLE stadium (
name VARCHAR
) | SELECT name FROM stadium WHERE name LIKE "%Bank%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14939,
564,
2579,
8,
769,
16099,
3,
31,
21347,
31,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
14939,
549,
17444,
427,
564,
8729,
9914,
96,
1454,
21347,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What record was set on Tue 11/02/75? | CREATE TABLE table_21436373_8 (type_of_record VARCHAR, date_year VARCHAR) | SELECT type_of_record FROM table_21436373_8 WHERE date_year = "Tue 11/02/75" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4906,
3891,
4552,
834,
927,
41,
6137,
834,
858,
834,
60,
7621,
584,
4280,
28027,
6,
833,
834,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1368,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
834,
858,
834,
60,
7621,
21680,
953,
834,
2658,
4906,
3891,
4552,
834,
927,
549,
17444,
427,
833,
834,
1201,
3274,
96,
382,
76,
15,
850,
87,
4305,
21766,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the party where the candidates are edward boland (d) unopposed? | CREATE TABLE table_18351 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Party" FROM table_18351 WHERE "Candidates" = 'Edward Boland (D) Unopposed' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24361,
5553,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
24361,
5553,
549,
17444,
427,
96,
14050,
12416,
6203,
121,
3274,
3,
31,
427,
26,
2239,
8166,
232,
41,
308,
61,
597,
28236,
3843,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of round for wide receiver for kent state | CREATE TABLE table_74833 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT COUNT("Round") FROM table_74833 WHERE "Position" = 'wide receiver' AND "College" = 'kent state' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4591,
519,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
2847,
17161,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
4581,
4591,
519,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
6728,
11487,
31,
3430,
96,
9939,
7883,
121,
3274,
3,
31,
2217,
17,
538,
31,
... |
Show the short names of the buildings managed by "Emma". | CREATE TABLE Apartment_Buildings (building_short_name VARCHAR, building_manager VARCHAR) | SELECT building_short_name FROM Apartment_Buildings WHERE building_manager = "Emma" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
24752,
53,
7,
41,
10905,
834,
7,
14184,
834,
4350,
584,
4280,
28027,
6,
740,
834,
24185,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
710,
3056,
13,
8,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
740,
834,
7,
14184,
834,
4350,
21680,
15970,
834,
24752,
53,
7,
549,
17444,
427,
740,
834,
24185,
3274,
96,
427,
635,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give the admission type and primary disease of subject id 18372. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.admission_type, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "18372" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
6,
18730,
7,
5,
7,
14184,
834,
21869,
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,
549,
... |
give me the number of emergency hospital room admitted patients who were hospitalized for more than 2 days. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.days_stay > "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
18464,
17063,
3,
30270,
8502,
12604,
121,
3430,
147... |
What's the highest silver and 1 gold that the nation of djibouti received with a total less than 3? | CREATE TABLE table_68250 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Silver") FROM table_68250 WHERE "Gold" = '1' AND "Nation" = 'djibouti' AND "Total" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
11434,
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,
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,
4800,
4,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
3651,
11434,
549,
17444,
427,
96,
23576,
121,
3274,
3,
31,
536,
31,
3430,
96,
567,
257,
121,
3274,
3,
31,
26,
354,
23,
4076,
17,
23,
31,
3430,
96,
3696,
... |
For the game showing a final record of 0-5, what was the attendance level? | CREATE TABLE table_name_95 (
attendance VARCHAR,
record VARCHAR
) | SELECT attendance FROM table_name_95 WHERE record = "0-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
11364,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
467,
2924,
3,
9,
804,
1368,
13,
3,
9498,
11116,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1368,
3274,
96,
9498,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the surface for the game that was played with partner Tiya Rolle? | CREATE TABLE table_name_35 (
surface VARCHAR,
partner VARCHAR
) | SELECT surface FROM table_name_35 WHERE partner = "tiya rolle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
1774,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1774,
21,
8,
467,
24,
47,
1944,
28,
2397,
2262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
2397,
3274,
96,
17,
23,
63,
9,
3812,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the location of the institution nicknamed Lions? | CREATE TABLE table_2562113_1 (
location VARCHAR,
nickname VARCHAR
) | SELECT location FROM table_2562113_1 WHERE nickname = "Lions" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
2658,
2368,
834,
536,
41,
1128,
584,
4280,
28027,
6,
24649,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
6568,
24649,
26,
10371,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
19337,
2658,
2368,
834,
536,
549,
17444,
427,
24649,
3274,
96,
434,
2865,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the headphone model for succeeded by sr125 | CREATE TABLE table_1399 (
"Headphone Model" text,
"Headphone Class" text,
"Sensitivity (dB)" text,
"Impedance (Ohms)" real,
"Driver-matched dB" text,
"Construction" text,
"Earpads" text,
"Termination" text,
"Succeeded by" text
) | SELECT "Headphone Model" FROM table_1399 WHERE "Succeeded by" = 'SR125' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3264,
41,
96,
3845,
9,
26,
6399,
5154,
121,
1499,
6,
96,
3845,
9,
26,
6399,
4501,
121,
1499,
6,
96,
134,
35,
7,
155,
10696,
41,
26,
279,
61,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
9,
26,
6399,
5154,
121,
21680,
953,
834,
2368,
3264,
549,
17444,
427,
96,
134,
17431,
6958,
15,
26,
57,
121,
3274,
3,
31,
6857,
10124,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the average ages for male and female students Plot them as bar chart, and list by the bars from low to high. | 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 Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
... | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
71,
17217,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
226,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What team was in 1st plate in a year later than 1956? | CREATE TABLE table_name_84 (year INTEGER) | SELECT 1 AS st_place_team FROM table_name_84 WHERE year > 1956 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
1201,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
16,
209,
7,
17,
3829,
16,
3,
9,
215,
865,
145,
22951,
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,
209,
6157,
3,
7,
17,
834,
4687,
834,
11650,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
215,
2490,
22951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the name of the program that is broadcast most frequently. | CREATE TABLE broadcast (
program_id VARCHAR
)
CREATE TABLE program (
name VARCHAR,
program_id VARCHAR
) | SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6878,
41,
478,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
478,
41,
564,
584,
4280,
28027,
6,
478,
834,
23,
26,
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,
0,
0... | [
3,
23143,
14196,
3,
17,
5411,
4350,
21680,
478,
6157,
3,
17,
536,
3,
15355,
3162,
6878,
6157,
3,
17,
357,
9191,
3,
17,
5411,
1409,
5096,
834,
23,
26,
3274,
3,
17,
4416,
1409,
5096,
834,
23,
26,
350,
4630,
6880,
272,
476,
3,
17... |
Which Game has a Score of 122–125? | CREATE TABLE table_name_74 (game VARCHAR, score VARCHAR) | SELECT game FROM table_name_74 WHERE score = "122–125" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
7261,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4435,
65,
3,
9,
17763,
13,
3,
20889,
104,
10124,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
2604,
3274,
96,
20889,
104,
10124,
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 entrant with a driver Damon Hill and a Renault RS8 3.0 V10 engine? | CREATE TABLE table_57121 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
) | SELECT "Entrant" FROM table_57121 WHERE "Engine" = 'renault rs8 3.0 v10' AND "Driver" = 'damon hill' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
22011,
41,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
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,
16924,
3569,
121,
21680,
953,
834,
3436,
22011,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
1536,
10335,
3,
52,
7,
927,
1877,
632,
3,
208,
1714,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
7812,
106,
9956,
... |
What was the highest number played when there were 21 goals conceded and a draw greater than 3? | CREATE TABLE table_name_47 (
played INTEGER,
goals_conceded VARCHAR,
draw VARCHAR
) | SELECT MAX(played) FROM table_name_47 WHERE goals_conceded = 21 AND draw > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1944,
3,
21342,
17966,
6,
1766,
834,
11620,
221,
26,
584,
4280,
28027,
6,
3314,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
203... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1766,
834,
11620,
221,
26,
3274,
1401,
3430,
3314,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
did brazil score more goals against the soviet union or portugal in 1982 ? | CREATE TABLE table_204_814 (
id number,
"date" text,
"opposition" text,
"result" text,
"score" text,
"brazil scorers" text,
"competition" text
) | SELECT "opposition" FROM table_204_814 WHERE "opposition" IN ('soviet union', 'portugal') ORDER BY "score" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
2534,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
29585,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
1939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29585,
121,
21680,
953,
834,
26363,
834,
927,
2534,
549,
17444,
427,
96,
29585,
121,
3388,
41,
31,
7,
9881,
15,
17,
7021,
31,
6,
3,
31,
1493,
12204,
40,
31,
61,
4674,
11300,
272,
476,
96,
7,
9022,
121,
309,
... |
What was the birthplace of the player who weighs 98 KG and was born on May 1, 1984? | CREATE TABLE table_name_86 (
birthplace VARCHAR,
weight__kg_ VARCHAR,
birthdate VARCHAR
) | SELECT birthplace FROM table_name_86 WHERE weight__kg_ = 98 AND birthdate = "may 1, 1984" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3879,
4687,
584,
4280,
28027,
6,
1293,
834,
834,
8711,
834,
584,
4280,
28027,
6,
3879,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3879,
4687,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1293,
834,
834,
8711,
834,
3274,
3,
3916,
3430,
3879,
5522,
3274,
96,
13726,
1914,
13480,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the input clock (mhz) for s-spec number sk096? | CREATE TABLE table_15261_1 (
input_clock__mhz_ VARCHAR,
s_spec_number VARCHAR
) | SELECT input_clock__mhz_ FROM table_15261_1 WHERE s_spec_number = "SK096" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26320,
4241,
834,
536,
41,
3785,
834,
17407,
834,
834,
51,
107,
172,
834,
584,
4280,
28027,
6,
3,
7,
834,
7576,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3785,
834,
17407,
834,
834,
51,
107,
172,
834,
21680,
953,
834,
26320,
4241,
834,
536,
549,
17444,
427,
3,
7,
834,
7576,
834,
5525,
1152,
3274,
96,
10047,
632,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the numbers of wines for different grapes Plot them as bar chart, sort by the bar in desc. | CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area... | SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY Grape DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
9426,
651,
3,
3463,
4,
382,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5570,
3,
3463,
4,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
29083,
6,
2847,
17161,
599,
1935,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
29083,
4674,
11300,
272,
476,
29083,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many times was the round result higher than 11th ? | CREATE TABLE table_204_115 (
id number,
"year" number,
"track" text,
"number" number,
"team" text,
"car" text,
"round result" text
) | SELECT COUNT(*) FROM table_204_115 WHERE "round result" < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
15660,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
11991,
121,
1499,
6,
96,
5525,
1152,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
1720,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
15660,
549,
17444,
427,
96,
7775,
741,
121,
3,
2,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times is the voting percentage 10.7% | CREATE TABLE table_26375386_20 (
rank VARCHAR,
vote_percentage VARCHAR
) | SELECT COUNT(rank) FROM table_26375386_20 WHERE vote_percentage = "10.7%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
22954,
519,
3840,
834,
1755,
41,
11003,
584,
4280,
28027,
6,
2902,
834,
883,
3728,
545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
2688,
22954,
519,
3840,
834,
1755,
549,
17444,
427,
2902,
834,
883,
3728,
545,
3274,
96,
10415,
6170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest value for Byes, when Against is less than 1794, when Losses is '6', and when Draws is less than 0? | CREATE TABLE table_60207 (
"Benalla DFL" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Byes" real,
"Against" real
) | SELECT MAX("Byes") FROM table_60207 WHERE "Against" < '1794' AND "Losses" = '6' AND "Draws" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
26426,
41,
96,
279,
35,
1748,
9,
309,
10765,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
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,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
279,
10070,
8512,
21680,
953,
834,
3328,
26426,
549,
17444,
427,
96,
20749,
121,
3,
2,
3,
31,
2517,
4240,
31,
3430,
96,
434,
13526,
7,
121,
3274,
3,
31,
948,
31,
3430,
96,
308,
10936,
7,
121,
... |
Who were the opponents when there was an attendance of 48,165? | CREATE TABLE table_name_1 (opponent_number VARCHAR, attendance VARCHAR) | SELECT opponent_number FROM table_name_1 WHERE attendance = "48,165" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
32,
102,
9977,
834,
5525,
1152,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
16383,
116,
132,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
11364,
3274,
96,
3707,
6,
22823,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show ids of students who play video game and play sports. | CREATE TABLE Plays_games (StuID VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR) | SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2911,
7,
834,
7261,
7,
41,
13076,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5716,
9583,
41,
13076,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
13076,
4309,
21680,
5716,
9583,
3,
21342,
5249,
14196,
3,
23143,
14196,
3,
13076,
4309,
21680,
2911,
7,
834,
7261,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name? | CREATE TABLE table_name_66 (album_number VARCHAR, chinese__simplified_ VARCHAR) | SELECT album_number FROM table_name_66 WHERE chinese__simplified_ = "情歌没有告诉你" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
23703,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
1436,
1496,
15,
834,
834,
7,
10296,
3676,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2306,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
3,
1436,
1496,
15,
834,
834,
7,
10296,
3676,
834,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who was hired before 2002-06-21, what is the relationship between employee_id and manager_id ? | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT EMPLOYEE_ID, MANAGER_ID FROM employees WHERE HIRE_DATE < '2002-06-21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the number of episode summary for jesse csincsak | CREATE TABLE table_24331 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
) | SELECT COUNT("Episode Summary") FROM table_24331 WHERE "Coach" = 'Jesse Csincsak' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27730,
3341,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
427,
102,
159,
32,
221,
20698,
121,
1499,
6,
96,
10572,
51,
972,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
427,
102,
159,
32,
221,
20698,
8512,
21680,
953,
834,
27730,
3341,
549,
17444,
427,
96,
3881,
1836,
121,
3274,
3,
31,
683,
6119,
205,
7,
77,
75,
7,
1639,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
Which fleet numbers has quantity of 1? | CREATE TABLE table_49531 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
) | SELECT "Fleet number(s)" FROM table_49531 WHERE "Quantity made" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3301,
3341,
41,
96,
21486,
121,
1499,
6,
96,
518,
88,
15,
40,
8641,
121,
1499,
6,
96,
371,
109,
15,
17,
381,
599,
7,
61,
121,
1499,
6,
96,
7296,
76,
8717,
450,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
109,
15,
17,
381,
599,
7,
61,
121,
21680,
953,
834,
591,
3301,
3341,
549,
17444,
427,
96,
5991,
288,
485,
263,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the number of verbal nouns with the basic stem (root) -bil-? | CREATE TABLE table_554 (
"Basic stem (root)" text,
"Present stem" text,
"Non-present stem" text,
"Participle" text,
"Verbal noun" text,
"Short stem" text,
"Meaning" text
) | SELECT COUNT("Verbal noun") FROM table_554 WHERE "Basic stem (root)" = '-bil-' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
591,
41,
96,
14885,
447,
6269,
41,
18951,
61,
121,
1499,
6,
96,
10572,
5277,
6269,
121,
1499,
6,
96,
567,
106,
18,
12640,
6269,
121,
1499,
6,
96,
13725,
1294,
4788,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5000,
3849,
150,
202,
8512,
21680,
953,
834,
3769,
591,
549,
17444,
427,
96,
14885,
447,
6269,
41,
18951,
61,
121,
3274,
3,
31,
18,
3727,
18,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which church was built in 1600? | CREATE TABLE table_name_38 (church_name VARCHAR, year_built VARCHAR) | SELECT church_name FROM table_name_38 WHERE year_built = 1600 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
28854,
834,
4350,
584,
4280,
28027,
6,
215,
834,
16152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2078,
47,
1192,
16,
24046,
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,
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,
2078,
834,
4350,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
215,
834,
16152,
3274,
24046,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many clubs are remaining when the winners from the previous round totals 4? | CREATE TABLE table_22279 (
"Round" text,
"Clubs remaining" real,
"Clubs involved" real,
"Winners from previous round" text,
"New entries this round" text,
"Leagues entering at this round" text
) | SELECT "Clubs remaining" FROM table_22279 WHERE "Winners from previous round" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
4440,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
11158,
7,
4080,
121,
490,
6,
96,
254,
11158,
7,
1381,
121,
490,
6,
96,
18455,
687,
7,
45,
1767,
1751,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
11158,
7,
4080,
121,
21680,
953,
834,
26144,
4440,
549,
17444,
427,
96,
18455,
687,
7,
45,
1767,
1751,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What place is there a change of -19.3? | CREATE TABLE table_73711 (
"Name" text,
"Municipal district" text,
"Population (2011)" real,
"Population (2006)" real,
"Change (%)" text,
"Land area (km\u00b2)" text,
"Population density (per km 2 )" text
) | SELECT COUNT("Name") FROM table_73711 WHERE "Change (%)" = '-19.3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27931,
2596,
41,
96,
23954,
121,
1499,
6,
96,
329,
202,
1294,
6459,
3939,
121,
1499,
6,
96,
27773,
7830,
25163,
121,
490,
6,
96,
27773,
7830,
28272,
121,
490,
6,
96,
3541,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23954,
8512,
21680,
953,
834,
27931,
2596,
549,
17444,
427,
96,
3541,
3280,
41,
6210,
121,
3274,
3,
31,
4481,
5,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score of the January 8 game? | CREATE TABLE table_27712702_9 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_27712702_9 WHERE date = "January 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4450,
17485,
357,
834,
1298,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
1762,
505,
467,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2555,
4450,
17485,
357,
834,
1298,
549,
17444,
427,
833,
3274,
96,
30404,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Power has Location in metro manila | CREATE TABLE table_name_75 (power__kw_ VARCHAR, location VARCHAR) | SELECT power__kw_ FROM table_name_75 WHERE location = "metro manila" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
6740,
834,
834,
157,
210,
834,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2621,
65,
10450,
16,
12810,
388,
173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
579,
834,
834,
157,
210,
834,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1128,
3274,
96,
51,
15252,
388,
173,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Count the number of patients who are single with a lab test name of c4. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab.label = "C4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
When mount gauttier is the peak what is the island? | CREATE TABLE table_22693 (
"Rank" real,
"Peak" text,
"Country" text,
"Island" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
) | SELECT "Island" FROM table_22693 WHERE "Peak" = 'Mount Gauttier' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2688,
4271,
41,
96,
22557,
121,
490,
6,
96,
345,
15,
1639,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
7,
40,
232,
121,
1499,
6,
96,
427,
10912,
257,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
196,
7,
40,
232,
121,
21680,
953,
834,
357,
2688,
4271,
549,
17444,
427,
96,
345,
15,
1639,
121,
3274,
3,
31,
329,
32,
202,
17,
12520,
17,
3276,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What did United States place when the score was 71-70-72-68=281? | CREATE TABLE table_name_17 (
place VARCHAR,
country VARCHAR,
score VARCHAR
) | SELECT place FROM table_name_17 WHERE country = "united states" AND score = 71 - 70 - 72 - 68 = 281 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
907,
1323,
286,
116,
8,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
2604,
3274,
3,
4450,
3,
18,
2861,
3,
18,
9455,
3,
18,
3,
3651,
3274,
204,
4959,
1,
-100,
-100,
-100,
-100,
-... |
What is the total number of bronze medals of the team with more than 8 silvers and a total of 50 medals? | CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, total VARCHAR) | SELECT COUNT(bronze) FROM table_name_67 WHERE silver > 8 AND total = 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
13711,
776,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
13467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
4294,
2490,
505,
3430,
792,
3274,
943,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who had high points on march 27? | CREATE TABLE table_27722734_10 (
high_points VARCHAR,
date VARCHAR
) | SELECT high_points FROM table_27722734_10 WHERE date = "March 27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
5865,
2555,
3710,
834,
1714,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
141,
306,
979,
30,
10556,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
2555,
5865,
2555,
3710,
834,
1714,
549,
17444,
427,
833,
3274,
96,
25019,
2307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In what Week was the Record 4 7 1? | CREATE TABLE table_name_7 (
week INTEGER,
record VARCHAR
) | SELECT MIN(week) FROM table_name_7 WHERE record = "4–7–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
471,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
6551,
47,
8,
11392,
314,
489,
209,
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,
17684,
599,
8041,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1368,
3274,
96,
591,
104,
940,
104,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what's the name origin of feature of diameter (km) 2,155.0 | CREATE TABLE table_16799784_7 (
name VARCHAR,
diameter__km_ VARCHAR
) | SELECT name AS origin FROM table_16799784_7 WHERE diameter__km_ = "2,155.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4440,
21441,
591,
834,
940,
41,
564,
584,
4280,
28027,
6,
9260,
834,
834,
5848,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
564,
5233,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6157,
5233,
21680,
953,
834,
2938,
4440,
21441,
591,
834,
940,
549,
17444,
427,
9260,
834,
834,
5848,
834,
3274,
96,
4482,
1808,
20734,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score of the tie with an away team of Stoke City? | CREATE TABLE table_name_50 (
score VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_50 WHERE away_team = "stoke city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
2604,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
6177,
28,
46,
550,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
235,
1050,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
when the position is forward and the league is 5 what number is the Champion league | CREATE TABLE table_17505751_5 (Champions VARCHAR, league VARCHAR, position VARCHAR) | SELECT COUNT(Champions) AS league FROM table_17505751_5 WHERE league = 5 AND position = "Forward" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1752,
3436,
5553,
834,
755,
41,
3541,
4624,
2865,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
116,
8,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3541,
4624,
2865,
61,
6157,
5533,
21680,
953,
834,
2517,
1752,
3436,
5553,
834,
755,
549,
17444,
427,
5533,
3274,
305,
3430,
1102,
3274,
96,
3809,
2239,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is City of Sandefjord in Norway's IATA? | CREATE TABLE table_name_12 (iata VARCHAR, country VARCHAR, city VARCHAR) | SELECT iata FROM table_name_12 WHERE country = "norway" AND city = "sandefjord" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
17221,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
896,
13,
5440,
15,
89,
12775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17221,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
684,
3274,
96,
29,
127,
1343,
121,
3430,
690,
3274,
96,
7,
232,
15,
89,
12775,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the location is the winning driver is Bill Vukovich II? | CREATE TABLE table_22670216_1 (
location VARCHAR,
winning_driver VARCHAR
) | SELECT location FROM table_22670216_1 WHERE winning_driver = "Bill Vukovich II" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2688,
2518,
27184,
834,
536,
41,
1128,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
19,
8,
3447... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
357,
2688,
2518,
27184,
834,
536,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
279,
1092,
584,
76,
9789,
362,
2466,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.