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 name of the driver with a grid less than 14, laps smaller than 53 and a Time/Retired of collision, and a Constructor of ferrari? | CREATE TABLE table_name_58 (
driver VARCHAR,
constructor VARCHAR,
time_retired VARCHAR,
grid VARCHAR,
laps VARCHAR
) | SELECT driver FROM table_name_58 WHERE grid < 14 AND laps < 53 AND time_retired = "collision" AND constructor = "ferrari" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
2535,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
8634,
3,
2,
968,
3430,
14941,
7,
3,
2,
12210,
3430,
97,
834,
10682,
1271,
3274,
96,
75,
20953,
1938,
121,
3430,
6774,
127,
3274,
96,
1010,
52,
1665,
121,
1,... |
What was the player's result at the U.S. Open of the player who finished 6th at the Open Ch? | CREATE TABLE table_1506950_9 (us_open VARCHAR, open_ch VARCHAR) | SELECT us_open FROM table_1506950_9 WHERE open_ch = "6th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
3951,
1752,
834,
1298,
41,
302,
834,
8751,
584,
4280,
28027,
6,
539,
834,
524,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1959,
31,
7,
741,
44,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
178,
834,
8751,
21680,
953,
834,
12278,
3951,
1752,
834,
1298,
549,
17444,
427,
539,
834,
524,
3274,
96,
948,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What year did Lonneke Janssen win the Women's singles? | CREATE TABLE table_15774 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Year" FROM table_15774 WHERE "Women's singles" = 'lonneke janssen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27452,
4581,
41,
96,
476,
2741,
121,
1499,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,
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,
476,
2741,
121,
21680,
953,
834,
27452,
4581,
549,
17444,
427,
96,
518,
32,
904,
31,
7,
712,
7,
121,
3274,
3,
31,
40,
5993,
1050,
3,
7066,
4932,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
List the name for storms and the number of affected regions for each storm with a bar chart, and could you sort Y from high to low order? | CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
) | SELECT Name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.Storm_ID = T2.Storm_ID GROUP BY T1.Storm_ID ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5536,
41,
16133,
834,
4309,
16,
17,
6,
5570,
1499,
6,
7678,
7,
834,
6645,
1499,
6,
5370,
834,
9993,
16,
17,
6,
26135,
834,
17030,
7,
834,
23492,
490,
6,
7720,
834,
2962,
9,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
1935,
61,
21680,
5536,
6157,
332,
536,
3,
15355,
3162,
4161,
834,
18145,
6157,
332,
357,
9191,
332,
5411,
134,
17,
127,
51,
834,
4309,
3274,
332,
4416,
134,
17,
127,
51,
834,
4309,
350,
... |
Who had highest assists at the game against Houston? | CREATE TABLE table_27700530_11 (high_assists VARCHAR, team VARCHAR) | SELECT high_assists FROM table_27700530_11 WHERE team = "Houston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
9295,
26918,
834,
2596,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
2030,
13041,
44,
8,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2555,
9295,
26918,
834,
2596,
549,
17444,
427,
372,
3274,
96,
4489,
76,
4411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find all the songs whose name contains the word "the". | CREATE TABLE songs (title VARCHAR) | SELECT title FROM songs WHERE title LIKE '% the %' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3605,
41,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
66,
8,
3605,
3,
2544,
564,
2579,
8,
1448,
96,
532,
1280,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
3605,
549,
17444,
427,
2233,
8729,
9914,
3,
31,
1454,
8,
3,
1454,
31,
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 location/state of the Launceston race? | CREATE TABLE table_name_60 (location___state VARCHAR, race_title VARCHAR) | SELECT location___state FROM table_name_60 WHERE race_title = "launceston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
14836,
834,
834,
834,
5540,
584,
4280,
28027,
6,
1964,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
87,
5540,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
834,
834,
5540,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1964,
834,
21869,
3274,
96,
40,
402,
3772,
4411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If the POS is 3, what is the 08 points? | CREATE TABLE table_24708 (
"Pos" real,
"Team" text,
"07 Pts" real,
"08 Pts" real,
"09 Pts" real,
"Total Pts" real,
"Total Pld" real,
"Avg" text
) | SELECT "08 Pts" FROM table_24708 WHERE "Pos" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2518,
927,
41,
96,
345,
32,
7,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
4560,
276,
17,
7,
121,
490,
6,
96,
4018,
276,
17,
7,
121,
490,
6,
96,
4198,
276,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4018,
276,
17,
7,
121,
21680,
953,
834,
2266,
2518,
927,
549,
17444,
427,
96,
345,
32,
7,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average date of the game with the Detroit Red Wings as the opponent? | CREATE TABLE table_name_19 (
date INTEGER,
opponent VARCHAR
) | SELECT AVG(date) FROM table_name_19 WHERE opponent = "detroit red wings" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
833,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
833,
13,
8,
467,
28,
8,
11901,
1624,
15753,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
5522,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
15264,
3274,
96,
26,
15252,
155,
1131,
13943,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the least laps when the driver is rolf stommelen and the grid is more than 18? | CREATE TABLE table_name_99 (laps INTEGER, driver VARCHAR, grid VARCHAR) | SELECT MIN(laps) FROM table_name_99 WHERE driver = "rolf stommelen" AND grid > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
8478,
7,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
709,
14941,
7,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
2535,
3274,
96,
3491,
89,
3,
7,
17,
7649,
40,
35,
121,
3430,
8634,
2490,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Nationality, when Years is 1979? | CREATE TABLE table_48198 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" real,
"Position" text,
"Years" text,
"From" text
) | SELECT "Nationality" FROM table_48198 WHERE "Years" = '1979' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
24151,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
3707,
24151,
549,
17444,
427,
96,
476,
2741,
7,
121,
3274,
3,
31,
2294,
4440,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How much does Jonathan Bender weigh? | CREATE TABLE table_68995 (
"Pos." text,
"Player" text,
"Team" text,
"Height" text,
"Weight" real
) | SELECT "Weight" FROM table_68995 WHERE "Player" = 'jonathan bender' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3264,
755,
41,
96,
345,
32,
7,
535,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
490,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
1326,
2632,
121,
21680,
953,
834,
3651,
3264,
755,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
15429,
9,
6736,
17995,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the second member more recently than 1790 when John Williams is the first member? | CREATE TABLE table_name_10 (second_member VARCHAR, year VARCHAR, first_member VARCHAR) | SELECT second_member FROM table_name_10 WHERE year > 1790 AND first_member = "john williams" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
12091,
834,
12066,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
166,
834,
12066,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
511,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
511,
834,
12066,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
215,
2490,
1003,
2394,
3430,
166,
834,
12066,
3274,
96,
27341,
56,
23,
265,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the rank in the 2009 Hanoi Games? | CREATE TABLE table_10588 (
"Games" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" text,
"Rank" text
) | SELECT "Rank" FROM table_10588 WHERE "Games" = '2009 hanoi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
4060,
41,
96,
23055,
7,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
121,
1499,
6,
96,
3696,
1947,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
12869,
4060,
549,
17444,
427,
96,
23055,
7,
121,
3274,
3,
31,
16660,
4244,
5983,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 4 is the v-band what is the overall amount of ka-bands? | CREATE TABLE table_186468_1 (ka_band VARCHAR, v_band VARCHAR) | SELECT COUNT(ka_band) FROM table_186468_1 WHERE v_band = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4389,
3651,
834,
536,
41,
1258,
834,
3348,
584,
4280,
28027,
6,
3,
208,
834,
3348,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
314,
19,
8,
3,
208,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1258,
834,
3348,
61,
21680,
953,
834,
2606,
4389,
3651,
834,
536,
549,
17444,
427,
3,
208,
834,
3348,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me europe for japan of january 28, 2010 | CREATE TABLE table_name_72 (
europe VARCHAR,
japan VARCHAR
) | SELECT europe FROM table_name_72 WHERE japan = "january 28, 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
3,
28188,
584,
4280,
28027,
6,
2662,
2837,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
3,
28188,
21,
2662,
2837,
13,
3,
7066,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
28188,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
2662,
2837,
3274,
96,
7066,
76,
1208,
13719,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the placing when the jockey was Damien Oliver? | CREATE TABLE table_24915874_1 (placing VARCHAR, jockey VARCHAR) | SELECT placing FROM table_24915874_1 WHERE jockey = "Damien Oliver" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4729,
3449,
4581,
834,
536,
41,
6042,
75,
53,
584,
4280,
28027,
6,
8624,
4397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
9308,
116,
8,
8624,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9308,
21680,
953,
834,
2266,
4729,
3449,
4581,
834,
536,
549,
17444,
427,
8624,
4397,
3274,
96,
308,
3690,
35,
15865,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What country has sa/b as the notes, and a time of 5:51.30? | CREATE TABLE table_name_55 (country VARCHAR, notes VARCHAR, time VARCHAR) | SELECT country FROM table_name_55 WHERE notes = "sa/b" AND time = "5:51.30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
17529,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
3,
7,
9,
87,
115,
38,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
3358,
3274,
96,
7,
9,
87,
115,
121,
3430,
97,
3274,
96,
755,
10,
5553,
5,
1458,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the share of votes in the 2000 (2nd) election? | CREATE TABLE table_name_20 (share_of_votes VARCHAR, election VARCHAR) | SELECT share_of_votes FROM table_name_20 WHERE election = "2000 (2nd)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
12484,
834,
858,
834,
1621,
1422,
584,
4280,
28027,
6,
4356,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
698,
13,
11839,
16,
8,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
698,
834,
858,
834,
1621,
1422,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
4356,
3274,
96,
13527,
4743,
727,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest Long, when Name is Kass, Rob, and when Avg/g is less than -0.30000000000000004? | CREATE TABLE table_76634 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/g" real
) | SELECT MIN("Long") FROM table_76634 WHERE "Name" = 'kass, rob' AND "Avg/g" < '-0.30000000000000004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
3891,
591,
41,
96,
23954,
121,
1499,
6,
96,
517,
9,
77,
121,
490,
6,
96,
434,
32,
7,
7,
121,
490,
6,
96,
434,
2444,
121,
490,
6,
96,
188,
208,
122,
87,
122,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
434,
2444,
8512,
21680,
953,
834,
3959,
3891,
591,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1258,
7,
7,
6,
3,
5840,
31,
3430,
96,
188,
208,
122,
87,
122,
121,
3,
2,
3,
31,
18,
19997,
... |
Draw a bar chart for what are the different ids and names of the stations that have had more than 12 bikes available?, and order total number in ascending order please. | CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pressure_inches NUMERIC,
mean_sea_level_pressure_inches NUMERIC,
min_sea_level_pressure_inches NUMERIC,
max_visibility_miles INTEGER,
mean_visibility_miles INTEGER,
min_visibility_miles INTEGER,
max_wind_Speed_mph INTEGER,
mean_wind_speed_mph INTEGER,
max_gust_speed_mph INTEGER,
precipitation_inches INTEGER,
cloud_cover INTEGER,
events TEXT,
wind_dir_degrees INTEGER,
zip_code INTEGER
)
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
) | SELECT name, id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12 ORDER BY id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1969,
41,
833,
3,
3463,
4,
382,
6,
9858,
834,
21010,
15,
834,
89,
3,
21342,
17966,
6,
1243,
834,
21010,
15,
834,
89,
3,
21342,
17966,
6,
3519,
834,
21010,
15,
834,
89,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
3,
23,
26,
21680,
2478,
6157,
332,
536,
3,
15355,
3162,
2637,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
6682,
834,
23,
26,
549,
17444,
427,
332,
4416,
15214,
7,
834,
28843,
2490,
586,
4674,... |
What is other when no party preference is 19.1%? | CREATE TABLE table_29247 (
"City" text,
"Population" real,
"Registered voters" text,
"Democratic" text,
"Republican" text,
"D\u2013R spread" text,
"Other" text,
"No party preference" text
) | SELECT "Other" FROM table_29247 WHERE "No party preference" = '19.1%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
357,
4177,
41,
96,
254,
485,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
17748,
343,
3737,
10861,
121,
1499,
6,
96,
19679,
447,
121,
1499,
6,
96,
1649,
15727,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
189,
49,
121,
21680,
953,
834,
3166,
357,
4177,
549,
17444,
427,
96,
4168,
1088,
11633,
121,
3274,
3,
31,
2294,
5,
4704,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Time/Retired of the Newman-Haas Racing team in under 51 laps? | CREATE TABLE table_40207 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_40207 WHERE "Laps" < '51' AND "Team" = 'newman-haas racing' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
26426,
41,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
26,
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,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
2445,
26426,
549,
17444,
427,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
5553,
31,
3430,
96,
18699,
121,
3274,
3,
31,
5534,
348,
18,
1024,
9,
7,
8191,
31,
1,
-100... |
What Game had a Score of 101 92? | CREATE TABLE table_76861 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Record" text,
"Streak" text
) | SELECT AVG("Game") FROM table_76861 WHERE "Score" = '101–92' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
3840,
536,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
11500,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
8512,
21680,
953,
834,
3959,
3840,
536,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
19621,
104,
4508,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average rank for Group A athlete Yanina Karolchyk, and a result higher than 18? | CREATE TABLE table_name_59 (
rank INTEGER,
result VARCHAR,
group VARCHAR,
athlete VARCHAR
) | SELECT AVG(rank) FROM table_name_59 WHERE group = "a" AND athlete = "yanina karolchyk" AND result > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
11003,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
563,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
563,
3274,
96,
9,
121,
3430,
17893,
3274,
96,
63,
152,
77,
9,
3,
1258,
3491,
11971,
157,
121,
3430,
741,
2490,
507,
1,
-100,
-100,
-100,... |
What's the title of the episode first seen by 18.15 million people in the US? | CREATE TABLE table_22078972_2 (
title VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT title FROM table_22078972_2 WHERE us_viewers__millions_ = "18.15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4560,
3914,
5865,
834,
357,
41,
2233,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
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,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2884,
4560,
3914,
5865,
834,
357,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
2606,
5,
1808,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which settlement has the cyrillic name ? | CREATE TABLE table_2562572_30 (
settlement VARCHAR,
cyrillic_name_other_names VARCHAR
) | SELECT settlement FROM table_2562572_30 WHERE cyrillic_name_other_names = "Сигет" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
1458,
41,
7025,
584,
4280,
28027,
6,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7025,
21680,
953,
834,
19337,
1828,
5865,
834,
1458,
549,
17444,
427,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
3274,
96,
2,
2795,
2,
15042,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Event has a Round of 1, and a Record of 2–0? | CREATE TABLE table_name_70 (event VARCHAR, round VARCHAR, record VARCHAR) | SELECT event FROM table_name_70 WHERE round = "1" AND record = "2–0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
15,
2169,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
8042,
65,
3,
9,
9609,
13,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1751,
3274,
96,
536,
121,
3430,
1368,
3274,
96,
357,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the home team when Manchester City was the away team? | CREATE TABLE table_name_89 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_89 WHERE away_team = "manchester city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
116,
9145,
896,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
550,
834,
11650,
3274,
96,
348,
13263,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In 1837, who was the 2nd member who's 2nd party was conservative. | CREATE TABLE table_80140 (
"Year" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | SELECT "2nd Member" FROM table_80140 WHERE "2nd Party" = 'conservative' AND "Year" = '1837' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
22012,
41,
96,
476,
2741,
121,
1499,
6,
96,
536,
7,
17,
8541,
121,
1499,
6,
96,
536,
7,
17,
3450,
121,
1499,
6,
96,
357,
727,
8541,
121,
1499,
6,
96,
357,
727,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
357,
727,
8541,
121,
21680,
953,
834,
2079,
22012,
549,
17444,
427,
96,
357,
727,
3450,
121,
3274,
3,
31,
1018,
3473,
1528,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
2606,
4118,
31,
1,
-100,
-100,
-100,
-100,... |
Which Date of designation has a Name of kurume? | CREATE TABLE table_41580 (
"Name" text,
"Japanese" text,
"Date of designation" text,
"Date of reclassification" text,
"Region" text,
"Prefecture" text
) | SELECT "Date of designation" FROM table_41580 WHERE "Name" = 'kurume' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
1808,
2079,
41,
96,
23954,
121,
1499,
6,
96,
683,
9750,
1496,
15,
121,
1499,
6,
96,
308,
342,
13,
21767,
121,
1499,
6,
96,
308,
342,
13,
3,
60,
4057,
2420,
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,
308,
342,
13,
21767,
121,
21680,
953,
834,
591,
1808,
2079,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
10923,
440,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which incumbent was in the 24th district? | CREATE TABLE table_name_60 (
incumbent VARCHAR,
district VARCHAR
) | SELECT incumbent FROM table_name_60 WHERE district = "24th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
28406,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
28406,
47,
16,
8,
997,
189,
3939,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
28406,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
3939,
3274,
96,
2266,
189,
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 the Time when Set 3 was 25 14? | CREATE TABLE table_60574 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text,
"Report" text
) | SELECT "Time" FROM table_60574 WHERE "Set 3" = '25–14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3436,
591,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
3328,
3436,
591,
549,
17444,
427,
96,
17175,
220,
121,
3274,
3,
31,
1828,
104,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Display a bar chart for what are the names and average salaries for departments with average salary higher than 42000?, and display y axis in descending order. | CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
) | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
97,
834,
7,
3171,
41,
97,
834,
7,
3171,
834,
23,
26,
3,
4331,
4059,
10820,
6,
239,
3,
4331,
4059,
14296,
6,
456,
834,
107,
52,
206,
17552,
16426,
6,
456,
834,
1109,
206,
17552,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
102,
17,
834,
4350,
6,
71,
17217,
599,
7,
138,
1208,
61,
21680,
10617,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
4674,
11300,
272,
476,
71,
17217,
599,
7,
138,
1208,
61,
309,
25067,
1,
-100,
-100,
-... |
For demo 1.6/5, what is the title? | CREATE TABLE table_name_37 (title VARCHAR, demo VARCHAR) | SELECT title FROM table_name_37 WHERE demo = "1.6/5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
21869,
584,
4280,
28027,
6,
8698,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
8698,
3,
15062,
16936,
6,
125,
19,
8,
2233,
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,
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,
2233,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
8698,
3274,
96,
15062,
87,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What position was the player who was drafted by the Washington Capitals? | CREATE TABLE table_2850912_10 (position VARCHAR, nhl_team VARCHAR) | SELECT position FROM table_2850912_10 WHERE nhl_team = "Washington Capitals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
1752,
4729,
357,
834,
1714,
41,
4718,
584,
4280,
28027,
6,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
47,
8,
1959,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
2577,
1752,
4729,
357,
834,
1714,
549,
17444,
427,
3,
29,
107,
40,
834,
11650,
3274,
96,
518,
3198,
6029,
5826,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose admission year is less than 2111 and item id is 51001? | 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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2111" AND lab.itemid = "51001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
how many tracks on trae 's album life goes on ? | CREATE TABLE table_204_74 (
id number,
"#" number,
"title" text,
"producers" text,
"guest performers" text,
"length" text
) | SELECT COUNT("title") FROM table_204_74 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4581,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
1409,
4817,
277,
121,
1499,
6,
96,
15991,
17,
18700,
121,
1499,
6,
96,
1945... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21869,
8512,
21680,
953,
834,
26363,
834,
4581,
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 races were in the Mallala Motor Sport Park circuit? | CREATE TABLE table_70335 (
"Race" real,
"Circuit" text,
"Location / State" text,
"Date" text,
"Winner" text,
"Team" text
) | SELECT COUNT("Race") FROM table_70335 WHERE "Circuit" = 'mallala motor sport park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
519,
2469,
41,
96,
448,
3302,
121,
490,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
434,
32,
75,
257,
3,
87,
1015,
121,
1499,
6,
96,
308,
342,
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,
448,
3302,
8512,
21680,
953,
834,
2518,
519,
2469,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
1982,
521,
521,
2340,
2600,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of patients whose gender is m and diagnoses short title is hyperacusis? | 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
)
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.short_title = "Hyperacusis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
what is the last product represented in the chart ? | CREATE TABLE table_204_870 (
id number,
"product" text,
"main functionality" text,
"input format" text,
"output format" text,
"platform" text,
"license and cost" text,
"notes" text
) | SELECT "product" FROM table_204_870 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
2518,
41,
3,
23,
26,
381,
6,
96,
15892,
121,
1499,
6,
96,
7484,
6730,
121,
1499,
6,
96,
77,
2562,
1910,
121,
1499,
6,
96,
670,
2562,
1910,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15892,
121,
21680,
953,
834,
26363,
834,
927,
2518,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was supporting in the round when the gt winning car was dino crescentini? | CREATE TABLE table_28490105_1 (supporting VARCHAR, gt_winning_car VARCHAR) | SELECT supporting FROM table_28490105_1 WHERE gt_winning_car = "Dino Crescentini" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
2394,
12869,
834,
536,
41,
20390,
53,
584,
4280,
28027,
6,
3,
122,
17,
834,
8163,
834,
1720,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
3956,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3956,
21680,
953,
834,
357,
4608,
2394,
12869,
834,
536,
549,
17444,
427,
3,
122,
17,
834,
8163,
834,
1720,
3274,
96,
308,
77,
32,
31260,
77,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Object type has a Constellation of cancer? | CREATE TABLE table_name_58 (object_type VARCHAR, constellation VARCHAR) | SELECT object_type FROM table_name_58 WHERE constellation = "cancer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
30536,
834,
6137,
584,
4280,
28027,
6,
30872,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
17057,
686,
65,
3,
9,
7762,
6714,
257,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3735,
834,
6137,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
30872,
3274,
96,
1608,
2110,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What NCBI Accession Number (mRNA/Protein) has a Protein Identity of 69%? | CREATE TABLE table_name_99 (ncbi_accession_number__mrna_protein_ VARCHAR, protein_identity VARCHAR) | SELECT ncbi_accession_number__mrna_protein_ FROM table_name_99 WHERE protein_identity = "69%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
29,
75,
115,
23,
834,
9,
75,
19988,
834,
5525,
1152,
834,
834,
51,
52,
29,
9,
834,
23083,
834,
584,
4280,
28027,
6,
3619,
834,
4215,
485,
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,
3,
29,
75,
115,
23,
834,
9,
75,
19988,
834,
5525,
1152,
834,
834,
51,
52,
29,
9,
834,
23083,
834,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
3619,
834,
4215,
485,
3274,
96,
3951,
1454,
121,
1,
-100,
-100... |
What is the score for set 3 with a time at 15:04? | CREATE TABLE table_name_46 (set_3 VARCHAR, time VARCHAR) | SELECT set_3 FROM table_name_46 WHERE time = "15:04" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
2244,
834,
519,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
356,
220,
28,
3,
9,
97,
44,
627,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
356,
834,
519,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
97,
3274,
96,
1808,
10,
6348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Krypton has a Physical property of critical pressure (atm)? | CREATE TABLE table_name_36 (krypton VARCHAR, physical_property VARCHAR) | SELECT krypton FROM table_name_36 WHERE physical_property = "critical pressure (atm)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
157,
651,
11632,
584,
4280,
28027,
6,
1722,
834,
10401,
49,
17,
63,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
480,
651,
11632,
65,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
157,
651,
11632,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
1722,
834,
10401,
49,
17,
63,
3274,
96,
25863,
1666,
41,
144,
51,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Selection has a Player of jamaar taylor, and a Round larger than 6? | CREATE TABLE table_name_33 (
selection INTEGER,
player VARCHAR,
round VARCHAR
) | SELECT MIN(selection) FROM table_name_33 WHERE player = "jamaar taylor" AND round > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
1801,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
22246,
65,
3,
9,
12387,
13,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7,
15,
12252,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1959,
3274,
96,
1191,
51,
9,
291,
3,
17,
9,
63,
322,
121,
3430,
1751,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which 2007 has a Tournament of grand slam sr? | CREATE TABLE table_name_32 (tournament VARCHAR) | SELECT 2007 FROM table_name_32 WHERE tournament = "grand slam sr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4101,
65,
3,
9,
20502,
13,
1907,
3,
7,
40,
265,
3,
7,
52,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4101,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
5892,
3274,
96,
15448,
3,
7,
40,
265,
3,
7,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many people reviewed restaurant ' Vintner Grill ' in 2010 ? | CREATE TABLE review (
rid int,
business_id varchar,
user_id varchar,
rating float,
text longtext,
year int,
month varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
longitude varchar,
review_count bigint,
is_open tinyint,
rating float,
state varchar
)
CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE category (
id int,
business_id varchar,
category_name varchar
)
CREATE TABLE checkin (
cid int,
business_id varchar,
count int,
day varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE tip (
tip_id int,
business_id varchar,
text longtext,
user_id varchar,
likes int,
year int,
month varchar
) | SELECT COUNT(DISTINCT (user.name)) FROM business, review, user WHERE business.name = 'Vintner Grill' AND review.business_id = business.business_id AND review.year = 2010 AND user.user_id = review.user_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1132,
41,
5413,
16,
17,
6,
268,
834,
23,
26,
3,
4331,
4059,
6,
1139,
834,
23,
26,
3,
4331,
4059,
6,
5773,
3,
12660,
6,
1499,
307,
6327,
6,
215,
16,
17,
6,
847,
3,
4331,
4059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
41,
10041,
5,
4350,
61,
61,
21680,
268,
6,
1132,
6,
1139,
549,
17444,
427,
268,
5,
4350,
3274,
3,
31,
553,
77,
17,
687,
11004,
31,
3430,
1132,
5,
16394,
834,
23,
26,
3274,
2... |
What is the ERP W with a call sign at w261cq? | CREATE TABLE table_39394 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | SELECT "ERP W" FROM table_39394 WHERE "Call sign" = 'w261cq' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
3288,
591,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3316,
345,
549,
121,
21680,
953,
834,
3288,
3288,
591,
549,
17444,
427,
96,
254,
1748,
1320,
121,
3274,
3,
31,
210,
357,
4241,
75,
1824,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
patients admitted to the icu with a diagnosis of sepsis or septic shock, | CREATE TABLE table_train_17 (
"id" int,
"severe_sepsis" bool,
"mean_arterial_pressure_map" int,
"peripheral_vascular_disease" bool,
"septic_shock" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_17 WHERE severe_sepsis = 1 OR septic_shock = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2517,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
3258,
15,
834,
7,
15,
102,
7,
159,
121,
3,
12840,
40,
6,
96,
526,
152,
834,
1408,
15,
12042,
834,
26866,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
2517,
549,
17444,
427,
5274,
834,
7,
15,
102,
7,
159,
3274,
209,
4674,
3,
7,
14629,
834,
7,
19076,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the barrel twist for colt model mt6400 | CREATE TABLE table_12834315_4 (barrel_twist VARCHAR, colt_model_no VARCHAR) | SELECT barrel_twist FROM table_12834315_4 WHERE colt_model_no = "MT6400" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4591,
4906,
1808,
834,
591,
41,
1047,
60,
40,
834,
17,
210,
343,
584,
4280,
28027,
6,
7632,
17,
834,
21770,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10650,
834,
17,
210,
343,
21680,
953,
834,
2122,
4591,
4906,
1808,
834,
591,
549,
17444,
427,
7632,
17,
834,
21770,
834,
29,
32,
3274,
96,
7323,
4389,
1206,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the biggest number of basses suggested in either one of the references? | CREATE TABLE table_26623 (
"Reference" text,
"Author" text,
"Section Size" text,
"Violins" real,
"Violas" real,
"Celli" real,
"Basses" real
) | SELECT MAX("Basses") FROM table_26623 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
2773,
41,
96,
1649,
11788,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
134,
15,
4985,
8941,
121,
1499,
6,
96,
553,
23,
12057,
7,
121,
490,
6,
96,
553,
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,
4800,
4,
599,
121,
14885,
2260,
8512,
21680,
953,
834,
357,
3539,
2773,
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,
... |
When using a .375 Remington Ultra Magnum, what is the muzzle velocity? | CREATE TABLE table_16010376_1 (muzzle_velocity VARCHAR, cartridge VARCHAR) | SELECT muzzle_velocity FROM table_16010376_1 WHERE cartridge = ".375 Remington Ultra Magnum" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
17864,
3959,
834,
536,
41,
51,
76,
15133,
834,
162,
5133,
485,
584,
4280,
28027,
6,
16041,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
338,
3,
9,
3,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4035,
15133,
834,
162,
5133,
485,
21680,
953,
834,
19129,
17864,
3959,
834,
536,
549,
17444,
427,
16041,
3274,
96,
5,
22954,
13466,
6029,
8618,
14767,
440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won the Men's Doubles when Guo Xin won the Women's Singles? | CREATE TABLE table_17506 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT "Mens doubles" FROM table_17506 WHERE "Womens singles" = 'Guo Xin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1752,
948,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
7,
1486,
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,
1,
1... | [
3,
23143,
14196,
96,
329,
35,
7,
1486,
7,
121,
21680,
953,
834,
2517,
1752,
948,
549,
17444,
427,
96,
518,
32,
904,
7,
712,
7,
121,
3274,
3,
31,
9105,
32,
3,
4,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For a team with a goals against less than 58, a position of 10, and a points 2 more than 53, what is the average lost? | CREATE TABLE table_name_37 (
lost INTEGER,
points_2 VARCHAR,
goals_against VARCHAR,
position VARCHAR
) | SELECT AVG(lost) FROM table_name_37 WHERE goals_against < 58 AND position = 10 AND points_2 > 53 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
1513,
3,
21342,
17966,
6,
979,
834,
357,
584,
4280,
28027,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1102,
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,
71,
17217,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
3,
2,
3,
3449,
3430,
1102,
3274,
335,
3430,
979,
834,
357,
2490,
12210,
1,
-100,
-100,
-100,
-100,
-100,... |
conferences that dan weld has published in | CREATE TABLE field (
fieldid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
) | SELECT DISTINCT paper.venueid FROM author, paper, writes WHERE author.authorname = 'dan weld' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1057,
41,
1057,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11858,
41,
1040,
23,
26,
16,
17,
6,
2291,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
5,
15098,
23,
26,
21680,
2291,
6,
1040,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
3768,
62,
40,
26,
31,
3430,
11858,
5,
17415,
23,
26,
3274,
2291,
5,
17415,
23,
2... |
What is First Member, when Election is '1871 by-election'? | CREATE TABLE table_60192 (
"Election" text,
"First member" text,
"1st Party" text,
"Second member" text,
"2nd Party" text
) | SELECT "First member" FROM table_60192 WHERE "Election" = '1871 by-election' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
19978,
41,
96,
427,
12252,
121,
1499,
6,
96,
25171,
1144,
121,
1499,
6,
96,
536,
7,
17,
3450,
121,
1499,
6,
96,
134,
15,
1018,
26,
1144,
121,
1499,
6,
96,
357,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25171,
1144,
121,
21680,
953,
834,
3328,
19978,
549,
17444,
427,
96,
427,
12252,
121,
3274,
3,
31,
2606,
4450,
57,
18,
15,
12252,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the to par of player bobby nichols? | CREATE TABLE table_name_94 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_94 WHERE player = "bobby nichols" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
235,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12,
260,
13,
1959,
3,
17396,
969,
3,
2532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1959,
3274,
96,
17396,
969,
3,
2532,
2831,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Peterson Gym is in what city? | CREATE TABLE table_40694 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
) | SELECT "City" FROM table_40694 WHERE "Venue" = 'peterson gym' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3951,
591,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
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,
0... | [
3,
23143,
14196,
96,
254,
485,
121,
21680,
953,
834,
2445,
3951,
591,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
4995,
13515,
7868,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Overall went in a round larger than 7 with a pick less than 7? | CREATE TABLE table_name_39 (overall VARCHAR, round VARCHAR, pick VARCHAR) | SELECT COUNT(overall) FROM table_name_39 WHERE round > 7 AND pick < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1890,
1748,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9126,
877,
16,
3,
9,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1751,
2490,
489,
3430,
1432,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date has yani tseng as the runner (s)-up? | CREATE TABLE table_41543 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Date" FROM table_41543 WHERE "Runner(s)-up" = 'yani tseng' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
1808,
4906,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
1808,
4906,
549,
17444,
427,
96,
23572,
599,
7,
61,
18,
413,
121,
3274,
3,
31,
63,
2738,
3,
17,
7,
4606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
history of renal dysfunction that includes glomerular filtration rate < 60 ml / min, or creatinine of > 2 mg / dl. | CREATE TABLE table_dev_31 (
"id" int,
"gender" string,
"pre_dm" bool,
"hemoglobin_a1c_hba1c" float,
"renal_disease" bool,
"diabetic" string,
"fasting_blood_glucose_fbg" float,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"fasting_plasma_glucose" int,
"early_dm" bool,
"oral_glucose_tolerance_test" int,
"baseline_hemoglobin_hgb" float,
"random_plasma_glucose_concentration" int,
"body_mass_index_bmi" float,
"glycosylated_hemoglobin" float,
"NOUSE" float
) | SELECT * FROM table_dev_31 WHERE renal_disease = 1 OR (estimated_glomerular_filtration_rate_egfr < 60 OR creatinine_clearance_cl > 2) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
3341,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
2026,
834,
26,
51,
121,
3,
12840,
40,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9776,
834,
3341,
549,
17444,
427,
23328,
834,
26,
159,
14608,
3274,
209,
4674,
41,
3340,
51,
920,
834,
24422,
4885,
834,
18974,
834,
2206,
834,
15,
122,
89,
52,
3,
2,
1640,
4674,
8830,
77,
6... |
which country scored the most gold medals - iran or indonesia ? | CREATE TABLE table_204_725 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_725 WHERE "nation" IN ('iran', 'indonesia') ORDER BY "gold" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
1828,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
121,
21680,
953,
834,
26363,
834,
940,
1828,
549,
17444,
427,
96,
29,
257,
121,
3388,
41,
31,
23,
2002,
31,
6,
3,
31,
77,
2029,
15,
7,
23,
9,
31,
61,
4674,
11300,
272,
476,
96,
14910,
121,
309,
... |
What is the time for the race with the United States? | CREATE TABLE table_65514 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Time" FROM table_65514 WHERE "Country" = 'united states' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
755,
2534,
41,
96,
22557,
121,
490,
6,
96,
448,
2381,
277,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
4122,
755,
2534,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
provide the number of patients whose age is less than 61 and procedure icd9 code is 3727? | 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
)
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "61" AND procedures.icd9_code = "3727" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What visiting team played at 3com park on October 7? | CREATE TABLE table_name_49 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR) | SELECT visiting_team FROM table_name_49 WHERE stadium = "3com park" AND date = "october 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
3466,
155,
53,
834,
11650,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3644,
372,
194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3644,
834,
11650,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
14939,
3274,
96,
519,
287,
2447,
121,
3430,
833,
3274,
96,
32,
75,
235,
1152,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who's the Socialist Labor ticket with a Republican ticket of cuthbert w. pound? | CREATE TABLE table_name_49 (
socialist_labor_ticket VARCHAR,
republican_ticket VARCHAR
) | SELECT socialist_labor_ticket FROM table_name_49 WHERE republican_ticket = "cuthbert w. pound" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
23737,
834,
9456,
834,
26639,
584,
4280,
28027,
6,
20237,
152,
834,
26639,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
8,
2730,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23737,
834,
9456,
834,
26639,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
20237,
152,
834,
26639,
3274,
96,
1071,
189,
7041,
3,
210,
5,
3,
8861,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
I want to know the driver when grid is greater than 13 and laps is less than 60 with time/retired of accident | CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR) | SELECT driver FROM table_name_41 WHERE grid > 13 AND laps < 60 AND time_retired = "accident" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
13739,
52,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
14941,
7,
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,
2535,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
8634,
2490,
1179,
3430,
14941,
7,
3,
2,
1640,
3430,
97,
834,
10682,
1271,
3274,
96,
6004,
4215,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which quarry was the last to open ? | CREATE TABLE table_203_2 (
id number,
"name" text,
"mineral" text,
"opened" text,
"closed" text,
"years connected" text,
"notes" text
) | SELECT "name" FROM table_203_2 ORDER BY "opened" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
8695,
4900,
121,
1499,
6,
96,
26940,
121,
1499,
6,
96,
16221,
26,
121,
1499,
6,
96,
1201,
7,
2895,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23330,
834,
357,
4674,
11300,
272,
476,
96,
26940,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the british name when the american name is sixteenth note? | CREATE TABLE table_name_50 (british_name VARCHAR, american_name VARCHAR) | SELECT british_name FROM table_name_50 WHERE american_name = "sixteenth note" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
2160,
17,
1273,
834,
4350,
584,
4280,
28027,
6,
10211,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
3,
2160,
17,
1273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2160,
17,
1273,
834,
4350,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
10211,
834,
4350,
3274,
96,
7,
2407,
6808,
189,
2232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the date for 6–3, 6–2 | CREATE TABLE table_name_87 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_87 WHERE score = "6–3, 6–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
833,
21,
431,
104,
6355,
431,
104,
357,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
2604,
3274,
96,
948,
104,
6355,
431,
104,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Draw a bar chart for what are the name and population of each county?, and rank names in desc order. | CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
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,
First_Elected real,
Committee text
) | SELECT County_name, Population FROM county ORDER BY County_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
1334,
834,
196,
26,
16,
17,
6,
1334,
834,
4350,
1499,
6,
29659,
490,
6,
22296,
834,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1334,
834,
4350,
6,
29659,
21680,
5435,
4674,
11300,
272,
476,
1334,
834,
4350,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the number of patients whose diagnoses short title is angioneurotic edema and lab test abnormal status is abnormal? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Angioneurotic edema" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
WHICH Venue IS after 1992 with a Score of 1 0 and a Winners of us chaouia? | CREATE TABLE table_name_93 (
venue VARCHAR,
winners VARCHAR,
year VARCHAR,
score VARCHAR
) | SELECT venue FROM table_name_93 WHERE year > 1992 AND score = "1 – 0" AND winners = "us chaouia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
5669,
584,
4280,
28027,
6,
8969,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
215,
2490,
9047,
3430,
2604,
3274,
96,
536,
3,
104,
3,
632,
121,
3430,
8969,
3274,
96,
302,
3,
3441,
1063,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the first name of the author with last name 'Ueno'? | CREATE TABLE authors (
fname VARCHAR,
lname VARCHAR
) | SELECT fname FROM authors WHERE lname = "Ueno" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5921,
41,
3,
89,
4350,
584,
4280,
28027,
6,
3,
40,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
166,
564,
13,
8,
2291,
28,
336,
564,
3,
31,
1265,
35,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
89,
4350,
21680,
5921,
549,
17444,
427,
3,
40,
4350,
3274,
96,
1265,
35,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average Assists, when Games is greater than 19, and when Name is 'Pablo Prigioni'? | CREATE TABLE table_8068 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Assists" real
) | SELECT AVG("Assists") FROM table_8068 WHERE "Games" > '19' AND "Name" = 'pablo prigioni' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
3651,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
188,
7,
7,
343,
7,
121,
490,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
188,
7,
7,
343,
7,
8512,
21680,
953,
834,
2079,
3651,
549,
17444,
427,
96,
23055,
7,
121,
2490,
3,
31,
2294,
31,
3430,
96,
23954,
121,
3274,
3,
31,
102,
9,
4672,
3,
2246,
10253,
29,
23,
31... |
What day was Australia the opposing team and the against 12? | CREATE TABLE table_12964 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT "Date" FROM table_12964 WHERE "Opposing Teams" = 'australia' AND "Against" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22174,
4389,
41,
96,
667,
102,
2748,
53,
16651,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
17,
144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22174,
4389,
549,
17444,
427,
96,
667,
102,
2748,
53,
16651,
121,
3274,
3,
31,
2064,
8792,
23,
9,
31,
3430,
96,
20749,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-... |
What is the sum of Top-25 when there are more than 0 wins? | CREATE TABLE table_6866 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT SUM("Top-25") FROM table_6866 WHERE "Wins" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3539,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22481,
14855,
8512,
21680,
953,
834,
3651,
3539,
549,
17444,
427,
96,
18455,
7,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Tournament with a Score that is 2 6, 6 4, 3 6? | CREATE TABLE table_name_55 (
tournament VARCHAR,
score VARCHAR
) | SELECT tournament FROM table_name_55 WHERE score = "2–6, 6–4, 3–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
5892,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
20502,
28,
3,
9,
17763,
24,
19,
204,
8580,
431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
2604,
3274,
96,
357,
104,
11071,
431,
104,
8525,
220,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the time of the driver on grid 3? | CREATE TABLE table_78268 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_78268 WHERE "Grid" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
357,
3651,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
3940,
357,
3651,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What School or Club team has an overall score of 21? | CREATE TABLE table_name_15 (school_club_team VARCHAR, overall VARCHAR) | SELECT school_club_team FROM table_name_15 WHERE overall = 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
6646,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1121,
42,
1949,
372,
65,
46,
1879,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
834,
13442,
834,
11650,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1879,
3274,
1401,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is taipei's lowest 2010 population? | CREATE TABLE table_name_99 (
population__2010_ INTEGER,
city VARCHAR
) | SELECT MIN(population__2010_) FROM table_name_99 WHERE city = "taipei" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
2074,
834,
834,
14926,
834,
3,
21342,
17966,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
17,
9,
23,
855,
23,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9791,
7830,
834,
834,
14926,
834,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
690,
3274,
96,
17,
9,
23,
855,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What type of settlement is Jazak? | CREATE TABLE table_27893 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
) | SELECT "Type" FROM table_27893 WHERE "Settlement" = 'Jazak' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3914,
519,
41,
96,
17175,
17,
3335,
121,
1499,
6,
96,
254,
63,
52,
173,
2176,
5570,
2502,
5570,
7,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
27773,
7830,
25163,
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,
25160,
121,
21680,
953,
834,
2555,
3914,
519,
549,
17444,
427,
96,
17175,
17,
3335,
121,
3274,
3,
31,
683,
5246,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the Italian Pluperfect when the English is We Had Heard? | CREATE TABLE table_name_83 (
italian VARCHAR,
english VARCHAR
) | SELECT italian FROM table_name_83 WHERE english = "we had heard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
24168,
584,
4280,
28027,
6,
22269,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
4338,
7337,
76,
22588,
116,
8,
1566,
19,
101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24168,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
22269,
3274,
96,
1123,
141,
1943,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Hanya has an area of 19.3888? | CREATE TABLE table_44882 (
"Hanyu" text,
"Tongyong" text,
"Pe\u030dh-\u014de-j\u012b" text,
"Chinese" text,
"Area (km\u00b2)" real,
"No. of villages" real,
"Population (2010)" real
) | SELECT "Hanyu" FROM table_44882 WHERE "Area (km\u00b2)" = '19.3888' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
4060,
357,
41,
96,
566,
6820,
76,
121,
1499,
6,
96,
382,
2444,
63,
2444,
121,
1499,
6,
96,
345,
15,
2,
76,
632,
1458,
26,
107,
18,
2,
76,
632,
2534,
221,
18,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
566,
6820,
76,
121,
21680,
953,
834,
3628,
4060,
357,
549,
17444,
427,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
3274,
3,
31,
2294,
5,
519,
10927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what time does the train that arrives in lonavla at 22:22 depart pune | CREATE TABLE table_29301050_1 (departure_pune VARCHAR, arrival_lonavla VARCHAR) | SELECT departure_pune FROM table_29301050_1 WHERE arrival_lonavla = "22:22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
1458,
1714,
1752,
834,
536,
41,
221,
2274,
1462,
834,
6225,
15,
584,
4280,
28027,
6,
6870,
834,
40,
32,
14128,
521,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
12028,
834,
6225,
15,
21680,
953,
834,
3166,
1458,
1714,
1752,
834,
536,
549,
17444,
427,
6870,
834,
40,
32,
14128,
521,
3274,
96,
2884,
10,
2884,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the game with record 20 23 and how many people attended it | CREATE TABLE table_21229 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_21229 WHERE "Record" = '20–23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
3166,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
24837,
3166,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1755,
104,
2773,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the college/junior/club team (league) of lw position player mark miller, from a round greater than 4? | CREATE TABLE table_name_7 (
college_junior_club_team__league_ VARCHAR,
player VARCHAR,
round VARCHAR,
position VARCHAR
) | SELECT college_junior_club_team__league_ FROM table_name_7 WHERE round > 4 AND position = "lw" AND player = "mark miller" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1751,
2490,
314,
3430,
1102,
3274,
96,
40,
210,
121,
3430,
1959,
3274,
96,
3920,
3293,
49,
12... |
What is the circuit of round 5? | CREATE TABLE table_24732149_2 (circuit VARCHAR, round VARCHAR) | SELECT circuit FROM table_24732149_2 WHERE round = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4552,
2658,
3647,
834,
357,
41,
15357,
21560,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4558,
13,
1751,
305,
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,
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,
4558,
21680,
953,
834,
2266,
4552,
2658,
3647,
834,
357,
549,
17444,
427,
1751,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the smallest width for a frame size of 5k and a height shorter than 2700? | CREATE TABLE table_name_18 (
width INTEGER,
frame_size VARCHAR,
height VARCHAR
) | SELECT MIN(width) FROM table_name_18 WHERE frame_size = "5k" AND height < 2700 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
9400,
3,
21342,
17966,
6,
2835,
834,
7991,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
940... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12018,
189,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
2835,
834,
7991,
3274,
96,
755,
157,
121,
3430,
3902,
3,
2,
204,
9295,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Three Men and a Little Lady from Touchstone Pictures was from what year? | CREATE TABLE table_name_12 (year VARCHAR, distributor_s_ VARCHAR, title VARCHAR) | SELECT year FROM table_name_12 WHERE distributor_s_ = "touchstone pictures" AND title = "three men and a little lady" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
1201,
584,
4280,
28027,
6,
13473,
834,
7,
834,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5245,
3137,
11,
3,
9,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
13473,
834,
7,
834,
3274,
96,
17681,
3009,
1933,
121,
3430,
2233,
3274,
96,
21182,
1076,
11,
3,
9,
385,
9360,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Heat of the 34 Rank swimmer with a Time of 49.49 or less? | CREATE TABLE table_13506 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
) | SELECT AVG("Heat") FROM table_13506 WHERE "Rank" = '34' AND "Time" < '49.49' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
1752,
948,
41,
96,
22557,
121,
490,
6,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
144,
8512,
21680,
953,
834,
2368,
1752,
948,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
3710,
31,
3430,
96,
13368,
121,
3,
2,
3,
31,
3647,
5,
3647,
31,
1,
-100,
-100,
-100,
-100,
-1... |
what is the consistency & participation when pareto efficiency is yes and condorcet is no? | CREATE TABLE table_name_83 (
consistency_ VARCHAR,
_participation VARCHAR,
pareto_efficiency VARCHAR,
condorcet VARCHAR
) | SELECT consistency_ & _participation FROM table_name_83 WHERE pareto_efficiency = "yes" AND condorcet = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
12866,
834,
584,
4280,
28027,
6,
3,
834,
2274,
23,
3389,
257,
584,
4280,
28027,
6,
5448,
235,
834,
31640,
584,
4280,
28027,
6,
9681,
52,
9113,
584,
428... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12866,
834,
3,
184,
3,
834,
2274,
23,
3389,
257,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
5448,
235,
834,
31640,
3274,
96,
10070,
121,
3430,
9681,
52,
9113,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100,
-1... |
Which Attendance has an Opponent of new york giants, and a Week smaller than 5? | CREATE TABLE table_name_88 (attendance INTEGER, opponent VARCHAR, week VARCHAR) | SELECT AVG(attendance) FROM table_name_88 WHERE opponent = "new york giants" AND week < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
15116,
663,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
22497,
663,
65,
46,
4495,
997... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
15264,
3274,
96,
5534,
25453,
6079,
7,
121,
3430,
471,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
for the other of soun, what's the khmer? | CREATE TABLE table_71116 (
"Value" real,
"Khmer" real,
"Word Form" text,
"UNGEGN" text,
"ALA-LC" text,
"Other" text
) | SELECT "Khmer" FROM table_71116 WHERE "Other" = 'soun' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
20159,
41,
96,
18392,
76,
15,
121,
490,
6,
96,
439,
107,
935,
121,
490,
6,
96,
518,
127,
26,
3025,
121,
1499,
6,
96,
25158,
8579,
567,
121,
1499,
6,
96,
23634,
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,
96,
439,
107,
935,
121,
21680,
953,
834,
4450,
20159,
549,
17444,
427,
96,
667,
189,
49,
121,
3274,
3,
31,
7,
32,
202,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which women's doubles had the accompanying Men's singles player Ville L ng? | CREATE TABLE table_57127 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Women's doubles" FROM table_57127 WHERE "Men's singles" = 'ville lång' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
22367,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,
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,
518,
32,
904,
31,
7,
1486,
7,
121,
21680,
953,
834,
3436,
22367,
549,
17444,
427,
96,
329,
35,
31,
7,
712,
7,
121,
3274,
3,
31,
1420,
3,
40,
2,
1725,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A bar chart about how many hosts does each nationality have? List the nationality and the count, show in descending by the y axis please. | CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
) | SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
834,
4309,
16,
17,
6,
3450,
834,
634,
526,
1499,
6,
10450,
1499,
6,
1485,
834,
1201,
1499,
6,
2506,
834,
1201,
1499,
6,
7720,
834,
858,
834,
12675,
7,
16,
17,
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,
868,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
2290,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the regular season winner of the 1999 Big Sky Men's Basketball Tournament was the conference tournament? | CREATE TABLE table_30980 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
) | SELECT "Regular Season Winner" FROM table_30980 WHERE "Conference Tournament" = '1999 Big Sky Men''s Basketball Tournament' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
3916,
632,
41,
96,
4302,
11788,
121,
1499,
6,
96,
17748,
4885,
7960,
18125,
121,
1499,
6,
96,
4302,
11788,
12387,
13,
8,
2929,
121,
1499,
6,
96,
4302,
11788,
20502,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17748,
4885,
7960,
18125,
121,
21680,
953,
834,
1458,
3916,
632,
549,
17444,
427,
96,
4302,
11788,
20502,
121,
3274,
3,
31,
2294,
3264,
2734,
5643,
3137,
31,
31,
7,
21249,
20502,
31,
1,
-100,
-100,
-100,
-100,
-... |
Which platform has an Actual version of 0.147? | CREATE TABLE table_55130 (
"Name" text,
"Actual version" text,
"System" text,
"Platform" text,
"License" text
) | SELECT "Platform" FROM table_55130 WHERE "Actual version" = '0.147' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
21448,
41,
96,
23954,
121,
1499,
6,
96,
23312,
3471,
988,
121,
1499,
6,
96,
14342,
121,
1499,
6,
96,
10146,
2032,
121,
1499,
6,
96,
434,
447,
5167,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
10146,
2032,
121,
21680,
953,
834,
3769,
21448,
549,
17444,
427,
96,
23312,
3471,
988,
121,
3274,
3,
31,
16029,
4177,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.