NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which Prominence (m) has a Col (m) of 350? | CREATE TABLE table_name_21 (
prominence__m_ INTEGER,
col__m_ VARCHAR
) | SELECT AVG(prominence__m_) FROM table_name_21 WHERE col__m_ = 350 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
31829,
834,
834,
51,
834,
3,
21342,
17966,
6,
7632,
834,
834,
51,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
749,
1109,
1433,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1409,
1109,
1433,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
7632,
834,
834,
51,
834,
3274,
10239,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which church is listed below christ the king ? | CREATE TABLE table_203_274 (
id number,
"church name" text,
"address" text,
"community" text,
"school" text
) | SELECT "church name" FROM table_203_274 WHERE id = (SELECT id FROM table_203_274 WHERE "church name" = 'christ the king') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2555,
591,
41,
3,
23,
26,
381,
6,
96,
28854,
564,
121,
1499,
6,
96,
9,
26,
12039,
121,
1499,
6,
96,
18782,
485,
121,
1499,
6,
96,
6646,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
28854,
564,
121,
21680,
953,
834,
23330,
834,
2555,
591,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
2555,
591,
549,
17444,
427,
96,
28854,
564,
121,
3274,
3,
31... |
Tell me the lowest date commissioned for iron rmsrhone and gross tonnage less than 2,738 | CREATE TABLE table_52909 (
"Ship" text,
"Date Commissioned" real,
"Gross Tonnage" real,
"Propulsion" text,
"Material" text
) | SELECT MIN("Date Commissioned") FROM table_52909 WHERE "Material" = 'iron' AND "Ship" = 'rmsrhone' AND "Gross Tonnage" < '2,738' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3166,
4198,
41,
96,
134,
10462,
121,
1499,
6,
96,
308,
342,
3527,
15,
26,
121,
490,
6,
96,
517,
1859,
7,
8475,
9761,
121,
490,
6,
96,
3174,
20567,
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,
3,
17684,
599,
121,
308,
342,
3527,
15,
26,
8512,
21680,
953,
834,
755,
3166,
4198,
549,
17444,
427,
96,
329,
342,
12042,
121,
3274,
3,
31,
17773,
31,
3430,
96,
134,
10462,
121,
3274,
3,
31,
52,
51,
7,
52,
107,
... |
What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot? | CREATE TABLE table_175980_2 (
viewers__in_millions_ VARCHAR,
ranking VARCHAR,
timeslot VARCHAR
) | SELECT viewers__in_millions_ FROM table_175980_2 WHERE ranking = "#51" AND timeslot = "Tuesday 9:00 p.m." | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3390,
2079,
834,
357,
41,
13569,
834,
834,
77,
834,
17030,
7,
834,
584,
4280,
28027,
6,
11592,
584,
4280,
28027,
6,
648,
3171,
584,
4280,
28027,
3,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
13569,
834,
834,
77,
834,
17030,
7,
834,
21680,
953,
834,
2517,
3390,
2079,
834,
357,
549,
17444,
427,
11592,
3274,
96,
4663,
5553,
121,
3430,
648,
3171,
3274,
96,
382,
76,
15,
7,
1135,
23239,
3,
102,
5,
51,
535,
... |
What's england's to par? | CREATE TABLE table_name_50 (to_par VARCHAR, country VARCHAR) | SELECT to_par FROM table_name_50 WHERE country = "england" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
235,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
3,
4606,
40,
232,
31,
7,
12,
260,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
684,
3274,
96,
4606,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the number of rooms with king bed for each decor type. Plot them as pie chart. | CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | SELECT decor, COUNT(*) FROM Rooms WHERE bedType = "King" GROUP BY decor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4181,
7,
41,
4181,
196,
26,
3,
3463,
4,
382,
6,
562,
23954,
3,
3463,
4,
382,
6,
8326,
3,
21342,
17966,
6,
1953,
25160,
3,
3463,
4,
382,
6,
9858,
667,
75,
4658,
6833,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4469,
6,
2847,
17161,
599,
1935,
61,
21680,
4181,
7,
549,
17444,
427,
1953,
25160,
3274,
96,
439,
53,
121,
350,
4630,
6880,
272,
476,
4469,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many exhibitions has each artist had? | CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int... | SELECT Name, COUNT(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.Artist_ID = T2.Artist_ID GROUP BY T1.Artist_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
22371,
834,
4309,
16,
17,
6,
2929,
16,
17,
6,
37,
526,
1499,
6,
9152,
834,
4309,
16,
17,
6,
3,
15569,
834,
345,
4920,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
604... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
1935,
61,
21680,
4473,
6157,
332,
536,
3,
15355,
3162,
2377,
6157,
332,
357,
9191,
332,
5411,
7754,
343,
834,
4309,
3274,
332,
4416,
7754,
343,
834,
4309,
350,
4630,
6880,
272,
476,
332,
5... |
What is the High points of charles oakley , kevin willis (11)? | CREATE TABLE table_name_55 (
high_points VARCHAR,
high_rebounds VARCHAR
) | SELECT high_points FROM table_name_55 WHERE high_rebounds = "charles oakley , kevin willis (11)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1592,
979,
13,
3,
4059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
306,
834,
23768,
3274,
96,
4059,
965,
11586,
1306,
3,
6,
3,
1050,
2494,
56,
159,
4077,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the center from Washington State? | CREATE TABLE table_54734 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "Player" FROM table_54734 WHERE "Position" = 'center' AND "School/Club Team" = 'washington state' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4177,
3710,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
12313,
121,
1499,
6,
96,
29364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
755,
4177,
3710,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
13866,
31,
3430,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
14710,
6029,
538,
31,
1,
-100,
-... |
Which date has tigers as the opponent? | CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_14 WHERE opponent = "tigers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
3,
2880,
277,
38,
8,
15264,
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,
833,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
15264,
3274,
96,
2880,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many runners-up with nation being india | CREATE TABLE table_12303563_2 (runners_up VARCHAR, nation VARCHAR) | SELECT COUNT(runners_up) FROM table_12303563_2 WHERE nation = "India" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
1458,
2469,
3891,
834,
357,
41,
10806,
7,
834,
413,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
16448,
18,
413,
28,
2982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
10806,
7,
834,
413,
61,
21680,
953,
834,
2122,
1458,
2469,
3891,
834,
357,
549,
17444,
427,
2982,
3274,
96,
22126,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was rose in the 1975 Broadway Revival? | CREATE TABLE table_52473 (
"Productions" text,
"Rose" text,
"Louise" text,
"Dainty June" text,
"Herbie" text,
"Director" text
) | SELECT "Rose" FROM table_52473 WHERE "Productions" = '1975 broadway revival' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2266,
4552,
41,
96,
3174,
8291,
7,
121,
1499,
6,
96,
448,
32,
7,
15,
121,
1499,
6,
96,
28365,
15,
121,
1499,
6,
96,
308,
9,
77,
17,
63,
1515,
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,
448,
32,
7,
15,
121,
21680,
953,
834,
755,
2266,
4552,
549,
17444,
427,
96,
3174,
8291,
7,
121,
3274,
3,
31,
2294,
3072,
4358,
1343,
26327,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Money ($) amount of the Player with a To par of e? | CREATE TABLE table_58861 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
) | SELECT "Money ( $ )" FROM table_58861 WHERE "To par" = 'e' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
3840,
536,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9168,
15,
63,
41,
1514,
3,
61,
121,
21680,
953,
834,
3449,
3840,
536,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Losses, when Wins is '1', and when Matches is less than 2? | CREATE TABLE table_12691 (
"Matches" real,
"Wins" real,
"Draw" real,
"Losses" real,
"Against" real
) | SELECT MAX("Losses") FROM table_12691 WHERE "Wins" = '1' AND "Matches" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21976,
4729,
41,
96,
329,
144,
2951,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
20749,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
434,
13526,
7,
8512,
21680,
953,
834,
21976,
4729,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
536,
31,
3430,
96,
329,
144,
2951,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-... |
What engine does Galles Racing use? | CREATE TABLE table_72711 (
"Season" real,
"Date" text,
"Location" text,
"Driver" text,
"Chassis" text,
"Engine" text,
"Team" text
) | SELECT "Engine" FROM table_72711 WHERE "Team" = 'Galles Racing' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2555,
2596,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
3541,
6500,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
31477,
121,
21680,
953,
834,
940,
2555,
2596,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
517,
13701,
7,
16046,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2? | CREATE TABLE table_65013 (
"Date" text,
"Ship Name" text,
"Flag" text,
"Tonnage ( GRT )" real,
"Fate" text,
"Deaths" real
) | SELECT SUM("Tonnage ( GRT )") FROM table_65013 WHERE "Fate" = 'sunk' AND "Flag" = 'great britain' AND "Date" = '26 september 1940' AND "Deaths" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15348,
2368,
41,
96,
308,
342,
121,
1499,
6,
96,
134,
10462,
5570,
121,
1499,
6,
96,
371,
5430,
121,
1499,
6,
96,
382,
106,
9761,
41,
350,
5934,
3,
61,
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,
180,
6122,
599,
121,
382,
106,
9761,
41,
350,
5934,
3,
61,
8512,
21680,
953,
834,
15348,
2368,
549,
17444,
427,
96,
371,
342,
121,
3274,
3,
31,
7,
6513,
31,
3430,
96,
371,
5430,
121,
3274,
3,
31,
20288,
3,
115,
... |
How many apartments do not have any facility? | CREATE TABLE Apartment_Facilities (apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR) | SELECT COUNT(*) FROM Apartments WHERE NOT apt_id IN (SELECT apt_id FROM Apartment_Facilities) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
371,
9,
13067,
3010,
41,
6789,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
7,
41,
6789,
834,
23,
26,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15970,
7,
549,
17444,
427,
4486,
3,
6789,
834,
23,
26,
3388,
41,
23143,
14196,
3,
6789,
834,
23,
26,
21680,
15970,
834,
371,
9,
13067,
3010,
61,
1,
-100,
-100,
-100,
-100,
-100,
... |
On what dates where games played at Football Park? | CREATE TABLE table_16387953_1 (date VARCHAR, ground VARCHAR) | SELECT date FROM table_16387953_1 WHERE ground = "Football Park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3747,
4440,
4867,
834,
536,
41,
5522,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
5128,
213,
1031,
1944,
44,
10929,
1061,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
2938,
3747,
4440,
4867,
834,
536,
549,
17444,
427,
1591,
3274,
96,
371,
32,
32,
17,
3184,
1061,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many bronzes are there for the total nation with 112 silver and a total of 72? | CREATE TABLE table_58488 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Bronze") FROM table_58488 WHERE "Total" > '72' AND "Nation" = 'total' AND "Silver" < '112' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
591,
4060,
41,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
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,
22780,
29,
776,
8512,
21680,
953,
834,
3449,
591,
4060,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
5865,
31,
3430,
96,
567,
257,
121,
3274,
3,
31,
235,
1947,
31,
3430,
96,
134,
173,
... |
Who was the opponent on April 29? | CREATE TABLE table_name_5 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_5 WHERE date = "april 29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
30,
1186,
2838,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
2838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the total number of employees. | CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension text
)
CREATE TABLE student (
stu_num number,
stu_lname text,
stu_fname text,
stu_init text,
stu_dob time,
stu_hrs number,
stu_class text,
... | SELECT COUNT(*) FROM employee | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4978,
1499,
6,
20,
102,
17,
834,
4350,
1499,
6,
496,
834,
4978,
1499,
6,
8943,
834,
5525,
381,
6,
20,
102,
17,
834,
9,
26,
12039,
1499,
6,
20,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
3490,
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,
-... |
What is Player, when Score is '68-67-75-70=280'? | CREATE TABLE table_61999 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Player" FROM table_61999 WHERE "Score" = '68-67-75-70=280' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
19446,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
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,
15800,
49,
121,
21680,
953,
834,
4241,
19446,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3651,
18,
3708,
18,
3072,
18,
2518,
2423,
17518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
yes or no for the melbourne that has no for adelaide, no for gold coast? | CREATE TABLE table_67838 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
) | SELECT "Melbourne" FROM table_67838 WHERE "Adelaide" = 'yes' AND "Gold Coast" = 'no' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
927,
3747,
41,
96,
134,
63,
26,
3186,
121,
1499,
6,
96,
329,
15,
40,
26255,
121,
1499,
6,
96,
12988,
189,
121,
1499,
6,
96,
188,
221,
40,
5385,
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,
329,
15,
40,
26255,
121,
21680,
953,
834,
3708,
927,
3747,
549,
17444,
427,
96,
188,
221,
40,
5385,
121,
3274,
3,
31,
10070,
31,
3430,
96,
23576,
5458,
121,
3274,
3,
31,
29,
32,
31,
1,
-100,
-100,
-100,
-100... |
How many hosts were on Seven Network? | CREATE TABLE table_14523485_9 (host VARCHAR, channel VARCHAR) | SELECT COUNT(host) FROM table_14523485_9 WHERE channel = "Seven Network" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
357,
3710,
4433,
834,
1298,
41,
12675,
584,
4280,
28027,
6,
4245,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9855,
130,
30,
13065,
3426,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
12675,
61,
21680,
953,
834,
20987,
357,
3710,
4433,
834,
1298,
549,
17444,
427,
4245,
3274,
96,
134,
6190,
3426,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose primary disease is left colon cancer and age is less than 76? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT COLON CANCER" AND demographic.age < "76" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
3765,
6245,
3,
19617,
4170,
205,
15083,
448,
121,
3430,
14798,
5,
545,... |
List name and damage for all storms in a descending order of max speed. Plot them as bar chart. | CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE region (
Region_id int,
Region_code text,
R... | SELECT Name, Damage_millions_USD FROM storm ORDER BY Max_speed DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5536,
41,
16133,
834,
4309,
16,
17,
6,
5570,
1499,
6,
7678,
7,
834,
6645,
1499,
6,
5370,
834,
9993,
16,
17,
6,
26135,
834,
17030,
7,
834,
23492,
490,
6,
7720,
834,
2962,
9,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
26135,
834,
17030,
7,
834,
23492,
21680,
5536,
4674,
11300,
272,
476,
5370,
834,
9993,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the team with a tie number of 6. | CREATE TABLE table_name_51 (date VARCHAR, tie_no VARCHAR) | SELECT date FROM table_name_51 WHERE tie_no = "6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
5522,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
28,
3,
9,
6177,
381,
13,
4357,
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,
833,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the year of debut when Tom Feeney plays for the Waterford team? | CREATE TABLE table_10742 (
"Player" text,
"Team" text,
"Date" text,
"Opposition" text,
"Game" text,
"D\u00e9but" real
) | SELECT "D\u00e9but" FROM table_10742 WHERE "Team" = 'waterford' AND "Player" = 'tom feeney' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
4165,
41,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
4718,
121,
1499,
6,
96,
23055,
121,
1499,
6,
96,
308,
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,
308,
2,
76,
1206,
15,
1298,
2780,
121,
21680,
953,
834,
18057,
4165,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
3552,
2590,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
235,
51,
2572,
3186,
31,
1,
-100,
-10... |
Where was the location for Arras Paul Arras? | CREATE TABLE table_name_24 (
location VARCHAR,
opponent VARCHAR
) | SELECT location FROM table_name_24 WHERE opponent = "arras paul arras" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1128,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
1128,
21,
3,
28150,
9,
7,
1838,
3,
28150,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
15264,
3274,
96,
10116,
7,
2576,
83,
3,
10116,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what year was the NFL team in chicago illinois established? | CREATE TABLE table_name_96 (
est VARCHAR,
league VARCHAR,
state_province VARCHAR,
city VARCHAR
) | SELECT est FROM table_name_96 WHERE state_province = "illinois" AND city = "chicago" AND league = "nfl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
259,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
538,
834,
1409,
2494,
565,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
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,
0... | [
3,
23143,
14196,
259,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
538,
834,
1409,
2494,
565,
3274,
96,
1092,
77,
32,
159,
121,
3430,
690,
3274,
96,
1436,
658,
839,
121,
3430,
5533,
3274,
96,
29,
89,
40,
121,
1,
-100,
-100,
... |
taking medication for hypertension | CREATE TABLE table_train_264 (
"id" int,
"stroke" bool,
"hematocrit_hct" float,
"serum_psa" float,
"coronary_artery_disease_cad" bool,
"international_prostate_symptom_score_ipss" int,
"hypertension" bool,
"NOUSE" float
) | SELECT * FROM table_train_264 WHERE hypertension = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
26755,
41,
96,
23,
26,
121,
16,
17,
6,
96,
24790,
121,
3,
12840,
40,
6,
96,
6015,
9,
235,
12563,
834,
107,
75,
17,
121,
3,
12660,
6,
96,
7,
49,
440,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
26755,
549,
17444,
427,
6676,
13177,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total longitude of Nogosek and a GEO ID larger than 3809357060? | CREATE TABLE table_name_68 (longitude VARCHAR, township VARCHAR, geo_id VARCHAR) | SELECT COUNT(longitude) FROM table_name_68 WHERE township = "nogosek" AND geo_id > 3809357060 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
2961,
20341,
584,
4280,
28027,
6,
1511,
2009,
584,
4280,
28027,
6,
9502,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
2961,
20341,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1511,
2009,
3274,
96,
29,
32,
839,
7,
15,
157,
121,
3430,
9502,
834,
23,
26,
2490,
3,
22671,
4271,
28363,
3328,
1,
-100,
-100,
... |
Name the average established for championships less than 1 and club of erie seawolves | CREATE TABLE table_name_53 (established INTEGER, championships VARCHAR, club VARCHAR) | SELECT AVG(established) FROM table_name_53 WHERE championships < 1 AND club = "erie seawolves" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
24109,
3,
21342,
17966,
6,
10183,
7,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
2127,
21,
10183,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
24109,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
10183,
7,
3,
2,
209,
3430,
1886,
3274,
96,
4074,
2805,
29219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which team has a record of 7-1? | CREATE TABLE table_name_99 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_99 WHERE record = "7-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
65,
3,
9,
1368,
13,
489,
2292,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1368,
3274,
96,
940,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did Pakistan win a Silver Medal in a Men's Competition? | CREATE TABLE table_name_56 (games VARCHAR, event VARCHAR, medal VARCHAR) | SELECT games FROM table_name_56 WHERE event = "men's competition" AND medal = "silver" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
7261,
7,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
9365,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
6697,
1369,
3,
9,
5642,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1031,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
605,
3274,
96,
904,
31,
7,
2259,
121,
3430,
9365,
3274,
96,
7,
173,
624,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who did not have any job in the past, return a line chart about the change of commission_pct over hire_date . | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 jobs (
JOB_ID varchar(10),
JOB_... | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680... |
What is the lowest league cup goals for the entry with fa cup goals greater than 0 and FA cup apps larger than 2? | CREATE TABLE table_name_14 (league_cup_goals INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) | SELECT MIN(league_cup_goals) FROM table_name_14 WHERE fa_cup_goals > 0 AND fa_cup_apps > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
29512,
834,
4658,
834,
839,
5405,
3,
21342,
17966,
6,
3,
89,
9,
834,
4658,
834,
839,
5405,
584,
4280,
28027,
6,
3,
89,
9,
834,
4658,
834,
3096,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
29512,
834,
4658,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
3,
89,
9,
834,
4658,
834,
839,
5405,
2490,
3,
632,
3430,
3,
89,
9,
834,
4658,
834,
3096,
7,
2490,
204,
1,
... |
What opponent has a record of 86-62? | CREATE TABLE table_79724 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Opponent" FROM table_79724 WHERE "Record" = '86-62' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4327,
2266,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
1649,
7621,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
940,
4327,
2266,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
3840,
18,
4056,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Calculate the number of patients admitted to emergency who had an ld body fluid test by lab | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.label = "LD, Body Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What game has a 6-12-8 record? | CREATE TABLE table_name_65 (game VARCHAR, record VARCHAR) | SELECT game FROM table_name_65 WHERE record = "6-12-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
7261,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
65,
3,
9,
431,
5947,
6039,
1368,
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,
467,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1368,
3274,
96,
948,
5947,
6039,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many viewers (m) with overall being 91/101 | CREATE TABLE table_13110459_2 (
viewers__m_ VARCHAR,
overall VARCHAR
) | SELECT COUNT(viewers__m_) FROM table_13110459_2 WHERE overall = "91/101" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22048,
15442,
3390,
834,
357,
41,
13569,
834,
834,
51,
834,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
13569,
41,
51,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4576,
277,
834,
834,
51,
834,
61,
21680,
953,
834,
22048,
15442,
3390,
834,
357,
549,
17444,
427,
1879,
3274,
96,
4729,
87,
19621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many race 3 winners were there when Mitch Evans won race 2? | CREATE TABLE table_22905641_2 (race_3_winner VARCHAR, race_2_winner VARCHAR) | SELECT COUNT(race_3_winner) FROM table_22905641_2 WHERE race_2_winner = "Mitch Evans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2394,
4834,
4853,
834,
357,
41,
12614,
834,
519,
834,
3757,
687,
584,
4280,
28027,
6,
1964,
834,
357,
834,
3757,
687,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
12614,
834,
519,
834,
3757,
687,
61,
21680,
953,
834,
2884,
2394,
4834,
4853,
834,
357,
549,
17444,
427,
1964,
834,
357,
834,
3757,
687,
3274,
96,
329,
7059,
18305,
121,
1,
-100,
-100,
-100,
-100,
... |
Matches of 15, and a Win % smaller than 20 had what highest lost? | CREATE TABLE table_name_83 (lost INTEGER, matches VARCHAR, win__percentage VARCHAR) | SELECT MAX(lost) FROM table_name_83 WHERE matches = 15 AND win__percentage < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
2298,
17,
3,
21342,
17966,
6,
6407,
584,
4280,
28027,
6,
1369,
834,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
12296,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
6407,
3274,
627,
3430,
1369,
834,
834,
883,
3728,
545,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Date (Closing), when Opening Film is 'Deconstruction of Korean Housewife'? | CREATE TABLE table_name_95 (
date__closing_ VARCHAR,
opening_film VARCHAR
) | SELECT date__closing_ FROM table_name_95 WHERE opening_film = "deconstruction of korean housewife" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
833,
834,
834,
3903,
7,
53,
834,
584,
4280,
28027,
6,
2101,
834,
9988,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
41,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
834,
3903,
7,
53,
834,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
2101,
834,
9988,
3274,
96,
221,
26471,
13,
3,
5543,
15,
152,
629,
22106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose age is less than 45 and drug name is methylprednisolone sodium succ? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "45" AND prescriptions.drug = "MethylPREDNISolone Sodium Succ" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What are the Ages of the Seashell Trust School with Ofsted Report? | CREATE TABLE table_8414 (
"School" text,
"Locality" text,
"Ages" text,
"Report" text,
"Website" text
) | SELECT "Ages" FROM table_8414 WHERE "Report" = 'ofsted' AND "School" = 'seashell trust' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4608,
2534,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
10355,
121,
1499,
6,
96,
188,
2897,
121,
1499,
6,
96,
1649,
1493,
121,
1499,
6,
96,
15805,
3585,
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,
1,
1... | [
3,
23143,
14196,
96,
188,
2897,
121,
21680,
953,
834,
4608,
2534,
549,
17444,
427,
96,
1649,
1493,
121,
3274,
3,
31,
858,
6265,
31,
3430,
96,
29364,
121,
3274,
3,
31,
7,
15,
9,
17346,
2019,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score of the game against the San Diego Chargers? | CREATE TABLE table_name_50 (
week INTEGER,
opponent VARCHAR
) | SELECT SUM(week) FROM table_name_50 WHERE opponent = "san diego chargers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
471,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
581,
8,
1051,
8851,
15907,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
15264,
3274,
96,
7,
152,
67,
839,
17020,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the domestic figure when cargo tonnes equal 25 866? | CREATE TABLE table_62557 (
"Year" real,
"Total passengers" text,
"Passenger Change" text,
"Domestic" text,
"International (total)" text,
"International (non-CIS)" text,
"Aircraft Landings" text,
"Cargo (tonnes)" text
) | SELECT "Domestic" FROM table_62557 WHERE "Cargo (tonnes)" = '25 866' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
1828,
3436,
41,
96,
476,
2741,
121,
490,
6,
96,
3696,
1947,
9234,
121,
1499,
6,
96,
20192,
35,
1304,
5968,
121,
1499,
6,
96,
4135,
2687,
1225,
121,
1499,
6,
96,
2749... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4135,
2687,
1225,
121,
21680,
953,
834,
948,
1828,
3436,
549,
17444,
427,
96,
6936,
839,
41,
17,
5993,
7,
61,
121,
3274,
3,
31,
1828,
3,
26750,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Competition, when Date is '1999-08-07'? | CREATE TABLE table_47191 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Competition" FROM table_47191 WHERE "Date" = '1999-08-07' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
2294,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
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,
5890,
4995,
4749,
121,
21680,
953,
834,
4177,
2294,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2294,
3264,
18,
4018,
18,
4560,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For the tournament played on a hard surface and ending with a score of Walkover, who was the Finals opponent? | CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) | SELECT opponent_in_the_final FROM table_name_69 WHERE surface = "hard" AND score = "walkover" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
32,
102,
9977,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15264,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
2604,
3274,
96,
12539,
1890,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of email and employee_id , rank from high to low by the total number please. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
... | SELECT EMAIL, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20211,
3502,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
156... |
What is the lowest decile that Ohau School has? | CREATE TABLE table_14941 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | SELECT MIN("Decile") FROM table_14941 WHERE "Name" = 'ohau school' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24816,
4853,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
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,
3,
17684,
599,
121,
2962,
75,
699,
8512,
21680,
953,
834,
24816,
4853,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
32,
107,
402,
496,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the rd number where the reg GP is 0 and the pick is 150? | CREATE TABLE table_name_24 (rd__number VARCHAR, reg_gp VARCHAR, pick__number VARCHAR) | SELECT COUNT(rd__number) FROM table_name_24 WHERE reg_gp = 0 AND pick__number = 150 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
52,
26,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
5925,
834,
122,
102,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
52,
26,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
5925,
834,
122,
102,
3274,
3,
632,
3430,
1432,
834,
834,
5525,
1152,
3274,
4261,
1,
-100,
-100,
-100,
-100,
-100... |
What is the maximum number of AFC championships? | CREATE TABLE table_1952057_5 (
afc_championships INTEGER
) | SELECT MAX(afc_championships) FROM table_1952057_5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
1755,
3436,
834,
755,
41,
3,
9,
89,
75,
834,
17788,
12364,
2009,
7,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
381,
13,
71,
5390,
101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9,
89,
75,
834,
17788,
12364,
2009,
7,
61,
21680,
953,
834,
22464,
1755,
3436,
834,
755,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest regular GP Larry Courville, who has a PI GP smaller than 0, has? | CREATE TABLE table_name_26 (reg_gp INTEGER, player VARCHAR, pl_gp VARCHAR) | SELECT MIN(reg_gp) FROM table_name_26 WHERE player = "larry courville" AND pl_gp < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
60,
122,
834,
122,
102,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
4752,
834,
122,
102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
60,
122,
834,
122,
102,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1959,
3274,
96,
40,
291,
651,
11111,
1420,
121,
3430,
4752,
834,
122,
102,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-... |
What is the Memory for a Number 32 with a Clock of 2.26ghz? | CREATE TABLE table_52009 (
"Number" real,
"Type" text,
"Clock" text,
"Scratch" text,
"Memory" text,
"Cache" text
) | SELECT "Memory" FROM table_52009 WHERE "Clock" = '2.26ghz' AND "Number" = '32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
16660,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
254,
4029,
121,
1499,
6,
96,
134,
2935,
17,
524,
121,
1499,
6,
96,
329,
15,
2528,
63,
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,
329,
15,
2528,
63,
121,
21680,
953,
834,
755,
16660,
549,
17444,
427,
96,
254,
4029,
121,
3274,
3,
31,
4416,
2688,
122,
107,
172,
31,
3430,
96,
567,
5937,
49,
121,
3274,
3,
31,
2668,
31,
1,
-100,
-100,
-100,... |
List the rider for the doncaster handicap compeition. | CREATE TABLE table_30098144_2 (jockey VARCHAR, race VARCHAR) | SELECT jockey FROM table_30098144_2 WHERE race = "Doncaster Handicap" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3916,
20885,
834,
357,
41,
1927,
75,
4397,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
2564,
52,
21,
8,
278,
25327,
14214,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8624,
4397,
21680,
953,
834,
5426,
3916,
20885,
834,
357,
549,
17444,
427,
1964,
3274,
96,
13843,
25327,
2263,
23,
4010,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the pole position for the rnd equalling 12? | CREATE TABLE table_10707176_2 (pole_position VARCHAR, rnd VARCHAR) | SELECT pole_position FROM table_10707176_2 WHERE rnd = "12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
4560,
26782,
834,
357,
41,
14332,
834,
4718,
584,
4280,
28027,
6,
3,
52,
727,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
11148,
1102,
21,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11148,
834,
4718,
21680,
953,
834,
18057,
4560,
26782,
834,
357,
549,
17444,
427,
3,
52,
727,
3274,
96,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
are there any results of patient 031-3355's microbiological test on the first hospital visit? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime... | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
186... |
Who was the winning driver in the FR2.0 11 series? | CREATE TABLE table_25572068_1 (winning_driver VARCHAR, series VARCHAR) | SELECT winning_driver FROM table_25572068_1 WHERE series = "FR2.0 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
18517,
3651,
834,
536,
41,
8163,
834,
13739,
52,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3447,
2535,
16,
8,
3,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
13739,
52,
21680,
953,
834,
25502,
18517,
3651,
834,
536,
549,
17444,
427,
939,
3274,
96,
7422,
24273,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which venue exceeded a crowd size of 33,642? | CREATE TABLE table_33029 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_33029 WHERE "Crowd" > '33,642' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17225,
3166,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
17225,
3166,
549,
17444,
427,
96,
254,
3623,
26,
121,
2490,
3,
31,
4201,
6,
4389,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is United States total in the year(s) won of 2000 , 2005 , 2006? | CREATE TABLE table_name_1 (
total INTEGER,
country VARCHAR,
year_s__won VARCHAR
) | SELECT MIN(total) FROM table_name_1 WHERE country = "united states" AND year_s__won = "2000 , 2005 , 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
792,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
13527,
3,
6,
3105,
3,
6,
3581,
121,
1,
... |
What is the gold medal count that has a silver medal count less than 0? | CREATE TABLE table_39439 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Gold") FROM table_39439 WHERE "Silver" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
591,
3288,
41,
96,
22557,
121,
1499,
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,
4800,
4,
599,
121,
23576,
8512,
21680,
953,
834,
3288,
591,
3288,
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,
-100,
-100,
-10... |
who are the writers of the episode whose production code is 176206? | CREATE TABLE table_2866509_1 (written_by VARCHAR, production_code VARCHAR) | SELECT written_by FROM table_2866509_1 WHERE production_code = 176206 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3539,
1752,
1298,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
33,
8,
5943,
13,
8,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2577,
3539,
1752,
1298,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
3,
26782,
24643,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the constructor for the fastest nelson piquet? | CREATE TABLE table_name_72 (
constructor VARCHAR,
fastest_lap VARCHAR
) | SELECT constructor FROM table_name_72 WHERE fastest_lap = "nelson piquet" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
6774,
127,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6774,
127,
21,
8,
10391,
3,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6774,
127,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
10391,
834,
8478,
3274,
96,
29,
3573,
106,
3,
102,
1495,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose diagnoses short title is acute pancreatitis and drug type is main? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Acute pancreatitis" AND prescriptions.drug_type = "MAIN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the number of students in Fall 09 from the state that had 3940 in Fall 07? | CREATE TABLE table_15055594_6 (
fall_09 INTEGER,
fall_07 VARCHAR
) | SELECT MAX(fall_09) FROM table_15055594_6 WHERE fall_07 = 3940 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
28803,
4240,
834,
948,
41,
1590,
834,
4198,
3,
21342,
17966,
6,
1590,
834,
4560,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
481,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2857,
834,
4198,
61,
21680,
953,
834,
12278,
28803,
4240,
834,
948,
549,
17444,
427,
1590,
834,
4560,
3274,
6352,
2445,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many patients with hyperglycemia hyponatremia as their primary disease were admitted in hospital for more than 15 days? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "HYPERGLYCEMIA;HYPONATREMIA" AND demographic.days_stay > "15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
15761,
8742,
517,
5121,
254,
25284,
188,
117,
15761,
6618,
25271,
26051,... |
What was the time of round 2 against Taylor Mccorriston? | CREATE TABLE table_50253 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
) | SELECT "Time" FROM table_50253 WHERE "Round" = '2' AND "Opponent" = 'taylor mccorriston' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
1828,
519,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
1752,
1828,
519,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
357,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
17,
9,
63,
322,
3,
51,
75,
5715,
17149,
29,
31,
1,
... |
When is the completed date of the destroyer with a pennant number h59? | CREATE TABLE table_name_50 (completed VARCHAR, pennant_number VARCHAR) | SELECT completed FROM table_name_50 WHERE pennant_number = "h59" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
25288,
26,
584,
4280,
28027,
6,
4550,
29,
288,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
19,
8,
2012,
833,
13,
8,
1012... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2012,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
4550,
29,
288,
834,
5525,
1152,
3274,
96,
107,
3390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is all the information about the basketball match? | CREATE TABLE university (
school_id number,
school text,
location text,
founded number,
affiliation text,
enrollment number,
nickname text,
primary_conference text
)
CREATE TABLE basketball_match (
team_id number,
school_id number,
team_name text,
acc_regular_season text... | SELECT * FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
496,
834,
23,
26,
381,
6,
496,
1499,
6,
1128,
1499,
6,
5710,
381,
6,
24405,
1499,
6,
17938,
381,
6,
24649,
1499,
6,
2329,
834,
28496,
1499,
3,
61,
3,
32102,
32103,
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,
1429,
21680,
8498,
834,
19515,
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,
... |
What is the average number of field goals scored by a right halfback who had more than 3 touchdowns? | CREATE TABLE table_name_80 (field_goals INTEGER, position VARCHAR, touchdowns VARCHAR) | SELECT AVG(field_goals) FROM table_name_80 WHERE position = "right halfback" AND touchdowns > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1846,
834,
839,
5405,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
19396,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
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,
71,
17217,
599,
1846,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1102,
3274,
96,
3535,
985,
1549,
121,
3430,
19396,
7,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the mountains classification for team columbia | CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, team_classification VARCHAR) | SELECT mountains_classification FROM table_19115414_4 WHERE team_classification = "Team Columbia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
15660,
591,
2534,
834,
591,
41,
11231,
13676,
834,
4057,
2420,
584,
4280,
28027,
6,
372,
834,
4057,
2420,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8022,
834,
4057,
2420,
21680,
953,
834,
2294,
15660,
591,
2534,
834,
591,
549,
17444,
427,
372,
834,
4057,
2420,
3274,
96,
18699,
8183,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the nationality of the player from round 5? | CREATE TABLE table_name_31 (nationality VARCHAR, round VARCHAR) | SELECT nationality FROM table_name_31 WHERE round = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
16557,
485,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1157,
485,
13,
8,
1959,
45,
1751,
305,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1157,
485,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1751,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the most first elected | CREATE TABLE table_28907 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT MAX("First elected") FROM table_28907 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
4560,
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,
490,
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,
4800,
4,
599,
121,
25171,
8160,
8512,
21680,
953,
834,
357,
3914,
4560,
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,
... |
the team to finish first after denso sc | CREATE TABLE table_203_561 (
id number,
"pos" number,
"team" text,
"total" number,
"high" number,
"low" number,
"average" number,
"change" text
) | SELECT "team" FROM table_203_561 WHERE "pos" = (SELECT "pos" FROM table_203_561 WHERE "team" = 'denso sc') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4834,
536,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
235,
1947,
121,
381,
6,
96,
6739,
121,
381,
6,
96,
3216,
121,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11650,
121,
21680,
953,
834,
23330,
834,
4834,
536,
549,
17444,
427,
96,
2748,
121,
3274,
41,
23143,
14196,
96,
2748,
121,
21680,
953,
834,
23330,
834,
4834,
536,
549,
17444,
427,
96,
11650,
121,
3274,
3,
31,
53... |
What are the number of the venues of all the matches? Sort them in the descending order of match date. | CREATE TABLE match (
Match_ID int,
Date text,
Venue text,
Score text,
Result text,
Competition text
)
CREATE TABLE hosting_city (
Year int,
Match_ID int,
Host_City text
)
CREATE TABLE city (
City_ID int,
City text,
Hanzi text,
Hanyu_Pinyin text,
Regional_Populat... | SELECT Venue, COUNT(Venue) FROM match GROUP BY Venue ORDER BY Date DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1588,
41,
12296,
834,
4309,
16,
17,
6,
7678,
1499,
6,
29940,
1499,
6,
17763,
1499,
6,
3,
20119,
1499,
6,
15571,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
29940,
6,
2847,
17161,
599,
553,
35,
76,
15,
61,
21680,
1588,
350,
4630,
6880,
272,
476,
29940,
4674,
11300,
272,
476,
7678,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
provide the number of patients whose lab test item id is 51200 and lab test abnormal status is delta. | 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 lab.itemid = "51200" AND lab.flag = "delta" | [
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 sum of week(s) with an attendance of 30,751? | CREATE TABLE table_name_77 (week INTEGER, attendance VARCHAR) | SELECT SUM(week) FROM table_name_77 WHERE attendance = 30 OFFSET 751 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
8041,
3,
21342,
17966,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
471,
599,
7,
61,
28,
46,
11364,
13,
11558,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
11364,
3274,
604,
3,
15316,
20788,
489,
5553,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many times is there more than 0 draws and more than 0 losses? | CREATE TABLE table_15297 (
"First game" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Percentage" text
) | SELECT COUNT("Played") FROM table_15297 WHERE "Drawn" > '0' AND "Lost" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26320,
4327,
41,
96,
25171,
467,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
12988,
3728,
545,
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,
2847,
17161,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
26320,
4327,
549,
17444,
427,
96,
308,
10936,
29,
121,
2490,
3,
31,
632,
31,
3430,
96,
434,
3481,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
... |
What was the place for the player whose final score was 71-69=140? | CREATE TABLE table_name_78 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_78 WHERE score = 71 - 69 = 140 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
4687,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
286,
21,
8,
1959,
3,
2544,
804,
2604,
47,
3,
4450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
2604,
3274,
3,
4450,
3,
18,
3,
3951,
3274,
11397,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many papers has Christopher D. Manning published ? | CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE paperdataset (
... | SELECT DISTINCT COUNT(DISTINCT writes.paperid) FROM author, writes WHERE author.authorname = 'Christopher D. Manning' AND writes.authorid = author.authorid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5669,
41,
5669,
23,
26,
16,
17,
6,
5669,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11858,
41,
1040,
23,
26,
16,
17,
6,
2291,
23,
26,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2847,
17161,
599,
15438,
25424,
6227,
11858,
5,
19587,
23,
26,
61,
21680,
2291,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
20941,
10775,
49,
309,
5,
6362,
53,
31,
3430,
1185... |
who won mixed doubles when zhou mi won womens singles | CREATE TABLE table_23681 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT "Mixed doubles" FROM table_23681 WHERE "Womens singles" = 'Zhou Mi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3651,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
7,
1486,
7,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
2407,
15,
26,
1486,
7,
121,
21680,
953,
834,
2773,
3651,
536,
549,
17444,
427,
96,
518,
32,
904,
7,
712,
7,
121,
3274,
3,
31,
956,
9492,
2133,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Name of the Quarterback with a Pick # less than 11? | CREATE TABLE table_name_90 (
name VARCHAR,
pick__number VARCHAR,
position VARCHAR
) | SELECT name FROM table_name_90 WHERE pick__number < 11 AND position = "quarterback" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
564,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3,
2,
850,
3430,
1102,
3274,
96,
19973,
1549,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the number of customer address history for each city in a bar chart, and order Y-axis in desc order please. | CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_date DATETIME,
order_status_code VARCHAR(15)
)
CREATE TABLE Customers (
customer_id INTEGER,
payment_method_code VARCHAR(15),
customer_number VARCHAR(20),
customer_name VARCHAR(80),
customer_address VARCHAR(... | SELECT T3.city, COUNT(T3.city) FROM Customer_Address_History AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id JOIN Addresses AS T3 ON T1.address_id = T3.address_id GROUP BY T3.city ORDER BY COUNT(T3.city) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
7395,
588,
7,
41,
455,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
23,
26,
3,
21342,
17966,
6,
455,
834,
5522,
309,
6048,
382,
15382,
6,
455,
834,
8547,
302,
834,
4978,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5787,
6726,
6,
2847,
17161,
599,
382,
5787,
6726,
61,
21680,
7327,
834,
20773,
9377,
834,
12146,
13029,
6157,
332,
536,
3,
15355,
3162,
16423,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
... |
What type of photos of Angelina Jolie cost $500,000? | CREATE TABLE table_80031 (
"Type" text,
"Person(s)" text,
"Publisher(s)" text,
"Publication date" text,
"Reported price" text
) | SELECT "Type" FROM table_80031 WHERE "Reported price" = '$500,000' AND "Person(s)" = 'angelina jolie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6192,
3341,
41,
96,
25160,
121,
1499,
6,
96,
345,
13515,
599,
7,
61,
121,
1499,
6,
96,
31009,
49,
599,
7,
61,
121,
1499,
6,
96,
30931,
257,
833,
121,
1499,
6,
96,
1649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25160,
121,
21680,
953,
834,
6192,
3341,
549,
17444,
427,
96,
1649,
16262,
594,
121,
3274,
3,
31,
3229,
23221,
31,
3430,
96,
345,
13515,
599,
7,
61,
121,
3274,
3,
31,
3280,
8280,
13773,
15,
31,
1,
-100,
-100,
... |
what is the production in 2010 with rank of 8? | CREATE TABLE table_name_39 (
rank VARCHAR
) | SELECT 2010 FROM table_name_39 WHERE rank = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
999,
16,
2735,
28,
11003,
13,
505,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2735,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
11003,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the team with stadium being glebe park | CREATE TABLE table_14003020_5 (team VARCHAR, stadium VARCHAR) | SELECT team FROM table_14003020_5 WHERE stadium = "Glebe Park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
5548,
1458,
1755,
834,
755,
41,
11650,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
372,
28,
14939,
271,
3,
3537,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
536,
5548,
1458,
1755,
834,
755,
549,
17444,
427,
14939,
3274,
96,
517,
109,
346,
1061,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where is the headquarter located for the Annapolis Valley Regional School Board? | CREATE TABLE table_73314 (
"School District" text,
"Headquarters" text,
"Sector" text,
"Enrollment (2011-12)" real,
"Teachers (2008-09" real,
"Student-Teacher ratio (2008-09)" text,
"French enrollment (2011-12)" text,
"Graduation rate (2011-12)" text,
"Withdrawal rate (2010-11)" text... | SELECT "Headquarters" FROM table_73314 WHERE "School District" = 'Annapolis Valley Regional School Board' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
519,
2534,
41,
96,
29364,
3570,
121,
1499,
6,
96,
3845,
9,
26,
19973,
7,
121,
1499,
6,
96,
134,
15,
5317,
121,
1499,
6,
96,
8532,
4046,
297,
41,
13907,
5947,
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,
96,
3845,
9,
26,
19973,
7,
121,
21680,
953,
834,
4552,
519,
2534,
549,
17444,
427,
96,
29364,
3570,
121,
3274,
3,
31,
17608,
9,
15621,
3460,
7676,
1121,
2086,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times has cultures - csf procedure been performed since 5 years ago? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'cultures - csf' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-5 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1058,
549,
17444,
427,
1058,
5,
26889,
4350,
3274,
3,
31,
10547,
7,
3,
18,
3,
75,
7,
89,
31,
3430,
309,
6048,
382,
15382,
599,
26889,
5,
26889,
715,
61,
2490,
2423,
309,
6048,
... |
What is Sum of Score, when Place is T2, and when Player is Justin Leonard? | CREATE TABLE table_name_13 (
score INTEGER,
place VARCHAR,
player VARCHAR
) | SELECT SUM(score) FROM table_name_13 WHERE place = "t2" AND player = "justin leonard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
2604,
3,
21342,
17966,
6,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
12198,
13,
17763,
6,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7,
9022,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
286,
3274,
96,
17,
357,
121,
3430,
1959,
3274,
96,
4998,
77,
90,
106,
986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the total of the player from Spain? | CREATE TABLE table_name_24 (
total VARCHAR,
country VARCHAR
) | SELECT total FROM table_name_24 WHERE country = "spain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
792,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
13,
8,
1959,
45,
6436,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
684,
3274,
96,
14147,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many shows were launched on CBS (2002)? | CREATE TABLE table_30775 (
"No." real,
"Name" text,
"Country" text,
"Original channel" text,
"No. of episodes" real,
"Running time" text,
"Launched" text,
"Date" text,
"IRST" text
) | SELECT COUNT("Launched") FROM table_30775 WHERE "Original channel" = 'CBS (2002)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
940,
3072,
41,
96,
4168,
535,
490,
6,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
667,
3380,
10270,
4245,
121,
1499,
6,
96,
4168,
5,
13,
13562,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3612,
202,
4513,
8512,
21680,
953,
834,
1458,
940,
3072,
549,
17444,
427,
96,
667,
3380,
10270,
4245,
121,
3274,
3,
31,
254,
4547,
3,
31444,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the County of Howard Street Tunnel? | CREATE TABLE table_name_72 (county VARCHAR, name VARCHAR) | SELECT county FROM table_name_72 WHERE name = "howard street tunnel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
13362,
63,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1334,
13,
13816,
1887,
27990,
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,
5435,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
564,
3274,
96,
4067,
986,
2815,
11916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me the comparison about School_ID over the ACC_Road , and group by attribute ACC_Home by a bar chart, sort by the X in ascending. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY ACC_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
3,
14775,
834,
448,
32,
9,
26,
4674,
11300,
272,
476,
3,
14775,
834,
448,
32,
9,
... |
What was Collingwood's score when they played against North Melbourne at home? | CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_12 WHERE away_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
9919,
53,
2037,
31,
7,
2604,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
550,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many patients who had cardiopulmonary resustication not otherwise specified and had to stay in the hospital for more than 2 days? | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "6" AND procedures.long_title = "Cardiopulmonary resuscitation, not otherwise specified" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
For those records from the products and each product's manufacturer, return a scatter chart about the correlation between code and manufacturer , and group by attribute founder. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Code, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
22737,
6,
332,
5411,
7296,
76,
8717,
450,
49,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,... |
What is the 1991 when 1997 is 18? | CREATE TABLE table_64586 (
"Tournament" text,
"2000" text,
"1999" text,
"1998" text,
"1997" text,
"1996" text,
"1995" text,
"1994" text,
"1993" text,
"1992" text,
"1991" text
) | SELECT "1991" FROM table_64586 WHERE "1997" = '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2128,
3840,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
13527,
121,
1499,
6,
96,
2294,
3264,
121,
1499,
6,
96,
2294,
3916,
121,
1499,
6,
96,
2294,
4327,
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,
2294,
4729,
121,
21680,
953,
834,
948,
2128,
3840,
549,
17444,
427,
96,
2294,
4327,
121,
3274,
3,
31,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What label is after 2004? | CREATE TABLE table_name_24 (label VARCHAR, year INTEGER) | SELECT label FROM table_name_24 WHERE year > 2004 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
40,
10333,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
3783,
19,
227,
4406,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
215,
2490,
4406,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.