NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the margin of victory on Apr 8, 1979? | CREATE TABLE table_name_28 (margin_of_victory VARCHAR, date VARCHAR) | SELECT margin_of_victory FROM table_name_28 WHERE date = "apr 8, 1979" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
1635,
122,
77,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6346,
13,
6224,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
833,
3274,
96,
9,
102,
52,
9478,
15393,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Wireless LAN had a process technology of 90nm and a Carmel centrino? | CREATE TABLE table_23450 (
"Wireless LAN" text,
"Chipset" text,
"Centrino" text,
"Processor" text,
"Codename" text,
"Release Date" real,
"Process Technology" text,
"Microarchitecture" text
) | SELECT "Wireless LAN" FROM table_23450 WHERE "Process Technology" = '90nm' AND "Centrino" = 'Carmel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
10593,
41,
96,
13601,
15,
924,
3,
12303,
121,
1499,
6,
96,
254,
10462,
2244,
121,
1499,
6,
96,
254,
295,
52,
77,
32,
121,
1499,
6,
96,
3174,
75,
24901,
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,
13601,
15,
924,
3,
12303,
121,
21680,
953,
834,
2773,
10593,
549,
17444,
427,
96,
3174,
2319,
7,
3669,
121,
3274,
3,
31,
2394,
29,
51,
31,
3430,
96,
254,
295,
52,
77,
32,
121,
3274,
3,
31,
6936,
2341,
31,
... |
Name the number of high points for record 5-17 | CREATE TABLE table_23186738_6 (high_points VARCHAR, record VARCHAR) | SELECT COUNT(high_points) FROM table_23186738_6 WHERE record = "5-17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2606,
3708,
3747,
834,
948,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
306,
979,
21,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6739,
834,
2700,
7,
61,
21680,
953,
834,
2773,
2606,
3708,
3747,
834,
948,
549,
17444,
427,
1368,
3274,
96,
755,
10794,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Quarterfinal has a Rank larger than 9? | CREATE TABLE table_51295 (
"Event" text,
"2nd round" text,
"Quarterfinal" text,
"Semifinal" text,
"Final" text,
"Rank" real
) | SELECT "Quarterfinal" FROM table_51295 WHERE "Rank" > '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24163,
3301,
41,
96,
427,
2169,
121,
1499,
6,
96,
357,
727,
1751,
121,
1499,
6,
96,
5991,
1408,
49,
12406,
121,
1499,
6,
96,
134,
15,
51,
23,
12406,
121,
1499,
6,
96,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5991,
1408,
49,
12406,
121,
21680,
953,
834,
24163,
3301,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who used the Honda Engine for all the races? | CREATE TABLE table_name_34 (
team VARCHAR,
engine VARCHAR,
races VARCHAR
) | SELECT team FROM table_name_34 WHERE engine = "honda" AND races = "all" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
372,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
261,
8,
12886,
10612,
21,
66,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1948,
3274,
96,
31782,
121,
3430,
10879,
3274,
96,
1748,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the reporters for 2003 | CREATE TABLE table_22514845_2 (
reporters VARCHAR,
year VARCHAR
) | SELECT reporters FROM table_22514845_2 WHERE year = 2003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
24748,
2128,
834,
357,
41,
19644,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
19644,
21,
3888,
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,
19644,
21680,
953,
834,
20489,
24748,
2128,
834,
357,
549,
17444,
427,
215,
3274,
3888,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show me a bar chart for what are the apartment number and the room count of each apartment? | 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 apt_number, room_count FROM Apartments | [
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,
3,
6789,
834,
5525,
1152,
6,
562,
834,
13362,
21680,
15970,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the date for Zouave? | CREATE TABLE table_55911 (
"Date" text,
"Name" text,
"Flag" text,
"Tonnage (GRT)" real,
"Sunk by" text
) | SELECT "Date" FROM table_55911 WHERE "Name" = 'zouave' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3390,
2596,
41,
96,
308,
342,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
371,
5430,
121,
1499,
6,
96,
382,
106,
9761,
41,
517,
5934,
61,
121,
490,
6,
96,
134,
6513... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
755,
3390,
2596,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
172,
1063,
9,
162,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of game with tie number of 10? | CREATE TABLE table_name_35 (
date VARCHAR,
tie_no VARCHAR
) | SELECT date FROM table_name_35 WHERE tie_no = "10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
833,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
467,
28,
6177,
381,
13,
335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which source has a date of June 2008? | CREATE TABLE table_66327 (
"Date" text,
"Internet Explorer" text,
"Firefox" text,
"Opera" text,
"Safari" text,
"Source" text
) | SELECT "Source" FROM table_66327 WHERE "Date" = 'june 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
519,
2555,
41,
96,
308,
342,
121,
1499,
6,
96,
22912,
15762,
121,
1499,
6,
96,
3183,
60,
20400,
121,
1499,
6,
96,
667,
883,
9,
121,
1499,
6,
96,
134,
9,
5544,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23799,
121,
21680,
953,
834,
3539,
519,
2555,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
6959,
15,
2628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the rank when the player is henry shefflin and the matches is higher than 4? | CREATE TABLE table_name_9 (
rank INTEGER,
player VARCHAR,
matches VARCHAR
) | SELECT SUM(rank) FROM table_name_9 WHERE player = "henry shefflin" AND matches > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
11003,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
6407,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
11003,
116,
8,
1959,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
1959,
3274,
96,
3225,
651,
255,
89,
89,
40,
77,
121,
3430,
6407,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many years did he play in santiago de compostela? | CREATE TABLE table_57304 (
"city" text,
"position" real,
"Event" text,
"year" real,
"Score" text
) | SELECT SUM("year") FROM table_57304 WHERE "city" = 'santiago de compostela' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
23702,
41,
96,
6726,
121,
1499,
6,
96,
4718,
121,
490,
6,
96,
427,
2169,
121,
1499,
6,
96,
1201,
121,
490,
6,
96,
134,
9022,
121,
1499,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
1201,
8512,
21680,
953,
834,
3436,
23702,
549,
17444,
427,
96,
6726,
121,
3274,
3,
31,
7,
5965,
9,
839,
20,
17883,
15,
521,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the average of price , and group by attribute name, and rank Name from low to high order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
441... |
what are the number of channels owned by the government ? | CREATE TABLE table_203_51 (
id number,
"channel" text,
"definition" text,
"organisation" text,
"ownership" text,
"notes" text
) | SELECT COUNT("channel") FROM table_203_51 WHERE "ownership" = 'government' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
5553,
41,
3,
23,
26,
381,
6,
96,
19778,
121,
1499,
6,
96,
221,
5582,
1575,
121,
1499,
6,
96,
10832,
121,
1499,
6,
96,
13238,
2009,
121,
1499,
6,
96,
7977,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
19778,
8512,
21680,
953,
834,
23330,
834,
5553,
549,
17444,
427,
96,
13238,
2009,
121,
3274,
3,
31,
27818,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the host country when bronze is [[|]] (1) and host city is Krynica? | CREATE TABLE table_49629 (
"Year" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Host city / cities" text,
"Host country / countries" text
) | SELECT "Host country / countries" FROM table_49629 WHERE "Bronze" = '[[|]] (1)' AND "Host city / cities" = 'krynica' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4314,
3166,
41,
96,
476,
2741,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
121,
1499,
6,
96,
566,
3481,
690,
3,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
566,
3481,
684,
3,
87,
1440,
121,
21680,
953,
834,
591,
4314,
3166,
549,
17444,
427,
96,
22780,
29,
776,
121,
3274,
3,
31,
6306,
6306,
9175,
908,
908,
5637,
31,
3430,
96,
566,
3481,
690,
3,
87,
3119,
121,
32... |
What is minimum age for different job title? | CREATE TABLE Person (
job VARCHAR,
age INTEGER
) | SELECT MIN(age), job FROM Person GROUP BY job | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
613,
584,
4280,
28027,
6,
1246,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2559,
1246,
21,
315,
613,
2233,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
545,
201,
613,
21680,
5780,
350,
4630,
6880,
272,
476,
613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which episode was Transmitted on friday if the episode of '515 the adventures of tintin' was transmitted on monday? | CREATE TABLE table_18173916_8 (
friday VARCHAR,
monday VARCHAR
) | SELECT friday FROM table_18173916_8 WHERE monday = "515 The Adventures of Tintin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2517,
3288,
2938,
834,
927,
41,
9030,
1135,
584,
4280,
28027,
6,
1911,
1135,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
5640,
47,
4946,
16030,
30,
9030... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
9030,
1135,
21680,
953,
834,
2606,
2517,
3288,
2938,
834,
927,
549,
17444,
427,
1911,
1135,
3274,
96,
755,
1808,
37,
12316,
7,
13,
7138,
17,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Bar graph to show the total number from different building, rank y axis from low to high order. | CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
c... | SELECT Building, COUNT(*) FROM Faculty GROUP BY Building ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
834,
13725,
23,
3389,
6203,
834,
77,
41,
1699,
75,
4309,
3,
21342,
17966,
6,
1810,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
15077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5450,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
350,
4630,
6880,
272,
476,
5450,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was the sargent bridge built? | CREATE TABLE table_name_61 (
built VARCHAR,
name VARCHAR
) | SELECT built FROM table_name_61 WHERE name = "sargent bridge" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
1192,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
3,
7,
9917,
4716,
1192,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1192,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
564,
3274,
96,
7,
9917,
4716,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the birth date for estonia for spiker and height of 189 | CREATE TABLE table_25058562_2 (birth_date VARCHAR, height VARCHAR, nationality VARCHAR, position VARCHAR) | SELECT birth_date FROM table_25058562_2 WHERE nationality = "Estonia" AND position = "Spiker" AND height = 189 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3449,
4834,
357,
834,
357,
41,
20663,
834,
5522,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3879,
834,
5522,
21680,
953,
834,
11434,
3449,
4834,
357,
834,
357,
549,
17444,
427,
1157,
485,
3274,
96,
14997,
8008,
121,
3430,
1102,
3274,
96,
134,
102,
10109,
121,
3430,
3902,
3274,
3,
25312,
1,
-100,
-100,
-100,
... |
Which country is ranked 56 overall and has a heat rank smaller than 8? | CREATE TABLE table_name_72 (country VARCHAR, heat_rank VARCHAR, overall_rank VARCHAR) | SELECT country FROM table_name_72 WHERE heat_rank < 8 AND overall_rank = "56" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
17529,
584,
4280,
28027,
6,
1678,
834,
6254,
584,
4280,
28027,
6,
1879,
834,
6254,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
19,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1678,
834,
6254,
3,
2,
505,
3430,
1879,
834,
6254,
3274,
96,
4834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date for the Sepang International circuit, round 3? | CREATE TABLE table_name_40 (
date VARCHAR,
circuit VARCHAR,
round VARCHAR
) | SELECT date FROM table_name_40 WHERE circuit = "sepang international circuit" AND round = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
833,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
21,
8,
12219,
1468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
4558,
3274,
96,
7,
15,
102,
1468,
1038,
4558,
121,
3430,
1751,
3274,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
when was patient 007-16517 prescribed for the last time a medication via inhale medication in the current hospital visit? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREA... | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-16517' AND patient.hospitaldischargetime IS NULL)) AND med... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
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,
7757,
5,
26,
13534,
10208,
715,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
37... |
Which episode had Lavern Baker? | CREATE TABLE table_26250151_1 (episode VARCHAR, original_recording_artist VARCHAR) | SELECT episode FROM table_26250151_1 WHERE original_recording_artist = "LaVern Baker" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
11434,
26578,
834,
536,
41,
15,
102,
159,
32,
221,
584,
4280,
28027,
6,
926,
834,
60,
7621,
53,
834,
1408,
343,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5640,
21680,
953,
834,
2688,
11434,
26578,
834,
536,
549,
17444,
427,
926,
834,
60,
7621,
53,
834,
1408,
343,
3274,
96,
3612,
5000,
29,
10731,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What size was the biggest crowd that watched the home team Hawthorn play? | CREATE TABLE table_name_95 (crowd INTEGER, home_team VARCHAR) | SELECT MAX(crowd) FROM table_name_95 WHERE home_team = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
75,
3623,
26,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
812,
47,
8,
2630,
4374,
24,
7533,
8,
234,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the site when the superintendent was John Barry? | CREATE TABLE table_name_28 (
site VARCHAR,
superintendent VARCHAR
) | SELECT site FROM table_name_28 WHERE superintendent = "john barry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
353,
584,
4280,
28027,
6,
30158,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
353,
116,
8,
30158,
47,
1079,
18931,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
353,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
30158,
3274,
96,
27341,
1207,
651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What field is an opponent of cannons and resulted with w 16-11? | CREATE TABLE table_61001 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
) | SELECT "Field" FROM table_61001 WHERE "Opponent" = 'cannons' AND "Result" = 'w 16-11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
17465,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
19040,
87,
188,
1343,
121,
1499,
6,
96,
3183,
8804,
121,
1499,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3183,
8804,
121,
21680,
953,
834,
4241,
17465,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
75,
17805,
7,
31,
3430,
96,
20119,
121,
3274,
3,
31,
210,
898,
9169,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Report the number of patients with an abnormal lab test status who have been diagnosed with unspecified atherosclerosis of native arteries of the extremities. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Athscl extrm ntv art NOS" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Where is the Church that has a Sub-Parish (Sokn) of rugsund? | CREATE TABLE table_62568 (
"Parish ( Prestegjeld )" text,
"Sub-Parish (Sokn)" text,
"Church Name" text,
"Year Built" real,
"Location of the Church" text
) | SELECT "Location of the Church" FROM table_62568 WHERE "Sub-Parish (Sokn)" = 'rugsund' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
1828,
3651,
41,
96,
13212,
1273,
41,
1266,
849,
122,
354,
8804,
3,
61,
121,
1499,
6,
96,
25252,
18,
13212,
1273,
41,
134,
1825,
29,
61,
121,
1499,
6,
96,
3541,
450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
13,
8,
2345,
121,
21680,
953,
834,
948,
1828,
3651,
549,
17444,
427,
96,
25252,
18,
13212,
1273,
41,
134,
1825,
29,
61,
121,
3274,
3,
31,
22024,
1106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What's the IS-3 when the KV-85 is 40? | CREATE TABLE table_name_11 (
is_3_m1945 VARCHAR,
kv_85_m1943 VARCHAR
) | SELECT is_3_m1945 FROM table_name_11 WHERE kv_85_m1943 = "40" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
19,
834,
519,
834,
51,
2294,
2128,
584,
4280,
28027,
6,
3,
157,
208,
834,
4433,
834,
51,
2294,
4906,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
19,
834,
519,
834,
51,
2294,
2128,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
3,
157,
208,
834,
4433,
834,
51,
2294,
4906,
3274,
96,
2445,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of restaurant in Pittsburgh rated 4.5 | CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE tip (
tip_id int,
business_id varchar,
text longtext,
user_id varchar,
likes int,
year int,
month varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)... | SELECT COUNT(DISTINCT (business.name)) FROM business, category WHERE business.city = 'Pittsburgh' AND business.rating = 4.5 AND category.business_id = business.business_id AND category.category_name = 'restaurant' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1139,
41,
3,
76,
23,
26,
16,
17,
6,
1139,
834,
23,
26,
3,
4331,
4059,
6,
564,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2226,
41,
2226,
834,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
41,
16394,
5,
4350,
61,
61,
21680,
268,
6,
3295,
549,
17444,
427,
268,
5,
6726,
3274,
3,
31,
345,
155,
17,
7289,
107,
31,
3430,
268,
5,
52,
1014,
3274,
3,
12451,
3430,
3295,
... |
what day was the score 39-14 | CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_58 WHERE record = "39-14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
5522,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
239,
47,
8,
2604,
6352,
11590,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1368,
3274,
96,
3288,
11590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times has galaxy won the derby ? | CREATE TABLE table_204_801 (
id number,
"year" number,
"derby\nwinner" text,
"galaxy" number,
"draw" number,
"chivas" number
) | SELECT COUNT(*) FROM table_204_801 WHERE "derby\nwinner" = 'galaxy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2079,
536,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
588,
969,
2,
29,
3757,
687,
121,
1499,
6,
96,
6191,
9,
226,
63,
121,
381,
6,
96,
19489,
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,
1935,
61,
21680,
953,
834,
26363,
834,
2079,
536,
549,
17444,
427,
96,
588,
969,
2,
29,
3757,
687,
121,
3274,
3,
31,
6191,
9,
226,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In which condition(s) is bleeding time prolonged and prothrombin time unaffected? | CREATE TABLE table_20134 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
) | SELECT "Condition" FROM table_20134 WHERE "Bleeding time" = 'Prolonged' AND "Prothrombin time" = 'Unaffected' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11138,
591,
41,
96,
4302,
10569,
121,
1499,
6,
96,
3174,
8514,
51,
4517,
97,
121,
1499,
6,
96,
13212,
10646,
3,
8514,
6310,
23918,
77,
97,
121,
1499,
6,
96,
279,
40,
6958... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4302,
10569,
121,
21680,
953,
834,
11138,
591,
549,
17444,
427,
96,
279,
40,
6958,
53,
97,
121,
3274,
3,
31,
3174,
23629,
31,
3430,
96,
3174,
8514,
51,
4517,
97,
121,
3274,
3,
31,
5110,
9,
27488,
31,
1,
-100... |
What was the winning score with a margin victory of 2 strokes? | CREATE TABLE table_name_81 (
winning_score VARCHAR,
margin_of_victory VARCHAR
) | SELECT winning_score FROM table_name_81 WHERE margin_of_victory = "2 strokes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
3447,
834,
7,
9022,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3447,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
7,
9022,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
357,
9529,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure? | CREATE TABLE table_42447 (
"Year" real,
"Title" text,
"Producer" text,
"Actor" text,
"Role" text
) | SELECT AVG("Year") FROM table_42447 WHERE "Role" = 'alvin seville simon seville david ''dave'' seville' AND "Title" = 'the chipmunk adventure' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2266,
4177,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
3174,
4817,
49,
121,
1499,
6,
96,
188,
5317,
121,
1499,
6,
96,
448,
32,
109,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
476,
2741,
8512,
21680,
953,
834,
591,
2266,
4177,
549,
17444,
427,
96,
448,
32,
109,
121,
3274,
3,
31,
138,
2494,
142,
1420,
108,
2157,
142,
1420,
836,
6961,
3,
31,
31,
26,
9,
162,
31,
31,
... |
What are the names and ids of all stations that have more than 14 bikes available on average or had bikes installed in December? | CREATE TABLE station (
id number,
name text,
lat number,
long number,
dock_count number,
city text,
installation_date text
)
CREATE TABLE status (
station_id number,
bikes_available number,
docks_available number,
time text
)
CREATE TABLE trip (
id number,
duration ... | SELECT T1.name, T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(T2.bikes_available) > 14 UNION SELECT name, id FROM station WHERE installation_date LIKE "12/%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
50,
17,
381,
6,
307,
381,
6,
12908,
834,
13362,
381,
6,
690,
1499,
6,
2545,
834,
5522,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5411,
23,
26,
21680,
2478,
6157,
332,
536,
3,
15355,
3162,
2637,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
6682,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
4416,
6682,
83... |
Which Opponent has a Rockets score larger than 86, a Streak of won 1, and Opponents smaller than 101? | CREATE TABLE table_name_17 (
opponent VARCHAR,
opponents VARCHAR,
rockets_score VARCHAR,
streak VARCHAR
) | SELECT opponent FROM table_name_17 WHERE rockets_score > 86 AND streak = "won 1" AND opponents < 101 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
15264,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
6,
15721,
7,
834,
7,
9022,
584,
4280,
28027,
6,
18631,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
15721,
7,
834,
7,
9022,
2490,
3,
3840,
3430,
18631,
3274,
96,
210,
106,
209,
121,
3430,
16383,
3,
2,
13736,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the official name(s) of places with an area of 304.06 km2? | CREATE TABLE table_176521_2 (
official_name VARCHAR,
area_km_2 VARCHAR
) | SELECT official_name FROM table_176521_2 WHERE area_km_2 = "304.06" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4122,
2658,
834,
357,
41,
2314,
834,
4350,
584,
4280,
28027,
6,
616,
834,
5848,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
2314,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2314,
834,
4350,
21680,
953,
834,
2517,
4122,
2658,
834,
357,
549,
17444,
427,
616,
834,
5848,
834,
357,
3274,
96,
23702,
5,
5176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What day is st kilda the home side? | CREATE TABLE table_54180 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_54180 WHERE "Home team" = 'st kilda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
20829,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
5062,
20829,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
7,
17,
3,
157,
173,
26,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Date has a Status of second test? | CREATE TABLE table_name_54 (
date VARCHAR,
status VARCHAR
) | SELECT date FROM table_name_54 WHERE status = "second test" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
833,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
19318,
13,
511,
794,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
2637,
3274,
96,
12091,
794,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the minimum 2010 population of Edgewater? | CREATE TABLE table_249512_2 (
population__2010_ INTEGER,
place_name VARCHAR
) | SELECT MIN(population__2010_) FROM table_249512_2 WHERE place_name = "Edgewater" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3301,
2122,
834,
357,
41,
2074,
834,
834,
14926,
834,
3,
21342,
17966,
6,
286,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2559,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9791,
7830,
834,
834,
14926,
834,
61,
21680,
953,
834,
2266,
3301,
2122,
834,
357,
549,
17444,
427,
286,
834,
4350,
3274,
96,
427,
26,
397,
3552,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Result has a Date of september 3, 2000? | CREATE TABLE table_48899 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_48899 WHERE "Date" = 'september 3, 2000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4060,
3264,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
591,
4060,
3264,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
6180,
2766,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest played number when points are larger than 32, and a wins are larger than 18? | CREATE TABLE table_name_52 (played INTEGER, points VARCHAR, wins VARCHAR) | SELECT MIN(played) FROM table_name_52 WHERE points > 32 AND wins > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
4895,
15,
26,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1944,
381,
116... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
979,
2490,
3538,
3430,
9204,
2490,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is year of construction of spitallamm? | CREATE TABLE table_10020178_1 (
year_of_construction INTEGER,
name VARCHAR
) | SELECT MIN(year_of_construction) FROM table_10020178_1 WHERE name = "Spitallamm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
9887,
927,
834,
536,
41,
215,
834,
858,
834,
26471,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
215,
13,
1449,
13,
16192... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
1201,
834,
858,
834,
26471,
61,
21680,
953,
834,
2915,
9887,
927,
834,
536,
549,
17444,
427,
564,
3274,
96,
134,
5230,
1748,
9,
635,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
List the names of all distinct nurses ordered by alphabetical order? | CREATE TABLE medication (
code number,
name text,
brand text,
description text
)
CREATE TABLE nurse (
employeeid number,
name text,
position text,
registered boolean,
ssn number
)
CREATE TABLE on_call (
nurse number,
blockfloor number,
blockcode number,
oncallstart ... | SELECT DISTINCT name FROM nurse ORDER BY name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
1081,
381,
6,
564,
1499,
6,
1056,
1499,
6,
4210,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10444,
41,
3490,
23,
26,
381,
6,
564,
1499,
6,
1102,
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,
3,
15438,
25424,
6227,
564,
21680,
10444,
4674,
11300,
272,
476,
564,
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,
-1... |
How many locations was game 3 played at? | CREATE TABLE table_23248967_5 (
location_attendance VARCHAR,
game VARCHAR
) | SELECT COUNT(location_attendance) FROM table_23248967_5 WHERE game = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3914,
3708,
834,
755,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3248,
47,
467,
220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14836,
834,
15116,
663,
61,
21680,
953,
834,
2773,
2266,
3914,
3708,
834,
755,
549,
17444,
427,
467,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest draw with 37 games from England? | CREATE TABLE table_name_65 (
drawn INTEGER,
nationality VARCHAR,
games VARCHAR
) | SELECT MAX(drawn) FROM table_name_65 WHERE nationality = "england" AND games = 37 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
6796,
3,
21342,
17966,
6,
1157,
485,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
3314,
28,
686... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19489,
29,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1157,
485,
3274,
96,
4606,
40,
232,
121,
3430,
1031,
3274,
6862,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who has a To par of –2, and a Country of united states? | CREATE TABLE table_name_98 (player VARCHAR, to_par VARCHAR, country VARCHAR) | SELECT player FROM table_name_98 WHERE to_par = "–2" AND country = "united states" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
20846,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
3,
9,
304,
260,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
12,
834,
1893,
3274,
96,
104,
357,
121,
3430,
684,
3274,
96,
15129,
15,
26,
2315,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest season with International Formula Master as the series name and Marcello Puglisi (formula master italia) as the secondary class champion? | CREATE TABLE table_55687 (
"Season" real,
"Series Name" text,
"Champion" text,
"Team Champion" text,
"Secondary Class Champion" text
) | SELECT MAX("Season") FROM table_55687 WHERE "Series Name" = 'international formula master' AND "Secondary Class Champion" = 'marcello puglisi (formula master italia)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3651,
940,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
5570,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
18699,
16127,
121,
1499,
6,
96,
134,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
15,
9,
739,
8512,
21680,
953,
834,
3769,
3651,
940,
549,
17444,
427,
96,
12106,
7,
5570,
121,
3274,
3,
31,
27817,
5403,
2325,
31,
3430,
96,
134,
15,
1018,
26,
1208,
4501,
16127,
121,
3274,
... |
How many points for the cosworth v8 engine after 1985? | CREATE TABLE table_name_23 (
points VARCHAR,
year VARCHAR,
engine VARCHAR
) | SELECT points FROM table_name_23 WHERE year > 1985 AND engine = "cosworth v8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
979,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
21,
8,
576,
7,
7048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
215,
2490,
13200,
3430,
1948,
3274,
96,
509,
7,
7048,
3,
208,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What did the Melbourne team score in their away game? | CREATE TABLE table_name_3 (
away_team VARCHAR
) | SELECT away_team AS score FROM table_name_3 WHERE away_team = "melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
8,
9396,
372,
2604,
16,
70,
550,
467,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
550,
834,
11650,
3274,
96,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the opponent of the match on 3 December 1898 in venue h? | CREATE TABLE table_7940 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text
) | SELECT "Opponent" FROM table_7940 WHERE "Venue" = 'h' AND "Date" = '3 december 1898' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
2445,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
9977,
121,
21680,
953,
834,
4440,
2445,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
107,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
519,
20,
75,
18247,
507,
3916,
31,
1,
-100,
-100,
-1... |
who was the last president to serve consecutive years ? | CREATE TABLE table_204_278 (
id number,
"name of president" text,
"picture" text,
"life span" text,
"year of presidency" text,
"place of conference" text
) | SELECT "name of president" FROM table_204_278 WHERE "year of presidency" - "year of presidency" >= 1 ORDER BY "year of presidency" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3940,
41,
3,
23,
26,
381,
6,
96,
4350,
13,
2753,
121,
1499,
6,
96,
6174,
2693,
121,
1499,
6,
96,
4597,
8438,
121,
1499,
6,
96,
1201,
13,
27405,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
13,
2753,
121,
21680,
953,
834,
26363,
834,
357,
3940,
549,
17444,
427,
96,
1201,
13,
27405,
121,
3,
18,
96,
1201,
13,
27405,
121,
2490,
2423,
209,
4674,
11300,
272,
476,
96,
1201,
13,
27405,
121,
309,
2... |
Who wrote the sorry of the episode directed by Dan Attias? | CREATE TABLE table_13755296_1 (
story_by VARCHAR,
directed_by VARCHAR
) | SELECT story_by FROM table_13755296_1 WHERE directed_by = "Dan Attias" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3072,
5373,
4314,
834,
536,
41,
733,
834,
969,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
8032,
13,
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,
733,
834,
969,
21680,
953,
834,
2368,
3072,
5373,
4314,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
308,
152,
486,
17,
23,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Start has a Qual of 207.590? | CREATE TABLE table_13658 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | SELECT "Start" FROM table_13658 WHERE "Qual" = '207.590' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
3449,
41,
96,
476,
2741,
121,
1499,
6,
96,
7681,
17,
121,
1499,
6,
96,
5991,
138,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
371,
77,
1273,
121,
1499,
6,
96,
361... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7681,
17,
121,
21680,
953,
834,
23459,
3449,
549,
17444,
427,
96,
5991,
138,
121,
3274,
3,
31,
1755,
15731,
2394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what Date is Alexandra Fusai a Partner with a Score of 4 6, 6 3, 6 1? | CREATE TABLE table_name_46 (
date VARCHAR,
partner VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_46 WHERE partner = "alexandra fusai" AND score = "4–6, 6–3, 6–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
833,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
7678,
19,
10457,
9,
6343,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
2397,
3274,
96,
138,
994,
152,
3515,
7683,
7,
9,
23,
121,
3430,
2604,
3274,
96,
591,
104,
11071,
431,
104,
6355,
431,
104,
536,
121,
1,
-100,
-100,
-100,
-10... |
since 6 years ago, when did patient 006-185446 last visit the hospital? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospit... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-185446' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-6 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
948,
6996,
5062,
4448,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
61,
2490,
242... |
Which Week 2 Sept 7 has a Week 6 Oct 5 of wake forest (3-1)? | CREATE TABLE table_34487 (
"Week 1 Sept 2" text,
"Week 2 Sept 7" text,
"Week 3 Sept 14" text,
"Week 5 Sept 28" text,
"Week 6 Oct 5" text,
"Week 7 Oct 12" text,
"Week 10 Nov 2" text,
"Week 13 Nov 23" text,
"Week 14 Nov 30" text,
"Week 15 Dec 7" text,
"Week 16 (Final) Jan 9" te... | SELECT "Week 2 Sept 7" FROM table_34487 WHERE "Week 6 Oct 5" = 'wake forest (3-1)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3628,
4225,
41,
96,
518,
10266,
209,
10449,
204,
121,
1499,
6,
96,
518,
10266,
204,
10449,
489,
121,
1499,
6,
96,
518,
10266,
220,
10449,
968,
121,
1499,
6,
96,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10266,
204,
10449,
489,
121,
21680,
953,
834,
519,
3628,
4225,
549,
17444,
427,
96,
518,
10266,
431,
6416,
3,
17395,
3274,
3,
31,
18603,
15,
5827,
6918,
18,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a scatter chart about the correlation between School_ID and All_Games_Percent , and group by attribute All_Games. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT School_ID, All_Games_Percent FROM basketball_match GROUP BY All_Games | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1121,
834,
4309,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
23055,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the forename and surname of the driver who has the smallest laptime? | CREATE TABLE laptimes (driverid VARCHAR, milliseconds VARCHAR); CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR) | SELECT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14941,
715,
7,
41,
13739,
4055,
584,
4280,
28027,
6,
3293,
23,
12091,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3863,
41,
1161,
15,
4350,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
1161,
15,
4350,
6,
332,
5411,
3042,
4350,
21680,
3863,
6157,
332,
536,
3,
15355,
3162,
14941,
715,
7,
6157,
332,
357,
9191,
332,
5411,
13739,
4055,
3274,
332,
4416,
13739,
4055,
4674,
11300,
272,
476,
332,
... |
Which teams had a difference of 8 between goals scored and goals conceeded | CREATE TABLE table_1243 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"For" real,
"Against" real,
"Difference" text
) | SELECT "Team" FROM table_1243 WHERE "Difference" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4906,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
518,
106,
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,
18699,
121,
21680,
953,
834,
2122,
4906,
549,
17444,
427,
96,
308,
99,
11788,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the highest front row starts for Alain Prost? | CREATE TABLE table_38268 (
"Driver" text,
"Season" text,
"Entries" real,
"Front row starts" real,
"Percentage" text
) | SELECT MAX("Front row starts") FROM table_38268 WHERE "Driver" = 'alain prost' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
357,
3651,
41,
96,
20982,
52,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
16924,
2593,
121,
490,
6,
96,
371,
4438,
7358,
3511,
121,
490,
6,
96,
12988,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
371,
4438,
7358,
3511,
8512,
21680,
953,
834,
3747,
357,
3651,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
138,
9,
77,
17074,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which sideline reporters worked alongside Frank Gifford and Dan Dierdorf? | CREATE TABLE table_name_17 (sideline_reporter_s_ VARCHAR, color_commentator_s_ VARCHAR) | SELECT sideline_reporter_s_ FROM table_name_17 WHERE color_commentator_s_ = "frank gifford and dan dierdorf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
1583,
747,
834,
60,
1493,
49,
834,
7,
834,
584,
4280,
28027,
6,
945,
834,
287,
297,
1016,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
596,
747,
834,
60,
1493,
49,
834,
7,
834,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
945,
834,
287,
297,
1016,
834,
7,
834,
3274,
96,
89,
6254,
3,
122,
99,
2590,
11,
3,
3768,
67,
52,
8716,
121,
1,
-100... |
How many season numbers are there for the episodes written by Art Everett? | CREATE TABLE table_2226817_6 (no_in_season VARCHAR, written_by VARCHAR) | SELECT COUNT(no_in_season) FROM table_2226817_6 WHERE written_by = "Art Everett" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
3651,
2517,
834,
948,
41,
29,
32,
834,
77,
834,
9476,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
774,
2302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
26144,
3651,
2517,
834,
948,
549,
17444,
427,
1545,
834,
969,
3274,
96,
7754,
6381,
15,
17,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission year is less than 2198 and drug name is valganciclovir? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2198" AND prescriptions.drug = "ValGANCIclovir" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
If the San Antonio de Lomerio municipality percentage is 5.480, what is the total percentage for the San Julian municipality? | CREATE TABLE table_19998428_3 (
san_julián_municipality___percentage_ VARCHAR,
san_antonio_de_lomerío_municipality___percentage_ VARCHAR
) | SELECT COUNT(san_julián_municipality___percentage_) FROM table_19998428_3 WHERE san_antonio_de_lomerío_municipality___percentage_ = "5.480" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3264,
4608,
2577,
834,
519,
41,
3,
7,
152,
834,
354,
83,
23,
12916,
834,
11760,
3389,
10355,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
6,
3,
7,
152,
834... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
7,
152,
834,
354,
83,
23,
12916,
834,
11760,
3389,
10355,
834,
834,
834,
883,
3728,
545,
834,
61,
21680,
953,
834,
2294,
3264,
4608,
2577,
834,
519,
549,
17444,
427,
3,
7,
152,
834,
9,
6992,
23,
... |
For what year was 100* runs happen? | CREATE TABLE table_name_45 (
year VARCHAR,
runs VARCHAR
) | SELECT year FROM table_name_45 WHERE runs = "100*" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
215,
584,
4280,
28027,
6,
3154,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
125,
215,
47,
910,
1935,
3154,
1837,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
3154,
3274,
96,
2915,
1935,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which driver earned 32 points from the Andretti Green team? | CREATE TABLE table_47090 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
) | SELECT "Driver" FROM table_47090 WHERE "Team" = 'andretti green' AND "Points" = '32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27760,
2394,
41,
96,
371,
77,
5,
13995,
121,
1499,
6,
96,
6936,
465,
535,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
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,
20982,
52,
121,
21680,
953,
834,
27760,
2394,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
232,
52,
10652,
1442,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
2668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What seat does Gubernia Warszawska hold? | CREATE TABLE table_11614581_3 (seat VARCHAR, name_in_polish VARCHAR) | SELECT seat FROM table_11614581_3 WHERE name_in_polish = "Gubernia warszawska" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
20987,
4959,
834,
519,
41,
7,
1544,
584,
4280,
28027,
6,
564,
834,
77,
834,
15621,
107,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3143,
405,
2846,
1152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3143,
21680,
953,
834,
20159,
20987,
4959,
834,
519,
549,
17444,
427,
564,
834,
77,
834,
15621,
107,
3274,
96,
517,
14659,
29,
23,
9,
615,
7,
1629,
210,
10717,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the record when the game is 13? | CREATE TABLE table_name_17 (
record VARCHAR,
game VARCHAR
) | SELECT record FROM table_name_17 WHERE game = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
1368,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1368,
116,
8,
467,
19,
1179,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
467,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Kent Patterson's nationality? | CREATE TABLE table_name_60 (
nationality VARCHAR,
player VARCHAR
) | SELECT nationality FROM table_name_60 WHERE player = "kent patterson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
1157,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
14599,
31014,
31,
7,
1157,
485,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1959,
3274,
96,
2217,
17,
6234,
17,
13515,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the most for first season in the serie a for 7 de octubre | CREATE TABLE table_73678 (
"Club" text,
"Home city" text,
"Stadium" text,
"First season in the Serie A" real,
"First season in current spell" real,
"Last title" text
) | SELECT MAX("First season in the Serie A") FROM table_73678 WHERE "Stadium" = '7 de Octubre' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3420,
3940,
41,
96,
254,
11158,
121,
1499,
6,
96,
19040,
690,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
25171,
774,
16,
8,
3,
12106,
71,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
25171,
774,
16,
8,
3,
12106,
71,
8512,
21680,
953,
834,
940,
3420,
3940,
549,
17444,
427,
96,
134,
17,
9,
12925,
121,
3274,
3,
31,
940,
20,
6416,
76,
1999,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
who ended runner-up to sankar adhi? | CREATE TABLE table_2704 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
) | SELECT "Runner-up a" FROM table_2704 WHERE "Winner" = 'Sankar Adhi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
591,
41,
96,
4302,
2248,
17,
76,
4392,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
7286,
122,
77,
121,
490,
6,
96,
23572,
18,
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,
23572,
18,
413,
3,
9,
121,
21680,
953,
834,
17485,
591,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
134,
152,
4031,
1980,
107,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which publisher is responsible for spec ops: stealth patrol? | CREATE TABLE table_name_19 (
publisher VARCHAR,
name VARCHAR
) | SELECT publisher FROM table_name_19 WHERE name = "spec ops: stealth patrol" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
14859,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14859,
19,
1966,
21,
3,
7576,
3,
9280,
10,
11332,
189,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14859,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
564,
3274,
96,
7576,
3,
9280,
10,
11332,
189,
20404,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who directed the episodes that aired December 15, 1956? | CREATE TABLE table_28110 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Airdate" text
) | SELECT "Director" FROM table_28110 WHERE "Airdate" = 'December 15, 1956' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
19277,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23620,
127,
121,
21680,
953,
834,
2577,
19277,
549,
17444,
427,
96,
20162,
5522,
121,
3274,
3,
31,
29835,
10725,
22951,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the losses in the NFL in the 2011 season with less than 13 wins? | CREATE TABLE table_name_81 (losses INTEGER, wins VARCHAR, league VARCHAR, season VARCHAR) | SELECT AVG(losses) FROM table_name_81 WHERE league = "nfl" AND season = 2011 AND wins < 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
2298,
2260,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
5533,
3274,
96,
29,
89,
40,
121,
3430,
774,
3274,
2722,
3430,
9204,
3,
2,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many airports are there in each country? | CREATE TABLE airport (country VARCHAR) | SELECT COUNT(*), country FROM airport GROUP BY country | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
17529,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
3761,
7,
33,
132,
16,
284,
684,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
684,
21680,
3761,
350,
4630,
6880,
272,
476,
684,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the shooting preference of Matthew Myers, acquired in 2010? | CREATE TABLE table_name_99 (
shoots VARCHAR,
acquired VARCHAR,
player VARCHAR
) | SELECT shoots FROM table_name_99 WHERE acquired = 2010 AND player = "matthew myers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
4279,
7,
584,
4280,
28027,
6,
7347,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5262,
11633,
13,
977... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4279,
7,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
7347,
3274,
2735,
3430,
1959,
3274,
96,
3357,
532,
210,
82,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What percentage of users were using Safari during the period in which 30.82% were using Firefox? | CREATE TABLE table_66074 (
"Period" text,
"Internet Explorer" text,
"Firefox" text,
"Chrome" text,
"Safari" text,
"Opera" text,
"Other Mozilla" text,
"Mobile" text
) | SELECT "Safari" FROM table_66074 WHERE "Firefox" = '30.82%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
4581,
41,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
22912,
15762,
121,
1499,
6,
96,
3183,
60,
20400,
121,
1499,
6,
96,
3541,
11956,
121,
1499,
6,
96,
134,
9,
5544,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9,
5544,
23,
121,
21680,
953,
834,
27720,
4581,
549,
17444,
427,
96,
3183,
60,
20400,
121,
3274,
3,
31,
519,
22384,
5406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the least floors when the building type is residential and the sr no is 8? | CREATE TABLE table_name_79 (
floors INTEGER,
building_type VARCHAR,
sr_no VARCHAR
) | SELECT MIN(floors) FROM table_name_79 WHERE building_type = "residential" AND sr_no = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
8242,
3,
21342,
17966,
6,
740,
834,
6137,
584,
4280,
28027,
6,
3,
7,
52,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
20924,
7,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
740,
834,
6137,
3274,
96,
15704,
23,
138,
121,
3430,
3,
7,
52,
834,
29,
32,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses? | CREATE TABLE table_name_91 (played INTEGER, losses VARCHAR, points VARCHAR, wins VARCHAR, goals_for VARCHAR) | SELECT AVG(played) FROM table_name_91 WHERE wins < 11 AND goals_for > 42 AND points > 22 AND losses = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
4895,
15,
26,
3,
21342,
17966,
6,
8467,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
1766,
834,
1161,
584,
4280,
28027,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
9204,
3,
2,
850,
3430,
1766,
834,
1161,
2490,
6426,
3430,
979,
2490,
1630,
3430,
8467,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the total number of years active listings where Asian Cup played as a captain is Japan 1992? | CREATE TABLE table_3726 (
"#" real,
"Matches As Captain" text,
"Player" text,
"Asian Cup Played As A Captain" text,
"Years Active" text,
"Caps(Goals)" text
) | SELECT COUNT("Years Active") FROM table_3726 WHERE "Asian Cup Played As A Captain" = 'Japan 1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
2688,
41,
96,
4663,
121,
490,
6,
96,
329,
144,
2951,
282,
12202,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
188,
10488,
3802,
2911,
15,
26,
282,
71,
12202,
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,
476,
2741,
7,
11383,
8512,
21680,
953,
834,
4118,
2688,
549,
17444,
427,
96,
188,
10488,
3802,
2911,
15,
26,
282,
71,
12202,
121,
3274,
3,
31,
683,
9,
2837,
9047,
31,
1,
-100,
-100,
-100,
-1... |
Who were the candidates in the district won by the incumbent Del Latta? | CREATE TABLE table_1341690_35 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1341690_35 WHERE incumbent = "Del Latta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
2469,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4341,
16,
8,
3939,
751,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2938,
2394,
834,
2469,
549,
17444,
427,
28406,
3274,
96,
2962,
40,
301,
14748,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won on 3 june? | CREATE TABLE table_name_35 (
winner VARCHAR,
date VARCHAR
) | SELECT winner FROM table_name_35 WHERE date = "3 june" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
4668,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
30,
220,
3,
6959,
15,
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,
4668,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
833,
3274,
96,
519,
3,
6959,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what belt would a practitioner receive next after completing the 10th kyu ? | CREATE TABLE table_203_392 (
id number,
"rank" text,
"belt alternate 1" text,
"belt alternate 2" text,
"belt alternate 3" text,
"belt alternate 4" text
) | SELECT "belt alternate 1" FROM table_203_392 WHERE "rank" = '10th kyu' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3288,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
1499,
6,
96,
2370,
17,
13902,
209,
121,
1499,
6,
96,
2370,
17,
13902,
204,
121,
1499,
6,
96,
2370,
17,
1390... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2370,
17,
13902,
209,
121,
21680,
953,
834,
23330,
834,
3288,
357,
549,
17444,
427,
96,
6254,
121,
3274,
3,
31,
1714,
189,
3,
3781,
76,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score when 43,746 attended? | CREATE TABLE table_name_50 (score VARCHAR, attendance VARCHAR) | SELECT score FROM table_name_50 WHERE attendance = "43,746" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
7,
9022,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
8838,
6,
940,
4448,
5526,
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,
2604,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
11364,
3274,
96,
4906,
6,
940,
4448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the production code for episode 15 in season 3? | CREATE TABLE table_16581695_4 (production_code VARCHAR, no_in_season VARCHAR) | SELECT production_code FROM table_16581695_4 WHERE no_in_season = "15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3449,
2938,
3301,
834,
591,
41,
20762,
834,
4978,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
999,
834,
4978,
21680,
953,
834,
2938,
3449,
2938,
3301,
834,
591,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
96,
1808,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose primary disease is coronary artery disease\coronary artery bypass graft with mvr; ? maze and procedure short title is ven cath renal dialysis? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE" AND procedures.short_title = "Ven cath renal dialysis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the country for fabiana beltrame? | CREATE TABLE table_name_56 (country VARCHAR, athlete VARCHAR) | SELECT country FROM table_name_56 WHERE athlete = "fabiana beltrame" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
17529,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
684,
21,
3,
12644,
13662,
6782,
2375,
15,
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,
684,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
17893,
3274,
96,
12644,
13662,
6782,
2375,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the latest year with a start of 3 and a finish of 40 for the morgan-mcclure team? | CREATE TABLE table_name_1 (year INTEGER, finish VARCHAR, start VARCHAR, team VARCHAR) | SELECT MAX(year) FROM table_name_1 WHERE start = "3" AND team = "morgan-mcclure" AND finish = "40" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
1201,
3,
21342,
17966,
6,
1992,
584,
4280,
28027,
6,
456,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
456,
3274,
96,
519,
121,
3430,
372,
3274,
96,
51,
11127,
18,
51,
75,
10562,
60,
121,
3430,
1992,
3274,
96,
2445,
121,
1,
-100,
-100,
-100,
... |
Which allergy type has most number of allergies? | CREATE TABLE Allergy_type (allergytype VARCHAR) | SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
6137,
41,
11211,
122,
63,
6137,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
23886,
686,
65,
167,
381,
13,
18500,
58,
1,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
23886,
6137,
21680,
432,
49,
122,
63,
834,
6137,
350,
4630,
6880,
272,
476,
23886,
6137,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the highest match when the away opponent was Dalian Shide Siwu? | CREATE TABLE table_name_53 (match INTEGER, opponent_team VARCHAR, home_away VARCHAR) | SELECT MAX(match) FROM table_name_53 WHERE opponent_team = "dalian shide siwu" AND home_away = "away" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
19515,
3,
21342,
17966,
6,
15264,
834,
11650,
584,
4280,
28027,
6,
234,
834,
8006,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
19515,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
15264,
834,
11650,
3274,
96,
26,
9,
9928,
3,
5605,
221,
108,
210,
76,
121,
3430,
234,
834,
8006,
3274,
96,
8006,
121,
1,
-100,
-100,
-100... |
Who had the most assists in the game that led to a 3-7 record? | CREATE TABLE table_76865 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_76865 WHERE "Record" = '3-7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
3840,
755,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
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,
21417,
13041,
121,
21680,
953,
834,
3959,
3840,
755,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
519,
6832,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a pie chart for what are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, Price FROM Products WHERE Price >= 180 ORDER BY Price DESC, Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
5312,
21680,
7554,
549,
17444,
427,
5312,
2490,
2423,
8003,
4674,
11300,
272,
476,
5312,
309,
25067,
6,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the winning score of the match with a margin of 3 strokes? | CREATE TABLE table_name_39 (winning_score VARCHAR, margin VARCHAR) | SELECT winning_score FROM table_name_39 WHERE margin = "3 strokes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
8163,
834,
7,
9022,
584,
4280,
28027,
6,
6346,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3447,
2604,
13,
8,
1588,
28,
3,
9,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
7,
9022,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
6346,
3274,
96,
519,
9529,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Bronze medals did Switzerland with less than 3 Silver medals receive? | CREATE TABLE table_name_75 (bronze INTEGER, nation VARCHAR, silver VARCHAR) | SELECT MIN(bronze) FROM table_name_75 WHERE nation = "switzerland" AND silver < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
13711,
776,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
20841,
9365,
7,
410,
1252... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2982,
3274,
96,
7,
15686,
15,
7721,
121,
3430,
4294,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opposing team when the scorer was ronaldinho 90+3'? | CREATE TABLE table_name_37 (opponent_team VARCHAR, scorers VARCHAR) | SELECT opponent_team FROM table_name_37 WHERE scorers = "ronaldinho 90+3'" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
32,
102,
9977,
834,
11650,
584,
4280,
28027,
6,
14056,
277,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
10720,
53,
372,
116,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
834,
11650,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
14056,
277,
3274,
96,
52,
9533,
26,
23738,
2777,
1220,
519,
31,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is player 1 when player 3 is South and the prevailing wind is South? | CREATE TABLE table_26853172_1 (player_1 VARCHAR, player_3 VARCHAR, prevailing_wind VARCHAR) | SELECT player_1 FROM table_26853172_1 WHERE player_3 = "South" AND prevailing_wind = "South" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4433,
3341,
5865,
834,
536,
41,
20846,
834,
536,
584,
4280,
28027,
6,
1959,
834,
519,
584,
4280,
28027,
6,
3,
29370,
834,
5165,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
1959,
834,
536,
21680,
953,
834,
2688,
4433,
3341,
5865,
834,
536,
549,
17444,
427,
1959,
834,
519,
3274,
96,
22081,
121,
3430,
3,
29370,
834,
5165,
3274,
96,
22081,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
meet criteria for either a ) amnestic mild cognitive impairment ( single or mixed domain ) or mild alzheimer's disease, or b ) have no cognitive impairment, based on history, exam, neuropsychological testing, and consensus diagnosis. mci and mild ad patients must have clinical dementia rating scale score of 0.5 or 1. u... | CREATE TABLE table_train_125 (
"id" int,
"carotid_stenosis" int,
"pulmonary_disease" bool,
"neurodegenerative_disease" bool,
"active_infection" bool,
"skin_cancer" bool,
"heart_disease" bool,
"clinical_dementia_rating_scale" float,
"renal_disease" bool,
"cerebrovascular_disease" ... | SELECT * FROM table_train_125 WHERE ((amnestic_mild_cognitive_impairment = 1 OR alzheimer_disease_ad = 1) AND (clinical_dementia_rating_scale = 0.5 OR clinical_dementia_rating_scale = 1)) OR (cognitive_impairment = 0 AND clinical_dementia_rating_scale = 0) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
10124,
41,
96,
23,
26,
121,
16,
17,
6,
96,
658,
2719,
23,
26,
834,
1913,
32,
7,
159,
121,
16,
17,
6,
96,
26836,
834,
26,
159,
14608,
121,
3,
12840,
40,
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,
1429,
21680,
953,
834,
9719,
834,
10124,
549,
17444,
427,
41,
599,
265,
1496,
1225,
834,
51,
173,
26,
834,
75,
12905,
3268,
834,
23,
1167,
2256,
297,
3274,
209,
4674,
491,
172,
3254,
49,
834,
26,
159,
14608,
834,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.