NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the season number of the show written by both Kari Lizer and Jeff Astrof? | CREATE TABLE table_27911342_1 (season__number VARCHAR, written_by VARCHAR) | SELECT COUNT(season__number) FROM table_27911342_1 WHERE written_by = "Kari Lizer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4729,
2368,
4165,
834,
536,
41,
9476,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9476,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2555,
4729,
2368,
4165,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
439,
1665,
17814,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Provide the number of patients who were admitted before the year 2123 and had a lab test nonsquamous epithelial cell. | 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 procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2123" AND lab.label = "NonSquamous Epithelial Cell" | [
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,... |
What was the losing bonus for the 20 played, and 353 points? | CREATE TABLE table_9116 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Losing bonus" FROM table_9116 WHERE "Played" = '20' AND "Points for" = '353' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4729,
2938,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
53,
4023,
121,
21680,
953,
834,
4729,
2938,
549,
17444,
427,
96,
15800,
15,
26,
121,
3274,
3,
31,
1755,
31,
3430,
96,
22512,
7,
21,
121,
3274,
3,
31,
2469,
519,
31,
1,
-100,
-100,
-100,
-100,
-... |
Which venue was the opposing team New Zealand on 22/11/1997? | CREATE TABLE table_name_11 (venue VARCHAR, opposing_teams VARCHAR, date VARCHAR) | SELECT venue FROM table_name_11 WHERE opposing_teams = "new zealand" AND date = "22/11/1997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
15098,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
10720,
53,
834,
11650,
7,
3274,
96,
5534,
3,
776,
138,
232,
121,
3430,
833,
3274,
96,
2884,
20223,
13523,
4327,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which city does student Linda Smith live in? | CREATE TABLE Student (city_code VARCHAR, Fname VARCHAR, Lname VARCHAR) | SELECT city_code FROM Student WHERE Fname = "Linda" AND Lname = "Smith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
6726,
834,
4978,
584,
4280,
28027,
6,
377,
4350,
584,
4280,
28027,
6,
301,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
690,
405,
1236,
16121,
3931,
619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
690,
834,
4978,
21680,
6341,
549,
17444,
427,
377,
4350,
3274,
96,
434,
77,
26,
9,
121,
3430,
301,
4350,
3274,
96,
30077,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many rooms does each block floor have? | CREATE TABLE patient (
ssn number,
name text,
address text,
phone text,
insuranceid number,
pcp number
)
CREATE TABLE medication (
code number,
name text,
brand text,
description text
)
CREATE TABLE prescribes (
physician number,
patient number,
medication number,
... | SELECT COUNT(*), T1.blockfloor FROM block AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
3,
7,
7,
29,
381,
6,
564,
1499,
6,
1115,
1499,
6,
951,
1499,
6,
958,
23,
26,
381,
6,
3,
102,
75,
102,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
332,
5411,
10734,
20924,
21680,
2463,
6157,
332,
536,
3,
15355,
3162,
562,
6157,
332,
357,
9191,
332,
5411,
10734,
20924,
3274,
332,
4416,
10734,
20924,
3430,
332,
5411,
10734,
4978,
3274,
3... |
Who is the owner of the radio frequency of 0 101.5 fm? | CREATE TABLE table_63073 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) | SELECT "Owner" FROM table_63073 WHERE "Frequency" = '0 101.5 fm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26106,
4552,
41,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
1748,
1320,
121,
1499,
6,
96,
18304,
727,
53,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
667,
210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
210,
687,
121,
21680,
953,
834,
26106,
4552,
549,
17444,
427,
96,
371,
60,
835,
11298,
121,
3274,
3,
31,
632,
335,
16593,
3,
89,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average number of rounds for winner Rafael Cavalcante? | CREATE TABLE table_name_37 (
round INTEGER,
winner VARCHAR
) | SELECT AVG(round) FROM table_name_37 WHERE winner = "rafael cavalcante" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
1751,
3,
21342,
17966,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
14419,
21,
4668,
29715,
17655,
138,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
4668,
3274,
96,
52,
9,
89,
9,
15,
40,
212,
2165,
75,
1841,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the record for the game that shows the Rose Garden 20,126 as attendance? | CREATE TABLE table_name_96 (record VARCHAR, attendance VARCHAR) | SELECT record FROM table_name_96 WHERE attendance = "rose garden 20,126" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
60,
7621,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
21,
8,
467,
24,
1267,
8,
5088,
5072,
16047... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
11364,
3274,
96,
8115,
2004,
16047,
21976,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the highest pick for a player from a school or club team of Arkansas? | CREATE TABLE table_name_9 (
pick INTEGER,
school_club_team VARCHAR
) | SELECT MAX(pick) FROM table_name_9 WHERE school_club_team = "arkansas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
1432,
3,
21342,
17966,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
1432,
21,
3,
9,
1959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17967,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
6604,
3247,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What Belarusian has a status of Raion a foundation of 1514 and a 2010 population of 8100? | CREATE TABLE table_name_73 (belarusian__bgn_pcgn_ VARCHAR, population__2010_ VARCHAR, status VARCHAR, foundation VARCHAR) | SELECT belarusian__bgn_pcgn_ FROM table_name_73 WHERE status = "raion" AND foundation = "1514" AND population__2010_ = "8100" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2370,
291,
76,
10488,
834,
834,
115,
122,
29,
834,
102,
75,
122,
29,
834,
584,
4280,
28027,
6,
2074,
834,
834,
14926,
834,
584,
4280,
28027,
6,
2637,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
36,
521,
4502,
23,
152,
834,
834,
115,
122,
29,
834,
102,
75,
122,
29,
834,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
2637,
3274,
96,
7253,
106,
121,
3430,
3361,
3274,
96,
26578,
20364,
3430,
2074,
834,
8... |
On week 11 when Dixon scored an 8, what was tonioli's score? | CREATE TABLE table_2803106_1 (
tonioli VARCHAR,
week__number VARCHAR,
dixon VARCHAR
) | SELECT tonioli FROM table_2803106_1 WHERE week__number = 11 AND dixon = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
519,
16431,
834,
536,
41,
12,
29,
23,
4172,
584,
4280,
28027,
6,
471,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
20679,
106,
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,
12,
29,
23,
4172,
21680,
953,
834,
17518,
519,
16431,
834,
536,
549,
17444,
427,
471,
834,
834,
5525,
1152,
3274,
850,
3430,
20679,
106,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sum of all points for places above 8? | CREATE TABLE table_7293 (
"Place (Posici\u00f3n)" real,
"Team (Equipo)" text,
"Played (PJ)" real,
"Won (PG)" real,
"Draw (PE)" real,
"Lost (PP)" real,
"Goals Scored (GF)" real,
"Goals Conceded (GC)" real,
"+/- (Dif.)" real,
"Points (Pts.)" real
) | SELECT SUM("Points (Pts.)") FROM table_7293 WHERE "Place (Posici\u00f3n)" > '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
4271,
41,
96,
345,
11706,
41,
345,
32,
7,
1294,
2,
76,
1206,
89,
519,
29,
61,
121,
490,
6,
96,
18699,
41,
427,
23067,
32,
61,
121,
1499,
6,
96,
15800,
15,
26,
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,
180,
6122,
599,
121,
22512,
7,
41,
345,
17,
7,
5,
61,
8512,
21680,
953,
834,
5865,
4271,
549,
17444,
427,
96,
345,
11706,
41,
345,
32,
7,
1294,
2,
76,
1206,
89,
519,
29,
61,
121,
2490,
3,
31,
927,
31,
1,
-10... |
What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn? | CREATE TABLE table_name_39 (word_form VARCHAR, khmer VARCHAR, ungegn VARCHAR) | SELECT word_form FROM table_name_39 WHERE khmer > ១០០០០០ AND ungegn = "(muŏy) dáb leăn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
6051,
834,
2032,
584,
4280,
28027,
6,
3,
157,
107,
935,
584,
4280,
28027,
6,
3,
425,
15,
122,
29,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1448,
834,
2032,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
3,
157,
107,
935,
2490,
3,
2,
3430,
3,
425,
15,
122,
29,
3274,
96,
599,
51,
76,
2,
63,
61,
3,
26,
2975,
115,
90,
98,
29,
121,
1,
-100,
-100... |
Who was the other team on march 27? | CREATE TABLE table_29770 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_29770 WHERE "Date" = 'March 27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
26920,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
3166,
26920,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
25019,
2307,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the latest round that Derek Pagel was selected with a pick higher than 50? | CREATE TABLE table_77984 (
"Player" text,
"Position" text,
"Round" real,
"Pick" real,
"NFL Club" text
) | SELECT MAX("Round") FROM table_77984 WHERE "Pick" > '50' AND "Player" = 'derek pagel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3916,
591,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
12619,
434,
1949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
32,
1106,
8512,
21680,
953,
834,
4013,
3916,
591,
549,
17444,
427,
96,
345,
3142,
121,
2490,
3,
31,
1752,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
588,
15,
157,
543,
40,
31,
1,
-100,
... |
What was the lowest Crowd total from a game in which Essendon was the Away team? | CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR) | SELECT MIN(crowd) FROM table_name_35 WHERE away_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
75,
3623,
26,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7402,
15343,
26,
792,
45,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
550,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the district for the parish, Brough? | CREATE TABLE table_39466 (
"Name" text,
"Status" text,
"Population" real,
"District" text,
"Former local authority" text
) | SELECT "District" FROM table_39466 WHERE "Name" = 'brough' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
591,
3539,
41,
96,
23954,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
308,
23,
20066,
121,
1499,
6,
96,
3809,
935,
415,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
20066,
121,
21680,
953,
834,
3288,
591,
3539,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
115,
13245,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What week had an attendance of 27,262? | CREATE TABLE table_name_66 (week VARCHAR, attendance VARCHAR) | SELECT week FROM table_name_66 WHERE attendance = "27,262" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
8041,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
471,
141,
46,
11364,
13,
14141,
2688,
357,
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,
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,
471,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
11364,
3274,
96,
2555,
6,
2688,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
in 2103 patient 017-49538 went to the hospital? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
costid num... | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '017-49538' AND STRFTIME('%y', patient.hospitaladmittime) = '2103' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2490,
3,
632,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2517,
4278,
3301,
3747,
31,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
1868,
5,
3138... |
What is the number of platforms for each location? Show the comparison with a bar chart, rank bars from high to low order. | CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE t... | SELECT Location, SUM(Number_of_Platforms) FROM station GROUP BY Location ORDER BY Location DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
15059,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2900,
1499,
6,
1387,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
5939,
834,
4309,
16,
17,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10450,
6,
180,
6122,
599,
567,
5937,
49,
834,
858,
834,
10146,
2032,
7,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
10450,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the 2010/11 with 2004/05 of not held and 2011/12 of non-ranking | CREATE TABLE table_80372 (
"2002/ 03" text,
"2004/ 05" text,
"2006/ 07" text,
"2007/ 08" text,
"2008/ 09" text,
"2009/ 10" text,
"2010/ 11" text,
"2011/ 12" text,
"2012/ 13" text
) | SELECT "2010/ 11" FROM table_80372 WHERE "2004/ 05" = 'not held' AND "2011/ 12" = 'non-ranking' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
4118,
357,
41,
96,
24898,
87,
12811,
121,
1499,
6,
96,
21653,
87,
3,
3076,
121,
1499,
6,
96,
21196,
87,
10668,
121,
1499,
6,
96,
20615,
87,
12046,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14926,
87,
850,
121,
21680,
953,
834,
2079,
4118,
357,
549,
17444,
427,
96,
21653,
87,
3,
3076,
121,
3274,
3,
31,
2264,
1213,
31,
3430,
96,
13907,
87,
586,
121,
3274,
3,
31,
29,
106,
18,
6254,
53,
31,
1,
-... |
Name the running with for elizabeth falco | CREATE TABLE table_1855841_1 (
running_with__in_team_ VARCHAR,
candidate VARCHAR
) | SELECT running_with__in_team_ FROM table_1855841_1 WHERE candidate = "Elizabeth Falco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
3449,
4853,
834,
536,
41,
1180,
834,
4065,
834,
834,
77,
834,
11650,
834,
584,
4280,
28027,
6,
4775,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1180,
834,
4065,
834,
834,
77,
834,
11650,
834,
21680,
953,
834,
21594,
3449,
4853,
834,
536,
549,
17444,
427,
4775,
3274,
96,
10991,
5584,
346,
189,
10747,
509,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is minimum age of patients whose marital status is divorced and primary disease is brain mass;intracranial hemorrhage? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
22899,
3162,
4800,
... |
What is the average bronze with a total of 15 and less than 2 gold? | CREATE TABLE table_name_69 (
bronze INTEGER,
total VARCHAR,
gold VARCHAR
) | SELECT AVG(bronze) FROM table_name_69 WHERE total = 15 AND gold < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
13467,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
13467,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
792,
3274,
627,
3430,
2045,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many nationalities/sponsors for mirror/type schmidt uv? | CREATE TABLE table_23851574_2 (
nationality_sponsors VARCHAR,
mirror_type VARCHAR
) | SELECT COUNT(nationality_sponsors) FROM table_23851574_2 WHERE mirror_type = "Schmidt UV" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4433,
1808,
4581,
834,
357,
41,
1157,
485,
834,
7,
5041,
7,
127,
7,
584,
4280,
28027,
6,
5432,
834,
6137,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16557,
485,
834,
7,
5041,
7,
127,
7,
61,
21680,
953,
834,
2773,
4433,
1808,
4581,
834,
357,
549,
17444,
427,
5432,
834,
6137,
3274,
96,
6717,
6983,
17,
10060,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Name the least year for start of 17th | CREATE TABLE table_name_13 (year INTEGER, start VARCHAR) | SELECT MIN(year) FROM table_name_13 WHERE start = "17th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
1201,
3,
21342,
17966,
6,
456,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
215,
21,
456,
13,
1003,
189,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
456,
3274,
96,
2517,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the payment method used by the customer who ordered the least amount of goods in total. | CREATE TABLE customers (
customer_id number,
payment_method text,
customer_name text,
date_became_customer time,
other_customer_details text
)
CREATE TABLE products (
product_id number,
product_details text
)
CREATE TABLE customer_addresses (
customer_id number,
address_id number,
... | SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
381,
6,
1942,
834,
23152,
1499,
6,
884,
834,
4350,
1499,
6,
833,
834,
346,
6527,
15,
834,
25697,
49,
97,
6,
119,
834,
25697,
49,
834,
221,
5756,
7,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
21752,
834,
23152,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
884,
834,
9397,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
4416,
25697,
49,
834,
23,
26,
3,
15355... |
How many mascotts are there for college station, texas | CREATE TABLE table_28243691_1 (
team_nickname VARCHAR,
location VARCHAR
) | SELECT COUNT(team_nickname) FROM table_28243691_1 WHERE location = "College Station, Texas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2266,
3420,
4729,
834,
536,
41,
372,
834,
11191,
4350,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
2754,
10405,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
11650,
834,
11191,
4350,
61,
21680,
953,
834,
2577,
2266,
3420,
4729,
834,
536,
549,
17444,
427,
1128,
3274,
96,
9939,
7883,
5939,
6,
2514,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the sum of department_id over the job_id , and group by attribute job_id, I want to display in desc by the sum department id. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID ... | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051... |
Name the number of season that was written by adam milch | CREATE TABLE table_12419515_5 (
season__number INTEGER,
written_by VARCHAR
) | SELECT MIN(season__number) FROM table_12419515_5 WHERE written_by = "Adam Milch" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
22464,
1808,
834,
755,
41,
774,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9476,
834,
834,
5525,
1152,
61,
21680,
953,
834,
22504,
22464,
1808,
834,
755,
549,
17444,
427,
1545,
834,
969,
3274,
96,
188,
7812,
23126,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the Chiefs pre-Week 16 game that 69,362 people attended? | CREATE TABLE table_name_1 (result VARCHAR, week VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_1 WHERE week < 16 AND attendance = "69,362" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
511... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
471,
3,
2,
898,
3430,
11364,
3274,
96,
3951,
6,
3420,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the sum of year for olimpija ljubljana with height less than 2.04 | CREATE TABLE table_70323 (
"Player" text,
"Height" real,
"Position" text,
"Year born" real,
"Current Club" text
) | SELECT SUM("Year born") FROM table_70323 WHERE "Current Club" = 'olimpija ljubljana' AND "Height" < '2.04' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
2668,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
3845,
2632,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
2170,
121,
490,
6,
96,
254,
450,
5320,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
476,
2741,
2170,
8512,
21680,
953,
834,
2518,
2668,
519,
549,
17444,
427,
96,
254,
450,
5320,
1949,
121,
3274,
3,
31,
4172,
1167,
23,
1191,
3,
40,
2047,
115,
40,
7066,
9,
31,
3430,
96,
3845,
... |
What is Date, when Margin Of Victory is 4 Strokes? | CREATE TABLE table_name_1 (date VARCHAR, margin_of_victory VARCHAR) | SELECT date FROM table_name_1 WHERE margin_of_victory = "4 strokes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
5522,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
16409,
77,
1129,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
591,
9529,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the top goalscorer for season 1998-99? | CREATE TABLE table_2429942_2 (top_goalscorer VARCHAR, season VARCHAR) | SELECT top_goalscorer FROM table_2429942_2 WHERE season = "1998-99" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3166,
4240,
357,
834,
357,
41,
2916,
834,
839,
5405,
5715,
49,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
420,
1766,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
420,
834,
839,
5405,
5715,
49,
21680,
953,
834,
2266,
3166,
4240,
357,
834,
357,
549,
17444,
427,
774,
3274,
96,
2294,
3916,
18,
3264,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974? | CREATE TABLE table_name_61 (
size VARCHAR,
school VARCHAR,
_number___county VARCHAR,
year_joined VARCHAR,
ihsaa_class VARCHAR
) | SELECT size FROM table_name_61 WHERE year_joined < 1974 AND ihsaa_class = "aa" AND _number___county = "89 wayne" AND school = "centerville" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
812,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
834,
834,
13362,
63,
584,
4280,
28027,
6,
215,
834,
1927,
630,
26,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
812,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
215,
834,
1927,
630,
26,
3,
2,
17184,
3430,
3,
23,
107,
7,
9,
9,
834,
4057,
3274,
96,
9,
9,
121,
3430,
3,
834,
5525,
1152,
834,
834,
834,
13362,
63,
3274... |
Who is the player who has a total less than 4, no scottish cups, and a league cup greater than 0? | CREATE TABLE table_name_31 (player VARCHAR, league_cup VARCHAR, total VARCHAR, scottish_cup VARCHAR) | SELECT player FROM table_name_31 WHERE total < 4 AND scottish_cup = 0 AND league_cup > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
20846,
584,
4280,
28027,
6,
5533,
834,
4658,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
3,
7,
10405,
1273,
834,
4658,
584,
4280,
28027,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
792,
3,
2,
314,
3430,
3,
7,
10405,
1273,
834,
4658,
3274,
3,
632,
3430,
5533,
834,
4658,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result of the game that was attended by 80,886 people? | CREATE TABLE table_name_38 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_38 WHERE attendance = "80,886" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
24,
47,
5526,
57,
2775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
11364,
3274,
96,
2079,
6,
927,
3840,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In which tournament was Ian Baker-Finch the runner-up? | CREATE TABLE table_name_27 (tournament VARCHAR, runner_s__up VARCHAR) | SELECT tournament FROM table_name_27 WHERE runner_s__up = "ian baker-finch" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
5892,
47,
15498... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
23,
152,
11091,
52,
18,
89,
4976,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What did the Melbourne Tigers score when they were the away team? | CREATE TABLE table_name_73 (
score VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_73 WHERE away_team = "melbourne tigers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2604,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
8,
9396,
11804,
7,
2604,
116,
79,
130,
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,
2604,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
550,
834,
11650,
3274,
96,
2341,
26255,
3,
2880,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who were the scorers in the semi-final round where oldham athletic were the opponents? | CREATE TABLE table_name_94 (
scorers VARCHAR,
opponents VARCHAR,
round VARCHAR
) | SELECT scorers FROM table_name_94 WHERE opponents = "oldham athletic" AND round = "semi-final" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
14056,
277,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
14056,
277,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14056,
277,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
16383,
3274,
96,
1490,
1483,
12217,
121,
3430,
1751,
3274,
96,
7,
15,
51,
23,
18,
12406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What score has an opponent gan teik chai lin woon fui? | CREATE TABLE table_name_6 (
score VARCHAR,
opponent VARCHAR
) | SELECT score FROM table_name_6 WHERE opponent = "gan teik chai lin woon fui" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
2604,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2604,
65,
46,
15264,
3,
2565,
3,
17,
15,
23,
157,
3,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
15264,
3274,
96,
2565,
3,
17,
15,
23,
157,
3,
3441,
23,
3,
40,
77,
2275,
106,
7683,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average amount due for all the payments? | CREATE TABLE payments (amount_due INTEGER) | SELECT AVG(amount_due) FROM payments | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4364,
41,
9,
11231,
834,
1259,
15,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
866,
788,
21,
66,
8,
4364,
58,
1,
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,
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... | [
3,
23143,
14196,
71,
17217,
599,
9,
11231,
834,
1259,
15,
61,
21680,
4364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title of the episode wtih 10.34 million U.S viewers? | CREATE TABLE table_10749143_2 (title VARCHAR, us_viewers__millions_ VARCHAR) | SELECT title FROM table_10749143_2 WHERE us_viewers__millions_ = "10.34" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
3647,
25133,
834,
357,
41,
21869,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
18057,
3647,
25133,
834,
357,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
10415,
3710,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which 2nd Party has an Election of 1837? | CREATE TABLE table_14765 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | SELECT "2nd Party" FROM table_14765 WHERE "Election" = '1837' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
4122,
41,
96,
427,
12252,
121,
1499,
6,
96,
536,
7,
17,
8541,
121,
1499,
6,
96,
536,
7,
17,
3450,
121,
1499,
6,
96,
357,
727,
8541,
121,
1499,
6,
96,
357,
727,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
727,
3450,
121,
21680,
953,
834,
24719,
4122,
549,
17444,
427,
96,
427,
12252,
121,
3274,
3,
31,
2606,
4118,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many first-team goals does the team have whose player is Samir Carruthers? | CREATE TABLE table_51191 (
"Player" text,
"Position" text,
"First-Team Appearances" text,
"First-Team Goals" text,
"Current Club" text
) | SELECT "First-Team Goals" FROM table_51191 WHERE "Player" = 'samir carruthers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
2294,
536,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
25171,
18,
18699,
2276,
2741,
663,
7,
121,
1499,
6,
96,
25171,
18,
18699,
17916,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18,
18699,
17916,
7,
121,
21680,
953,
834,
5553,
2294,
536,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
7,
9,
5884,
443,
6830,
760,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a scatter chart about the correlation between Body_Builder_ID and Total . | CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
) | SELECT Body_Builder_ID, Total FROM body_builder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
643,
834,
16422,
49,
41,
8501,
834,
24752,
49,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
180,
29,
14547,
490,
6,
7433,
834,
683,
49,
157,
490,
6,
9273,
490,
3,
61,
3,
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,
8501,
834,
24752,
49,
834,
4309,
6,
9273,
21680,
643,
834,
16422,
49,
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,
... |
give the number of married patients who were admitted before the year 2175. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear < "2175" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
... |
How much money was won for the game with a score of 74-76-71-71=292? | CREATE TABLE table_name_17 (money___$__ VARCHAR, score VARCHAR) | SELECT money___$__ FROM table_name_17 WHERE score = 74 - 76 - 71 - 71 = 292 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
28442,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
540,
47,
751,
21,
8,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
540,
834,
834,
834,
3229,
834,
834,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
2604,
3274,
3,
4581,
3,
18,
3,
3959,
3,
18,
3,
4450,
3,
18,
3,
4450,
3274,
204,
4508,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total when the A score was less than 6.6, and the B score was 8.925? | CREATE TABLE table_name_15 (
total VARCHAR,
a_score VARCHAR,
b_score VARCHAR
) | SELECT total FROM table_name_15 WHERE a_score < 6.6 AND b_score = 8.925 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
792,
584,
4280,
28027,
6,
3,
9,
834,
7,
9022,
584,
4280,
28027,
6,
3,
115,
834,
7,
9022,
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,
792,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
3,
9,
834,
7,
9022,
3,
2,
3,
28833,
3430,
3,
115,
834,
7,
9022,
3274,
4848,
28456,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Senior status has a Chief Judge of 1991 1995? | CREATE TABLE table_59405 (
"State" text,
"Born/Died" text,
"Active service" text,
"Chief Judge" text,
"Senior status" text,
"Appointed by" text,
"Reason for termination" text
) | SELECT "Senior status" FROM table_59405 WHERE "Chief Judge" = '1991–1995' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
591,
3076,
41,
96,
134,
4748,
121,
1499,
6,
96,
279,
127,
29,
87,
8639,
26,
121,
1499,
6,
96,
13035,
15,
313,
121,
1499,
6,
96,
3541,
23,
15,
89,
12330,
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,
134,
35,
23,
127,
2637,
121,
21680,
953,
834,
3390,
591,
3076,
549,
17444,
427,
96,
3541,
23,
15,
89,
12330,
121,
3274,
3,
31,
2294,
4729,
104,
2294,
3301,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Draw a bar chart for how many stadiums does each country have?, and list in descending by the the total number . | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
... | SELECT Country, COUNT(*) FROM stadium GROUP BY Country ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6993,
6,
2847,
17161,
599,
1935,
61,
21680,
14939,
350,
4630,
6880,
272,
476,
6993,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose death status is 0 and procedure long title is endovascular (total) embolization or occlusion of head and neck vessels? | 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 procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.long_title = "Endovascular (total) embolization or occlusion of head and neck vessels" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is gender and primary disease of subject id 813? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT demographic.gender, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "813" | [
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,
122,
3868,
6,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
927,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what stadium did a game result in a final scoreline reading 27-34? | CREATE TABLE table_name_30 (
stadium VARCHAR,
final_score VARCHAR
) | SELECT stadium FROM table_name_30 WHERE final_score = "27-34" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
14939,
584,
4280,
28027,
6,
804,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
14939,
410,
3,
9,
467,
741,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14939,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
804,
834,
7,
9022,
3274,
96,
2555,
3486,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the crowd for away team of north melbourne? | CREATE TABLE table_52958 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_52958 WHERE "Away team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3166,
3449,
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,
254,
3623,
26,
121,
21680,
953,
834,
755,
3166,
3449,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the leading actor in the film with a supporting actor named Cecil Kellaway? | CREATE TABLE table_24225238_1 (leading_actor VARCHAR, supporting_actor VARCHAR) | SELECT leading_actor FROM table_24225238_1 WHERE supporting_actor = "Cecil Kellaway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
20489,
357,
3747,
834,
536,
41,
17103,
834,
9,
5317,
584,
4280,
28027,
6,
3956,
834,
9,
5317,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1374,
834,
9,
5317,
21680,
953,
834,
2266,
20489,
357,
3747,
834,
536,
549,
17444,
427,
3956,
834,
9,
5317,
3274,
96,
254,
15,
75,
173,
480,
5303,
1343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Freddie Starr, who entered on Day 1, known for? | CREATE TABLE table_name_67 (
known_for VARCHAR,
entered VARCHAR,
celebrity VARCHAR
) | SELECT known_for FROM table_name_67 WHERE entered = "day 1" AND celebrity = "freddie starr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
801,
834,
1161,
584,
4280,
28027,
6,
5136,
584,
4280,
28027,
6,
17086,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
3,
31206,
2042,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
801,
834,
1161,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
5136,
3274,
96,
1135,
209,
121,
3430,
17086,
3274,
96,
89,
1271,
2498,
2213,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Japanese On'yomi has Vietnamese of M u? | CREATE TABLE table_66191 (
"Celestial Stem" text,
"Chinese Mandarin Pinyin" text,
"Cantonese Jyutping" text,
"Wuu Wuupin" text,
"Japanese kunyomi" text,
"Japanese on'yomi" text,
"Korean ( RR )" text,
"Manchu ( M\u00f6llendorff )" text,
"Vietnamese" text,
"Yin and Yang ( \u9670\u9... | SELECT "Japanese on'yomi" FROM table_66191 WHERE "Vietnamese" = 'mậu' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
2294,
536,
41,
96,
254,
400,
7,
10646,
3557,
51,
121,
1499,
6,
96,
3541,
4477,
15,
31057,
8050,
63,
77,
121,
1499,
6,
96,
14050,
6948,
7,
15,
446,
63,
76,
17,
246... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
683,
9750,
1496,
15,
30,
31,
63,
32,
51,
23,
121,
21680,
953,
834,
3539,
2294,
536,
549,
17444,
427,
96,
553,
23,
15,
17,
4350,
7,
15,
121,
3274,
3,
31,
51,
2,
76,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the released date of Polarium? | CREATE TABLE table_20596 (
"Western Title" text,
"Chinese Title" text,
"Pinyin" text,
"Released Date" text,
"Genre" text,
"Game Modes" text
) | SELECT "Released Date" FROM table_20596 WHERE "Western Title" = 'Polarium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
4314,
41,
96,
1326,
13072,
11029,
121,
1499,
6,
96,
3541,
4477,
15,
11029,
121,
1499,
6,
96,
345,
77,
63,
77,
121,
1499,
6,
96,
1649,
29107,
7678,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
29107,
7678,
121,
21680,
953,
834,
23201,
4314,
549,
17444,
427,
96,
1326,
13072,
11029,
121,
3274,
3,
31,
8931,
9,
11879,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return me the number of tips that are written by Michelle in 2010 . | CREATE TABLE checkin (
cid int,
business_id varchar,
count int,
day varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
longitude varchar,
review_count bigint,
is_open tinyint,
rating... | SELECT COUNT(DISTINCT (tip.text)) FROM tip, user WHERE tip.year = 2010 AND user.name = 'Michelle' AND user.user_id = tip.user_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
691,
77,
41,
3,
10812,
16,
17,
6,
268,
834,
23,
26,
3,
4331,
4059,
6,
3476,
16,
17,
6,
239,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
268,
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,
2847,
17161,
599,
15438,
25424,
6227,
41,
11537,
5,
6327,
61,
61,
21680,
2226,
6,
1139,
549,
17444,
427,
2226,
5,
1201,
3274,
2735,
3430,
1139,
5,
4350,
3274,
3,
31,
30123,
109,
31,
3430,
1139,
5,
10041,
834,
23,
... |
what is the single/ep listed after bleach ? | CREATE TABLE table_203_545 (
id number,
"single/ep" text,
"release date" text,
"label" text,
"format(s)" text,
"uk singles chart position" number,
"notes" text
) | SELECT "single/ep" FROM table_203_545 WHERE id = (SELECT id FROM table_203_545 WHERE "single/ep" = '"bleach"') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
2128,
41,
3,
23,
26,
381,
6,
96,
7,
53,
109,
87,
15,
102,
121,
1499,
6,
96,
21019,
833,
121,
1499,
6,
96,
40,
10333,
121,
1499,
6,
96,
8995,
599,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7,
53,
109,
87,
15,
102,
121,
21680,
953,
834,
23330,
834,
755,
2128,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
755,
2128,
549,
17444,
427,
96,
7,
53,
109,
... |
What is the Score of the Chicago Black Hawks Home game on March 28? | CREATE TABLE table_name_38 (
score VARCHAR,
home VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_38 WHERE home = "chicago black hawks" AND date = "march 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
2604,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
13,
8,
3715,
1589,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
234,
3274,
96,
1436,
658,
839,
1001,
3,
14400,
7,
121,
3430,
833,
3274,
96,
51,
7064,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many locations are listed for the winner Temple? | CREATE TABLE table_25180 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
) | SELECT COUNT("Tournament Venue (City)") FROM table_25180 WHERE "Tournament Winner" = 'Temple' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
20829,
41,
96,
4302,
11788,
121,
1499,
6,
96,
17748,
4885,
7960,
18125,
121,
1499,
6,
96,
4302,
11788,
12387,
13,
8,
2929,
121,
1499,
6,
96,
4302,
11788,
20502,
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,
382,
1211,
20205,
17,
29940,
41,
254,
485,
61,
8512,
21680,
953,
834,
1828,
20829,
549,
17444,
427,
96,
382,
1211,
20205,
17,
18125,
121,
3274,
3,
31,
15291,
109,
31,
1,
-100,
-100,
-100,
-100... |
Find the different first names and cities of the students who have allergy to milk or cat. | CREATE TABLE Student (
fname VARCHAR,
city_code VARCHAR,
stuid VARCHAR
)
CREATE TABLE Has_Allergy (
stuid VARCHAR,
Allergy VARCHAR
) | SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "Milk" OR T2.Allergy = "Cat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
89,
4350,
584,
4280,
28027,
6,
690,
834,
4978,
584,
4280,
28027,
6,
21341,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4498,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
89,
4350,
6,
332,
5411,
6726,
834,
4978,
21680,
6341,
6157,
332,
536,
3,
15355,
3162,
4498,
834,
6838,
49,
122,
63,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
... |
What is the city location of the tournament currently known as the Medibank International Sydney? | CREATE TABLE table_23789 (
"Tournament" text,
"Also currently known as" text,
"City(s)" text,
"Country" text,
"Court surface" text,
"Tier IV in" text,
"Years" real
) | SELECT "City(s)" FROM table_23789 WHERE "Also currently known as" = 'Medibank International Sydney' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4118,
3914,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
188,
40,
7,
32,
1083,
801,
38,
121,
1499,
6,
96,
254,
485,
599,
7,
61,
121,
1499,
6,
96,
10628,
651,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
599,
7,
61,
121,
21680,
953,
834,
357,
4118,
3914,
549,
17444,
427,
96,
188,
40,
7,
32,
1083,
801,
38,
121,
3274,
3,
31,
20123,
23,
4739,
1331,
7476,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In week 9 who were the opponent? | CREATE TABLE table_14608759_1 (
opponent VARCHAR,
week VARCHAR
) | SELECT opponent FROM table_14608759_1 WHERE week = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3328,
4225,
3390,
834,
536,
41,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
471,
668,
113,
130,
8,
15264,
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,
15264,
21680,
953,
834,
2534,
3328,
4225,
3390,
834,
536,
549,
17444,
427,
471,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
when was the first time patient 021-131895 was discharged since 3 years ago? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatment (
treat... | SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '021-131895' AND DATETIME(patient.hospitaldischargetime) >= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY patient.hospitaldischargetime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
26,
159,
7993,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2658,
13056,
2606,
3301,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
26,
159,
7993,
715,
61,
... |
who is the opponent listed after japan ? | CREATE TABLE table_204_130 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | SELECT "opponent" FROM table_204_130 WHERE id = (SELECT id FROM table_204_130 WHERE "opponent" = 'japan') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
21448,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
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,
1... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
26363,
834,
21448,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
21448,
549,
17444,
427,
96,
32,
102,
9977,
121,
3274,
3,
31,
... |
When racing engineering is the team and 2012 is the team what is the position? | CREATE TABLE table_27563 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
) | SELECT "Position" FROM table_27563 WHERE "Season" = '2012' AND "Team" = 'Racing Engineering' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
3891,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
25988,
3891,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
12172,
31,
3430,
96,
18699,
121,
3274,
3,
31,
448,
9,
75,
53,
5623,
31,
1,
-100,
-100,
-100,
-10... |
Name the score for winner and julie halard-decugis ai sugiyama | CREATE TABLE table_24638867_6 (
score VARCHAR,
outcome VARCHAR,
opponents VARCHAR
) | SELECT score FROM table_24638867_6 WHERE outcome = "Winner" AND opponents = "Julie Halard-Decugis Ai Sugiyama" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3891,
4060,
3708,
834,
948,
41,
2604,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2604,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2266,
3891,
4060,
3708,
834,
948,
549,
17444,
427,
6138,
3274,
96,
18455,
687,
121,
3430,
16383,
3274,
96,
683,
76,
1896,
5648,
986,
18,
2962,
75,
25297,
7,
71,
23,
180,
25297,
22990,
121,
1,
... |
count the number of patients whose primary disease is atrial septal defect\mitral valve replacement;repair atrial-septal defect/sda and admission year is less than 2145? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ATRIAL SEPTAL DEFECT\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA" AND demographic.admityear < "2145" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
188,
16840,
4090,
180,
8569,
16359,
3396,
371,
14196,
2,
12604,
21415,
... |
what is the difference in years of granville bantock 's work compared to pete dohert ? | CREATE TABLE table_204_969 (
id number,
"composer" text,
"title" text,
"genre" text,
"date" number,
"notes" text
) | SELECT ABS((SELECT "date" FROM table_204_969 WHERE "composer" = 'granville bantock') - (SELECT "date" FROM table_204_969 WHERE "composer" = 'pete doherty')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1298,
3951,
41,
3,
23,
26,
381,
6,
96,
287,
2748,
49,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
729,
60,
121,
1499,
6,
96,
5522,
121,
381,
6,
96,
7977,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20798,
599,
599,
23143,
14196,
96,
5522,
121,
21680,
953,
834,
26363,
834,
1298,
3951,
549,
17444,
427,
96,
287,
2748,
49,
121,
3274,
3,
31,
7662,
1420,
4514,
17,
3961,
31,
61,
3,
18,
41,
23143,
14196,
96,
5522,
1... |
Which province has Michael Kirby? | CREATE TABLE table_name_39 (
province VARCHAR,
name VARCHAR
) | SELECT province FROM table_name_39 WHERE name = "michael kirby" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
7985,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7985,
65,
2457,
10976,
969,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7985,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
564,
3274,
96,
51,
362,
9,
15,
40,
3,
18413,
969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Sort the gender codes in descending order of their corresponding number of guests. Return both the gender codes and counts. Show bar chart. | CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_star... | SELECT gender_code, COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
22360,
41,
3886,
834,
23,
26,
3,
21342,
17966,
6,
7285,
834,
4978,
3,
28027,
14296,
6,
3886,
834,
14672,
834,
4350,
584,
4280,
28027,
599,
2079,
201,
3886,
834,
5064,
834,
4350,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7285,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
3,
22360,
350,
4630,
6880,
272,
476,
7285,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of areas by square mile where the founding year was 1785, the county seat was in Spartanburg, and the land area by square mile was more than 811? | CREATE TABLE table_56571 (
"County" text,
"Year Founded" text,
"County Seat" text,
"2010 Census Population" real,
"July 1, 2012 Population Estimate." real,
"Area (Sq. Mi.)" real,
"Land Area (Sq. Mi.)" real
) | SELECT SUM("Area (Sq. Mi.)") FROM table_56571 WHERE "Year Founded" = '1785' AND "County Seat" = 'spartanburg' AND "Land Area (Sq. Mi.)" > '811' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
3436,
536,
41,
96,
10628,
63,
121,
1499,
6,
96,
476,
2741,
3,
20100,
121,
1499,
6,
96,
10628,
63,
15915,
121,
1499,
6,
96,
14926,
23086,
29659,
121,
490,
6,
96,
683... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
188,
864,
41,
134,
1824,
5,
2133,
5,
61,
8512,
21680,
953,
834,
4834,
3436,
536,
549,
17444,
427,
96,
476,
2741,
3,
20100,
121,
3274,
3,
31,
2517,
4433,
31,
3430,
96,
10628,
63,
15915,
121,
... |
let me know the birth date and lab test abnormal status of patient jerry deberry. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT demographic.dob, lab.flag FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Jerry Deberry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
6,
7690,
5,
89,
5430,
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,
427,
14798,
5,
4350,
3274,
9... |
What game was played on May 29? | CREATE TABLE table_name_1 (
game VARCHAR,
date VARCHAR
) | SELECT game FROM table_name_1 WHERE date = "may 29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
467,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
47,
1944,
30,
932,
2838,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
833,
3274,
96,
13726,
2838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names, details and data types of the characteristics which are never used by any product? | CREATE TABLE product_characteristics (
characteristic_id VARCHAR
)
CREATE TABLE CHARACTERISTICS (
characteristic_name VARCHAR,
other_characteristic_details VARCHAR,
characteristic_data_type VARCHAR,
characteristic_id VARCHAR
) | SELECT characteristic_name, other_characteristic_details, characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
556,
834,
31886,
3040,
7,
41,
16115,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
28027,
5173,
5946,
13582,
21202,
41,
16115,
834,
4350... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16115,
834,
4350,
6,
119,
834,
31886,
3040,
834,
221,
5756,
7,
6,
16115,
834,
6757,
834,
6137,
21680,
3,
28027,
5173,
5946,
13582,
21202,
262,
4,
30416,
3,
23143,
14196,
3,
17,
5411,
31886,
3040,
834,
4350,
6,
3,
... |
In what year was Yauco, which had over 42,043 people in 2010, founded? | CREATE TABLE table_65006 (
"Municipality" text,
"FIPS code" real,
"Founded" real,
"Population (2010)" real,
"Area" text
) | SELECT AVG("Founded") FROM table_65006 WHERE "Municipality" = 'yauco' AND "Population (2010)" > '42,043' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15348,
5176,
41,
96,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
371,
21563,
1081,
121,
490,
6,
96,
20100,
121,
490,
6,
96,
27773,
7830,
26118,
121,
490,
6,
96,
188,
864... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
20100,
8512,
21680,
953,
834,
15348,
5176,
549,
17444,
427,
96,
329,
202,
23,
3389,
10355,
121,
3274,
3,
31,
63,
402,
509,
31,
3430,
96,
27773,
7830,
26118,
121,
2490,
3,
31,
4165,
6,
632,
490... |
What happened in Mazar-i-sharif? | CREATE TABLE table_name_3 (
circumstances VARCHAR,
location VARCHAR
) | SELECT circumstances FROM table_name_3 WHERE location = "mazar-i-sharif" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
4616,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2817,
16,
22839,
291,
18,
23,
18,
7,
3272,
99,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4616,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1128,
3274,
96,
18983,
291,
18,
23,
18,
7,
3272,
99,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which January has a Score of 7–4, and a Game smaller than 42? | CREATE TABLE table_name_69 (january INTEGER, score VARCHAR, game VARCHAR) | SELECT SUM(january) FROM table_name_69 WHERE score = "7–4" AND game < 42 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
7066,
76,
1208,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1762,
65,
3,
9,
17763,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7066,
76,
1208,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
2604,
3274,
96,
940,
104,
20364,
3430,
467,
3,
2,
6426,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the arrival time where the station code is awy? | CREATE TABLE table_19516 (
"No." real,
"Station Code" text,
"Station" text,
"Arrival" text,
"Departure" text,
"Kilometers" real,
"Day" real
) | SELECT "Arrival" FROM table_19516 WHERE "Station Code" = 'AWY' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
2938,
41,
96,
4168,
535,
490,
6,
96,
134,
6821,
3636,
121,
1499,
6,
96,
134,
6821,
121,
1499,
6,
96,
188,
52,
25295,
121,
1499,
6,
96,
2962,
2274,
1462,
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,
188,
52,
25295,
121,
21680,
953,
834,
22464,
2938,
549,
17444,
427,
96,
134,
6821,
3636,
121,
3274,
3,
31,
9851,
476,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the home team on November 22? | CREATE TABLE table_9924 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Home" FROM table_9924 WHERE "Date" = 'november 22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3264,
2266,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
3264,
2266,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
1630,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Player had a Score of 75-73-68-65=281 and more than 19,009 in Money? | CREATE TABLE table_49739 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Player" FROM table_49739 WHERE "Money ( $ )" > '19,009' AND "Score" = '75-73-68-65=281' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4327,
3288,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
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,
15800,
49,
121,
21680,
953,
834,
591,
4327,
3288,
549,
17444,
427,
96,
9168,
15,
63,
41,
1514,
3,
61,
121,
2490,
3,
31,
2294,
6,
1206,
1298,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
3072,
18,
4552,
18,
3... |
What is the mean team 1 when the 1st leg is Albignasego (Veneto A)? | CREATE TABLE table_76610 (
"Team 1" real,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT AVG("Team 1") FROM table_76610 WHERE "1st leg" = 'albignasego (veneto a)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
27097,
41,
96,
18699,
209,
121,
490,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
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,
71,
17217,
599,
121,
18699,
209,
8512,
21680,
953,
834,
3959,
27097,
549,
17444,
427,
96,
536,
7,
17,
4553,
121,
3274,
3,
31,
138,
12911,
29,
9,
7,
6066,
41,
1926,
15,
235,
3,
9,
61,
31,
1,
-100,
-100,
-100,
-... |
What type of dock connection does the sounddock series III have? | CREATE TABLE table_26798 (
"Version" text,
"Dock Connection" text,
"AUX In" text,
"Battery" text,
"iPhone Certified" text,
"Video Out" text,
"Dual Voltage" text
) | SELECT "Dock Connection" FROM table_26798 WHERE "Version" = 'SoundDock series III' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
3916,
41,
96,
5000,
1938,
121,
1499,
6,
96,
308,
3961,
19466,
121,
1499,
6,
96,
6727,
4,
86,
121,
1499,
6,
96,
279,
12828,
63,
121,
1499,
6,
96,
23,
345,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3961,
19466,
121,
21680,
953,
834,
357,
3708,
3916,
549,
17444,
427,
96,
5000,
1938,
121,
3274,
3,
31,
5231,
1106,
308,
3961,
939,
6289,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the region for tv uskana? | CREATE TABLE table_60015 (
"Name" text,
"Region" text,
"Programming" text,
"Type" text,
"Encryption" text
) | SELECT "Region" FROM table_60015 WHERE "Name" = 'tv uskana' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6007,
1808,
41,
96,
23954,
121,
1499,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
3174,
16582,
53,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
8532,
13708,
23,
106,
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,
17748,
23,
106,
121,
21680,
953,
834,
6007,
1808,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
17,
208,
178,
3304,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which week was the game played on October 12, 1975 and the crowd was larger than 44,043? | CREATE TABLE table_51003 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT COUNT("Week") FROM table_51003 WHERE "Date" = 'october 12, 1975' AND "Attendance" > '44,043' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25926,
4928,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
518,
10266,
8512,
21680,
953,
834,
25926,
4928,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
1152,
10440,
16312,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
3628,... |
What is Ivaipor , pr's biggest population? | CREATE TABLE table_name_13 (
population INTEGER,
town_city VARCHAR
) | SELECT MAX(population) FROM table_name_13 WHERE town_city = "ivaiporã, pr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
2074,
3,
21342,
17966,
6,
1511,
834,
6726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
27,
900,
23,
102,
127,
3,
6,
4880,
31,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1511,
834,
6726,
3274,
96,
6823,
23,
102,
127,
2,
6,
4880,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose primary disease is colangitis and year of birth is less than 2111? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COLANGITIS" AND demographic.dob_year < "2111" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
19617,
19775,
3177,
4555,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,... |
What is the birthplace of the player with Calgary Flames NHL rights, plays the f position, and has a height taller than 175 cm? | CREATE TABLE table_41588 (
"Position" text,
"Jersey number" real,
"Name v t e" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthplace" text,
"2008-09 team" text,
"NHL rights, if any" text
) | SELECT "Birthplace" FROM table_41588 WHERE "Position" = 'f' AND "Height (cm)" > '175' AND "NHL rights, if any" = 'calgary flames' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
1808,
4060,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
683,
277,
15,
63,
381,
121,
490,
6,
96,
23954,
3,
208,
3,
17,
3,
15,
121,
1499,
6,
96,
3845,
2632,
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,
279,
23,
52,
189,
4687,
121,
21680,
953,
834,
591,
1808,
4060,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
89,
31,
3430,
96,
3845,
2632,
41,
75,
51,
61,
121,
2490,
3,
31,
536,
3072,
31,
3430,
... |
For the teams that had fewer than 1 Byes, what was the lowest number of Draws? | CREATE TABLE table_name_38 (draws INTEGER, byes INTEGER) | SELECT MIN(draws) FROM table_name_38 WHERE byes < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
19489,
7,
3,
21342,
17966,
6,
57,
15,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
2323,
24,
141,
3,
10643,
145,
209,
938,
15,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
57,
15,
7,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE 2011 PERFORMANCE FOR TOURNAMENTS PLAYED? | CREATE TABLE table_name_48 (
tournament VARCHAR
) | SELECT 2011 FROM table_name_48 WHERE tournament = "tournaments played" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
2722,
3,
8742,
24030,
15083,
5652,
332,
9131,
5999,
11810,
134,
17501,
476... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2722,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
5892,
3274,
96,
17,
1211,
29,
9,
4128,
1944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What team was the opponent when there was a score of 5 4 (11)? | CREATE TABLE table_name_38 (
opponent VARCHAR,
score VARCHAR
) | SELECT opponent FROM table_name_38 WHERE score = "5–4 (11)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
15264,
116,
132,
47,
3,
9,
2604,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
2604,
3274,
96,
755,
104,
591,
4077,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which terminations correspond to a US MSRP of $49? | CREATE TABLE table_20473 (
"Headphone Model" text,
"Headphone Class" text,
"Driver-matched dB" text,
"Construction" text,
"Earpads" text,
"Termination" text,
"US MSRP" text
) | SELECT "Termination" FROM table_20473 WHERE "US MSRP" = '$49' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
4552,
41,
96,
3845,
9,
26,
6399,
5154,
121,
1499,
6,
96,
3845,
9,
26,
6399,
4501,
121,
1499,
6,
96,
20982,
52,
18,
10304,
3,
26,
279,
121,
1499,
6,
96,
4302,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11679,
77,
257,
121,
21680,
953,
834,
26363,
4552,
549,
17444,
427,
96,
3063,
5266,
6294,
121,
3274,
3,
31,
3229,
3647,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many players wore number 8? | CREATE TABLE table_12962773_16 (
height VARCHAR,
no VARCHAR
) | SELECT COUNT(height) FROM table_12962773_16 WHERE no = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4314,
2555,
4552,
834,
2938,
41,
3902,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
3,
15295,
381,
505,
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,
2847,
17161,
599,
88,
2632,
61,
21680,
953,
834,
2122,
4314,
2555,
4552,
834,
2938,
549,
17444,
427,
150,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville? | CREATE TABLE table_name_71 (
population INTEGER,
area_km_2 VARCHAR,
official_name VARCHAR
) | SELECT AVG(population) FROM table_name_71 WHERE area_km_2 < 26.69 AND official_name = "rogersville" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
2074,
3,
21342,
17966,
6,
616,
834,
5848,
834,
357,
584,
4280,
28027,
6,
2314,
834,
4350,
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,
71,
17217,
599,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
616,
834,
5848,
834,
357,
3,
2,
2208,
5,
3951,
3430,
2314,
834,
4350,
3274,
96,
3822,
277,
1420,
121,
1,
-100,
-100,
-100,
-100,
-... |
Which composition has an issue price of $99.00? | CREATE TABLE table_79967 (
"Year of issue" real,
"Theme" text,
"Composition" text,
"Issue price" text,
"Mintage" text
) | SELECT "Composition" FROM table_79967 WHERE "Issue price" = '$99.00' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3264,
3708,
41,
96,
476,
2741,
13,
962,
121,
490,
6,
96,
634,
526,
121,
1499,
6,
96,
5890,
4718,
121,
1499,
6,
96,
196,
7,
7,
76,
15,
594,
121,
1499,
6,
96,
1285... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4718,
121,
21680,
953,
834,
940,
3264,
3708,
549,
17444,
427,
96,
196,
7,
7,
76,
15,
594,
121,
3274,
3,
31,
3229,
3264,
4200,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the colonized date for the n/a charter range for appalachian state? | CREATE TABLE table_name_61 (colonized VARCHAR, charter_range VARCHAR, school VARCHAR) | SELECT colonized FROM table_name_61 WHERE charter_range = "n/a" AND school = "appalachian state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
8135,
29,
1601,
584,
4280,
28027,
6,
13382,
834,
5517,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6718,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6718,
1601,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
13382,
834,
5517,
3274,
96,
29,
87,
9,
121,
3430,
496,
3274,
96,
3096,
138,
11015,
152,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.