NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What doctor published on June 2003? | CREATE TABLE table_name_40 (
doctor VARCHAR,
published VARCHAR
) | SELECT doctor FROM table_name_40 WHERE published = "june 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
2472,
584,
4280,
28027,
6,
1790,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2472,
1790,
30,
1515,
3888,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2472,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1790,
3274,
96,
6959,
15,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the first elected for kentucky 1 | CREATE TABLE table_2668378_5 (
first_elected VARCHAR,
district VARCHAR
) | SELECT first_elected FROM table_2668378_5 WHERE district = "Kentucky 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
3940,
834,
755,
41,
166,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
166,
8160,
21,
3,
2217,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
2688,
3651,
519,
3940,
834,
755,
549,
17444,
427,
3939,
3274,
96,
439,
295,
4636,
63,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which score has a record of 58 15 8? | CREATE TABLE table_72011 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Score" FROM table_72011 WHERE "Record" = '58–15–8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
13907,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
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,
134,
9022,
121,
21680,
953,
834,
940,
13907,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
3449,
104,
1808,
104,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What country does Bobby Nichols play for? | CREATE TABLE table_47679 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_47679 WHERE "Player" = 'bobby nichols' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3959,
4440,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
591,
3959,
4440,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17396,
969,
3,
2532,
2831,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name of route that has the highest number of deliveries. | CREATE TABLE products (
product_id number,
product_name text,
product_price number,
product_description text
)
CREATE TABLE actual_orders (
actual_order_id number,
order_status_code text,
regular_order_id number,
actual_order_date time
)
CREATE TABLE customers (
customer_id number,... | SELECT t1.route_name FROM delivery_routes AS t1 JOIN delivery_route_locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
556,
834,
23,
26,
381,
6,
556,
834,
4350,
1499,
6,
556,
834,
102,
4920,
381,
6,
556,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20300,
834,
4350,
21680,
1929,
834,
20300,
7,
6157,
3,
17,
536,
3,
15355,
3162,
1929,
834,
20300,
834,
14836,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
20300,
834,
23,
26,
3274,
3,
17,
4416,
20300,
83... |
Which Cuts made has a Top-25 smaller than 3? | CREATE TABLE table_name_26 (cuts_made INTEGER, top_25 INTEGER) | SELECT MAX(cuts_made) FROM table_name_26 WHERE top_25 < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
3044,
7,
834,
4725,
3,
21342,
17966,
6,
420,
834,
1828,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
6868,
7,
263,
65,
3,
9,
2224,
14855,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
420,
834,
1828,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of going to for thurlby, braceborough spa at departure being 16.50 | CREATE TABLE table_17200372_2 (
going_to VARCHAR,
calling_at VARCHAR,
departure VARCHAR
) | SELECT COUNT(going_to) FROM table_17200372_2 WHERE calling_at = "Thurlby, Braceborough Spa" AND departure = "16.50" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
23948,
5865,
834,
357,
41,
352,
834,
235,
584,
4280,
28027,
6,
3874,
834,
144,
584,
4280,
28027,
6,
12028,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9545,
834,
235,
61,
21680,
953,
834,
2517,
23948,
5865,
834,
357,
549,
17444,
427,
3874,
834,
144,
3274,
96,
8991,
16137,
969,
6,
3497,
565,
12823,
5641,
121,
3430,
12028,
3274,
96,
2938,
5,
1752,
... |
When did the 1966 Cleveland Browns play the Green Bay Packers? | CREATE TABLE table_name_98 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_98 WHERE opponent = "green bay packers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
833,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
20658,
13160,
3899,
7,
577,
8,
1862,
2474,
26698,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
15264,
3274,
96,
9423,
10210,
4153,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the uk air date for audience share in timeslot in 7.3% | CREATE TABLE table_19834691_4 (uk_air_date VARCHAR, audience_share_in_timeslot VARCHAR) | SELECT uk_air_date FROM table_19834691_4 WHERE audience_share_in_timeslot = "7.3%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4591,
4448,
4729,
834,
591,
41,
1598,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
2417,
834,
12484,
834,
77,
834,
715,
7,
3171,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
1598,
834,
2256,
834,
5522,
21680,
953,
834,
2294,
4591,
4448,
4729,
834,
591,
549,
17444,
427,
2417,
834,
12484,
834,
77,
834,
715,
7,
3171,
3274,
96,
27914,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the letter name for the Asomtavruli ⴙ? | CREATE TABLE table_name_74 (letter_name VARCHAR, asomtavruli VARCHAR) | SELECT letter_name FROM table_name_74 WHERE asomtavruli = "ⴙ" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
16024,
834,
4350,
584,
4280,
28027,
6,
3,
9,
10348,
17,
9,
23178,
40,
23,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2068,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2068,
834,
4350,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
3,
9,
10348,
17,
9,
23178,
40,
23,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-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, draw a bar chart about the distribution of phone_number and employee_id , display y axis from low to high order. | 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal... | SELECT PHONE_NUMBER, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8023,
7894,
834,
567,
6122,
12920,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549... |
What are the top 10 torrent release types? | CREATE TABLE tags (
index number,
id number,
tag text
)
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
) | SELECT releasetype FROM torrents GROUP BY releasetype ORDER BY SUM(totalsnatched) DESC LIMIT 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12391,
41,
5538,
381,
6,
3,
23,
26,
381,
6,
7860,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23326,
7,
41,
563,
4350,
1499,
6,
792,
7,
29,
144,
4513,
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,
1576,
6137,
21680,
23326,
7,
350,
4630,
6880,
272,
476,
1576,
6137,
4674,
11300,
272,
476,
180,
6122,
599,
235,
1947,
7,
29,
144,
4513,
61,
309,
25067,
8729,
12604,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many people attended the game when the away team was dynamo kyiv, and a Home team of torpedo zaporizhia? | CREATE TABLE table_71349 (
"Rank" real,
"Round" text,
"Home team" text,
"Away team" text,
"Result" text,
"Location" text,
"Attendance" real
) | SELECT "Attendance" FROM table_71349 WHERE "Away team" = 'dynamo kyiv' AND "Home team" = 'torpedo zaporizhia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
519,
3647,
41,
96,
22557,
121,
490,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
20119,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
4450,
519,
3647,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
24805,
51,
32,
3,
3781,
23,
208,
31,
3430,
96,
19040,
372,
121,
3274,
3,
31,
17,
127,
31... |
What is the number of floors when the r Rank larger than 41, and a City of parel? | CREATE TABLE table_name_72 (
floors VARCHAR,
rank VARCHAR,
city VARCHAR
) | SELECT floors FROM table_name_72 WHERE rank > 41 AND city = "parel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
8242,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
8242,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
8242,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
11003,
2490,
8798,
3430,
690,
3274,
96,
1893,
15,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the different nationalities and the number of journalists of each nationality. Visualize by bar chart. | CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type ... | SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
9994,
834,
4309,
16,
17,
6,
5570,
1499,
6,
868,
485,
1499,
6,
7526,
1499,
6,
13825,
834,
9238,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
9994,
350,
4630,
6880,
272,
476,
868,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients whose drug name is aloe vesta 2-n-1 skin cond? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Aloe Vesta 2-n-1 Skin Cond" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the away team of the game with an attendance of 117? | CREATE TABLE table_59690 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
) | SELECT "Away team" FROM table_59690 WHERE "Attendance" = '117' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
948,
2394,
41,
96,
382,
23,
15,
150,
121,
490,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
3390,
948,
2394,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
20275,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the first opponent faced by the sooners in september 1971 ? | CREATE TABLE table_204_617 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) | SELECT "opponent#" FROM table_204_617 WHERE "date" = 9 ORDER BY "date" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
2517,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
4663,
121,
1499,
6,
96,
6254,
4663,
121,
1499,
6,
96,
3585,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
32,
102,
9977,
4663,
121,
21680,
953,
834,
26363,
834,
948,
2517,
549,
17444,
427,
96,
5522,
121,
3274,
668,
4674,
11300,
272,
476,
96,
5522,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
During what years did nabatingue toko play. | CREATE TABLE table_26955 (
"Name" text,
"Position" text,
"Period" text,
"Appearances\u00b9" real,
"Goals\u00b9" real,
"Nationality\u00b2" text
) | SELECT "Period" FROM table_26955 WHERE "Name" = 'Nabatingue Toko' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3951,
3769,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
9648,
2741,
663,
7,
2,
76,
1206,
115,
1298,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12988,
23,
32,
26,
121,
21680,
953,
834,
357,
3951,
3769,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
567,
9,
115,
1014,
76,
15,
332,
12948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the waterford score that has a year prior to 1963, with all-ireland hurling final replay as the competition? | CREATE TABLE table_name_7 (waterford_score VARCHAR, year VARCHAR, competition VARCHAR) | SELECT waterford_score FROM table_name_7 WHERE year < 1963 AND competition = "all-ireland hurling final replay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
3552,
2590,
834,
7,
9022,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
387,
259... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
387,
2590,
834,
7,
9022,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
215,
3,
2,
20613,
3430,
2259,
3274,
96,
1748,
18,
2060,
40,
232,
3,
10666,
697,
804,
27204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Return the number of the lot details of lots that belong to investors with details 'l'?, and order by the lot_details in ascending. | CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
oth... | SELECT lot_details, COUNT(lot_details) FROM Investors AS T1 JOIN Lots AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = "l" GROUP BY lot_details ORDER BY lot_details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7107,
41,
1085,
834,
7031,
4787,
834,
23,
26,
3,
21342,
17966,
6,
1085,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
1709... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
418,
834,
221,
5756,
7,
6,
2847,
17161,
599,
3171,
834,
221,
5756,
7,
61,
21680,
16873,
7,
6157,
332,
536,
3,
15355,
3162,
14868,
6157,
332,
357,
9191,
332,
5411,
15601,
127,
834,
23,
26,
3274,
332,
4416,
15601,
1... |
How many years was the position 97th? | CREATE TABLE table_24647 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT COUNT("Year") FROM table_24647 WHERE "Position" = '97th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4448,
4177,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
476,
2741,
8512,
21680,
953,
834,
357,
4448,
4177,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
4327,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many bronze medals were won when the total is more than 1, and gold is more than 0? | CREATE TABLE table_79452 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Bronze") FROM table_79452 WHERE "Total" > '1' AND "Gold" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
2128,
357,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
4440,
2128,
357,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
536,
31,
3430,
96,
23576,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
Name the first elected for kentucky 1 | CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR) | SELECT first_elected FROM table_2668378_5 WHERE district = "Kentucky 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
3940,
834,
755,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
166,
8160,
21,
3,
2217,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
2688,
3651,
519,
3940,
834,
755,
549,
17444,
427,
3939,
3274,
96,
439,
295,
4636,
63,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what nation leads the medal count ? | CREATE TABLE table_203_724 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_203_724 ORDER BY "total" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
2266,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29,
257,
121,
21680,
953,
834,
23330,
834,
940,
2266,
4674,
11300,
272,
476,
96,
235,
1947,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show the first name and last name for all the instructors. | CREATE TABLE faculty_participates_in (
facid number,
actid number
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
)
CREATE TABLE activity (
actid number,
activity_name text
)
CREATE TABLE partic... | SELECT fname, lname FROM faculty WHERE rank = "Instructor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6040,
834,
2274,
23,
3389,
6203,
834,
77,
41,
7076,
26,
381,
6,
1810,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6040,
41,
7076,
26,
381,
6,
3,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
89,
4350,
6,
3,
40,
4350,
21680,
6040,
549,
17444,
427,
11003,
3274,
96,
1570,
7593,
127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What core clocks ( mhz ) have a 21.3 memory bandwidth ( gb/s )? | CREATE TABLE table_25839957_5 (core_clock___mhz__ VARCHAR, memory_bandwidth___gb_s__ VARCHAR) | SELECT core_clock___mhz__ FROM table_25839957_5 WHERE memory_bandwidth___gb_s__ = "21.3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4591,
3264,
3436,
834,
755,
41,
9022,
834,
17407,
834,
834,
834,
51,
107,
172,
834,
834,
584,
4280,
28027,
6,
2594,
834,
3348,
12018,
189,
834,
834,
834,
122,
115,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2583,
834,
17407,
834,
834,
834,
51,
107,
172,
834,
834,
21680,
953,
834,
1828,
4591,
3264,
3436,
834,
755,
549,
17444,
427,
2594,
834,
3348,
12018,
189,
834,
834,
834,
122,
115,
834,
7,
834,
834,
3274,
96,
357,
1... |
What is the average number played for place 2 and more than 4 lost? | CREATE TABLE table_name_18 (played__pj_ INTEGER, place__posición_ VARCHAR, lost__pp_ VARCHAR) | SELECT AVG(played__pj_) FROM table_name_18 WHERE place__posición_ = 2 AND lost__pp_ > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
4895,
15,
26,
834,
834,
102,
354,
834,
3,
21342,
17966,
6,
286,
834,
834,
19882,
12765,
834,
584,
4280,
28027,
6,
1513,
834,
834,
1572,
834,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
4895,
15,
26,
834,
834,
102,
354,
834,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
286,
834,
834,
19882,
12765,
834,
3274,
204,
3430,
1513,
834,
834,
1572,
834,
2490,
314,
1,
-100,
-100,
... |
What was the score of the game where the venue was cairns convention centre? | CREATE TABLE table_43906 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
) | SELECT "Score" FROM table_43906 WHERE "Venue" = 'cairns convention centre' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3288,
5176,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
553,
35,
76,
15,
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,
134,
9022,
121,
21680,
953,
834,
591,
3288,
5176,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
75,
2256,
29,
7,
8346,
2050,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
At what venue was the away team Fitzroy? | CREATE TABLE table_name_19 (
venue VARCHAR,
away_team VARCHAR
) | SELECT venue FROM table_name_19 WHERE away_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
5669,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
5669,
47,
8,
550,
372,
9783,
172,
8170,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
550,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Viewers, when Event is Johnson Vs. Moraga? | CREATE TABLE table_46809 (
"Event" text,
"Date" text,
"Rating" text,
"Share" text,
"Viewers" text
) | SELECT "Viewers" FROM table_46809 WHERE "Event" = 'johnson vs. moraga' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3651,
4198,
41,
96,
427,
2169,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
1014,
121,
1499,
6,
96,
24501,
121,
1499,
6,
96,
15270,
277,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15270,
277,
121,
21680,
953,
834,
591,
3651,
4198,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
27341,
739,
3,
208,
7,
5,
8030,
4711,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the base 10 for peletier for bi llion | CREATE TABLE table_28299 (
"Shortscale comparison" text,
"Chuquet" text,
"Peletier" text,
"Systematics" text,
"Base 10" text,
"SI Prefix" text
) | SELECT "Base 10" FROM table_28299 WHERE "Peletier" = 'Bi llion' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
357,
3264,
41,
96,
134,
14184,
6649,
4993,
121,
1499,
6,
96,
3541,
76,
835,
17,
121,
1499,
6,
96,
345,
400,
3276,
121,
1499,
6,
96,
14342,
6049,
7,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14885,
15,
335,
121,
21680,
953,
834,
2577,
357,
3264,
549,
17444,
427,
96,
345,
400,
3276,
121,
3274,
3,
31,
279,
23,
3,
40,
7325,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date when jameer nelson (10) had the high assists? | CREATE TABLE table_29744 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_29744 WHERE "High assists" = 'Jameer Nelson (10)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4327,
3628,
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,
308,
342,
121,
21680,
953,
834,
357,
4327,
3628,
549,
17444,
427,
96,
21417,
13041,
121,
3274,
3,
31,
683,
265,
15,
49,
14448,
41,
16968,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Name has Games of 105? | CREATE TABLE table_name_53 (name VARCHAR, games VARCHAR) | SELECT name FROM table_name_53 WHERE games = 105 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
4350,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5570,
65,
5880,
13,
3,
12869,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
1031,
3274,
3,
12869,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is San Antonio game number? | CREATE TABLE table_17300 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT MAX("Game") FROM table_17300 WHERE "Team" = 'San Antonio' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
5426,
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,
4800,
4,
599,
121,
23055,
8512,
21680,
953,
834,
2517,
5426,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
134,
152,
12923,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the date entered service with ships name koningin wilhelmina | CREATE TABLE table_17024 (
"Ships name" text,
"Date entered service" text,
"Date withdrawn" text,
"Tonnage" real,
"Type of Ship" text
) | SELECT "Date entered service" FROM table_17024 WHERE "Ships name" = 'Koningin Wilhelmina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
2266,
41,
96,
134,
10462,
7,
564,
121,
1499,
6,
96,
308,
342,
5136,
313,
121,
1499,
6,
96,
308,
342,
3,
28032,
121,
1499,
6,
96,
382,
106,
9761,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
5136,
313,
121,
21680,
953,
834,
536,
2518,
2266,
549,
17444,
427,
96,
134,
10462,
7,
564,
121,
3274,
3,
31,
18620,
53,
77,
27545,
77,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average price of the products for each category? | CREATE TABLE products (product_category_code VARCHAR, product_price INTEGER) | SELECT AVG(product_price), product_category_code FROM products GROUP BY product_category_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
15892,
834,
8367,
839,
651,
834,
4978,
584,
4280,
28027,
6,
556,
834,
102,
4920,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
594,
13,
8,
494,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15892,
834,
102,
4920,
201,
556,
834,
8367,
839,
651,
834,
4978,
21680,
494,
350,
4630,
6880,
272,
476,
556,
834,
8367,
839,
651,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total enrollment at Laville? | CREATE TABLE table_65694 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
) | SELECT COUNT("Enrollment") FROM table_65694 WHERE "School" = 'laville' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3951,
591,
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,
2847,
17161,
599,
121,
8532,
4046,
297,
8512,
21680,
953,
834,
4122,
3951,
591,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
521,
1420,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is number of acres in castledon | CREATE TABLE table_203_207 (
id number,
"site name" text,
"reason for designation\nbiological interest" number,
"reason for designation\ngeological interest" number,
"area\nhectares" number,
"area\nacres" number,
"coordinates & grid ref" text,
"year in which notified" number,
"other ... | SELECT "area\nacres" FROM table_203_207 WHERE "site name" = 'castleton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
26426,
41,
3,
23,
26,
381,
6,
96,
3585,
564,
121,
1499,
6,
96,
864,
739,
21,
21767,
2,
29,
6420,
6207,
1046,
121,
381,
6,
96,
864,
739,
21,
21767,
2,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
498,
2,
29,
10610,
7,
121,
21680,
953,
834,
23330,
834,
26426,
549,
17444,
427,
96,
3585,
564,
121,
3274,
3,
31,
5254,
13248,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
show me the number of elective hospital admission patients who have atorvastatin prescription. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.drug = "Atorvastatin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What was the result for the 1966 fifa world cup qualification in mexico city, mexico and a goal over 8? | CREATE TABLE table_7820 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_7820 WHERE "Venue" = 'mexico city, mexico' AND "Competition" = '1966 fifa world cup qualification' AND "Goal" > '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
1755,
41,
96,
6221,
138,
121,
490,
6,
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,
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,
96,
20119,
121,
21680,
953,
834,
3940,
1755,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
51,
994,
5807,
690,
6,
140,
226,
5807,
31,
3430,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
2294,
3539,
361,
89,
... |
I want the D 46 for D 45 of r 5 | CREATE TABLE table_name_54 (
d_46 VARCHAR,
d_45 VARCHAR
) | SELECT d_46 FROM table_name_54 WHERE d_45 = "r 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
3,
26,
834,
4448,
584,
4280,
28027,
6,
3,
26,
834,
2128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
309,
9668,
21,
309,
3479... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
26,
834,
4448,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
3,
26,
834,
2128,
3274,
96,
52,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the highest time for the 1995 200 metres event? | CREATE TABLE table_name_31 (time INTEGER, year VARCHAR, event VARCHAR) | SELECT MAX(time) FROM table_name_31 WHERE year = 1995 AND event = "200 metres" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
715,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2030,
97,
21,
8,
7273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
715,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
215,
3274,
7273,
3430,
605,
3274,
96,
3632,
14604,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bin the claim date into Year interval and count them for visualizing a bar chart, and could you order by the the number of date claim settled from high to low? | CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed... | SELECT Date_Claim_Settled, COUNT(Date_Claim_Settled) FROM Settlements ORDER BY COUNT(Date_Claim_Settled) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12248,
7,
41,
12248,
834,
4309,
3,
21342,
17966,
6,
31044,
834,
4309,
3,
21342,
17966,
6,
12248,
834,
23351,
107,
32,
26,
834,
22737,
584,
4280,
28027,
599,
25502,
201,
7678,
834,
1970... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
254,
521,
603,
834,
17175,
17,
1361,
6,
2847,
17161,
599,
308,
342,
834,
254,
521,
603,
834,
17175,
17,
1361,
61,
21680,
31044,
7,
4674,
11300,
272,
476,
2847,
17161,
599,
308,
342,
834,
254,
521,
603,
... |
On December 12, 2001, how many weeks had the single been in its position? | CREATE TABLE table_name_18 (weeks VARCHAR, date VARCHAR) | SELECT weeks FROM table_name_18 WHERE date = "december 12, 2001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
8041,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
1882,
10440,
4402,
6,
149,
186,
1274,
141,
8,
712,
118,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1274,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
10440,
4402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most recent year that Queen Nefertiti (pegasus two) was built? | CREATE TABLE table_42754 (
"Name" text,
"Built" real,
"Tonnage" text,
"Yard No." real,
"History" text
) | SELECT MAX("Built") FROM table_42754 WHERE "Name" = 'queen nefertiti (pegasus two)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
3072,
591,
41,
96,
23954,
121,
1499,
6,
96,
7793,
173,
17,
121,
490,
6,
96,
382,
106,
9761,
121,
1499,
6,
96,
476,
986,
465,
535,
490,
6,
96,
12146,
13029,
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,
4800,
4,
599,
121,
7793,
173,
17,
8512,
21680,
953,
834,
4165,
3072,
591,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
835,
35,
3,
29,
15,
1010,
9715,
41,
855,
5556,
302,
192,
61,
31,
1,
-100,
-100,
-100,
-100,... |
in what year did ken harnden participate in more than one competition ? | CREATE TABLE table_204_395 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | SELECT "year" FROM table_204_395 GROUP BY "year" HAVING COUNT("competition") > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
3301,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
7977,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
26363,
834,
519,
3301,
350,
4630,
6880,
272,
476,
96,
1201,
121,
454,
6968,
2365,
2847,
17161,
599,
121,
287,
4995,
4749,
8512,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the rank for the player with events greater than 23 and prize money in excess of $823,783? | CREATE TABLE table_49838 (
"Rank" real,
"Player" text,
"Country" text,
"Events" real,
"Prize money( $ )" real
) | SELECT COUNT("Rank") FROM table_49838 WHERE "Events" > '23' AND "Prize money( $ )" > '823,783' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3916,
3747,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
2169,
7,
121,
490,
6,
96,
7855,
776,
540,
599,
1514,
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,
2847,
17161,
599,
121,
22557,
8512,
21680,
953,
834,
591,
3916,
3747,
549,
17444,
427,
96,
427,
2169,
7,
121,
2490,
3,
31,
2773,
31,
3430,
96,
7855,
776,
540,
599,
1514,
3,
61,
121,
2490,
3,
31,
4613,
6355,
3940,
... |
If skeletal system is the subject when was it first aired? | CREATE TABLE table_191105_3 (
first_aired VARCHAR,
subject VARCHAR
) | SELECT first_aired FROM table_191105_3 WHERE subject = "Skeletal system" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
536,
12869,
834,
519,
41,
166,
834,
2378,
26,
584,
4280,
28027,
6,
1426,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
3,
31538,
358,
19,
8,
1426,
116,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
2378,
26,
21680,
953,
834,
2294,
536,
12869,
834,
519,
549,
17444,
427,
1426,
3274,
96,
134,
5768,
15,
1947,
358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a bar chart about the distribution of Name and Weight , and list names from low to high order please. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... | SELECT Name, Weight FROM people ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
679,
226,
1499,
6,
5570,
1499,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
6,
24231,
490,
6,
14230,
490,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
14230,
21680,
151,
4674,
11300,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the race number of bob wollek | CREATE TABLE table_5269 (
"Position" text,
"Race Number" real,
"Driver" text,
"Country" text,
"Laps" text
) | SELECT "Race Number" FROM table_5269 WHERE "Driver" = 'bob wollek' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
3951,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
448,
3302,
7720,
121,
490,
6,
96,
20982,
52,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
3612,
102,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
3302,
7720,
121,
21680,
953,
834,
5373,
3951,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
17396,
3,
22569,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what was the result in week 10? | CREATE TABLE table_9747 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_9747 WHERE "Week" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4327,
4177,
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,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
4327,
4177,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the undisclosed when Wycombe Wanderers is unattached? | CREATE TABLE table_23835213_2 (
undisclosed VARCHAR,
wycombe_wanderers VARCHAR
) | SELECT undisclosed FROM table_23835213_2 WHERE wycombe_wanderers = "Unattached" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4591,
5373,
2368,
834,
357,
41,
64,
159,
16221,
26,
584,
4280,
28027,
6,
3,
210,
63,
9763,
15,
834,
3877,
588,
277,
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,
64,
159,
16221,
26,
21680,
953,
834,
2773,
4591,
5373,
2368,
834,
357,
549,
17444,
427,
3,
210,
63,
9763,
15,
834,
3877,
588,
277,
3274,
96,
5110,
21148,
15,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the % of same-sex marriages for the year of 2011? | CREATE TABLE table_19614212_1 (
_percentage_same_sex_marriages VARCHAR,
year VARCHAR
) | SELECT _percentage_same_sex_marriages FROM table_19614212_1 WHERE year = "2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
24978,
2122,
834,
536,
41,
3,
834,
883,
3728,
545,
834,
7,
265,
15,
834,
7,
994,
834,
51,
10269,
2568,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
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,
3,
834,
883,
3728,
545,
834,
7,
265,
15,
834,
7,
994,
834,
51,
10269,
2568,
21680,
953,
834,
26937,
24978,
2122,
834,
536,
549,
17444,
427,
215,
3274,
96,
13907,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'? | CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, medicine_id VARCHAR, interaction_type VARCHAR); CREATE TABLE enzyme (name VARCHAR, id VARCHAR) | SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
41,
23,
26,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
834,
35,
4164,
526,
834,
3870,
4787,
41,
35,
4164,
526,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
21680,
15735,
6157,
332,
536,
3,
15355,
3162,
4404,
834,
35,
4164,
526,
834,
3870,
4787,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
35,
4164,
526,
834,
23,
26,
3,
15355,
3162,
4404,
... |
Who was the director of the episode originally aired on 26 October 1969? | CREATE TABLE table_19324 (
"Episode no." real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original Air Date (ATV)" text,
"Production no." real
) | SELECT "Director" FROM table_19324 WHERE "Original Air Date (ATV)" = '26 October 1969' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
519,
2266,
41,
96,
427,
102,
159,
32,
221,
150,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
599,
7,
61,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23620,
127,
121,
21680,
953,
834,
2294,
519,
2266,
549,
17444,
427,
96,
667,
3380,
10270,
1761,
7678,
41,
188,
4562,
61,
121,
3274,
3,
31,
2688,
1797,
17185,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Busan's rank? | CREATE TABLE table_name_15 (
rank INTEGER,
city VARCHAR
) | SELECT SUM(rank) FROM table_name_15 WHERE city = "busan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
11003,
3,
21342,
17966,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
5703,
152,
31,
7,
11003,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
690,
3274,
96,
3465,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Time/Retired has Laps smaller than 100, and Points larger than 0? | CREATE TABLE table_name_99 (
time_retired VARCHAR,
laps VARCHAR,
points VARCHAR
) | SELECT time_retired FROM table_name_99 WHERE laps < 100 AND points > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2900,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
14941,
7,
3,
2,
910,
3430,
979,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Team, when Replaced By is 'Jes s Ram rez'? | CREATE TABLE table_name_92 (
team VARCHAR,
replaced_by VARCHAR
) | SELECT team FROM table_name_92 WHERE replaced_by = "jesús ramírez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
372,
584,
4280,
28027,
6,
5821,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2271,
6,
116,
28035,
26,
938,
19,
3,
31,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
5821,
834,
969,
3274,
96,
1924,
7,
2,
7,
3,
2375,
2,
2638,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the participant or recipient for the Best Female Actor? | CREATE TABLE table_26282750_1 (participants_recipients VARCHAR, category VARCHAR) | SELECT participants_recipients FROM table_26282750_1 WHERE category = "Best Female Actor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2577,
357,
9979,
834,
536,
41,
2274,
23,
3389,
2366,
834,
60,
3389,
4741,
7,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3008,
834,
60,
3389,
4741,
7,
21680,
953,
834,
2688,
2577,
357,
9979,
834,
536,
549,
17444,
427,
3295,
3274,
96,
17278,
27144,
1983,
127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who were the opponents in the final where the score was 6 4, 2 6, 6 4, 7 6(3)? | CREATE TABLE table_26208 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) | SELECT "Opponents in the final" FROM table_26208 WHERE "Score in the final" = '6–4, 2–6, 6–4, 7–6(3)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
23946,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
16,
8,
804,
121,
21680,
953,
834,
2688,
23946,
549,
17444,
427,
96,
134,
9022,
16,
8,
804,
121,
3274,
3,
31,
948,
104,
8525,
204,
104,
11071,
431,
104,
8525,
489,
104,
948,
17867,
31,
1,
... |
What is Location Attendance, when High Points is 'Allen Iverson (23)'? | CREATE TABLE table_76270 (
"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_76270 WHERE "High points" = 'allen iverson (23)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
17485,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
3959,
17485,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
1748,
35,
3,
23,
2660,
106,
4743,
5268,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Week on November 10, 1996? | CREATE TABLE table_name_42 (week VARCHAR, date VARCHAR) | SELECT week FROM table_name_42 WHERE date = "november 10, 1996" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
8041,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6551,
30,
1671,
10372,
6911,
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,
471,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
10372,
6911,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the number of patients whose lab test chart time was 2133-08-01 12:06:00 | 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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.charttime = "2133-08-01 12:06:00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is School Year, when Cross Country is Wooster? | CREATE TABLE table_name_19 (
school_year VARCHAR,
cross_country VARCHAR
) | SELECT school_year FROM table_name_19 WHERE cross_country = "wooster" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
496,
834,
1201,
584,
4280,
28027,
6,
2269,
834,
17529,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1121,
2929,
6,
116,
4737,
6993,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
496,
834,
1201,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
2269,
834,
17529,
3274,
96,
14952,
1370,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When chauncey billups (7) has the highest amount of assists what is the score? | CREATE TABLE table_23285849_10 (score VARCHAR, high_assists VARCHAR) | SELECT score FROM table_23285849_10 WHERE high_assists = "Chauncey Billups (7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
3449,
3647,
834,
1714,
41,
7,
9022,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
3441,
202,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
2773,
2577,
3449,
3647,
834,
1714,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
3541,
402,
3772,
63,
3259,
413,
7,
3,
24358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
That is the year founded for the institution location of Nashville, Tennessee? | CREATE TABLE table_16186 (
"Institution" text,
"Location" text,
"Mens Nickname" text,
"Womens Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text
) | SELECT MIN("Founded") FROM table_16186 WHERE "Location" = 'Nashville, Tennessee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
25398,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
35,
7,
7486,
4350,
121,
1499,
6,
96,
518,
32,
904,
7,
7486,
4350,
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,
20100,
8512,
21680,
953,
834,
2938,
25398,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
567,
3198,
1420,
6,
12976,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many locomotives have a livery that is highland railway green | CREATE TABLE table_20331 (
"No." real,
"Name" text,
"Livery" text,
"Locomotive type" text,
"Wheel Arrangement" text,
"Builder" text,
"Year built" real,
"Status" text
) | SELECT COUNT("Name") FROM table_20331 WHERE "Livery" = 'Highland Railway green' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
3341,
41,
96,
4168,
535,
490,
6,
96,
23954,
121,
1499,
6,
96,
24179,
651,
121,
1499,
6,
96,
434,
32,
287,
32,
3268,
686,
121,
1499,
6,
96,
518,
88,
15,
40,
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,
2847,
17161,
599,
121,
23954,
8512,
21680,
953,
834,
23330,
3341,
549,
17444,
427,
96,
24179,
651,
121,
3274,
3,
31,
21417,
40,
232,
18025,
1442,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What tournament did Nadal win and had a nadal of 16? | CREATE TABLE table_name_75 (
tournament VARCHAR,
winner VARCHAR
) | SELECT tournament FROM table_name_75 WHERE winner = "nadal" AND "nadal" = 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
5892,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5892,
410,
1823,
26,
138,
1369,
11,
141,
3,
9,
3,
18089,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
4668,
3274,
96,
18089,
40,
121,
3430,
96,
18089,
40,
121,
3274,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest Taper (in/ft), when Size is 8? | CREATE TABLE table_name_20 (
taper__in_ft_ INTEGER,
size VARCHAR
) | SELECT MAX(taper__in_ft_) FROM table_name_20 WHERE size = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
4874,
52,
834,
834,
77,
834,
89,
17,
834,
3,
21342,
17966,
6,
812,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
9627,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
8873,
49,
834,
834,
77,
834,
89,
17,
834,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
812,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose insurance is private and lab test name is d-dimer? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Private" AND lab.label = "D-Dimer" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who is the candidate with 73,494 votes? | CREATE TABLE table_name_41 (candidate VARCHAR, number_of_votes VARCHAR) | SELECT candidate FROM table_name_41 WHERE number_of_votes = "73,494" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
1608,
12416,
342,
584,
4280,
28027,
6,
381,
834,
858,
834,
1621,
1422,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
4775,
28,
3,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4775,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
381,
834,
858,
834,
1621,
1422,
3274,
96,
4552,
6,
3647,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What pick number was the rhp with a hometown/school of university of hawaii? | CREATE TABLE table_name_42 (pick INTEGER, position VARCHAR, hometown_school VARCHAR) | SELECT MIN(pick) FROM table_name_42 WHERE position = "rhp" AND hometown_school = "university of hawaii" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
17967,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
22295,
834,
6646,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1432,
381,
47,
8,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17967,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1102,
3274,
96,
52,
107,
102,
121,
3430,
22295,
834,
6646,
3274,
96,
7846,
485,
13,
3,
107,
7396,
23,
23,
121,
1,
-100,
-100,
-100,
-100... |
What is the total of silver when gold is less than 0? | CREATE TABLE table_name_30 (silver INTEGER, gold INTEGER) | SELECT SUM(silver) FROM table_name_30 WHERE gold < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
7,
173,
624,
3,
21342,
17966,
6,
2045,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
4294,
116,
2045,
19,
705,
145,
3,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
2045,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Country has a Place of t1? | CREATE TABLE table_44100 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Country" FROM table_44100 WHERE "Place" = 't1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
2915,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3628,
2915,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the away team with a tie of 14? | CREATE TABLE table_name_4 (
away_team VARCHAR,
tie_no VARCHAR
) | SELECT away_team FROM table_name_4 WHERE tie_no = "14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
550,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
550,
372,
28,
3,
9,
6177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2534,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Species Specific has a Link of server/sourcecode? | CREATE TABLE table_name_53 (
species_specific VARCHAR,
link VARCHAR
) | SELECT species_specific FROM table_name_53 WHERE link = "server/sourcecode" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
3244,
834,
9500,
584,
4280,
28027,
6,
1309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
7727,
725,
18070,
65,
3,
9,
7505,
13,
2460... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3244,
834,
9500,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
1309,
3274,
96,
14322,
87,
7928,
4978,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was Zona Sur nominated? | CREATE TABLE table_76393 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Language(s)" text,
"Director" text,
"Result" text
) | SELECT "Year (Ceremony)" FROM table_76393 WHERE "Original title" = 'zona sur' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
3288,
519,
41,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
1499,
6,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
21680,
953,
834,
3959,
3288,
519,
549,
17444,
427,
96,
667,
3380,
10270,
2233,
121,
3274,
3,
31,
8892,
9,
244,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What chassis recorded 5 points? | CREATE TABLE table_10867 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Chassis" FROM table_10867 WHERE "Points" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
3708,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
3541,
6500,
7,
121,
21680,
953,
834,
16169,
3708,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15? | CREATE TABLE table_name_84 (goals_conceded__gc_ INTEGER, ____dif_ VARCHAR, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR) | SELECT MAX(goals_conceded__gc_) FROM table_name_84 WHERE draw__pe_ = 2 AND goals_scored__gf_ > 29 AND ____dif_ > 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
839,
5405,
834,
11620,
221,
26,
834,
834,
122,
75,
834,
3,
21342,
17966,
6,
3,
834,
834,
834,
834,
26,
99,
834,
584,
4280,
28027,
6,
3314,
834,
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,
4800,
4,
599,
839,
5405,
834,
11620,
221,
26,
834,
834,
122,
75,
834,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
3314,
834,
834,
855,
834,
3274,
204,
3430,
1766,
834,
3523,
1271,
834,
834,
122,
89,
834... |
What position is from Georgia Tech? | CREATE TABLE table_47227 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
) | SELECT "Position" FROM table_47227 WHERE "From" = 'georgia tech' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
357,
2555,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
4177,
357,
2555,
549,
17444,
427,
96,
22674,
121,
3274,
3,
31,
397,
1677,
23,
9,
5256,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the customer id, first and last name with most number of accounts. | CREATE TABLE Customers (
customer_first_name VARCHAR,
customer_last_name VARCHAR,
customer_id VARCHAR
)
CREATE TABLE Accounts (
customer_id VARCHAR
) | SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
884,
834,
14672,
834,
4350,
584,
4280,
28027,
6,
884,
834,
5064,
834,
4350,
584,
4280,
28027,
6,
884,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
25697,
49,
834,
23,
26,
6,
332,
4416,
25697,
49,
834,
14672,
834,
4350,
6,
332,
4416,
25697,
49,
834,
5064,
834,
4350,
21680,
6288,
7,
6157,
332,
536,
3,
15355,
3162,
16423,
6157,
332,
357,
9191,
332,
5... |
give the number of patients with private insurance whose discharge location is dead/expired. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.insurance = "Private" AND demographic.discharge_location = "DEAD/EXPIRED" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
7855,
208,
342,
121,
3430,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
308,
19552,
87,
427,
4,
4111,
13729,
121,
... |
What is the highest rank for Peter Symes? | CREATE TABLE table_53065 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | SELECT MAX("Rank") FROM table_53065 WHERE "Rider" = 'peter symes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26918,
4122,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
13368,
121,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
26918,
4122,
549,
17444,
427,
96,
448,
23,
588,
121,
3274,
3,
31,
4995,
49,
3,
7,
63,
2687,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many countries had 21 points | CREATE TABLE table_29302711_12 (country VARCHAR, points VARCHAR) | SELECT COUNT(country) FROM table_29302711_12 WHERE points = 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
1458,
2555,
2596,
834,
2122,
41,
17529,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
1440,
141,
1401,
979,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
17529,
61,
21680,
953,
834,
3166,
1458,
2555,
2596,
834,
2122,
549,
17444,
427,
979,
3274,
1401,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the points aginst when drawn is 1 and points is 51 | CREATE TABLE table_17625749_1 (
points_against VARCHAR,
drawn VARCHAR,
points VARCHAR
) | SELECT points_against FROM table_17625749_1 WHERE drawn = "1" AND points = "51" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4056,
3436,
3647,
834,
536,
41,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
834,
9,
16720,
7,
17,
21680,
953,
834,
2517,
4056,
3436,
3647,
834,
536,
549,
17444,
427,
6796,
3274,
96,
536,
121,
3430,
979,
3274,
96,
5553,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which team is Team 1 with a Team 2 being Sporting CP? | CREATE TABLE table_name_81 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_81 WHERE team_2 = "sporting cp" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
11650,
834,
536,
584,
4280,
28027,
6,
372,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
19,
2271,
209,
28,
3,
9,
2271,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
834,
536,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
372,
834,
357,
3274,
96,
6661,
53,
3,
75,
102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the first year that had a prize of 50,000? | CREATE TABLE table_name_28 (first_year_aired VARCHAR, prize VARCHAR) | SELECT first_year_aired FROM table_name_28 WHERE prize = "50,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
14672,
834,
1201,
834,
2378,
26,
584,
4280,
28027,
6,
6441,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
166,
215,
24,
141,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
1201,
834,
2378,
26,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
6441,
3274,
96,
9286,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What try bonus drew 0 and scored 427 points for? | CREATE TABLE table_name_83 (
try_bonus VARCHAR,
drawn VARCHAR,
points_for VARCHAR
) | SELECT try_bonus FROM table_name_83 WHERE drawn = "0" AND points_for = "427" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
653,
834,
5407,
302,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
653,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
653,
834,
5407,
302,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
6796,
3274,
96,
632,
121,
3430,
979,
834,
1161,
3274,
96,
591,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the amount in Staten Island when The Bronx was 1,281? | CREATE TABLE table_1108394_6 (
staten_island VARCHAR,
the_bronx VARCHAR
) | SELECT staten_island FROM table_1108394_6 WHERE the_bronx = "1,281" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
4591,
4240,
834,
948,
41,
538,
29,
834,
159,
40,
232,
584,
4280,
28027,
6,
8,
834,
13711,
226,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
538,
29,
834,
159,
40,
232,
21680,
953,
834,
19277,
4591,
4240,
834,
948,
549,
17444,
427,
8,
834,
13711,
226,
3274,
96,
4347,
2577,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Venue has a Competition of pl group b, and a Score of 2-2? | CREATE TABLE table_75461 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Competition" text
) | SELECT "Venue" FROM table_75461 WHERE "Competition" = 'pl group b' AND "Score" = '2-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
4448,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
5890,
4995,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
3072,
4448,
536,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
102,
40,
563,
3,
115,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
22451,
31,
1,
-100,
-100,
-... |
what was the total time for filip trejbal ? | CREATE TABLE table_203_358 (
id number,
"pos." number,
"athlete" text,
"run 1" number,
"run 2" number,
"total" text
) | SELECT "total" FROM table_203_358 WHERE "athlete" = 'filip trejbal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3449,
41,
3,
23,
26,
381,
6,
96,
2748,
535,
381,
6,
96,
26170,
15,
121,
1499,
6,
96,
4312,
209,
121,
381,
6,
96,
4312,
204,
121,
381,
6,
96,
235,
194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
235,
1947,
121,
21680,
953,
834,
23330,
834,
519,
3449,
549,
17444,
427,
96,
26170,
15,
121,
3274,
3,
31,
89,
23,
7446,
3,
929,
354,
3849,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What player placed t10? | CREATE TABLE table_59834 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Player" FROM table_59834 WHERE "Place" = 't10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4591,
591,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3390,
4591,
591,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the result of the election for georgia's 3rd district? | CREATE TABLE table_27487712_1 (result VARCHAR, district VARCHAR) | SELECT result FROM table_27487712_1 WHERE district = "Georgia's 3rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3707,
4013,
2122,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
4356,
21,
873... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
2555,
3707,
4013,
2122,
834,
536,
549,
17444,
427,
3939,
3274,
96,
517,
15,
1677,
23,
9,
31,
7,
220,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many music entries are there when tor floysvik is 3? | CREATE TABLE table_30658 (
"Couple" text,
"Style" text,
"Music" text,
"Trine Dehli Cleve" real,
"Tor Fl\u00f8ysvik" real,
"Karianne Gulliksen" real,
"Christer Tornell" real,
"Total" real
) | SELECT COUNT("Music") FROM table_30658 WHERE "Tor Fl\u00f8ysvik" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
948,
3449,
41,
96,
3881,
413,
109,
121,
1499,
6,
96,
30719,
121,
1499,
6,
96,
29035,
121,
1499,
6,
96,
382,
9249,
374,
107,
40,
23,
205,
109,
162,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
29035,
8512,
21680,
953,
834,
1458,
948,
3449,
549,
17444,
427,
96,
382,
127,
5766,
2,
76,
1206,
89,
927,
63,
7,
21346,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest played that has a position less than 17, and 63 as the goals for? | CREATE TABLE table_48985 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" real
) | SELECT MAX("Played") FROM table_48985 WHERE "Position" < '17' AND "Goals For" = '63' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3914,
4433,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
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,
15800,
15,
26,
8512,
21680,
953,
834,
591,
3914,
4433,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
2517,
31,
3430,
96,
6221,
5405,
242,
121,
3274,
3,
31,
3891,
31,
1,
-100,
-100... |
What year is the founding year, for the school that had an enrollment in 2005 of 963? | CREATE TABLE table_2333 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Enrollment (2005)" text,
"Founded" real
) | SELECT "Founded" FROM table_2333 WHERE "Enrollment (2005)" = '963' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4201,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
599,
7,
61,
121,
1499,
6,
96,
25716,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
3,
29495... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20100,
121,
21680,
953,
834,
2773,
4201,
549,
17444,
427,
96,
8532,
4046,
297,
3,
29495,
121,
3274,
3,
31,
4314,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many entries are there for high rebounds when high points is inge 19? | CREATE TABLE table_31461 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("High rebounds") FROM table_31461 WHERE "High points" = 'Inge – 19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2534,
4241,
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,
2847,
17161,
599,
121,
21417,
3,
23768,
8512,
21680,
953,
834,
519,
2534,
4241,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
1570,
397,
3,
104,
957,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Club, when Drawn is "0", and when Try Bonus is "5"? | CREATE TABLE table_name_9 (club VARCHAR, drawn VARCHAR, try_bonus VARCHAR) | SELECT club FROM table_name_9 WHERE drawn = "0" AND try_bonus = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
13442,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
653,
834,
5407,
302,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1949,
6,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1886,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
6796,
3274,
96,
632,
121,
3430,
653,
834,
5407,
302,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the names of members and the location of performances they attended in ascending alphabetical order of their names. | CREATE TABLE member (
member_id text,
name text,
nationality text,
role text
)
CREATE TABLE performance (
performance_id number,
date text,
host text,
location text,
attendance number
)
CREATE TABLE member_attendance (
member_id number,
performance_id number,
num_of_pie... | SELECT T2.name, T3.location FROM member_attendance AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id JOIN performance AS T3 ON T1.performance_id = T3.performance_id ORDER BY T2.name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
1144,
834,
23,
26,
1499,
6,
564,
1499,
6,
1157,
485,
1499,
6,
1075,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
821,
41,
821,
834,
23,
26,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
4350,
6,
332,
5787,
14836,
21680,
1144,
834,
15116,
663,
6157,
332,
536,
3,
15355,
3162,
1144,
6157,
332,
357,
9191,
332,
5411,
12066,
834,
23,
26,
3274,
332,
4416,
12066,
834,
23,
26,
3,
15355,
3162,
821... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.