NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who was the opponent at Pasir Gudang, Malaysia with a match larger than 2? | CREATE TABLE table_40659 (
"Match" real,
"Date" text,
"Tournament" text,
"Location" text,
"Opponent team" text,
"Score" text
) | SELECT "Opponent team" FROM table_40659 WHERE "Match" > '2' AND "Location" = 'pasir gudang, malaysia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
948,
3390,
41,
96,
329,
14547,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
667,
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,
96,
667,
102,
9977,
372,
121,
21680,
953,
834,
2445,
948,
3390,
549,
17444,
427,
96,
329,
14547,
121,
2490,
3,
31,
357,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
8020,
23,
52,
3,
1744,
26,
1468,
6,
954... |
On what date did a home team score 16.10 (106)? | CREATE TABLE table_78490 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_78490 WHERE "Home team score" = '16.10 (106)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
591,
2394,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3940,
591,
2394,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
2938,
5,
1714,
11704,
10938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average decile with Years of 1–8, and an Area of waipara? | CREATE TABLE table_name_98 (decile INTEGER, years VARCHAR, area VARCHAR) | SELECT AVG(decile) FROM table_name_98 WHERE years = "1–8" AND area = "waipara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
24223,
109,
3,
21342,
17966,
6,
203,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
7908,
109,
28,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
24223,
109,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
203,
3274,
96,
536,
104,
927,
121,
3430,
616,
3274,
96,
210,
9,
23,
6583,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the location attendance was Quicken Loans Arena 20,562, who had the High Assists? | CREATE TABLE table_27700375_6 (
high_assists VARCHAR,
location_attendance VARCHAR
) | SELECT high_assists FROM table_27700375_6 WHERE location_attendance = "Quicken Loans Arena 20,562" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
9295,
22954,
834,
948,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1128,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2555,
9295,
22954,
834,
948,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
5991,
23,
4695,
12183,
7,
14904,
16047,
4834,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Score with an Opponent that is amanda brown brenda remilton? | CREATE TABLE table_name_45 (
score VARCHAR,
opponents VARCHAR
) | SELECT score FROM table_name_45 WHERE opponents = "amanda brown brenda remilton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
2604,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
28,
46,
4495,
9977,
24,
19,
183,
232,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
16383,
3274,
96,
265,
232,
9,
4216,
6397,
989,
9,
3,
60,
51,
23,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Gold medals did the Nation with less than 8 Total medals including 1 Bronze and 0 Silver receive? | CREATE TABLE table_50459 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Gold") FROM table_50459 WHERE "Total" < '8' AND "Bronze" < '1' AND "Silver" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
591,
3390,
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,
3,
17684,
599,
121,
23576,
8512,
21680,
953,
834,
1752,
591,
3390,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
927,
31,
3430,
96,
22780,
29,
776,
121,
3,
2,
3,
31,
536,
31,
3430,
96,
134,
173,
624,
121,... |
What is the try bonus when there were 58 points? | CREATE TABLE table_name_67 (try_bonus VARCHAR, points VARCHAR) | SELECT try_bonus FROM table_name_67 WHERE points = "58" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
8224,
834,
5407,
302,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
653,
4023,
116,
132,
130,
3,
3449,
979... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
653,
834,
5407,
302,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
979,
3274,
96,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What format is catalogue 148615 in? | CREATE TABLE table_57959 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue" text
) | SELECT "Format" FROM table_57959 WHERE "Catalogue" = '148615' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4440,
3390,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
10384,
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,
0,
0... | [
3,
23143,
14196,
96,
3809,
3357,
121,
21680,
953,
834,
755,
4440,
3390,
549,
17444,
427,
96,
18610,
9,
10384,
121,
3274,
3,
31,
2534,
3840,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which episodes has the lowest average ratings of 8.7%? | CREATE TABLE table_name_65 (
episodes INTEGER,
average_ratings VARCHAR
) | SELECT MIN(episodes) FROM table_name_65 WHERE average_ratings = "8.7%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
13562,
3,
21342,
17966,
6,
1348,
834,
52,
1014,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
13562,
65,
8,
7402,
1348,
9712,
13,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
15,
102,
159,
32,
1395,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1348,
834,
52,
1014,
7,
3274,
96,
927,
5,
6170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Office has a Representative of scott pelath? | CREATE TABLE table_14809 (
"Office" text,
"Representative" text,
"Party" text,
"Residence" text,
"First Elected" text
) | SELECT "Office" FROM table_14809 WHERE "Representative" = 'scott pelath' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24748,
4198,
41,
96,
22098,
121,
1499,
6,
96,
1649,
12640,
1528,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
1649,
1583,
3772,
121,
1499,
6,
96,
25171,
1289,
7633,
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,
22098,
121,
21680,
953,
834,
24748,
4198,
549,
17444,
427,
96,
1649,
12640,
1528,
121,
3274,
3,
31,
7,
10405,
158,
521,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the average of manager_id bin hire_date by time. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,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... | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
... |
Find the buildings which have rooms with capacity more than 50. | CREATE TABLE advisor (
s_id text,
i_id text
)
CREATE TABLE student (
id text,
name text,
dept_name text,
tot_cred number
)
CREATE TABLE department (
dept_name text,
building text,
budget number
)
CREATE TABLE prereq (
course_id text,
prereq_id text
)
CREATE TABLE section ... | SELECT DISTINCT building FROM classroom WHERE capacity > 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8815,
41,
3,
7,
834,
23,
26,
1499,
6,
3,
23,
834,
23,
26,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
3,
23,
26,
1499,
6,
564,
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,
3,
15438,
25424,
6227,
740,
21680,
4858,
549,
17444,
427,
2614,
2490,
943,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Howard Payne University's total enrollment? | CREATE TABLE table_name_67 (total_enrollment VARCHAR, institution_name VARCHAR) | SELECT total_enrollment FROM table_name_67 WHERE institution_name = "howard payne university" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
235,
1947,
834,
35,
4046,
297,
584,
4280,
28027,
6,
6568,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
13816,
276,
21993,
636... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
834,
35,
4046,
297,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
6568,
834,
4350,
3274,
96,
4067,
986,
726,
29,
15,
3819,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Quotient of 97 350,333 has how many votes? | CREATE TABLE table_5760 (
"Candidate" text,
"Party" text,
"Votes" text,
"Quotient" text,
"Municipality" text
) | SELECT "Votes" FROM table_5760 WHERE "Quotient" = '97 350,333' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3328,
41,
96,
14050,
12416,
342,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
553,
32,
1422,
121,
1499,
6,
96,
5991,
32,
15058,
121,
1499,
6,
96,
329,
202,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
32,
1422,
121,
21680,
953,
834,
3436,
3328,
549,
17444,
427,
96,
5991,
32,
15058,
121,
3274,
3,
31,
4327,
10239,
6,
23360,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is every entry in the QLD Cup Premierships when home ground is Dairy Farmers Stadium? | CREATE TABLE table_26354 (
"Team" text,
"Location" text,
"Home Ground" text,
"First year in Qld Cup" real,
"Last year in Qld Cup" real,
"Qld Cup Premierships" text
) | SELECT "Qld Cup Premierships" FROM table_26354 WHERE "Home Ground" = 'Dairy Farmers Stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2469,
591,
41,
96,
18699,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
19040,
13908,
121,
1499,
6,
96,
25171,
215,
16,
1593,
40,
26,
3802,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2247,
40,
26,
3802,
6552,
2009,
7,
121,
21680,
953,
834,
2688,
2469,
591,
549,
17444,
427,
96,
19040,
13908,
121,
3274,
3,
31,
308,
2256,
63,
24493,
12750,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Name, when Block is 320, when Spike is more than 336, and when Date of Birth is 12.10.1978? | CREATE TABLE table_name_39 (
name VARCHAR,
date_of_birth VARCHAR,
block VARCHAR,
spike VARCHAR
) | SELECT name FROM table_name_39 WHERE block = 320 AND spike > 336 AND date_of_birth = "12.10.1978" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
564,
584,
4280,
28027,
6,
833,
834,
858,
834,
20663,
584,
4280,
28027,
6,
2463,
584,
4280,
28027,
6,
22440,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2463,
3274,
3,
15003,
3430,
22440,
2490,
220,
3420,
3430,
833,
834,
858,
834,
20663,
3274,
96,
9368,
22567,
21441,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise a kg z, yves jongen, and a Length of 3:08? | CREATE TABLE table_name_46 (
producer_s_ VARCHAR,
length VARCHAR,
track VARCHAR,
songwriter_s_ VARCHAR
) | SELECT producer_s_ FROM table_name_46 WHERE track < 8 AND songwriter_s_ = "hadise açıkgöz, yves jongen" AND length = "3:08" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
8211,
834,
7,
834,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
6,
1463,
584,
4280,
28027,
6,
3,
21101,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8211,
834,
7,
834,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1463,
3,
2,
505,
3430,
3,
21101,
834,
7,
834,
3274,
96,
8399,
159,
15,
3,
9,
8970,
2,
8711,
1872,
172,
6,
3,
63,
162,
7,
3,
15429,
729,
1... |
What is the 2010 population of the municipality with 31 barangays? | CREATE TABLE table_255829_1 (population__2010_ VARCHAR, no_of_barangays VARCHAR) | SELECT population__2010_ FROM table_255829_1 WHERE no_of_barangays = 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3449,
3166,
834,
536,
41,
9791,
7830,
834,
834,
14926,
834,
584,
4280,
28027,
6,
150,
834,
858,
834,
1047,
1468,
9,
63,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2074,
834,
834,
14926,
834,
21680,
953,
834,
1828,
3449,
3166,
834,
536,
549,
17444,
427,
150,
834,
858,
834,
1047,
1468,
9,
63,
7,
3274,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Against, when Venue is 'Twickenham , London', and when Date is '04/03/2000'? | CREATE TABLE table_name_55 (
against VARCHAR,
venue VARCHAR,
date VARCHAR
) | SELECT against FROM table_name_55 WHERE venue = "twickenham , london" AND date = "04/03/2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
581,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
20749,
6,
116,
29940,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
581,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
5669,
3274,
96,
17,
5981,
35,
1483,
3,
6,
3,
40,
106,
2029,
121,
3430,
833,
3274,
96,
6348,
31064,
13527,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
for patient id 74032, specify duration of hospital stay and death status. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT demographic.days_stay, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "74032" | [
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,
14798,
5,
1135,
7,
834,
21545,
6,
14798,
5,
994,
2388,
15,
834,
89,
5430,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
940,
2445,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where did Ben Gordon (8) have the high assists? | CREATE TABLE table_8148 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_8148 WHERE "High assists" = 'ben gordon (8)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4959,
3707,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
4959,
3707,
549,
17444,
427,
96,
21417,
13041,
121,
3274,
3,
31,
115,
35,
281,
52,
2029,
3,
28007,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Team, when Game is '59'? | CREATE TABLE table_50543 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_50543 WHERE "Game" = '59' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
5062,
519,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
1752,
5062,
519,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
3390,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many boroughs with different ranks have a total Asian population of 33338? | CREATE TABLE table_19149550_9 (rank VARCHAR, total_asian_population VARCHAR) | SELECT COUNT(rank) FROM table_19149550_9 WHERE total_asian_population = 33338 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
24816,
17147,
834,
1298,
41,
6254,
584,
4280,
28027,
6,
792,
834,
9,
10488,
834,
9791,
7830,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
12823,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
2294,
24816,
17147,
834,
1298,
549,
17444,
427,
792,
834,
9,
10488,
834,
9791,
7830,
3274,
3,
23360,
3747,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose admission location is emergency room admit and procedure short title is exc/dest hrt lesion open | 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 INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND procedures.short_title = "Exc/dest hrt lesion open" | [
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,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the 2004 tournament that has a Q1 of 2011? | CREATE TABLE table_name_10 (Id VARCHAR) | SELECT 2004 FROM table_name_10 WHERE 2011 = "q1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4406,
5892,
24,
65,
3,
9,
1593,
536,
13,
2722,
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,
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,
4406,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
2722,
3274,
96,
1824,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What home team is at 7:30pm in ESPN? | CREATE TABLE table_26842217_4 (
home_team VARCHAR,
time VARCHAR,
broadcast VARCHAR
) | SELECT home_team FROM table_26842217_4 WHERE time = "7:30pm" AND broadcast = "ESPN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4608,
2884,
2517,
834,
591,
41,
234,
834,
11650,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
6878,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
234,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
2688,
4608,
2884,
2517,
834,
591,
549,
17444,
427,
97,
3274,
96,
18078,
2028,
121,
3430,
6878,
3274,
96,
26130,
567,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the station name with at least two trains. | CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR) | SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
4350,
584,
4280,
28027,
6,
2478,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
834,
6682,
41,
6682,
834,
23,
26,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
332,
4416,
4350,
21680,
2412,
834,
6682,
6157,
332,
536,
3,
15355,
3162,
2478,
6157,
332,
357,
9191,
332,
5411,
6682,
834,
23,
26,
3274,
332,
4416,
6682,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
5411,
6682,
834,... |
Show team id vs acc_percent as scatter plot use a different color for each ACC_Road | 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 Team_ID, ACC_Percent FROM basketball_match GROUP 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,
2271,
834,
4309,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the title of the episode directed by David von Ancken, with a episode number bigger than 16.0? | CREATE TABLE table_13336122_3 (title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR) | SELECT title FROM table_13336122_3 WHERE directed_by = "David Von Ancken" AND no_in_series > 16.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
3420,
20889,
834,
519,
41,
21869,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
21680,
953,
834,
22974,
3420,
20889,
834,
519,
549,
17444,
427,
6640,
834,
969,
3274,
96,
308,
9,
6961,
6560,
389,
4695,
121,
3430,
150,
834,
77,
834,
10833,
7,
2490,
209,
22642,
1,
-100,
-100,
-100,
-100,
-10... |
List the physicians' employee ids together with their primary affiliation departments' ids. | CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, primaryaffiliation VARCHAR) | SELECT physician, department FROM affiliated_with WHERE primaryaffiliation = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18273,
834,
4065,
41,
6941,
7,
1294,
152,
584,
4280,
28027,
6,
3066,
584,
4280,
28027,
6,
2329,
4127,
173,
23,
257,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
13768,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10027,
6,
3066,
21680,
18273,
834,
4065,
549,
17444,
427,
2329,
4127,
173,
23,
257,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
in the year 1998/99 what was the league | CREATE TABLE table_1908049_1 (
league VARCHAR,
year VARCHAR
) | SELECT league FROM table_1908049_1 WHERE year = "1998/99" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
2079,
3647,
834,
536,
41,
5533,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
16,
8,
215,
6260,
87,
3264,
125,
47,
8,
5533,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5533,
21680,
953,
834,
11776,
2079,
3647,
834,
536,
549,
17444,
427,
215,
3274,
96,
2294,
3916,
87,
3264,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those products with a price between 60 and 120, visualize a pie chart about the proportion of name and manufacturer. | 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 Name, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 | [
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,
5570,
6,
15248,
21680,
7554,
549,
17444,
427,
5312,
272,
7969,
518,
23394,
1640,
3430,
5864,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
The golfer from Spain with a total less than 294 won in what year (s)? | CREATE TABLE table_62148 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Year(s) won" FROM table_62148 WHERE "Total" < '294' AND "Country" = 'spain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
24748,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
599,
7,
61,
751,
121,
21680,
953,
834,
4056,
24748,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
357,
4240,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
14147,
77,
31,
1,
-100,
-100,
-100,
... |
Who was the driver of the vehicle having class of CM22 and navigator of Macneall? | CREATE TABLE table_65052 (
"Driver" text,
"Navigator" text,
"Vehicle" text,
"Class" text,
"Capacity" real,
"Total Time" text,
"Margin" text
) | SELECT "Driver" FROM table_65052 WHERE "Class" = 'cm22' AND "Navigator" = 'macneall' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15348,
5373,
41,
96,
20982,
52,
121,
1499,
6,
96,
22192,
23,
19306,
121,
1499,
6,
96,
553,
15,
107,
23,
2482,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
19566,
9,
6726,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
15348,
5373,
549,
17444,
427,
96,
21486,
121,
3274,
3,
31,
75,
51,
2884,
31,
3430,
96,
22192,
23,
19306,
121,
3274,
3,
31,
11101,
29,
15,
1748,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the constructor for the driver with grid less than 2? | CREATE TABLE table_51724 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Constructor" FROM table_51724 WHERE "Grid" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2517,
2266,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
7593,
127,
121,
21680,
953,
834,
755,
2517,
2266,
549,
17444,
427,
96,
13313,
26,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients whose admission location is transfer from hosp/extram and admission year is less than 2166? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.admityear < "2166" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
11359,
7369,
20805,
21680,
3,
6299,
4274,
87,
427,
4,
11359,
... |
Where did Essendon play as the away team? | CREATE TABLE table_name_69 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_69 WHERE away_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
15098,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
11722,
2029,
577,
38,
8,
550,
372,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
550,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, show me about the distribution of name and price , and group by attribute founder in a bar chart, and I want to rank by the Price from high to low. | 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.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Price DESC | [
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,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3,
19145... |
What is the smallest number of seats in a retired vehicle that was started in service in 1981? | CREATE TABLE table_name_93 (number_of_seats INTEGER, current_status VARCHAR, year_placed_in_service VARCHAR) | SELECT MIN(number_of_seats) FROM table_name_93 WHERE current_status = "retired" AND year_placed_in_service = "1981" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
5525,
1152,
834,
858,
834,
7,
1544,
7,
3,
21342,
17966,
6,
750,
834,
8547,
302,
584,
4280,
28027,
6,
215,
834,
4687,
26,
834,
77,
834,
5114,
584,
428... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
5525,
1152,
834,
858,
834,
7,
1544,
7,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
750,
834,
8547,
302,
3274,
96,
10682,
1271,
121,
3430,
215,
834,
4687,
26,
834,
77,
834,
5114,
3274,
96,... |
Find the organisation ids and details of the organisations which are involved in | CREATE TABLE Organisations (
organisation_id VARCHAR,
organisation_details VARCHAR
)
CREATE TABLE Grants (
organisation_id VARCHAR,
grant_amount INTEGER
) | SELECT T2.organisation_id, T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING SUM(T1.grant_amount) > 6000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11033,
7,
41,
5102,
834,
23,
26,
584,
4280,
28027,
6,
5102,
834,
221,
5756,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8059,
7,
41,
5102,
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,
332,
4416,
10832,
834,
23,
26,
6,
332,
4416,
10832,
834,
221,
5756,
7,
21680,
8059,
7,
6157,
332,
536,
3,
15355,
3162,
11033,
7,
6157,
332,
357,
9191,
332,
5411,
10832,
834,
23,
26,
3274,
332,
4416,
10832,
834,
23... |
WHAT IS THE DEATH WHEN BIRTH DATE IS 2 AUGUST 1424? | CREATE TABLE table_name_96 (
death VARCHAR,
birth VARCHAR
) | SELECT death FROM table_name_96 WHERE birth = "2 august 1424" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
1687,
584,
4280,
28027,
6,
3879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3396,
24786,
549,
22735,
272,
5705,
4611,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1687,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
3879,
3274,
96,
357,
14663,
968,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 10% is the percentage of electricity reduction how many sets of universities are there? | CREATE TABLE table_29538735_1 (universities VARCHAR, _percentage_electricity_reduction VARCHAR) | SELECT COUNT(universities) FROM table_29538735_1 WHERE _percentage_electricity_reduction = "10%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4867,
4225,
2469,
834,
536,
41,
7846,
2197,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
17470,
485,
834,
60,
8291,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7846,
2197,
61,
21680,
953,
834,
3166,
4867,
4225,
2469,
834,
536,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
17470,
485,
834,
60,
8291,
3274,
96,
1714,
1454,
121,
1,
-100,
-100,
-100,
-100,
-10... |
does the ae 8/8 weigh more or less than the re 6/6 ? | CREATE TABLE table_204_850 (
id number,
"name" text,
"railway" text,
"series" text,
"maker" text,
"dates" text,
"drive" text,
"wheel arrangement" text,
"weight" text,
"power" text,
"notes" text
) | SELECT (SELECT "weight" FROM table_204_850 WHERE "name" = 'ae 8/8') > (SELECT "weight" FROM table_204_850 WHERE "name" = 're 6/6') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
17246,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
12977,
1343,
121,
1499,
6,
96,
10833,
7,
121,
1499,
6,
96,
8337,
121,
1499,
6,
96,
5522,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
41,
23143,
14196,
96,
9378,
121,
21680,
953,
834,
26363,
834,
17246,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
9,
15,
505,
9483,
31,
61,
2490,
41,
23143,
14196,
96,
9378,
121,
21680,
953,
834,
26363,
834,
17246,
... |
Who directed season 1? | CREATE TABLE table_18481791_3 (
directed_by VARCHAR,
no_in_season VARCHAR
) | SELECT directed_by FROM table_18481791_3 WHERE no_in_season = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3707,
2517,
4729,
834,
519,
41,
6640,
834,
969,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6640,
834,
969,
21680,
953,
834,
2606,
3707,
2517,
4729,
834,
519,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the aggregate for Ricky Groves? | CREATE TABLE table_28208 (
"Celebrity" text,
"Known for" text,
"Age" real,
"Professional" text,
"Series" real,
"Place" text,
"Dances" real,
"Highest score" real,
"Lowest score" real,
"Aggregate" real,
"Average" text
) | SELECT MAX("Aggregate") FROM table_28208 WHERE "Celebrity" = 'Ricky Groves' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
23946,
41,
96,
254,
400,
2160,
17,
63,
121,
1499,
6,
96,
26176,
21,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
3174,
17585,
138,
121,
1499,
6,
96,
12106,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
188,
122,
18301,
342,
8512,
21680,
953,
834,
2577,
23946,
549,
17444,
427,
96,
254,
400,
2160,
17,
63,
121,
3274,
3,
31,
448,
3142,
63,
14643,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Mark has an Athlete of tatyana lebedeva? | CREATE TABLE table_name_84 (
mark VARCHAR,
athlete VARCHAR
) | SELECT mark FROM table_name_84 WHERE athlete = "tatyana lebedeva" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
3946,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2185,
65,
46,
71,
189,
1655,
15,
13,
3,
17,
144,
21247,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3946,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
17893,
3274,
96,
17,
144,
21247,
90,
4143,
4721,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose age is less than 89 and item id is 50953? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "89" AND lab.itemid = "50953" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What are the candidates for new york 35? | CREATE TABLE table_1342233_32 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1342233_32 WHERE district = "New York 35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
20879,
834,
2668,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
4341,
21,
126,
25453,
3097,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
2368,
4165,
20879,
834,
2668,
549,
17444,
427,
3939,
3274,
96,
6861,
1060,
3097,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If the amount of viewers is 5.14 million and the rating/share is 2.0/6, what is the ranking? | CREATE TABLE table_23344 (
"#" real,
"Episode" text,
"Rating" text,
"Share" real,
"Rating/Share (18-49)" text,
"Viewers (millions)" text,
"Rank (Night)" text
) | SELECT "Rating" FROM table_23344 WHERE "Rating/Share (18-49)" = '2.0/6' AND "Viewers (millions)" = '5.14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
3628,
41,
96,
4663,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
448,
1014,
121,
1499,
6,
96,
24501,
121,
490,
6,
96,
448,
1014,
87,
24501,
9323,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1014,
121,
21680,
953,
834,
20879,
3628,
549,
17444,
427,
96,
448,
1014,
87,
24501,
9323,
18,
3647,
61,
121,
3274,
3,
31,
24273,
18656,
31,
3430,
96,
15270,
277,
41,
17030,
7,
61,
121,
3274,
3,
31,
20519,... |
When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found? | CREATE TABLE table_name_44 (runners_up INTEGER, team VARCHAR, winners VARCHAR) | SELECT MIN(runners_up) FROM table_name_44 WHERE team = "pachuca" AND winners > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
10806,
7,
834,
413,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
8969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
132,
33,
72,
145,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10806,
7,
834,
413,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
372,
3274,
96,
102,
1836,
18283,
121,
3430,
8969,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the Av/G of the 2009 season? | CREATE TABLE table_name_74 (
avg_g VARCHAR,
season VARCHAR
) | SELECT avg_g FROM table_name_74 WHERE season = "2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
3,
9,
208,
122,
834,
122,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
71,
208,
87,
517,
13,
8,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9,
208,
122,
834,
122,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
774,
3274,
96,
16660,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the number of patients who had urine lab test and were born before 2060. | 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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2060" AND lab.fluid = "Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the number of emergency room admitted patients who have mesenteric ischemia primary disease? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "MESENTERIC ISCHEMIA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
18464,
17063,
3,
30270,
8502,
12604,
121,
3430,
147... |
The man who received 87,676 votes in Queens won what percentage of the total for the election? | CREATE TABLE table_1108394_47 (
_percentage VARCHAR,
queens VARCHAR
) | SELECT _percentage FROM table_1108394_47 WHERE queens = "87,676" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
4591,
4240,
834,
4177,
41,
3,
834,
883,
3728,
545,
584,
4280,
28027,
6,
14915,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
388,
113,
1204,
3,
4225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
834,
883,
3728,
545,
21680,
953,
834,
19277,
4591,
4240,
834,
4177,
549,
17444,
427,
14915,
7,
3274,
96,
4225,
6,
3708,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the name of the organization that has published the largest number of papers. | CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authors (
authid number,
lname text,
fname text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE inst (
instid number,
name text,
country text
) | SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5778,
41,
1040,
23,
26,
381,
6,
2233,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5921,
41,
185,
17,
11740,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
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,
3,
17,
5411,
4350,
21680,
16,
7,
17,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
77,
2248,
26,
3274,
3,
17,
4416,
77,
2248,
26,
3,
15355,
3162,
5778,
6157,
3,
17,
519,
... |
Which Time has a Round smaller than 3, and an Opponent of bao quach? | CREATE TABLE table_name_11 (
time VARCHAR,
round VARCHAR,
opponent VARCHAR
) | SELECT time FROM table_name_11 WHERE round < 3 AND opponent = "bao quach" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
97,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2900,
65,
3,
9,
9609,
2755,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
1751,
3,
2,
220,
3430,
15264,
3274,
96,
115,
9,
32,
546,
1836,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the surface made of if the year is 1979 and the championship is US Open? | CREATE TABLE table_22597626_2 (
surface VARCHAR,
championship VARCHAR,
year VARCHAR
) | SELECT surface FROM table_22597626_2 WHERE championship = "US Open" AND year = 1979 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3390,
3959,
2688,
834,
357,
41,
1774,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
2884,
3390,
3959,
2688,
834,
357,
549,
17444,
427,
10183,
3274,
96,
3063,
2384,
121,
3430,
215,
3274,
15393,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average number of events having 1 top-10, fewer than 4 cuts made, and 0 wins? | CREATE TABLE table_name_98 (events INTEGER, cuts_made VARCHAR, top_10 VARCHAR, wins VARCHAR) | SELECT AVG(events) FROM table_name_98 WHERE top_10 = 1 AND wins > 0 AND cuts_made < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
15,
2169,
7,
3,
21342,
17966,
6,
8620,
834,
4725,
584,
4280,
28027,
6,
420,
834,
1714,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
15,
2169,
7,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
420,
834,
1714,
3274,
209,
3430,
9204,
2490,
3,
632,
3430,
8620,
834,
4725,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who had a function of explorator? | CREATE TABLE table_71012 (
"From" text,
"Until" text,
"Name" text,
"Party" text,
"Function" text
) | SELECT "Name" FROM table_71012 WHERE "Function" = 'explorator' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1714,
2122,
41,
96,
22674,
121,
1499,
6,
96,
12282,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
371,
202,
4985,
121,
1499,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
940,
1714,
2122,
549,
17444,
427,
96,
371,
202,
4985,
121,
3274,
3,
31,
9080,
52,
1016,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the country for the player Tiger Woods? | CREATE TABLE table_name_3 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_3 WHERE player = "tiger woods" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
17529,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
684,
21,
8,
1959,
11804,
2985,
7,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1959,
3274,
96,
17,
4424,
1679,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which method was used when Rafael Cavalcante was the opponent? | CREATE TABLE table_59537 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Location" text
) | SELECT "Method" FROM table_59537 WHERE "Opponent" = 'rafael cavalcante' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3301,
4118,
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,
23351,
107,
32,
26,
121,
21680,
953,
834,
755,
3301,
4118,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
52,
9,
89,
9,
15,
40,
212,
2165,
75,
1841,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many matches did Atl tico Ciudad have with an average higher than 0.61? | CREATE TABLE table_61753 (
"Goalkeeper" text,
"Goals" real,
"Matches" real,
"Average" real,
"Team" text
) | SELECT COUNT("Matches") FROM table_61753 WHERE "Team" = 'atlético ciudad' AND "Average" > '0.61' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
3072,
519,
41,
96,
6221,
138,
10477,
121,
1499,
6,
96,
6221,
5405,
121,
490,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
188,
624,
545,
121,
490,
6,
96,
18699,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
329,
144,
2951,
8512,
21680,
953,
834,
4241,
3072,
519,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
144,
40,
17678,
509,
18224,
26,
31,
3430,
96,
188,
624,
545,
121,
2490,
3,
31,
22787,
53... |
What is Record, when High Points is 'Ray Allen (20)'? | CREATE TABLE table_name_98 (
record VARCHAR,
high_points VARCHAR
) | SELECT record FROM table_name_98 WHERE high_points = "ray allen (20)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
1368,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11392,
6,
116,
1592,
4564,
7,
19,
3,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
2866,
6127,
17543,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many Podiums have a Class of 250cc, and an F laps of 0? | CREATE TABLE table_name_18 (
podiums INTEGER,
class VARCHAR,
f_laps VARCHAR
) | SELECT SUM(podiums) FROM table_name_18 WHERE class = "250cc" AND f_laps = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
22828,
7,
3,
21342,
17966,
6,
853,
584,
4280,
28027,
6,
3,
89,
834,
8478,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1908,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11410,
2552,
7,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
853,
3274,
96,
11434,
75,
75,
121,
3430,
3,
89,
834,
8478,
7,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show me a bar chart for what are the different budget type codes, and how many documents are there for each?, display by the x axis in ascending. | CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)... | SELECT Budget_Type_Code, COUNT(*) FROM Documents_with_Expenses GROUP BY Budget_Type_Code ORDER BY Budget_Type_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2786,
7,
41,
2786,
834,
4309,
3,
21342,
17966,
6,
2786,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
16836,
7,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12532,
834,
25160,
834,
22737,
6,
2847,
17161,
599,
1935,
61,
21680,
11167,
7,
834,
4065,
834,
12882,
5167,
7,
350,
4630,
6880,
272,
476,
12532,
834,
25160,
834,
22737,
4674,
11300,
272,
476,
12532,
834,
25160,
834,
2... |
Show different nominees and the number of musicals they have been nominated. | CREATE TABLE musical (
Nominee VARCHAR
) | SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4183,
41,
465,
8695,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
315,
21077,
7,
11,
8,
381,
13,
4183,
7,
79,
43,
118,
150,
1109,
920,
5,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
465,
8695,
15,
6,
2847,
17161,
599,
1935,
61,
21680,
4183,
350,
4630,
6880,
272,
476,
465,
8695,
15,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Week 13 Nov 23 has a Week 6 Oct 5 of oklahoma state (5-0)? | CREATE TABLE table_name_73 (
week_13_nov_23 VARCHAR,
week_6_oct_5 VARCHAR
) | SELECT week_13_nov_23 FROM table_name_73 WHERE week_6_oct_5 = "oklahoma state (5-0)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
471,
834,
2368,
834,
5326,
834,
2773,
584,
4280,
28027,
6,
471,
834,
948,
834,
32,
75,
17,
834,
755,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
471,
834,
2368,
834,
5326,
834,
2773,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
471,
834,
948,
834,
32,
75,
17,
834,
755,
3274,
96,
32,
8142,
10207,
9,
538,
41,
29325,
61,
121,
1,
-100,
-100,
-100,
-100,
... |
how many prescription cases of methylprednisolone 125 mg inj were made until 1 year ago? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE lab (
labid numbe... | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'methylprednisolone 125 mg inj' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-1 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
7757,
549,
17444,
427,
7757,
5,
26,
13534,
4350,
3274,
3,
31,
22758,
2026,
26,
29,
23,
4099,
782,
3,
10124,
5453,
16,
354,
31,
3430,
309,
6048,
382,
15382,
599,
526,
17530,
5,
26... |
who is the team 2 when the 1st leg is 1-1 and the team 1 is verucchio(f15)? | CREATE TABLE table_53845 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team 2" FROM table_53845 WHERE "1st leg" = '1-1' AND "Team 1" = 'verucchio(f15)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3747,
2128,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
204,
121,
21680,
953,
834,
755,
3747,
2128,
549,
17444,
427,
96,
536,
7,
17,
4553,
121,
3274,
3,
31,
536,
2292,
31,
3430,
96,
18699,
209,
121,
3274,
3,
31,
162,
11783,
1436,
32,
599,
89,
1808,
61,
31,... |
WHat is the decile of the school in Purua? | CREATE TABLE table_name_38 (decile VARCHAR, area VARCHAR) | SELECT decile FROM table_name_38 WHERE area = "purua" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
24223,
109,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
144,
19,
8,
7908,
109,
13,
8,
496,
16,
7333,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7908,
109,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
616,
3274,
96,
3791,
76,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Title has a Type of ep and a Year larger than 2003? | CREATE TABLE table_name_83 (title VARCHAR, type VARCHAR, year VARCHAR) | SELECT title FROM table_name_83 WHERE type = "ep" AND year > 2003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
21869,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11029,
65,
3,
9,
6632,
13,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
686,
3274,
96,
15,
102,
121,
3430,
215,
2490,
3888,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the orbital regime of launches greater than 4 and failures less than 2? | CREATE TABLE table_name_76 (
orbital_regime VARCHAR,
launches VARCHAR,
failures VARCHAR
) | SELECT orbital_regime FROM table_name_76 WHERE launches > 4 AND failures < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
15607,
138,
834,
60,
122,
5445,
584,
4280,
28027,
6,
22506,
584,
4280,
28027,
6,
3338,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
15607,
138,
834,
60,
122,
5445,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
22506,
2490,
314,
3430,
3338,
7,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the IHSAA Football class at Culver? | CREATE TABLE table_65692 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
) | SELECT "IHSAA Football Class" FROM table_65692 WHERE "Location" = 'culver' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3951,
357,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
196,
4950,
5498,
10929,
4501,
121,
21680,
953,
834,
4122,
3951,
357,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
1497,
624,
31,
1,
-100,
-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, find last_name and commission_pct , and visualize them by a bar chart, order by the Y-axis from low to high. | 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 job_history (
EMPLOYEE_ID decimal(6,0... | SELECT LAST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT | [
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,
301,
12510,
834,
567,
17683,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
174... |
What was the location of the game when the record was 12-4? | CREATE TABLE table_name_74 (
location VARCHAR,
record VARCHAR
) | SELECT location FROM table_name_74 WHERE record = "12-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
1128,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1128,
13,
8,
467,
116,
8,
1368,
47,
586,
4278,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1368,
3274,
96,
2122,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total No Results occured when the team had less than 46 wins and more than 16 matches? | CREATE TABLE table_name_63 (no_result INTEGER, matches VARCHAR, wins VARCHAR) | SELECT SUM(no_result) FROM table_name_63 WHERE matches > 16 AND wins < 46 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
29,
32,
834,
60,
7,
83,
17,
3,
21342,
17966,
6,
6407,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
29,
32,
834,
60,
7,
83,
17,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
6407,
2490,
898,
3430,
9204,
3,
2,
9668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many vacators have October 22, 1808 as date successor seated? | CREATE TABLE table_73399 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) | SELECT COUNT("Vacator") FROM table_73399 WHERE "Date successor seated" = 'October 22, 1808' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
519,
3264,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
25203,
1016,
121,
1499,
6,
96,
1649,
9,
739,
21,
483,
121,
1499,
6,
96,
134,
17431,
24901,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
25203,
1016,
8512,
21680,
953,
834,
4552,
519,
3264,
549,
17444,
427,
96,
308,
342,
22261,
3,
22933,
121,
3274,
3,
31,
28680,
12889,
507,
4018,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of individuals in this group who were indian ? | CREATE TABLE table_204_698 (
id number,
"name" text,
"lifetime" text,
"nationality" text,
"notable as" text,
"notes" text
) | SELECT COUNT(*) FROM table_204_698 WHERE "nationality" = 'indian' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3951,
927,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
4597,
715,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
2264,
179,
38,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
3951,
927,
549,
17444,
427,
96,
16557,
485,
121,
3274,
3,
31,
77,
8603,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which nominee won the Drama Desk Award for outstanding choreography? | CREATE TABLE table_name_81 (
nominee VARCHAR,
category VARCHAR,
award VARCHAR,
result VARCHAR
) | SELECT nominee FROM table_name_81 WHERE award = "drama desk award" AND result = "won" AND category = "outstanding choreography" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
21077,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
6,
2760,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21077,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
2760,
3274,
96,
26,
10819,
4808,
2760,
121,
3430,
741,
3274,
96,
210,
106,
121,
3430,
3295,
3274,
96,
670,
11018,
15030,
5984,
121,
1,
-100,
-100,
-100,
-100,
... |
What denominations are the stamps with themes opera, l opold simoneau and pierrette alarie? | CREATE TABLE table_364 (
"Date of Issue" text,
"Theme" text,
"Denomination" text,
"Design" text,
"Illustration" text,
"Printing Process" text,
"Paper Type" text,
"First Day Cover Cancellation" text
) | SELECT "Denomination" FROM table_364 WHERE "Theme" = 'Opera, Léopold Simoneau and Pierrette Alarie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
591,
41,
96,
308,
342,
13,
13235,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
308,
35,
32,
14484,
121,
1499,
6,
96,
19103,
121,
1499,
6,
96,
196,
40,
10008,
266... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
35,
32,
14484,
121,
21680,
953,
834,
3420,
591,
549,
17444,
427,
96,
634,
526,
121,
3274,
3,
31,
667,
883,
9,
6,
301,
154,
32,
3233,
26,
6308,
1607,
11,
11867,
17,
17,
15,
901,
11396,
31,
1,
-100,
-10... |
What is the ICAO of Douala city? | CREATE TABLE table_name_13 (
icao VARCHAR,
city VARCHAR
) | SELECT icao FROM table_name_13 WHERE city = "douala" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
3,
2617,
32,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
15038,
667,
13,
531,
3471,
9,
690,
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... | [
3,
23143,
14196,
3,
2617,
32,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
690,
3274,
96,
26,
32,
3471,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Interactivity support has a Format of fictionbook? | CREATE TABLE table_69414 (
"Format" text,
"Filename extension" text,
"Image support" text,
"Interactivity support" text,
"Word wrap support" text,
"Open standard" text
) | SELECT "Interactivity support" FROM table_69414 WHERE "Format" = 'fictionbook' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
591,
2534,
41,
96,
3809,
3357,
121,
1499,
6,
96,
371,
699,
4350,
4924,
121,
1499,
6,
96,
29979,
380,
121,
1499,
6,
96,
17555,
21661,
380,
121,
1499,
6,
96,
518,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17555,
21661,
380,
121,
21680,
953,
834,
3951,
591,
2534,
549,
17444,
427,
96,
3809,
3357,
121,
3274,
3,
31,
18011,
2567,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When tim bridgman gregor fisken is the pole position who is the gt3 winner? | CREATE TABLE table_31479 (
"Round" real,
"Circuit" text,
"Date" text,
"Length" text,
"Pole Position" text,
"GT3 Winner" text,
"GT4 Winner" text
) | SELECT "GT3 Winner" FROM table_31479 WHERE "Pole Position" = 'Tim Bridgman Gregor Fisken' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2534,
4440,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
8931,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18489,
519,
18125,
121,
21680,
953,
834,
519,
2534,
4440,
549,
17444,
427,
96,
8931,
15,
14258,
121,
3274,
3,
31,
382,
603,
7834,
26,
122,
348,
3,
26705,
3188,
7,
2217,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the Score of the match in Torrance, California? | CREATE TABLE table_31845 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_31845 WHERE "Venue" = 'torrance, california' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2606,
2128,
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,
134,
9022,
121,
21680,
953,
834,
519,
2606,
2128,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
17,
127,
5219,
6,
3,
15534,
1161,
29,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total University of Dublin value with a labour panel greater than 11? | CREATE TABLE table_name_45 (university_of_dublin VARCHAR, labour_panel INTEGER) | SELECT COUNT(university_of_dublin) FROM table_name_45 WHERE labour_panel > 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
7846,
485,
834,
858,
834,
1259,
21746,
584,
4280,
28027,
6,
12568,
834,
28726,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
636,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7846,
485,
834,
858,
834,
1259,
21746,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
12568,
834,
28726,
2490,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Champion at Sopot prior to 2006 with a Score of 6–4, 6–7(7), 6–3? | CREATE TABLE table_name_69 (champion VARCHAR, score VARCHAR, location VARCHAR, year VARCHAR) | SELECT champion FROM table_name_69 WHERE location = "sopot" AND year < 2006 AND score = "6–4, 6–7(7), 6–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
17788,
12364,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
215,
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,
6336,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1128,
3274,
96,
7,
32,
3013,
121,
3430,
215,
3,
2,
3581,
3430,
2604,
3274,
96,
948,
104,
8525,
431,
104,
940,
24358,
6,
431,
104,
519,
121,
1,
-100,
-100,
... |
What is the total number of silver medals for karate athletes with over 2 golds? | CREATE TABLE table_name_33 (
silver VARCHAR,
sport VARCHAR,
gold VARCHAR
) | SELECT COUNT(silver) FROM table_name_33 WHERE sport = "karate" AND gold > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
4294,
584,
4280,
28027,
6,
2600,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
4294,
936... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
2600,
3274,
96,
4031,
342,
121,
3430,
2045,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In how many teams is Waqar Younis the head coach? | CREATE TABLE table_19905183_1 (team VARCHAR, head_coach VARCHAR) | SELECT COUNT(team) FROM table_19905183_1 WHERE head_coach = "Waqar Younis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19479,
3076,
24361,
834,
536,
41,
11650,
584,
4280,
28027,
6,
819,
834,
509,
1836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
149,
186,
2323,
19,
3129,
1824,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
11650,
61,
21680,
953,
834,
19479,
3076,
24361,
834,
536,
549,
17444,
427,
819,
834,
509,
1836,
3274,
96,
518,
9,
1824,
291,
148,
29,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which title has a translation in it of 1000 lies? | CREATE TABLE table_name_32 (title VARCHAR, translation VARCHAR) | SELECT title FROM table_name_32 WHERE translation = "1000 lies" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
21869,
584,
4280,
28027,
6,
7314,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2233,
65,
3,
9,
7314,
16,
34,
13,
5580,
7797,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
7314,
3274,
96,
16824,
7797,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
state the wins of the team with 2 top 10 | CREATE TABLE table_2012187_1 (
wins VARCHAR,
top_10 VARCHAR
) | SELECT COUNT(wins) FROM table_2012187_1 WHERE top_10 = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12172,
25828,
834,
536,
41,
9204,
584,
4280,
28027,
6,
420,
834,
1714,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
538,
8,
9204,
13,
8,
372,
28,
204,
420,
335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
7,
61,
21680,
953,
834,
12172,
25828,
834,
536,
549,
17444,
427,
420,
834,
1714,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What member is in the liberal party and has an electorate of bruce? | CREATE TABLE table_67391 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"Term in office" text
) | SELECT "Member" FROM table_67391 WHERE "Party" = 'liberal' AND "Electorate" = 'bruce' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3288,
536,
41,
96,
329,
18247,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
21543,
127,
342,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
11679,
16,
828,
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,
18247,
121,
21680,
953,
834,
3708,
3288,
536,
549,
17444,
427,
96,
13725,
63,
121,
3274,
3,
31,
10661,
138,
31,
3430,
96,
21543,
127,
342,
121,
3274,
3,
31,
9052,
565,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
How many styles had a total score of exactly 33? | CREATE TABLE table_28677723_9 (style VARCHAR, total VARCHAR) | SELECT COUNT(style) FROM table_28677723_9 WHERE total = 33 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3708,
4013,
2773,
834,
1298,
41,
4084,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4634,
141,
3,
9,
792,
2604,
13,
1776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4084,
61,
21680,
953,
834,
2577,
3708,
4013,
2773,
834,
1298,
549,
17444,
427,
792,
3274,
5400,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the Player with a Score of 70-72=142? Question 3 | CREATE TABLE table_77082 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_77082 WHERE "Score" = '70-72=142' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26920,
4613,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
26920,
4613,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
2518,
18,
5865,
2423,
24978,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest Rank for a Guam Player? | CREATE TABLE table_65447 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT MIN("Rank") FROM table_65447 WHERE "Country" = 'guam' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
591,
4177,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
109,
1422,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
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,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
4122,
591,
4177,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
1744,
265,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Report is Dated 9 March? | CREATE TABLE table_name_72 (report VARCHAR, date VARCHAR) | SELECT report FROM table_name_72 WHERE date = "9 march" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
60,
1493,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3750,
19,
7678,
26,
668,
1332,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
833,
3274,
96,
1298,
10556,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Airport when France was the country, and Montpellier was the city? | CREATE TABLE table_40048 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "Airport" FROM table_40048 WHERE "Country" = 'france' AND "City" = 'montpellier' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5548,
3707,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
20162,
1493,
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,
1... | [
3,
23143,
14196,
96,
20162,
1493,
121,
21680,
953,
834,
5548,
3707,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
89,
5219,
31,
3430,
96,
254,
485,
121,
3274,
3,
31,
4662,
4343,
3299,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What episode had 10.14 million viewers (U.S.)? | CREATE TABLE table_21550897_1 (
_number INTEGER,
us_viewers__million_ VARCHAR
) | SELECT MIN(_number) FROM table_21550897_1 WHERE us_viewers__million_ = "10.14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
20896,
4018,
4327,
834,
536,
41,
3,
834,
5525,
1152,
3,
21342,
17966,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
834,
5525,
1152,
61,
21680,
953,
834,
357,
20896,
4018,
4327,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
22567,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which commission was launched 28 june 1934, and has a Pennant number of h.78? | CREATE TABLE table_name_40 (
commissioned VARCHAR,
launched VARCHAR,
pennant_number VARCHAR
) | SELECT commissioned FROM table_name_40 WHERE launched = "28 june 1934" AND pennant_number = "h.78" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
3,
17183,
584,
4280,
28027,
6,
3759,
584,
4280,
28027,
6,
4550,
29,
288,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17183,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
3759,
3274,
96,
2577,
3,
6959,
15,
28828,
121,
3430,
4550,
29,
288,
834,
5525,
1152,
3274,
96,
107,
5,
3940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Week has a Result of l 41-14? | CREATE TABLE table_48898 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT MIN("Week") FROM table_48898 WHERE "Result" = 'l 41-14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4060,
3916,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
518,
10266,
8512,
21680,
953,
834,
591,
4060,
3916,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
8798,
11590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients whose gender is m and procedure short title is oth perc proc bil trct? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.short_title = "Oth perc proc bil trct" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.