NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the most amount of ministries? | CREATE TABLE table_21422977_1 (ministries INTEGER) | SELECT MAX(ministries) FROM table_21422977_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4165,
3166,
4013,
834,
536,
41,
7619,
7,
9000,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
866,
13,
29229,
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,
4800,
4,
599,
7619,
7,
9000,
61,
21680,
953,
834,
2658,
4165,
3166,
4013,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Rank of the Rowers with FA as Notes? | CREATE TABLE table_name_29 (rank INTEGER, notes VARCHAR) | SELECT AVG(rank) FROM table_name_29 WHERE notes = "fa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
6254,
3,
21342,
17966,
6,
3358,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
22557,
13,
8,
11768,
277,
28,
8536,
38,
2507,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
3358,
3274,
96,
89,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which lahn that exceeds 300 m also has a length that exceeds 10 km ? | CREATE TABLE table_201_46 (
id number,
"name" text,
"position" text,
"length\n[km]" number,
"drainage basin area\n[km2]" number,
"confluence\n[by lahn-km]" number,
"mouth elevation\n[m above msl]" number
) | SELECT "name" FROM table_201_46 WHERE "mouth elevation\n[m above msl]" > 300 AND "length\n[km]" > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22772,
834,
4448,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
19457,
2,
29,
6306,
5848,
908,
121,
381,
6,
96,
26,
6559,
545,
21510,
616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
22772,
834,
4448,
549,
17444,
427,
96,
11975,
16417,
2,
29,
6306,
51,
756,
3,
51,
7,
40,
908,
121,
2490,
3147,
3430,
96,
19457,
2,
29,
6306,
5848,
908,
121,
2490,
335,
1,
-100,
-1... |
What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold? | CREATE TABLE table_7028 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Rank") FROM table_7028 WHERE "Bronze" > '0' AND "Silver" = '8' AND "Total" = '19' AND "Gold" < '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
2577,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
2518,
2577,
549,
17444,
427,
96,
22780,
29,
776,
121,
2490,
3,
31,
632,
31,
3430,
96,
134,
173,
624,
121,
3274,
3,
31,
927,
31,
3430,
96,
3696,
1947,
121,
3274,
... |
how many times was the number under the money column more than 30,000 ? | CREATE TABLE table_204_126 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
) | SELECT COUNT(*) FROM table_204_126 WHERE "money ($)" > 30000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
21976,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
235,
260,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
21976,
549,
17444,
427,
96,
28442,
8785,
61,
121,
2490,
604,
2313,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHO WAS THE COVER MODEL OF PLAYBOY WHERE THE CENTERFOLD MODEL WAS SHALLAN MEIERS? | CREATE TABLE table_20220 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | SELECT "Cover model" FROM table_20220 WHERE "Centerfold model" = 'Shallan Meiers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
1755,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
14218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
1890,
825,
121,
21680,
953,
834,
19818,
1755,
549,
17444,
427,
96,
24382,
10533,
825,
121,
3274,
3,
31,
134,
11516,
152,
1212,
4518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the musical nominee with award 'Bob Fosse' or 'Cleavant Derricks', and count them by a bar chart, I want to sort y axis in ascending order. | CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
) | SELECT Nominee, COUNT(Nominee) FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks" GROUP BY Nominee ORDER BY COUNT(Nominee) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4183,
41,
22307,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2929,
16,
17,
6,
3677,
1499,
6,
17459,
1499,
6,
465,
8695,
15,
1499,
6,
3,
20119,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
465,
8695,
15,
6,
2847,
17161,
599,
4168,
8695,
15,
61,
21680,
4183,
549,
17444,
427,
3677,
3274,
96,
382,
106,
63,
3677,
121,
4674,
3677,
3274,
96,
254,
109,
15990,
660,
5206,
7,
121,
350,
4630,
6880,
272,
476,
4... |
When was series premiere on the pilot episode | CREATE TABLE table_15823956_1 (series VARCHAR) | SELECT series AS premiere FROM table_15823956_1 WHERE series = "Pilot" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4613,
3288,
4834,
834,
536,
41,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
939,
13539,
30,
8,
4487,
5640,
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,
939,
6157,
13539,
21680,
953,
834,
1808,
4613,
3288,
4834,
834,
536,
549,
17444,
427,
939,
3274,
96,
345,
23,
3171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Score has a To par larger than 17, and a Player of mike brady? | CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT score FROM table_name_7 WHERE to_par > 17 AND player = "mike brady" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
7,
9022,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
3,
9,
304,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
12,
834,
1893,
2490,
1003,
3430,
1959,
3274,
96,
20068,
15,
3858,
26,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Tom Kite's Place? | CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_78 WHERE player = "tom kite" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
4687,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3059,
5747,
15,
31,
7,
3399,
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,
286,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1959,
3274,
96,
235,
51,
3650,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show last names for all student who are on scholarship. | CREATE TABLE Sportsinfo (
StuID VARCHAR,
onscholarship VARCHAR
)
CREATE TABLE Student (
Lname VARCHAR,
StuID VARCHAR
) | SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5716,
9583,
41,
3,
13076,
4309,
584,
4280,
28027,
6,
30,
860,
17401,
2009,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
301,
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,
4416,
434,
4350,
21680,
5716,
9583,
6157,
332,
536,
3,
15355,
3162,
6341,
6157,
332,
357,
9191,
332,
5411,
13076,
4309,
3274,
332,
4416,
13076,
4309,
549,
17444,
427,
332,
5411,
106,
860,
17401,
2009,
3274,
3,
31... |
What is the maximum number in the series for the episode directed by Harvey S. Laidman? | CREATE TABLE table_228973_9 (
no_in_series INTEGER,
directed_by VARCHAR
) | SELECT MAX(no_in_series) FROM table_228973_9 WHERE directed_by = "Harvey S. Laidman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3914,
4552,
834,
1298,
41,
150,
834,
77,
834,
10833,
7,
3,
21342,
17966,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
2884,
3914,
4552,
834,
1298,
549,
17444,
427,
6640,
834,
969,
3274,
96,
15537,
162,
63,
180,
5,
325,
23,
26,
348,
121,
1,
-100,
-100,
-100,
-100... |
what is the venue when the event is 4x400 m relay and the competition is asian championships? | CREATE TABLE table_name_7 (venue VARCHAR, event VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_7 WHERE event = "4x400 m relay" AND competition = "asian championships" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
15098,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
5669,
116,
8,
605,
19,
314,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
605,
3274,
96,
591,
226,
5548,
3,
51,
16010,
121,
3430,
2259,
3274,
96,
9,
10488,
10183,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many object dates does episode #16 have? | CREATE TABLE table_29635868_1 (
object_date VARCHAR,
episode_number VARCHAR
) | SELECT COUNT(object_date) FROM table_29635868_1 WHERE episode_number = 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3891,
3449,
3651,
834,
536,
41,
3735,
834,
5522,
584,
4280,
28027,
6,
5640,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3735,
512... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
30536,
834,
5522,
61,
21680,
953,
834,
3166,
3891,
3449,
3651,
834,
536,
549,
17444,
427,
5640,
834,
5525,
1152,
3274,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In zip code 94107, on which day neither Fog nor Rain was not observed? | CREATE TABLE status (
station_id number,
bikes_available number,
docks_available number,
time text
)
CREATE TABLE station (
id number,
name text,
lat number,
long number,
dock_count number,
city text,
installation_date text
)
CREATE TABLE trip (
id number,
duration ... | SELECT date FROM weather WHERE zip_code = 94107 AND events <> "Fog" AND events <> "Rain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2637,
41,
2478,
834,
23,
26,
381,
6,
13490,
834,
28843,
381,
6,
12908,
7,
834,
28843,
381,
6,
97,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
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,
833,
21680,
1969,
549,
17444,
427,
10658,
834,
4978,
3274,
3,
4240,
18057,
3430,
984,
3,
2,
3155,
96,
371,
32,
122,
121,
3430,
984,
3,
2,
3155,
96,
448,
9,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What engine was in the year of 1961? | CREATE TABLE table_79883 (
"Year" real,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" text
) | SELECT "Engine" FROM table_79883 WHERE "Year" = '1961' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
4060,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
7,
121,
1499,
6,
96,
22512,
7,
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,
0,
0... | [
3,
23143,
14196,
96,
31477,
121,
21680,
953,
834,
4440,
4060,
519,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4241,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which system introduced earlier than 1981 has an internal hard disk of 11 megabytes and less than 21 s-100 slots? | CREATE TABLE table_name_47 (system VARCHAR, internal_hard_disk VARCHAR, s_100_slots VARCHAR, year_introduced VARCHAR) | SELECT system FROM table_name_47 WHERE s_100_slots < 21 AND year_introduced < 1981 AND internal_hard_disk = "11 megabytes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
3734,
584,
4280,
28027,
6,
3224,
834,
5651,
834,
26,
13690,
584,
4280,
28027,
6,
3,
7,
834,
2915,
834,
7,
3171,
7,
584,
4280,
28027,
6,
215,
834,
203... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
358,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
3,
7,
834,
2915,
834,
7,
3171,
7,
3,
2,
1401,
3430,
215,
834,
20322,
32,
12160,
26,
3,
2,
15465,
3430,
3224,
834,
5651,
834,
26,
13690,
3274,
96,
2596,
139... |
Which Against has a Position larger than 11? | CREATE TABLE table_name_32 (against VARCHAR, position INTEGER) | SELECT COUNT(against) FROM table_name_32 WHERE position > 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1102,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
20749,
65,
3,
9,
14258,
2186,
145,
850,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1102,
2490,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who wrote the episodes that were viewed by 2.12 million viewers? | CREATE TABLE table_11111116_8 (
written_by VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT written_by FROM table_11111116_8 WHERE us_viewers__million_ = "2.12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
15866,
2938,
834,
927,
41,
1545,
834,
969,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1545,
834,
969,
21680,
953,
834,
15866,
15866,
2938,
834,
927,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
14489,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who won the gold in 1958? | CREATE TABLE table_49626 (
"Year" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Host city / cities" text,
"Host country / countries" text
) | SELECT "Gold" FROM table_49626 WHERE "Year" = '1958' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4314,
2688,
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,
23576,
121,
21680,
953,
834,
591,
4314,
2688,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3449,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of inpatient hospital admission patients born before 2092. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.dob_year < "2092" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
11421,
7016,
11951,
3162,
12689,
377,
5173,
3502,
15296,
121,
3... |
What is the abbreviation for the University of Tartu? | CREATE TABLE table_name_43 (
abbr VARCHAR,
name VARCHAR
) | SELECT abbr FROM table_name_43 WHERE name = "university of tartu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
3,
12982,
52,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
703,
1999,
2099,
257,
21,
8,
636,
13,
550... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
12982,
52,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
564,
3274,
96,
7846,
485,
13,
14981,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the sum of department_id bin hire_date by weekday, and visualize them by a bar chart, and could you rank in asc by the total number? | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TI... | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(DEPARTMENT_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
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,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,... |
count the number of patients whose ethnicity is hispanic/latino - puerto rican and days of hospital stay is greater than 15? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.days_stay > "15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
7094,
21215,
18830,
87,
434,
21580,
7400,
3,
18,
3,
10744,
3316,
5... |
What is the average attendance that has june 24 as the date? | CREATE TABLE table_39166 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Time" text,
"Record" text
) | SELECT AVG("Attendance") FROM table_39166 WHERE "Date" = 'june 24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
26811,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
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... | [
3,
23143,
14196,
71,
17217,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3288,
26811,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
6959,
15,
997,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which average match has a lost greater than 0, points greater than 6, legia warszawa as the team, and a draw less than 0? | CREATE TABLE table_name_55 (
match INTEGER,
draw VARCHAR,
team VARCHAR,
lost VARCHAR,
points VARCHAR
) | SELECT AVG(match) FROM table_name_55 WHERE lost > 0 AND points > 6 AND team = "legia warszawa" AND draw < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
1588,
3,
21342,
17966,
6,
3314,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
19515,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1513,
2490,
3,
632,
3430,
979,
2490,
431,
3430,
372,
3274,
96,
8492,
9,
615,
7,
172,
7396,
121,
3430,
3314,
3,
2,
3,
632,
1,
-100,
-1... |
Name the date successor seated is south carolina 3rd | CREATE TABLE table_224837_4 (
date_successor_seated VARCHAR,
district VARCHAR
) | SELECT date_successor_seated FROM table_224837_4 WHERE district = "South Carolina 3rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3707,
4118,
834,
591,
41,
833,
834,
7,
17431,
24901,
834,
22933,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
22261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
7,
17431,
24901,
834,
22933,
21680,
953,
834,
2884,
3707,
4118,
834,
591,
549,
17444,
427,
3939,
3274,
96,
22081,
5089,
220,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many numbers were listed under losing bonus when there were 68 tries for? | CREATE TABLE table_18084 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT COUNT("Losing bonus") FROM table_18084 WHERE "Tries for" = '68' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
4608,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
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,
2847,
17161,
599,
121,
434,
32,
7,
53,
4023,
8512,
21680,
953,
834,
20829,
4608,
549,
17444,
427,
96,
382,
2593,
21,
121,
3274,
3,
31,
3651,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Get me the list of patients on an ou route of drug administration who had urgent hospital admission. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.route = "OU" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
how many patients stayed in hospital for more than 2 days and used the drug albumin 5% (12.5g/250 ml)? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "2" AND prescriptions.drug = "Albumin 5% (12.5g / 250mL)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
how many numbers did the new york knicks retire ? | CREATE TABLE table_203_348 (
id number,
"number" number,
"name" text,
"team" text,
"position" text,
"years with franchise" text,
"note" text
) | SELECT COUNT(*) FROM table_203_348 WHERE "team" = 'new york knicks' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3707,
41,
3,
23,
26,
381,
6,
96,
5525,
1152,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
1201,
7,
28,
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,
1935,
61,
21680,
953,
834,
23330,
834,
519,
3707,
549,
17444,
427,
96,
11650,
121,
3274,
3,
31,
5534,
25453,
3,
157,
11191,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the finish for patani | CREATE TABLE table_21178 (
"Cycle no." text,
"Air dates" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
) | SELECT "Finish" FROM table_21178 WHERE "Eliminated" = 'Patani' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
27640,
41,
96,
254,
63,
2482,
150,
535,
1499,
6,
96,
20162,
5128,
121,
1499,
6,
96,
1649,
2239,
121,
1499,
6,
96,
196,
635,
202,
485,
121,
1499,
6,
96,
427,
4941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
77,
1273,
121,
21680,
953,
834,
2658,
27640,
549,
17444,
427,
96,
427,
4941,
77,
920,
121,
3274,
3,
31,
345,
144,
2738,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Group Song, when Song is ? | CREATE TABLE table_name_80 (
Group VARCHAR,
song VARCHAR
) | SELECT Group AS song FROM table_name_80 WHERE song = "换季" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1531,
584,
4280,
28027,
6,
2324,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1531,
11263,
6,
116,
11263,
19,
3,
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,
1531,
6157,
2324,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
2324,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the lms number for serial number being 372 | CREATE TABLE table_73196 (
"LMS No." real,
"WD No." real,
"Builder" text,
"Serial No." real,
"Date built" real
) | SELECT "LMS No." FROM table_73196 WHERE "Serial No." = '372' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
26937,
41,
96,
11160,
134,
465,
535,
490,
6,
96,
17698,
465,
535,
490,
6,
96,
24752,
49,
121,
1499,
6,
96,
134,
15,
12042,
465,
535,
490,
6,
96,
308,
342,
1192,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11160,
134,
465,
535,
21680,
953,
834,
4552,
26937,
549,
17444,
427,
96,
134,
15,
12042,
465,
535,
3274,
3,
31,
4118,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the titles for tko 11/12 | CREATE TABLE table_24924576_2 (
titles VARCHAR,
result VARCHAR
) | SELECT titles FROM table_24924576_2 WHERE result = "TKO 11/12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4508,
2128,
3959,
834,
357,
41,
8342,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
8342,
21,
3,
17,
157,
32,
850,
18009,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8342,
21680,
953,
834,
2266,
4508,
2128,
3959,
834,
357,
549,
17444,
427,
741,
3274,
96,
382,
12725,
850,
18009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team 2 had a 1st leg of 1-1, and agg of 3-1? | CREATE TABLE table_69240 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team 2" FROM table_69240 WHERE "1st leg" = '1-1' AND "Agg." = '3-1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
11944,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
204,
121,
21680,
953,
834,
3951,
11944,
549,
17444,
427,
96,
536,
7,
17,
4553,
121,
3274,
3,
31,
536,
2292,
31,
3430,
96,
188,
4102,
535,
3274,
3,
31,
519,
2292,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Tell me the lowest interview for oklahoma and swimsuit less than 8.8 | CREATE TABLE table_name_46 (interview INTEGER, state VARCHAR, swimsuit VARCHAR) | SELECT MIN(interview) FROM table_name_46 WHERE state = "oklahoma" AND swimsuit < 8.8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
3870,
4576,
3,
21342,
17966,
6,
538,
584,
4280,
28027,
6,
9728,
7628,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
7402,
2772,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3870,
4576,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
538,
3274,
96,
32,
8142,
10207,
9,
121,
3430,
9728,
7628,
3,
2,
4848,
927,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the age groups for the Big League World Series? | CREATE TABLE table_name_26 (
age_groups VARCHAR,
competition_name VARCHAR
) | SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
1246,
834,
10739,
7,
584,
4280,
28027,
6,
2259,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1246,
1637,
21,
8,
2734,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1246,
834,
10739,
7,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
2259,
834,
4350,
3274,
96,
12911,
5533,
296,
939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who has a Date of Birth 1980-07-29? | CREATE TABLE table_58759 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
) | SELECT "Name" FROM table_58759 WHERE "Date of Birth" = '1980-07-29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4225,
3390,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
1499,
6,
96,
308,
342,
13,
26337,
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,
23954,
121,
21680,
953,
834,
755,
4225,
3390,
549,
17444,
427,
96,
308,
342,
13,
26337,
121,
3274,
3,
31,
24151,
18629,
940,
18,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Return the average price of products that have each category code in a bar chart, sort in ascending by the names. | CREATE TABLE Customers (
customer_id INTEGER,
customer_type_code VARCHAR(20),
address_line_1 VARCHAR(80),
address_line_2 VARCHAR(80),
town_city VARCHAR(80),
state VARCHAR(80),
email_address VARCHAR(255),
phone_number VARCHAR(80)
)
CREATE TABLE Complaints (
complaint_id INTEGER,
... | SELECT product_category_code, AVG(product_price) FROM Products GROUP BY product_category_code ORDER BY product_category_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
1755,
201,
1115,
834,
747,
834,
536,
584,
4280,
28027,
599,
2079,
201,
1115,
834,
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,
556,
834,
8367,
839,
651,
834,
4978,
6,
71,
17217,
599,
15892,
834,
102,
4920,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
556,
834,
8367,
839,
651,
834,
4978,
4674,
11300,
272,
476,
556,
834,
8367,
839,
651,
834,
... |
What is the km2 area for the population of 311? | CREATE TABLE table_name_46 (
area__km_2__ INTEGER,
population VARCHAR
) | SELECT AVG(area__km_2__) FROM table_name_46 WHERE population = 311 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
616,
834,
834,
5848,
834,
357,
834,
834,
3,
21342,
17966,
6,
2074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2280,
357,
616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
498,
834,
834,
5848,
834,
357,
834,
834,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
2074,
3274,
220,
2596,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
other than the s3300 , name one that has a 2.7 inch screen . | CREATE TABLE table_204_878 (
id number,
"model" text,
"release date" text,
"sensor\nres., size" text,
"lens (35 mm equiv.)\nzoom, aperture" text,
"screen\nsize, pixels" text,
"dimensions\nw (mm) \u00d7 h (mm) \u00d7 d (mm)" text,
"weight" text,
"features" text
) | SELECT "model" FROM table_204_878 WHERE "model" <> 's3300' AND "screen\nsize, pixels" = 2.7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
3940,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
21019,
833,
121,
1499,
6,
96,
26052,
2,
29,
60,
7,
5,
6,
812,
121,
1499,
6,
96,
40,
35,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21770,
121,
21680,
953,
834,
26363,
834,
927,
3940,
549,
17444,
427,
96,
21770,
121,
3,
2,
3155,
3,
31,
7,
519,
5426,
31,
3430,
96,
8527,
2,
29,
7991,
6,
15386,
121,
3274,
3,
21280,
1,
-100,
-100,
-100,
-100... |
Who had a 32-29-8 record at home? | CREATE TABLE table_51908 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Home" FROM table_51908 WHERE "Record" = '32-29-8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2294,
4018,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
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,
19040,
121,
21680,
953,
834,
755,
2294,
4018,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2668,
18,
3166,
6039,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the time from the song called Treat Me Nice? | CREATE TABLE table_name_29 (time VARCHAR, song_title VARCHAR) | SELECT time FROM table_name_29 WHERE song_title = "treat me nice" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
715,
584,
4280,
28027,
6,
2324,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
97,
45,
8,
2324,
718,
16494,
1212,
8012,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
2324,
834,
21869,
3274,
96,
929,
144,
140,
1245,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When t3 is the best finish what is the lowest amount of tournaments played? | CREATE TABLE table_24330912_1 (tournaments_played INTEGER, best_finish VARCHAR) | SELECT MIN(tournaments_played) FROM table_24330912_1 WHERE best_finish = "T3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
17225,
4729,
357,
834,
536,
41,
17,
1211,
29,
9,
4128,
834,
4895,
15,
26,
3,
21342,
17966,
6,
200,
834,
25535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17,
1211,
29,
9,
4128,
834,
4895,
15,
26,
61,
21680,
953,
834,
2266,
17225,
4729,
357,
834,
536,
549,
17444,
427,
200,
834,
25535,
3274,
96,
382,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Surface has an Opponent in the final of don mcneill, and a Year of 1940? | CREATE TABLE table_name_52 (surface VARCHAR, opponent_in_the_final VARCHAR, year VARCHAR) | SELECT surface FROM table_name_52 WHERE opponent_in_the_final = "don mcneill" AND year = 1940 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
26899,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
2029,
3,
51,
75,
29,
15,
1092,
121,
3430,
215,
3274,
15830,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which opponent has a Score of 15.4.94? | CREATE TABLE table_67051 (
"Quarter" text,
"Score" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
) | SELECT "Opponent" FROM table_67051 WHERE "Score" = '15.4.94' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3076,
536,
41,
96,
5991,
1408,
49,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
476,
2741,
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,
667,
102,
9977,
121,
21680,
953,
834,
3708,
3076,
536,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
1808,
5,
27336,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score in Tie number 16? | CREATE TABLE table_name_16 (
score VARCHAR,
tie_no VARCHAR
) | SELECT score FROM table_name_16 WHERE tie_no = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
2604,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
16,
2262,
15,
381,
898,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose lab test chart time is 2124-07-01 03:07:00? | 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 demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.charttime = "2124-07-01 03:07:00" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
On which Date was there a record of 11-8? | CREATE TABLE table_67751 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Date" FROM table_67751 WHERE "Record" = '11-8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3072,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
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... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3708,
3072,
536,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2596,
6039,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What date shows Binia Feltscher-Beeli as the runner-up skip? | CREATE TABLE table_name_68 (date VARCHAR, runner_up_skip VARCHAR) | SELECT date FROM table_name_68 WHERE runner_up_skip = "binia feltscher-beeli" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
5522,
584,
4280,
28027,
6,
3,
10806,
834,
413,
834,
4009,
102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
1267,
7617,
23,
9,
3,
171... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
3,
10806,
834,
413,
834,
4009,
102,
3274,
96,
4517,
23,
9,
1800,
11575,
18,
346,
15,
40,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the original air date for the episode with production code 1wab06? | CREATE TABLE table_20726262_2 (
originalairdate VARCHAR,
production_code VARCHAR
) | SELECT originalairdate FROM table_20726262_2 WHERE production_code = "1WAB06" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
2688,
2688,
357,
834,
357,
41,
926,
2256,
5522,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
926,
799,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
2256,
5522,
21680,
953,
834,
26426,
2688,
2688,
357,
834,
357,
549,
17444,
427,
999,
834,
4978,
3274,
96,
536,
518,
5359,
5176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Senior status has Appointed by of l. johnson category:articles with hcards, and Born/Died of 1918–2009? | CREATE TABLE table_name_7 (senior_status VARCHAR, appointed_by VARCHAR, born_died VARCHAR) | SELECT senior_status FROM table_name_7 WHERE appointed_by = "l. johnson category:articles with hcards" AND born_died = "1918–2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
7,
35,
23,
127,
834,
8547,
302,
584,
4280,
28027,
6,
7817,
834,
969,
584,
4280,
28027,
6,
2170,
834,
2498,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2991,
834,
8547,
302,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
7817,
834,
969,
3274,
96,
40,
5,
3,
27341,
739,
3295,
10,
8372,
7,
28,
3,
107,
6043,
7,
121,
3430,
2170,
834,
2498,
26,
3274,
96,
2294,
260... |
A bar chart about what are the memories and carriers of phones?, list x axis in desc order. | CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Rankin... | SELECT Carrier, AVG(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY Carrier DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
834,
8809,
41,
3611,
834,
4309,
16,
17,
6,
8924,
834,
4309,
1499,
6,
1174,
51,
834,
858,
834,
7149,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
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,
1184,
6711,
6,
71,
17217,
599,
329,
15,
2528,
63,
834,
77,
834,
517,
61,
21680,
951,
350,
4630,
6880,
272,
476,
1184,
6711,
4674,
11300,
272,
476,
1184,
6711,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who had the decision goal when the date was 1? | CREATE TABLE table_name_73 (
decision VARCHAR,
date VARCHAR
) | SELECT decision FROM table_name_73 WHERE date = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
1357,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
1357,
1288,
116,
8,
833,
47,
209,
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,
1357,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
833,
3274,
209,
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,... |
How many Goals have Games smaller than 6, and a Debut year of 1939, and Years at club of 1939, 1941? | CREATE TABLE table_name_48 (
goals VARCHAR,
years_at_club VARCHAR,
games VARCHAR,
debut_year VARCHAR
) | SELECT COUNT(goals) FROM table_name_48 WHERE games < 6 AND debut_year = 1939 AND years_at_club = "1939, 1941" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1766,
584,
4280,
28027,
6,
203,
834,
144,
834,
13442,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
6,
5695,
834,
1201,
584,
4280,
28027,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1031,
3,
2,
431,
3430,
5695,
834,
1201,
3274,
957,
3288,
3430,
203,
834,
144,
834,
13442,
3274,
96,
2294,
3288,
6,
24822,
121,
1,
... |
how many people are on the list ? | CREATE TABLE table_204_952 (
id number,
"rank" number,
"player" text,
"county" text,
"tally" text,
"total" number,
"opposition" text
) | SELECT COUNT(DISTINCT "player") FROM table_204_952 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3301,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
13362,
63,
121,
1499,
6,
96,
17,
1427,
121,
1499,
6,
96,
235,
1947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
96,
20846,
8512,
21680,
953,
834,
26363,
834,
3301,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Surface was used on 2 June 2003? | CREATE TABLE table_name_94 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_94 WHERE date = "2 june 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
26899,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
18884,
47,
261,
30,
204,
1515,
3888,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
833,
3274,
96,
357,
3,
6959,
15,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the pick # for the position de? | CREATE TABLE table_10812938_3 (
pick__number VARCHAR,
position VARCHAR
) | SELECT pick__number FROM table_10812938_3 WHERE position = "DE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
22174,
3747,
834,
519,
41,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1432,
1713,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
16169,
22174,
3747,
834,
519,
549,
17444,
427,
1102,
3274,
96,
5596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the least age for cibao central and santo domingo | CREATE TABLE table_21346767_3 (
age INTEGER,
geographical_regions VARCHAR,
hometown VARCHAR
) | SELECT MIN(age) FROM table_21346767_3 WHERE geographical_regions = "Cibao Central" AND hometown = "Santo Domingo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
3710,
3708,
3708,
834,
519,
41,
1246,
3,
21342,
17966,
6,
20187,
834,
18145,
7,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
545,
61,
21680,
953,
834,
2658,
3710,
3708,
3708,
834,
519,
549,
17444,
427,
20187,
834,
18145,
7,
3274,
96,
254,
23,
115,
9,
32,
2808,
121,
3430,
22295,
3274,
96,
134,
288,
32,
10576,
53,
32,
121,
... |
was there a administration of electrolytes performed on patient 013-33898 in their current hospital encounter? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-33898' AND patient.hospitaldischargetime IS NULL)) AND treatment.treatme... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
Who is the champion of the title previously held by Lash? | CREATE TABLE table_name_4 (
champion_s_ VARCHAR,
previous_champion_s_ VARCHAR
) | SELECT champion_s_ FROM table_name_4 WHERE previous_champion_s_ = "lash" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
6336,
834,
7,
834,
584,
4280,
28027,
6,
1767,
834,
17788,
12364,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
6336,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6336,
834,
7,
834,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
1767,
834,
17788,
12364,
834,
7,
834,
3274,
96,
8058,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the regulated retail price for the tariff code ff0 prs? | CREATE TABLE table_10408617_5 (
bts_retail_price__regulated_ VARCHAR,
tariff_code VARCHAR
) | SELECT bts_retail_price__regulated_ FROM table_10408617_5 WHERE tariff_code = "ff0 PRS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2445,
3840,
2517,
834,
755,
41,
3,
115,
17,
7,
834,
60,
5756,
834,
102,
4920,
834,
834,
12990,
834,
584,
4280,
28027,
6,
20116,
834,
4978,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
115,
17,
7,
834,
60,
5756,
834,
102,
4920,
834,
834,
12990,
834,
21680,
953,
834,
1714,
2445,
3840,
2517,
834,
755,
549,
17444,
427,
20116,
834,
4978,
3274,
96,
89,
89,
632,
6045,
134,
121,
1,
-100,
-100,
-100,... |
Which Qual 1 has a Qual 2 of 59.822? | CREATE TABLE table_65375 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
) | SELECT "Qual 1" FROM table_65375 WHERE "Qual 2" = '59.822' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
22954,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
5991,
138,
209,
121,
1499,
6,
96,
5991,
138,
204,
121,
1499,
6,
96,
17278,
121,
1499,
3,
61,
3,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5991,
138,
209,
121,
21680,
953,
834,
4122,
22954,
549,
17444,
427,
96,
5991,
138,
204,
121,
3274,
3,
31,
3390,
5,
4613,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the alternate title/translation of the series that premiered on December 12, 2006? | CREATE TABLE table_name_40 (
alternate_title_translation VARCHAR,
series_premiere VARCHAR
) | SELECT alternate_title_translation FROM table_name_40 WHERE series_premiere = "december 12, 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
13902,
834,
21869,
834,
7031,
6105,
584,
4280,
28027,
6,
939,
834,
2026,
2720,
60,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13902,
834,
21869,
834,
7031,
6105,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
939,
834,
2026,
2720,
60,
3274,
96,
221,
75,
18247,
10440,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the unemployment rate for 34024 | CREATE TABLE table_25330 (
"County" text,
"Population" real,
"Unemployment Rate" text,
"Market Income Per Capita" text,
"Poverty Rate" text,
"Status" text
) | SELECT COUNT("Unemployment Rate") FROM table_25330 WHERE "Population" = '34024' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
17225,
41,
96,
10628,
63,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
5110,
29056,
13002,
121,
1499,
6,
96,
22572,
20110,
1915,
4000,
155,
9,
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,
2847,
17161,
599,
121,
5110,
29056,
13002,
8512,
21680,
953,
834,
1828,
17225,
549,
17444,
427,
96,
27773,
7830,
121,
3274,
3,
31,
21129,
2266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many policies are listed for the customer named 'Dayana Robel'? | CREATE TABLE customers_policies (
customer_id VARCHAR
)
CREATE TABLE customers (
customer_id VARCHAR,
customer_name VARCHAR
) | SELECT COUNT(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Dayana Robel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
834,
3003,
6267,
7,
41,
884,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
584,
4280,
28027,
6,
884,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
722,
834,
3003,
6267,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
4416,
25697,
49,
834,
23,
26,
549,
1... |
Who directed episode no. 44 in the series? | CREATE TABLE table_26106 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. Code" text
) | SELECT "Directed by" FROM table_26106 WHERE "No. in series" = '44' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
16431,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23620,
15,
26,
57,
121,
21680,
953,
834,
2688,
16431,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
3628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which rank had a population of 7,069,000? | CREATE TABLE table_8794 (
"Rank" real,
"City" text,
"Population" real,
"Country" text,
"Area (km\u00b2)" real
) | SELECT COUNT("Rank") FROM table_8794 WHERE "Population" = '7,069,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4225,
4240,
41,
96,
22557,
121,
490,
6,
96,
254,
485,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
8512,
21680,
953,
834,
4225,
4240,
549,
17444,
427,
96,
27773,
7830,
121,
3274,
3,
31,
940,
6,
5176,
23938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the parties associated with the delegates from district 1 or 2 Who served as comptrollers of the parties, and count them by a bar chart, sort in descending by the y-axis. | CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
... | SELECT Comptroller, COUNT(Comptroller) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 GROUP BY Comptroller ORDER BY COUNT(Comptroller) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
834,
4309,
16,
17,
6,
2929,
490,
6,
3450,
1499,
6,
10510,
1499,
6,
30943,
834,
27304,
127,
1499,
6,
4961,
17,
4046,
49,
1499,
6,
10154,
834,
20857,
1499,
6,
837,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4961,
17,
4046,
49,
6,
2847,
17161,
599,
5890,
102,
17,
4046,
49,
61,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
3274,
332,
4416,
13725,
63,
834,
4309,
549,
17444,... |
What is the score for Fitzroy when they are the home team? | CREATE TABLE table_name_53 (
home_team VARCHAR
) | SELECT home_team AS score FROM table_name_53 WHERE home_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
9783,
172,
8170,
116,
79,
33,
8,
234,
372,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
234,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which home team has an Away of (2-1)? | CREATE TABLE table_name_17 (
home VARCHAR,
away VARCHAR
) | SELECT home FROM table_name_17 WHERE away = "(2-1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
234,
584,
4280,
28027,
6,
550,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
234,
372,
65,
46,
71,
1343,
13,
41,
17234,
61,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
550,
3274,
96,
599,
17234,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What engine has an output of ps (kw; hp) @4700 rpm? | CREATE TABLE table_name_85 (
engine VARCHAR,
output VARCHAR
) | SELECT engine FROM table_name_85 WHERE output = "ps (kw; hp) @4700 rpm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1948,
584,
4280,
28027,
6,
3911,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1948,
65,
46,
3911,
13,
3,
102,
7,
41,
157,
210,
117,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
3911,
3274,
96,
102,
7,
41,
157,
210,
117,
3,
107,
102,
61,
3320,
4177,
1206,
3,
52,
2028,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What number identifies Chris Gatling? | CREATE TABLE table_72685 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | SELECT MAX("No.") FROM table_72685 WHERE "Player" = 'Chris Gatling' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2688,
4433,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
535,
490,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
16,
14374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4168,
5,
8512,
21680,
953,
834,
940,
2688,
4433,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3541,
52,
159,
2776,
17,
697,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the names and origins of people who are not body builders. | CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
birth_date text,
birth_place text
)
CREATE TABLE body_builder (
body_builder_id number,
people_id number,
snatch number,
clean_jerk number,
total number
) | SELECT name, birth_place FROM people EXCEPT SELECT T1.name, T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
151,
834,
23,
26,
381,
6,
564,
1499,
6,
3902,
381,
6,
1293,
381,
6,
3879,
834,
5522,
1499,
6,
3879,
834,
4687,
1499,
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,
564,
6,
3879,
834,
4687,
21680,
151,
262,
4,
30416,
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5411,
20663,
834,
4687,
21680,
151,
6157,
332,
536,
3,
15355,
3162,
643,
834,
16422,
49,
6157,
332,
357,
9191,
332,
5411,... |
how many times was andorra the opponent ? | CREATE TABLE table_204_282 (
id number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text,
"#" number
) | SELECT COUNT(*) FROM table_204_282 WHERE "opponent" = 'andorra' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2577,
357,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
60,
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,
1935,
61,
21680,
953,
834,
26363,
834,
2577,
357,
549,
17444,
427,
96,
32,
102,
9977,
121,
3274,
3,
31,
232,
127,
52,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Year (Ceremony), when Director is 'Wang Siu-Di'? | CREATE TABLE table_name_66 (
year__ceremony_ VARCHAR,
director VARCHAR
) | SELECT year__ceremony_ FROM table_name_66 WHERE director = "wang siu-di" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
215,
834,
834,
2110,
15,
21208,
834,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2929,
41,
254,
49,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
834,
2110,
15,
21208,
834,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
2090,
3274,
96,
17789,
108,
76,
18,
26,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the location of the team Peter Stuyvesant International Racing? | CREATE TABLE table_name_65 (
city___state VARCHAR,
team VARCHAR
) | SELECT city___state FROM table_name_65 WHERE team = "peter stuyvesant international racing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
690,
834,
834,
834,
5540,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1128,
13,
8,
372,
2737,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
834,
834,
834,
5540,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
372,
3274,
96,
4995,
49,
21341,
63,
162,
7,
288,
1038,
8191,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What seasons in series 7 did David E. Kelley write ? | CREATE TABLE table_23279434_1 (season__number VARCHAR, written_by VARCHAR, series__number VARCHAR) | SELECT COUNT(season__number) FROM table_23279434_1 WHERE written_by = "David E. Kelley" AND series__number = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2555,
4240,
3710,
834,
536,
41,
9476,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
6,
939,
834,
834,
5525,
1152,
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,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9476,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2773,
2555,
4240,
3710,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
308,
9,
6961,
262,
5,
13329,
1306,
121,
3430,
939,
834,
834,
5525,
1152... |
provide the number of patients whose admission type is urgent and diagnoses short title is hyperacusis? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.short_title = "Hyperacusis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Return a bar chart about the distribution of ACC_Road and the amount of ACC_Road , and group by attribute ACC_Road, sort Y in asc order. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Road, COUNT(ACC_Road) FROM basketball_match GROUP BY ACC_Road ORDER BY COUNT(ACC_Road) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
2847,
17161,
599,
14775,
834,
448,
32,
9,
26,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
4674,
11300,
272,
476,
2847,
17161,
599,
147... |
WHich Position is from russia? | CREATE TABLE table_name_39 (
position VARCHAR,
nationality VARCHAR
) | SELECT position FROM table_name_39 WHERE nationality = "russia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1102,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
362,
14258,
19,
45,
3,
26165,
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,
1102,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1157,
485,
3274,
96,
26165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Stacy Lewis' place? | CREATE TABLE table_61188 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_61188 WHERE "Player" = 'stacy lewis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
25794,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
4241,
25794,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
7,
17,
4710,
90,
210,
159,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose discharge location is rehab/distinct part hosp and procedure long title is insertion of drug-eluting coronary artery stent(s)? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND procedures.long_title = "Insertion of drug-eluting coronary artery stent(s)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which event did he win with a method of submission (triangle choke) and a time of n/a? | CREATE TABLE table_name_25 (
event VARCHAR,
method VARCHAR,
res VARCHAR,
time VARCHAR
) | SELECT event FROM table_name_25 WHERE res = "win" AND time = "n/a" AND method = "submission (triangle choke)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
605,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
6,
3,
60,
7,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
3,
60,
7,
3274,
96,
3757,
121,
3430,
97,
3274,
96,
29,
87,
9,
121,
3430,
1573,
3274,
96,
7304,
5451,
41,
1788,
13247,
29787,
61,
121,
1,
-100,
-100,
-100,
... |
A bar chart for finding the number of the the date of enrollment of the 'Spanish' course, I want to show by the Y-axis from low to high. | CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Courses (
course_id INTEGER,
author_... | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "Spanish" ORDER BY COUNT(date_of_enrolment) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4375,
41,
1236,
834,
23,
26,
3,
21342,
17966,
6,
833,
834,
858,
834,
5200,
257,
309,
6048,
382,
15382,
6,
833,
834,
858,
834,
521,
4377,
834,
2152,
106,
309,
6048,
382,
15382,
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,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
35,
3491,
297,
6,
2847,
17161,
599,
5522,
834,
858,
834,
35,
3491,
297,
61,
21680,
8670,
7,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
357,
9191... |
League apps (sub) maximum? | CREATE TABLE table_1112176_1 (
league_apps__sub_ INTEGER
) | SELECT MAX(league_apps__sub_) FROM table_1112176_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
2658,
3959,
834,
536,
41,
5533,
834,
3096,
7,
834,
834,
7304,
834,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
3815,
4050,
41,
7304,
61,
2411,
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,
4800,
4,
599,
29512,
834,
3096,
7,
834,
834,
7304,
834,
61,
21680,
953,
834,
15866,
2658,
3959,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose days of hospital stay is greater than 7 and diagnoses short title is choledochlith nos w obst? | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "7" AND diagnoses.short_title = "Choledochlith NOS w obst" | [
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,
5... |
Name the singer for bruce forsyth | CREATE TABLE table_30946 (
"Episode" real,
"Broadcast date" text,
"Guest(s)" text,
"Singer(s)" text,
"Comedian" text,
"Ratings" text
) | SELECT "Singer(s)" FROM table_30946 WHERE "Guest(s)" = 'Bruce Forsyth' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4240,
948,
41,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
279,
8635,
5254,
833,
121,
1499,
6,
96,
9105,
222,
599,
7,
61,
121,
1499,
6,
96,
134,
9963,
599,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9963,
599,
7,
61,
121,
21680,
953,
834,
1458,
4240,
948,
549,
17444,
427,
96,
9105,
222,
599,
7,
61,
121,
3274,
3,
31,
9465,
565,
242,
7,
63,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the person that is part of the belgian vw club that works with fr d ric miclotte | CREATE TABLE table_28046929_2 (
driver VARCHAR,
entrant VARCHAR,
co_driver VARCHAR
) | SELECT driver FROM table_28046929_2 WHERE entrant = "Belgian VW Club" AND co_driver = "Frédéric Miclotte" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
591,
3951,
3166,
834,
357,
41,
2535,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
6,
576,
834,
13739,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2535,
21680,
953,
834,
17518,
591,
3951,
3166,
834,
357,
549,
17444,
427,
3,
295,
3569,
3274,
96,
2703,
40,
22898,
22729,
1949,
121,
3430,
576,
834,
13739,
52,
3274,
96,
371,
2339,
3764,
2234,
18000,
21538,
121,
1,
... |
What is the result on Saturday that's রবিবার robibar on Sunday | CREATE TABLE table_name_14 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR) | SELECT saturday_shani__saturn_ FROM table_name_14 WHERE sunday_surya__the_sun_ = "রবিবার robibar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
7,
6010,
1135,
834,
7,
2618,
23,
834,
834,
7,
9,
7535,
834,
584,
4280,
28027,
6,
1997,
1135,
834,
3042,
63,
9,
834,
834,
532,
834,
7,
202,
834,
584... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
7,
6010,
1135,
834,
7,
2618,
23,
834,
834,
7,
9,
7535,
834,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1997,
1135,
834,
3042,
63,
9,
834,
834,
532,
834,
7,
202,
834,
3274,
96,
2,
3,
5840,
23,
1047,
... |
What is the name of the airport in S o Filipe that has an IATA of sfl? | CREATE TABLE table_name_3 (
airportname VARCHAR,
city___town VARCHAR,
iata VARCHAR
) | SELECT airportname FROM table_name_3 WHERE city___town = "são filipe" AND iata = "sfl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
3761,
4350,
584,
4280,
28027,
6,
690,
834,
834,
834,
3540,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3761,
4350,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
690,
834,
834,
834,
3540,
3274,
96,
7,
2,
32,
361,
7446,
15,
121,
3430,
3,
17221,
3274,
96,
7,
89,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the proportion of the number of customers for each payment method code in a bar chart. | CREATE TABLE Customers (
customer_id INTEGER,
payment_method_code VARCHAR(15),
customer_number VARCHAR(20),
customer_name VARCHAR(80),
customer_address VARCHAR(255),
customer_phone VARCHAR(80),
customer_email VARCHAR(80)
)
CREATE TABLE Products (
product_id INTEGER,
product_type_cod... | SELECT payment_method_code, COUNT(payment_method_code) FROM Customers GROUP BY payment_method_code ORDER BY customer_number DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
1942,
834,
23152,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
884,
834,
5525,
1152,
584,
4280,
28027,
599,
1755,
201,
884,
834,
4350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1942,
834,
23152,
834,
4978,
6,
2847,
17161,
599,
21752,
834,
23152,
834,
4978,
61,
21680,
16423,
350,
4630,
6880,
272,
476,
1942,
834,
23152,
834,
4978,
4674,
11300,
272,
476,
884,
834,
5525,
1152,
309,
25067,
1,
-10... |
Which GP-GS had a long of 17 and a season of total? | CREATE TABLE table_name_13 (gp_gs VARCHAR, long VARCHAR, season VARCHAR) | SELECT gp_gs FROM table_name_13 WHERE long = "17" AND season = "total" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
122,
102,
834,
122,
7,
584,
4280,
28027,
6,
307,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
8049,
18,
8256... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
122,
102,
834,
122,
7,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
307,
3274,
96,
2517,
121,
3430,
774,
3274,
96,
235,
1947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what Country is Haugesund? | CREATE TABLE table_78938 (
"City" text,
"Country" text,
"Airport" text,
"IATA" text,
"ICAO" text
) | SELECT "Country" FROM table_78938 WHERE "City" = 'haugesund' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3914,
3747,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
20162,
1493,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
940,
3914,
3747,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
1024,
12972,
7,
1106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the number of laps of the grid larger than 22 with a +1:29.001 time? | CREATE TABLE table_9817 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Laps" FROM table_9817 WHERE "Grid" > '22' AND "Time" = '+1:29.001' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3916,
2517,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
121,
490,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3612,
102,
7,
121,
21680,
953,
834,
3916,
2517,
549,
17444,
427,
96,
13313,
26,
121,
2490,
3,
31,
2884,
31,
3430,
96,
13368,
121,
3274,
3,
31,
18446,
10,
3166,
5,
17465,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Which Affiliation has a Nickname of cougars? | CREATE TABLE table_name_47 (affiliation VARCHAR, nickname VARCHAR) | SELECT affiliation FROM table_name_47 WHERE nickname = "cougars" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
4127,
173,
23,
257,
584,
4280,
28027,
6,
24649,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
71,
89,
8027,
23,
257,
65,
3,
9,
7486,
4350,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24405,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
24649,
3274,
96,
3422,
1478,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which has the most land area in miles ? | CREATE TABLE table_203_510 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"population" number,
"population\ndensity\n(/mi2)" number,
"population\ndensity\n(/km2)" number,
"land area\n(mi2)" number,
"land area\n(km2)" number,
"water area\n(mi2)" number,
... | SELECT "township" FROM table_203_510 ORDER BY "land area\n(mi2)" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
25926,
41,
3,
23,
26,
381,
6,
96,
3540,
2009,
121,
1499,
6,
96,
89,
15432,
121,
381,
6,
96,
9791,
7830,
2,
29,
13866,
121,
1499,
6,
96,
9791,
7830,
121,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3540,
2009,
121,
21680,
953,
834,
23330,
834,
25926,
4674,
11300,
272,
476,
96,
40,
232,
616,
2,
29,
599,
51,
23,
7318,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the valvetrain with an engine model that is engine model? | CREATE TABLE table_76087 (
"engine model" text,
"engine displacement" text,
"valvetrain" text,
"max. power : kW ( PS )" text,
"rpm for max. power" text,
"max. torque : Nm ( ft\u00b7lbf )" text,
"rpm for max. torque" text
) | SELECT "valvetrain" FROM table_76087 WHERE "engine model" = 'engine model' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28212,
4225,
41,
96,
20165,
825,
121,
1499,
6,
96,
20165,
27780,
121,
1499,
6,
96,
2165,
162,
9719,
121,
1499,
6,
96,
9128,
5,
579,
3,
10,
3,
21729,
41,
5610,
3,
61,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2165,
162,
9719,
121,
21680,
953,
834,
28212,
4225,
549,
17444,
427,
96,
20165,
825,
121,
3274,
3,
31,
20165,
825,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the average amount of spectators when the away team scored 14.7 (91)? | CREATE TABLE table_55957 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_55957 WHERE "Away team score" = '14.7 (91)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3390,
3436,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
755,
3390,
3436,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
536,
25211,
14156,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.