NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who were the opposition in the quarter-final? | CREATE TABLE table_name_50 (opposition VARCHAR, round VARCHAR) | SELECT opposition FROM table_name_50 WHERE round = "quarter-final" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
29585,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
8263,
16,
8,
2893,
18,
12406,
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,
8263,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1751,
3274,
96,
19973,
18,
12406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the enrollment for Kendallville? | CREATE TABLE table_name_73 (enrollment INTEGER, location VARCHAR) | SELECT MAX(enrollment) FROM table_name_73 WHERE location = "kendallville" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
35,
4046,
297,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
17938,
21,
31842,
1420,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
35,
4046,
297,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1128,
3274,
96,
2217,
26,
1748,
1420,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many leagues are there in England? | CREATE TABLE Country (
id VARCHAR,
name VARCHAR
)
CREATE TABLE League (
country_id VARCHAR
) | SELECT COUNT(*) FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id WHERE T1.name = "England" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6993,
41,
3,
23,
26,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3815,
41,
684,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
6993,
6157,
332,
536,
3,
15355,
3162,
3815,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
17529,
834,
23,
26,
549,
17444,
427,
332,
5411,
4350,
3274,
96,
8532,
7002,
72... |
What is the total enrollment for the school in garden city, new york? | CREATE TABLE table_2106 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real,
"Division" text
) | SELECT "Enrollment" FROM table_2106 WHERE "Location" = 'Garden City, New York' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
16431,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8532,
4046,
297,
121,
21680,
953,
834,
357,
16431,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
21846,
537,
896,
6,
368,
1060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When conjunction junction is the episode title and the music is by bob dorough who is the performer? | CREATE TABLE table_191105_2 (
performed_by VARCHAR,
music_by VARCHAR,
episode_title VARCHAR
) | SELECT performed_by FROM table_191105_2 WHERE music_by = "Bob Dorough" AND episode_title = "Conjunction Junction" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
536,
12869,
834,
357,
41,
3032,
834,
969,
584,
4280,
28027,
6,
723,
834,
969,
584,
4280,
28027,
6,
5640,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3032,
834,
969,
21680,
953,
834,
2294,
536,
12869,
834,
357,
549,
17444,
427,
723,
834,
969,
3274,
96,
279,
32,
115,
531,
13245,
121,
3430,
5640,
834,
21869,
3274,
96,
4302,
6959,
4985,
29092,
121,
1,
-100,
-100,
-1... |
Which builder completed after 1889? | CREATE TABLE table_75740 (
"Name" text,
"Builder" text,
"Laid down" text,
"Launched" text,
"Completed" real
) | SELECT "Builder" FROM table_75740 WHERE "Completed" > '1889' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
940,
2445,
41,
96,
23954,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
434,
6146,
323,
121,
1499,
6,
96,
3612,
202,
4513,
121,
1499,
6,
96,
5890,
29014,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
24752,
49,
121,
21680,
953,
834,
3072,
940,
2445,
549,
17444,
427,
96,
5890,
29014,
26,
121,
2490,
3,
31,
2606,
3914,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the total number of Round in liverpool , england? | CREATE TABLE table_name_73 (
round VARCHAR,
location VARCHAR
) | SELECT COUNT(round) FROM table_name_73 WHERE location = "liverpool , england" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
1751,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
9609,
16,
11501,
13194,
3,
6,
3,
4606,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1128,
3274,
96,
7591,
52,
13194,
3,
6,
3,
4606,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many customers using email as the contact channel? Group by customer name and bin active date by year in a stacked bar chart, and show total number in descending order. | CREATE TABLE Customer_Contact_Channels (
customer_id INTEGER,
channel_code VARCHAR(15),
active_from_date DATETIME,
active_to_date DATETIME,
contact_number VARCHAR(50)
)
CREATE TABLE Addresses (
address_id INTEGER,
address_content VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(2... | SELECT active_from_date, COUNT(active_from_date) FROM Customers AS t1 JOIN Customer_Contact_Channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' GROUP BY customer_name ORDER BY COUNT(active_from_date) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
31691,
834,
3541,
4515,
40,
7,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
4245,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
1676,
834,
7152,
834,
5522,
309,
6048,
382,
153... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1676,
834,
7152,
834,
5522,
6,
2847,
17161,
599,
6645,
834,
7152,
834,
5522,
61,
21680,
16423,
6157,
3,
17,
536,
3,
15355,
3162,
7327,
834,
31691,
834,
3541,
4515,
40,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697... |
What is the winning score where the runner-up is Robert-Jan Derksen and the margin of victory is 1 stroke? | CREATE TABLE table_name_27 (
winning_score VARCHAR,
margin_of_victory VARCHAR,
runner_s__up VARCHAR
) | SELECT winning_score FROM table_name_27 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "robert-jan derksen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
3447,
834,
7,
9022,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3447,
834,
7,
9022,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
536,
9529,
121,
3430,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
5840,
49,
17,
18,
7066,
74,
157,
... |
What is the most recent year for an album listed with a piano credited? | CREATE TABLE table_name_4 (
year INTEGER,
credit VARCHAR
) | SELECT MAX(year) FROM table_name_4 WHERE credit = "piano" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
215,
3,
21342,
17966,
6,
998,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
1100,
215,
21,
46,
2306,
2616,
28,
3,
9,
8355,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
998,
3274,
96,
21851,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the cargo tonnes when the international (non-CIS) is 297 421? | CREATE TABLE table_name_90 (
cargo__tonnes_ VARCHAR,
international__non_cis_ VARCHAR
) | SELECT cargo__tonnes_ FROM table_name_90 WHERE international__non_cis_ = "297 421" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
15470,
834,
834,
17,
5993,
7,
834,
584,
4280,
28027,
6,
1038,
834,
834,
29,
106,
834,
75,
159,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15470,
834,
834,
17,
5993,
7,
834,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1038,
834,
834,
29,
106,
834,
75,
159,
834,
3274,
96,
357,
4327,
314,
2658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the difference in the first and second leg for belgium ? | CREATE TABLE table_203_526 (
id number,
"team 1" text,
"agg." text,
"team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT (SELECT "1st leg" FROM table_203_526 WHERE "team 2" = 'belgium') - (SELECT "2nd leg" FROM table_203_526 WHERE "team 2" = 'belgium') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
2688,
41,
3,
23,
26,
381,
6,
96,
11650,
209,
121,
1499,
6,
96,
9,
4102,
535,
1499,
6,
96,
11650,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
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,
41,
23143,
14196,
96,
536,
7,
17,
4553,
121,
21680,
953,
834,
23330,
834,
755,
2688,
549,
17444,
427,
96,
11650,
204,
121,
3274,
3,
31,
2370,
122,
2552,
31,
61,
3,
18,
41,
23143,
14196,
96,
357,
727,
4553,
121,
... |
List the titles of all items in alphabetic order . | CREATE TABLE item (
title VARCHAR
) | SELECT title FROM item ORDER BY title | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2118,
41,
2233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
8342,
13,
66,
1173,
16,
20688,
447,
455,
3,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2118,
4674,
11300,
272,
476,
2233,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did Julie gets Validated originally air? | CREATE TABLE table_name_84 (original_air_date VARCHAR, title VARCHAR) | SELECT original_air_date FROM table_name_84 WHERE title = "julie gets validated" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
12983,
2347,
23545,
920,
5330,
799,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
2233,
3274,
96,
2047,
1896,
2347,
16742,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total number of bronze medals for teams with less than 0 silver? | CREATE TABLE table_61258 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT COUNT("Bronze") FROM table_61258 WHERE "Silver" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
357,
3449,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22780,
29,
776,
8512,
21680,
953,
834,
4241,
357,
3449,
549,
17444,
427,
96,
134,
173,
624,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the lowest number of 2008 total bearers with a rank less than 13 and the Surname Jansson? | CREATE TABLE table_name_13 (number_of_bearers_2008 INTEGER, surname VARCHAR, rank VARCHAR) | SELECT MIN(number_of_bearers_2008) FROM table_name_13 WHERE surname = "jansson" AND rank < 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
5525,
1152,
834,
858,
834,
346,
291,
277,
834,
16128,
3,
21342,
17966,
6,
244,
4350,
584,
4280,
28027,
6,
11003,
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,
3,
17684,
599,
5525,
1152,
834,
858,
834,
346,
291,
277,
834,
16128,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
244,
4350,
3274,
96,
7066,
7,
739,
121,
3430,
11003,
3,
2,
1179,
1,
-100,
-100,
-100,
-10... |
Who's the Republican ticket with a Communist ticket of elizabeth gurley flynn? | CREATE TABLE table_name_32 (
republican_ticket VARCHAR,
communist_ticket VARCHAR
) | SELECT republican_ticket FROM table_name_32 WHERE communist_ticket = "elizabeth gurley flynn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
20237,
152,
834,
26639,
584,
4280,
28027,
6,
6639,
343,
834,
26639,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
8,
8994,
4142,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20237,
152,
834,
26639,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
6639,
343,
834,
26639,
3274,
96,
15,
13287,
9,
346,
189,
3,
7840,
1306,
3971,
29,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Compute the total how many city across city as a pie chart. | CREATE TABLE membership_register_branch (
Member_ID int,
Branch_ID text,
Register_Year text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,
Year text,
Total_pounds real
)
CREATE TABLE member (
Member_ID int,
Card_Number text,
Name text,
Hometown text,
Level int... | SELECT City, COUNT(City) FROM branch GROUP BY City | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4757,
834,
22149,
834,
1939,
5457,
41,
8541,
834,
4309,
16,
17,
6,
14009,
834,
4309,
1499,
6,
12306,
834,
476,
2741,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
896,
6,
2847,
17161,
599,
254,
485,
61,
21680,
6421,
350,
4630,
6880,
272,
476,
896,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the pick when the overall is less than 297 and the college is alabama? | CREATE TABLE table_name_16 (pick VARCHAR, overall VARCHAR, college VARCHAR) | SELECT pick FROM table_name_16 WHERE overall < 297 AND college = "alabama" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
17967,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1432,
116,
8,
1879,
19,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1879,
3,
2,
204,
4327,
3430,
1900,
3274,
96,
9,
9339,
265,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the max irish points for eastern michigan | CREATE TABLE table_22875369_3 (irish_points INTEGER, opponent VARCHAR) | SELECT MAX(irish_points) FROM table_22875369_3 WHERE opponent = "Eastern Michigan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4225,
4867,
3951,
834,
519,
41,
24804,
107,
834,
2700,
7,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
9858,
3,
24804,
107,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
24804,
107,
834,
2700,
7,
61,
21680,
953,
834,
2884,
4225,
4867,
3951,
834,
519,
549,
17444,
427,
15264,
3274,
96,
427,
9,
13072,
5847,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Please give me a pie chart to show the number of home cities of all drivers | CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type text
)
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Ag... | SELECT Home_city, COUNT(Home_city) FROM driver GROUP BY Home_city | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
834,
3465,
41,
1121,
834,
4309,
16,
17,
6,
10546,
834,
4309,
16,
17,
6,
13825,
834,
12492,
53,
16,
17,
6,
156,
834,
1329,
40,
834,
715,
3,
12840,
40,
3,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1210,
834,
6726,
6,
2847,
17161,
599,
19040,
834,
6726,
61,
21680,
2535,
350,
4630,
6880,
272,
476,
1210,
834,
6726,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What school is in Jeromesville? | CREATE TABLE table_27223 (
"School" text,
"Nickname" text,
"Location" text,
"Colors" text,
"Type" text,
"Membership Tenure" text,
"Notes" text
) | SELECT "Location" FROM table_27223 WHERE "School" = 'Jeromesville' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
357,
2773,
41,
96,
29364,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
3881,
322,
7,
121,
1499,
6,
96,
25160,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
2555,
357,
2773,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
7851,
11956,
9727,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53? | CREATE TABLE table_22385461_8 (
spacewalkers VARCHAR,
end__utc_ VARCHAR
) | SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "October 30, 2007 15:53" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3747,
5062,
4241,
834,
927,
41,
628,
24063,
7,
584,
4280,
28027,
6,
414,
834,
834,
76,
17,
75,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
628,
24063,
7,
21680,
953,
834,
2884,
3747,
5062,
4241,
834,
927,
549,
17444,
427,
414,
834,
834,
76,
17,
75,
834,
3274,
96,
28680,
11558,
4101,
627,
10,
4867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score for Lucas Glover of the United States? | CREATE TABLE table_name_31 (
score VARCHAR,
country VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_31 WHERE country = "united states" AND player = "lucas glover" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
2604,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
18831,
9840,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
11525,
9,
7,
27230,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What were the results of the event where $817,781 was awarded to less than 1,236 entrants? | CREATE TABLE table_38766 (
"Entrants" real,
"Winner" text,
"Prize" text,
"Runner-up" text,
"Results" text
) | SELECT "Results" FROM table_38766 WHERE "Entrants" < '1,236' AND "Prize" = '$817,781' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4225,
3539,
41,
96,
16924,
3569,
7,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
7855,
776,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
20119,
7,
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,
20119,
7,
121,
21680,
953,
834,
519,
4225,
3539,
549,
17444,
427,
96,
16924,
3569,
7,
121,
3,
2,
3,
31,
4347,
357,
3420,
31,
3430,
96,
7855,
776,
121,
3274,
3,
31,
3229,
927,
2517,
6,
3940,
536,
31,
1,
-10... |
how many patients whose marital status is married and item id is 50820? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.itemid = "50820" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals? | CREATE TABLE table_47550 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Total") FROM table_47550 WHERE "Bronze" = '4' AND "Silver" > '2' AND "Gold" < '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
17147,
41,
96,
22557,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
4177,
17147,
549,
17444,
427,
96,
22780,
29,
776,
121,
3274,
3,
31,
591,
31,
3430,
96,
134,
173,
624,
121,
2490,
3,
31,
357,
31,
3430,
96,
23576,
121,
3,
2... |
What is the time in Baltimore? | CREATE TABLE table_48680 (
"Date" text,
"Time" text,
"Opponent" text,
"Score" text,
"Site" text,
"City" text
) | SELECT "Time" FROM table_48680 WHERE "City" = 'baltimore' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3840,
2079,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
591,
3840,
2079,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
3849,
17,
23,
3706,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Ken Watanabe film as nominated? | CREATE TABLE table_name_96 (
film VARCHAR,
status VARCHAR,
name VARCHAR
) | SELECT film FROM table_name_96 WHERE status = "nominated" AND name = "ken watanabe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
814,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5704,
3129,
17,
152,
9,
346,
814... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
814,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2637,
3274,
96,
3114,
77,
920,
121,
3430,
564,
3274,
96,
2217,
8036,
17,
152,
9,
346,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the name of the away team that scored 15.9 (99)? | CREATE TABLE table_56568 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_56568 WHERE "Away team score" = '15.9 (99)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4122,
3651,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
755,
4122,
3651,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
1808,
5,
1298,
41,
3264,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many people are listed for high rebounds on game 30? | CREATE TABLE table_27723228_8 (high_rebounds VARCHAR, game VARCHAR) | SELECT COUNT(high_rebounds) FROM table_27723228_8 WHERE game = 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
5865,
2668,
2577,
834,
927,
41,
6739,
834,
23768,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
33,
2616,
21,
306,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6739,
834,
23768,
61,
21680,
953,
834,
2555,
5865,
2668,
2577,
834,
927,
549,
17444,
427,
467,
3274,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2nd leg score for the match with a team 2 of Werder Bremen? | CREATE TABLE table_name_48 (team_2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_48 WHERE team_2 = "werder bremen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
11650,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
204,
727,
4553,
2604,
21,
8,
1588,
28,
3,
9,
372,
204,
13,
4444,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
204,
6157,
3,
727,
834,
5772,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
372,
834,
357,
3274,
96,
3321,
588,
3,
1999,
904,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Compare the frequency of product names using a bar chart, and display in desc by the X-axis. | CREATE TABLE Addresses (
address_id INTEGER,
line_1_number_building VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50)
)
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_date DATETIME,
order_... | SELECT product_name, COUNT(product_name) FROM Products GROUP BY product_name ORDER BY product_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
13246,
15,
7,
41,
1115,
834,
23,
26,
3,
21342,
17966,
6,
689,
834,
536,
834,
5525,
1152,
834,
10905,
584,
4280,
28027,
599,
2079,
201,
690,
584,
4280,
28027,
599,
1752,
201,
10658,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
556,
834,
4350,
6,
2847,
17161,
599,
15892,
834,
4350,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
556,
834,
4350,
4674,
11300,
272,
476,
556,
834,
4350,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the age and gender of Cynthia Gomez? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT demographic.age, demographic.gender FROM demographic WHERE demographic.name = "Cynthia Gomez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
545,
6,
14798,
5,
122,
3868,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
254,
63,
29,
7436,
9,
1263,
51,
457,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the first mayor of austevoll ? | CREATE TABLE table_201_10 (
id number,
"#" number,
"name" text,
"office" text,
"political party" text,
"occupation" text
) | SELECT "name" FROM table_201_10 ORDER BY "office" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22772,
834,
1714,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
19632,
121,
1499,
6,
96,
3003,
17,
1950,
1088,
121,
1499,
6,
96,
24911,
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,
4350,
121,
21680,
953,
834,
22772,
834,
1714,
4674,
11300,
272,
476,
96,
19632,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many lost stats have a played number of less than 8? | CREATE TABLE table_7371 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT COUNT("Lost") FROM table_7371 WHERE "Played" < '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
4450,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
434,
3481,
8512,
21680,
953,
834,
4552,
4450,
549,
17444,
427,
96,
15800,
15,
26,
121,
3,
2,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the team when the score is 88 86? | CREATE TABLE table_17285 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_17285 WHERE "Score" = '88–86' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
4433,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
27156,
4433,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
4060,
104,
3840,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Host of the Show with a Market of New York? | CREATE TABLE table_name_78 (
host_s_ VARCHAR,
market VARCHAR
) | SELECT host_s_ FROM table_name_78 WHERE market = "new york" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
2290,
834,
7,
834,
584,
4280,
28027,
6,
512,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1546,
7,
17,
13,
8,
3111,
28,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2290,
834,
7,
834,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
512,
3274,
96,
5534,
25453,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who wrote the episode that 2.93 million viewers? | CREATE TABLE table_28019988_2 (
written_by VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT written_by FROM table_28019988_2 WHERE us_viewers__million_ = "2.93" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
19479,
4060,
834,
357,
41,
1545,
834,
969,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
17518,
19479,
4060,
834,
357,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
4416,
4271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many married patients had the procedure long title percutaneous abdominal drainage? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.long_title = "Percutaneous abdominal drainage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Total has a Rank of 17, and a Gold larger than 0? | CREATE TABLE table_name_59 (
total INTEGER,
rank VARCHAR,
gold VARCHAR
) | SELECT AVG(total) FROM table_name_59 WHERE rank = "17" AND gold > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
792,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9273,
65,
3,
9,
3,
22557,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
11003,
3274,
96,
2517,
121,
3430,
2045,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the D 42 with D 43 of d 14 | CREATE TABLE table_name_7 (
d_42 VARCHAR,
d_43 VARCHAR
) | SELECT d_42 FROM table_name_7 WHERE d_43 = "d 14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
3,
26,
834,
4165,
584,
4280,
28027,
6,
3,
26,
834,
4906,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
309,
6426,
28,
309,
8838,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
26,
834,
4165,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
3,
26,
834,
4906,
3274,
96,
26,
968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose diagnoses icd9 code is 44020 and lab test category is hematology? | 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,... | 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.icd9_code = "44020" AND lab."CATEGORY" = "Hematology" | [
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... |
provide the number of patients whose primary disease is abdominal pain and age is less than 67? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ABDOMINAL PAIN" AND demographic.age < "67" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
5359,
27415,
21116,
434,
276,
13570,
121,
3430,
14798,
5,
545,
3,
2,
... |
What year did the United States win with a total of 278? | CREATE TABLE table_name_4 (year_s__won VARCHAR, country VARCHAR, total VARCHAR) | SELECT year_s__won FROM table_name_4 WHERE country = "united states" AND total = 278 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
1201,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
7,
834,
834,
210,
106,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
792,
3274,
204,
3940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the home team when Carlton was the away team? | CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_59 WHERE away_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
234,
372,
116,
3,
30339,
47,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3390,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the id, country, city and name of the airports ordered alphabetically by the name. | CREATE TABLE flight (
id number,
vehicle_flight_number text,
date text,
pilot text,
velocity number,
altitude number,
airport_id number,
company_id number
)
CREATE TABLE airport (
id number,
city text,
country text,
iata text,
icao text,
name text
)
CREATE TABLE... | SELECT id, country, city, name FROM airport ORDER BY name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
3,
23,
26,
381,
6,
1689,
834,
89,
2242,
834,
5525,
1152,
1499,
6,
833,
1499,
6,
4487,
1499,
6,
22924,
381,
6,
491,
6592,
381,
6,
3761,
834,
23,
26,
381,
6,
349,
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,
3,
23,
26,
6,
684,
6,
690,
6,
564,
21680,
3761,
4674,
11300,
272,
476,
564,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the pole(s) when esteban guerrieri led the most laps round 8a and josef newgarden had the fastest lap? | CREATE TABLE table_74413 (
"Rd." text,
"Race" text,
"Pole position" text,
"Fastest lap" text,
"Most laps led" text,
"Winning driver" text,
"Winning team" text
) | SELECT "Pole position" FROM table_74413 WHERE "Most laps led" = 'Esteban Guerrieri' AND "Fastest lap" = 'Josef Newgarden' AND "Rd." = '8A' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
591,
2368,
41,
96,
448,
26,
535,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4377,
14941,
121,
1499,
6,
96,
329,
3481,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8931,
15,
1102,
121,
21680,
953,
834,
4581,
591,
2368,
549,
17444,
427,
96,
329,
3481,
14941,
7,
2237,
121,
3274,
3,
31,
14997,
15,
3478,
2846,
49,
6711,
23,
31,
3430,
96,
371,
9,
7,
4377,
14941,
121,
3274,
... |
What is the name of the race in Kenya with a time of 30:27? | CREATE TABLE table_name_96 (
race VARCHAR,
nation VARCHAR,
time VARCHAR
) | SELECT race FROM table_name_96 WHERE nation = "kenya" AND time = "30:27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
1964,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1964,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1964,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2982,
3274,
96,
2217,
63,
9,
121,
3430,
97,
3274,
96,
1458,
10,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Area KM 2 of the place that has a Census ranking of 1,016 of 5,008? | CREATE TABLE table_171236_2 (area_km_2 VARCHAR, census_ranking VARCHAR) | SELECT area_km_2 FROM table_171236_2 WHERE census_ranking = "1,016 of 5,008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2122,
3420,
834,
357,
41,
498,
834,
5848,
834,
357,
584,
4280,
28027,
6,
23087,
834,
6254,
53,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
616,
834,
5848,
834,
357,
21680,
953,
834,
2517,
2122,
3420,
834,
357,
549,
17444,
427,
23087,
834,
6254,
53,
3274,
96,
4347,
632,
2938,
13,
7836,
1206,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the title of Buena Vista Pictures? | CREATE TABLE table_9925 (
"Rank" real,
"Title" text,
"Studio" text,
"Director(s)" text,
"Worldwide Gross" text
) | SELECT "Title" FROM table_9925 WHERE "Studio" = 'buena vista pictures' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3264,
1828,
41,
96,
22557,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
13076,
26,
23,
32,
121,
1499,
6,
96,
23620,
127,
599,
7,
61,
121,
1499,
6,
96,
17954,
6728,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
155,
109,
121,
21680,
953,
834,
3264,
1828,
549,
17444,
427,
96,
13076,
26,
23,
32,
121,
3274,
3,
31,
3007,
35,
9,
3,
17493,
1933,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Position has a Pick of 74? | CREATE TABLE table_66487 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Position" FROM table_66487 WHERE "Pick" = '74' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
591,
4225,
41,
96,
345,
3142,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
3539,
591,
4225,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
4581,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the highest money when the score was 69-68-67-69=273? | CREATE TABLE table_name_37 (
money___ INTEGER,
score VARCHAR
) | SELECT MAX(money___) AS $__ FROM table_name_37 WHERE score = 69 - 68 - 67 - 69 = 273 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
540,
834,
834,
834,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
540,
116,
8,
2604,
47,
3,
395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
28442,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
2604,
3274,
3,
3951,
3,
18,
3,
3651,
3,
18,
3,
3708,
3,
18,
3,
3951,
3274,
204,
4552,
1,
-100,
-... |
What is the 1st leg of cs sfaxien? | CREATE TABLE table_name_48 (
team_2 VARCHAR
) | SELECT 1 AS st_leg FROM table_name_48 WHERE team_2 = "cs sfaxien" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
372,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
209,
7,
17,
4553,
13,
3,
75,
7,
3,
7,
11517,
23,
35,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
209,
6157,
3,
7,
17,
834,
5772,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
372,
834,
357,
3274,
96,
75,
7,
3,
7,
11517,
23,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give me the number of patients whose admission year is less than 2164 and drug route is ih? | 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,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2164" AND prescriptions.route = "IH" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of job_id and the average of employee_id , and group by attribute job_id in a bar chart, could you rank in ascending by the X-axis? | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(4... | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
... |
Name the lessons taught for episode # 2/205 | CREATE TABLE table_24172078_2 (
lessons_taught VARCHAR,
episode__number VARCHAR
) | SELECT lessons_taught FROM table_24172078_2 WHERE episode__number = "2/205" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2517,
1755,
3940,
834,
357,
41,
5182,
834,
17,
9313,
584,
4280,
28027,
6,
5640,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5182,
834,
17,
9313,
21680,
953,
834,
2266,
2517,
1755,
3940,
834,
357,
549,
17444,
427,
5640,
834,
834,
5525,
1152,
3274,
96,
15896,
23201,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
WHich Tournament has a Finalist of gustavo kuerten (4)? | CREATE TABLE table_name_31 (tournament VARCHAR, finalist VARCHAR) | SELECT tournament FROM table_name_31 WHERE finalist = "gustavo kuerten (4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
804,
343,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
362,
20502,
65,
3,
9,
6514,
343,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
804,
343,
3274,
96,
17198,
9,
1621,
3,
2729,
49,
324,
3,
10820,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who were all the candidates when the results were re-elected, first elected was 1832 and the party was jacksonian? | CREATE TABLE table_28859 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "Candidates" FROM table_28859 WHERE "Result" = 'Re-elected' AND "First elected" = '1832' AND "Party" = 'Jacksonian' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4060,
3390,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
1499,
6,
96,
20119,
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,
14050,
12416,
6203,
121,
21680,
953,
834,
357,
4060,
3390,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
1649,
18,
19971,
31,
3430,
96,
25171,
8160,
121,
3274,
3,
31,
2606,
2668,
31,
3430,
96,
13725,
63,
121,
... |
When was the date in 1786? | CREATE TABLE table_70650 (
"Year" real,
"Date" text,
"Name" text,
"Race" text,
"Method" text,
"Offense" text
) | SELECT "Date" FROM table_70650 WHERE "Year" = '1786' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
15348,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
2518,
15348,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2517,
3840,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Place, when Player is "Ben Crenshaw"? | CREATE TABLE table_name_99 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_99 WHERE player = "ben crenshaw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
4687,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3399,
6,
116,
12387,
19,
96,
279,
35,
5895,
29,
15622,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1959,
3274,
96,
115,
35,
3935,
29,
15622,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Number of electorates (2009) has a Constituency number of 46? | CREATE TABLE table_78969 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
) | SELECT AVG("Number of electorates (2009)") FROM table_78969 WHERE "Constituency number" = '46' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3914,
3951,
41,
96,
4302,
2248,
17,
76,
4392,
381,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
1649,
3473,
15,
26,
21,
41,
6508,
3,
87,
5097,
3,
87,
567,
782,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
567,
5937,
49,
13,
11924,
127,
6203,
3,
25812,
8512,
21680,
953,
834,
940,
3914,
3951,
549,
17444,
427,
96,
4302,
2248,
17,
76,
4392,
381,
121,
3274,
3,
31,
4448,
31,
1,
-100,
-100,
-100,
-100... |
Which Hometown/School has a Team of cleveland indians? | CREATE TABLE table_name_94 (hometown_school VARCHAR, team VARCHAR) | SELECT hometown_school FROM table_name_94 WHERE team = "cleveland indians" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
5515,
3540,
834,
6646,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1210,
3540,
87,
29364,
65,
3,
9,
2271,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22295,
834,
6646,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
372,
3274,
96,
75,
4563,
232,
16,
8603,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has the Winning score of –10 (66-71-62-71=270) ? | CREATE TABLE table_name_21 (runner_s__up VARCHAR, winning_score VARCHAR) | SELECT runner_s__up FROM table_name_21 WHERE winning_score = –10(66 - 71 - 62 - 71 = 270) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
8,
549,
10503,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
7,
834,
834,
413,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
104,
1714,
599,
3539,
3,
18,
3,
4450,
3,
18,
3,
4056,
3,
18,
3,
4450,
3274,
3,
17485,
61,
1,
-... |
What was the race of the jockey in na group in 4th place? | CREATE TABLE table_name_15 (
race VARCHAR,
group VARCHAR,
result VARCHAR
) | SELECT race FROM table_name_15 WHERE group = "na" AND result = "4th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
1964,
584,
4280,
28027,
6,
563,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1964,
13,
8,
8624,
4397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
563,
3274,
96,
29,
9,
121,
3430,
741,
3274,
96,
591,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give the number of patients whose diagnosis short title is asthma nos w (ac) exac and lab test fluid is urine. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Asthma NOS w (ac) exac" AND lab.fluid = "Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Name the semifinalists for singapore | CREATE TABLE table_30007505_1 (semifinalists VARCHAR, country_territory VARCHAR) | SELECT semifinalists FROM table_30007505_1 WHERE country_territory = "Singapore" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2313,
9979,
755,
834,
536,
41,
7,
15,
51,
23,
28077,
584,
4280,
28027,
6,
684,
834,
17,
21301,
10972,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
477... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4772,
28077,
21680,
953,
834,
519,
2313,
9979,
755,
834,
536,
549,
17444,
427,
684,
834,
17,
21301,
10972,
3274,
96,
134,
53,
9,
21642,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the function percentage when the estimated function percentage is 20? | CREATE TABLE table_name_30 (function__percentage VARCHAR, estimated_function__percentage VARCHAR) | SELECT function__percentage FROM table_name_30 WHERE estimated_function__percentage = 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
23993,
834,
834,
883,
3728,
545,
584,
4280,
28027,
6,
5861,
834,
23993,
834,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1681,
834,
834,
883,
3728,
545,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
5861,
834,
23993,
834,
834,
883,
3728,
545,
3274,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of bronzes that is less than 1 in total? | CREATE TABLE table_60712 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT COUNT("Bronze") FROM table_60712 WHERE "Total" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4450,
357,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22780,
29,
776,
8512,
21680,
953,
834,
3328,
4450,
357,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the dbeingtribution with grsecurity being optional and compile time buffer checks being yes | CREATE TABLE table_1357052_6 (
distribution VARCHAR,
grsecurity VARCHAR,
compile_time_buffer_checks VARCHAR
) | SELECT distribution FROM table_1357052_6 WHERE grsecurity = "Optional" AND compile_time_buffer_checks = "Yes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
28363,
5373,
834,
948,
41,
3438,
584,
4280,
28027,
6,
3542,
19361,
584,
4280,
28027,
6,
2890,
699,
834,
715,
834,
3007,
7010,
834,
10031,
7,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3438,
21680,
953,
834,
2368,
28363,
5373,
834,
948,
549,
17444,
427,
3542,
19361,
3274,
96,
9546,
9533,
121,
3430,
2890,
699,
834,
715,
834,
3007,
7010,
834,
10031,
7,
3274,
96,
19739,
121,
1,
-100,
-100,
-100,
-100,
... |
What is the joined year of the pilot of the highest rank? | CREATE TABLE pilot (Join_Year VARCHAR, Rank VARCHAR) | SELECT Join_Year FROM pilot ORDER BY Rank LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4487,
41,
683,
32,
77,
834,
476,
2741,
584,
4280,
28027,
6,
3,
22557,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3311,
215,
13,
8,
4487,
13,
8,
2030,
11003,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5279,
834,
476,
2741,
21680,
4487,
4674,
11300,
272,
476,
3,
22557,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Bar chart x axis product name y axis how many product name, and display Y in descending order. | CREATE TABLE Parties_in_Events (
Party_ID INTEGER,
Event_ID INTEGER,
Role_Code CHAR(15)
)
CREATE TABLE Products_in_Events (
Product_in_Event_ID INTEGER,
Event_ID INTEGER,
Product_ID INTEGER
)
CREATE TABLE Locations (
Location_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Event... | SELECT Product_Name, COUNT(Product_Name) FROM Products GROUP BY Product_Name ORDER BY COUNT(Product_Name) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17450,
7,
834,
77,
834,
427,
2169,
7,
41,
3450,
834,
4309,
3,
21342,
17966,
6,
8042,
834,
4309,
3,
21342,
17966,
6,
2158,
109,
834,
22737,
3,
28027,
599,
1808,
61,
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,
6246,
834,
23954,
6,
2847,
17161,
599,
3174,
7472,
834,
23954,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
6246,
834,
23954,
4674,
11300,
272,
476,
2847,
17161,
599,
3174,
7472,
834,
23954,
61,
309,
25067,
1,
-100,
-1... |
What was the attendance in the gave versus the Brewers with a score of 9–6? | CREATE TABLE table_name_43 (attendance VARCHAR, opponent VARCHAR, score VARCHAR) | SELECT attendance FROM table_name_43 WHERE opponent = "brewers" AND score = "9–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
15116,
663,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
16,
8,
1891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
15264,
3274,
96,
1999,
3321,
7,
121,
3430,
2604,
3274,
96,
1298,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the name of all playlist. | CREATE TABLE playlists (name VARCHAR) | SELECT name FROM playlists | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23424,
7,
41,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
564,
13,
66,
23424,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
23424,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who lost when the mariners played on September 12? | CREATE TABLE table_name_37 (loss VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT loss FROM table_name_37 WHERE opponent = "mariners" AND date = "september 12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
2298,
7,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1513,
116,
8,
8769,
52,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
15264,
3274,
96,
12181,
277,
121,
3430,
833,
3274,
96,
7,
6707,
18247,
586,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers? | CREATE TABLE table_18424435_4 (us_air_date VARCHAR, canadian_viewers__million_ VARCHAR) | SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = "1.452" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4165,
3628,
2469,
834,
591,
41,
302,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
54,
9,
8603,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
178,
834,
2256,
834,
5522,
21680,
953,
834,
2606,
4165,
3628,
2469,
834,
591,
549,
17444,
427,
54,
9,
8603,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
14912,
5373,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time less than 20.3? | CREATE TABLE table_63297 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"React" real
) | SELECT MIN("React") FROM table_63297 WHERE "Lane" > '3' AND "Time" < '20.3' AND "Nationality" = 'zimbabwe' AND "Rank" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
357,
4327,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
1649,
2708,
8512,
21680,
953,
834,
3891,
357,
4327,
549,
17444,
427,
96,
434,
152,
15,
121,
2490,
3,
31,
519,
31,
3430,
96,
13368,
121,
3,
2,
3,
31,
357,
19997,
31,
3430,
96,
24732,
485,
121,... |
What is the lowest Taijiquan of the athlete who has a Taijijian of 9.7 and a total more than 19.34? | CREATE TABLE table_name_90 (
taijiquan INTEGER,
taijijian VARCHAR,
total VARCHAR
) | SELECT MIN(taijiquan) FROM table_name_90 WHERE taijijian = 9.7 AND total > 19.34 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
3,
17,
9,
17279,
4960,
29,
3,
21342,
17966,
6,
3,
17,
9,
23,
354,
17279,
152,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
17,
9,
17279,
4960,
29,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
3,
17,
9,
23,
354,
17279,
152,
3274,
5835,
940,
3430,
792,
2490,
9997,
3710,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the skip when the country is finland? | CREATE TABLE table_47259 (
"Country" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends F/A" text,
"Stolen Ends For" real,
"Stolen Ends Against" real,
"Shot %" real
) | SELECT "Skip" FROM table_47259 WHERE "Country" = 'finland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
357,
3390,
41,
96,
10628,
651,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
8532,
26,
7,
549,
106,
121,
490,
6,
96,
8532,
26,
7,
19576,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
2168,
102,
121,
21680,
953,
834,
4177,
357,
3390,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
89,
25948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In how many races did he have 8 podium finishes? | CREATE TABLE table_3562 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
) | SELECT COUNT("Races") FROM table_3562 WHERE "Podiums" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
4056,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
448,
9,
2319,
8512,
21680,
953,
834,
2469,
4056,
549,
17444,
427,
96,
16665,
2552,
7,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Please return a scatter chart with two attributes: the average age and experience working length of journalists working on different role type. | CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type ... | SELECT AVG(t1.Age), AVG(Years_working) FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_ID = t2.journalist_ID GROUP BY t2.Work_Type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
9994,
834,
4309,
16,
17,
6,
5570,
1499,
6,
868,
485,
1499,
6,
7526,
1499,
6,
13825,
834,
9238,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
17,
5411,
188,
397,
201,
71,
17217,
599,
476,
2741,
7,
834,
9238,
61,
21680,
9994,
6157,
3,
17,
536,
3,
15355,
3162,
1506,
834,
60,
1493,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25340,
343,
834,
430... |
provide the number of patients whose admission year is less than 2200 and diagnoses short title is abn react-surg proc nec? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2200" AND diagnoses.short_title = "Abn react-surg proc NEC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
which is the only team to have 9 wins ? | CREATE TABLE table_203_145 (
id number,
"position" number,
"club" text,
"played" number,
"points" text,
"wins" number,
"draws" number,
"losses" number,
"goals for" number,
"goals against" number,
"goal difference" number
) | SELECT "club" FROM table_203_145 WHERE "wins" = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
20987,
41,
3,
23,
26,
381,
6,
96,
4718,
121,
381,
6,
96,
13442,
121,
1499,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
2700,
7,
121,
1499,
6,
96,
3757,
7,
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,
13442,
121,
21680,
953,
834,
23330,
834,
20987,
549,
17444,
427,
96,
3757,
7,
121,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the date with margin of victory of 1 stroke and tournament of legend financial group classic | CREATE TABLE table_name_83 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_83 WHERE margin_of_victory = "1 stroke" AND tournament = "legend financial group classic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
5522,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
536,
9529,
121,
3430,
5892,
3274,
96,
6095,
26,
981,
563,
2431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score on October 29? | CREATE TABLE table_25945 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Score" FROM table_25945 WHERE "Date" = 'October 29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3390,
2128,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
357,
3390,
2128,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
28680,
2838,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a scatter chart about the correlation between employee_id and manager_id . | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT EMPLOYEE_ID, MANAGER_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382... |
Who is the home team that scored 14.19 (103)? | CREATE TABLE table_32457 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_32457 WHERE "Home team score" = '14.19 (103)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2266,
3436,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
519,
2266,
3436,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
2534,
5,
2294,
11704,
5268,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many appearances with fc igea virtus and 1 goal? | CREATE TABLE table_name_50 (appearances INTEGER, club VARCHAR, goals VARCHAR) | SELECT AVG(appearances) FROM table_name_50 WHERE club = "fc igea virtus" AND goals = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
3096,
2741,
663,
7,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3179,
7,
28,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
3096,
2741,
663,
7,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1886,
3274,
96,
89,
75,
3,
3077,
9,
3,
5771,
17,
302,
121,
3430,
1766,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the highest, lowest, and average cost of procedures. | CREATE TABLE appointment (
appointmentid number,
patient number,
prepnurse number,
physician number,
start time,
end time,
examinationroom text
)
CREATE TABLE affiliated_with (
physician number,
department number,
primaryaffiliation boolean
)
CREATE TABLE medication (
code ... | SELECT MAX(cost), MIN(cost), AVG(cost) FROM procedures | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4141,
41,
4141,
23,
26,
381,
6,
1868,
381,
6,
13422,
29,
3589,
15,
381,
6,
10027,
381,
6,
456,
97,
6,
414,
97,
6,
6498,
3082,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
11290,
201,
3,
17684,
599,
11290,
201,
71,
17217,
599,
11290,
61,
21680,
4293,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the title of the episode written by Frank Military? | CREATE TABLE table_28611413_2 (
title VARCHAR,
written_by VARCHAR
) | SELECT title FROM table_28611413_2 WHERE written_by = "Frank Military" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4241,
2534,
2368,
834,
357,
41,
2233,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
13,
8,
5640,
1545... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
2577,
4241,
2534,
2368,
834,
357,
549,
17444,
427,
1545,
834,
969,
3274,
96,
371,
6254,
17190,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the date (from) where date (to) is 1919? | CREATE TABLE table_12562214_1 (date__from_ VARCHAR, date__to_ VARCHAR) | SELECT date__from_ FROM table_12562214_1 WHERE date__to_ = "1919" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
4056,
27357,
834,
536,
41,
5522,
834,
834,
7152,
834,
584,
4280,
28027,
6,
833,
834,
834,
235,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
834,
7152,
834,
21680,
953,
834,
10124,
4056,
27357,
834,
536,
549,
17444,
427,
833,
834,
834,
235,
834,
3274,
96,
2294,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average for the RB with an 8 yard long? | CREATE TABLE table_11823 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
) | SELECT COUNT("Avg.") FROM table_11823 WHERE "Long" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
2773,
41,
96,
15800,
49,
121,
1499,
6,
96,
6936,
535,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
188,
208,
122,
535,
490,
6,
96,
10494,
31,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
208,
122,
5,
8512,
21680,
953,
834,
20056,
2773,
549,
17444,
427,
96,
434,
2444,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Money of the Player with a Score of 69-71-69-72=281? | CREATE TABLE table_name_70 (money___$__ VARCHAR, score VARCHAR) | SELECT money___$__ FROM table_name_70 WHERE score = 69 - 71 - 69 - 72 = 281 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
28442,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8833,
13,
8,
12387,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
540,
834,
834,
834,
3229,
834,
834,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
2604,
3274,
3,
3951,
3,
18,
3,
4450,
3,
18,
3,
3951,
3,
18,
9455,
3274,
204,
4959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Rank is the highest one that has a Change smaller than 44, and a Centre of buenos aires, and a Rating larger than 628? | CREATE TABLE table_name_2 (
rank INTEGER,
rating VARCHAR,
change VARCHAR,
centre VARCHAR
) | SELECT MAX(rank) FROM table_name_2 WHERE change < 44 AND centre = "buenos aires" AND rating > 628 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
11003,
3,
21342,
17966,
6,
5773,
584,
4280,
28027,
6,
483,
584,
4280,
28027,
6,
2050,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
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,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
483,
3,
2,
8537,
3430,
2050,
3274,
96,
3007,
15,
4844,
3,
4803,
121,
3430,
5773,
2490,
431,
2577,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many peak positions were there on the daily charts? | CREATE TABLE table_23180638_1 (peak_position VARCHAR, oricon_albums_chart VARCHAR) | SELECT peak_position FROM table_23180638_1 WHERE oricon_albums_chart = "Daily Charts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2606,
5176,
3747,
834,
536,
41,
14661,
834,
4718,
584,
4280,
28027,
6,
5322,
1018,
834,
23703,
7,
834,
4059,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6734,
834,
4718,
21680,
953,
834,
2773,
2606,
5176,
3747,
834,
536,
549,
17444,
427,
5322,
1018,
834,
23703,
7,
834,
4059,
17,
3274,
96,
308,
9,
9203,
15054,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the date when the location attendance is energysolutions arena 19,911? | CREATE TABLE table_3857 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_3857 WHERE "Location Attendance" = 'EnergySolutions Arena 19,911' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
3436,
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,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3747,
3436,
549,
17444,
427,
96,
434,
32,
75,
257,
22497,
663,
121,
3274,
3,
31,
427,
687,
122,
63,
5231,
40,
14548,
7,
14904,
12370,
4729,
536,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the label for the album with a catalog number of 83061-4? | CREATE TABLE table_name_84 (
label VARCHAR,
catalog__number VARCHAR
) | SELECT label FROM table_name_84 WHERE catalog__number = "83061-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
3783,
584,
4280,
28027,
6,
10173,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3783,
21,
8,
2306,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
10173,
834,
834,
5525,
1152,
3274,
96,
4591,
5176,
22840,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who's the Fourth District with a Third District of sharon yentsch? | CREATE TABLE table_41878 (
"First District" text,
"Second District" text,
"Third District" text,
"Fourth District" text,
"Fifth District" text
) | SELECT "Fourth District" FROM table_41878 WHERE "Third District" = 'sharon yentsch' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2606,
3940,
41,
96,
25171,
3570,
121,
1499,
6,
96,
134,
15,
1018,
26,
3570,
121,
1499,
6,
96,
382,
9288,
26,
3570,
121,
1499,
6,
96,
371,
1211,
189,
3570,
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,
371,
1211,
189,
3570,
121,
21680,
953,
834,
591,
2606,
3940,
549,
17444,
427,
96,
382,
9288,
26,
3570,
121,
3274,
3,
31,
7,
3272,
106,
3,
63,
295,
860,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the heat rank for senegal | CREATE TABLE table_name_22 (
heat_rank VARCHAR,
country VARCHAR
) | SELECT heat_rank FROM table_name_22 WHERE country = "senegal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
1678,
834,
6254,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1678,
11003,
21,
3,
7,
35,
15,
6191,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1678,
834,
6254,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
684,
3274,
96,
7,
35,
15,
6191,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the four most common diagnoses until 2101? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,... | SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE STRFTIME('%y', diagnosis.diagnosistime) <= '2101' GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
25930,
4844,
159,
4350,
21680,
41,
23143,
14196,
8209,
5,
25930,
4844,
159,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
6... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.