NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which Surface had a Date of june 13, 1983? | CREATE TABLE table_name_14 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_14 WHERE date = "june 13, 1983" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
26899,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
18884,
141,
3,
9,
7678,
13,
3,
6959,
15,
10670,
15041,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
833,
3274,
96,
6959,
15,
10670,
15041,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What city has a building with over 57 floors? | CREATE TABLE table_name_33 (city VARCHAR, floors INTEGER) | SELECT city FROM table_name_33 WHERE floors > 57 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
6726,
584,
4280,
28027,
6,
8242,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
690,
65,
3,
9,
740,
28,
147,
3,
3436,
8242,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
8242,
2490,
3,
3436,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, rank by the bars in desc please. | 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 employees (
EMPLOYEE_ID decimal(6,0... | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
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,
446,
10539,
834,
4309,
6,
180,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
350,
4630,
6880,
272,
476,
446,
10539,
... |
What round did the College of Minnesota pick? | CREATE TABLE table_name_27 (
round VARCHAR,
college VARCHAR
) | SELECT round FROM table_name_27 WHERE college = "minnesota" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
1751,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1751,
410,
8,
1888,
13,
9745,
1432,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1900,
3274,
96,
1109,
1496,
32,
17,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What year had the category of best international newcomer? | CREATE TABLE table_13626 (
"Year" real,
"Recipient" text,
"Award" text,
"Category" text,
"Result" text
) | SELECT COUNT("Year") FROM table_13626 WHERE "Category" = 'best international newcomer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
2688,
41,
96,
476,
2741,
121,
490,
6,
96,
1649,
3389,
4741,
121,
1499,
6,
96,
188,
2239,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
20119,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
476,
2741,
8512,
21680,
953,
834,
23459,
2688,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
9606,
1038,
126,
287,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which start has 1956 as the year? | CREATE TABLE table_67138 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | SELECT "Start" FROM table_67138 WHERE "Year" = '1956' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
22744,
41,
96,
476,
2741,
121,
1499,
6,
96,
7681,
17,
121,
1499,
6,
96,
5991,
138,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
371,
77,
1273,
121,
1499,
6,
96,
361... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7681,
17,
121,
21680,
953,
834,
3708,
22744,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4834,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give me the number of patients whose admission location is phys referral/normal deli and procedure short title is venous cath nec? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND procedures.short_title = "Venous cath NEC" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Name the number of traditional chinese for album number 6th | CREATE TABLE table_1893815_1 (
chinese__traditional_ VARCHAR,
album_number VARCHAR
) | SELECT COUNT(chinese__traditional_) FROM table_1893815_1 WHERE album_number = "6th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25312,
3747,
1808,
834,
536,
41,
3,
1436,
1496,
15,
834,
834,
26374,
834,
584,
4280,
28027,
6,
2306,
834,
5525,
1152,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1436,
1496,
15,
834,
834,
26374,
834,
61,
21680,
953,
834,
25312,
3747,
1808,
834,
536,
549,
17444,
427,
2306,
834,
5525,
1152,
3274,
96,
948,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which term had a Democratic representative from district 7? | CREATE TABLE table_name_22 (term VARCHAR, district VARCHAR, party VARCHAR) | SELECT term FROM table_name_22 WHERE district = "7" AND party = "democratic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
1987,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1657,
141,
3,
9,
10021,
6978,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1657,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
3939,
3274,
96,
940,
121,
3430,
1088,
3274,
96,
23319,
447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Place, when To Par is '5', and when Score is '72-73=145'? | CREATE TABLE table_name_30 (
place VARCHAR,
to_par VARCHAR,
score VARCHAR
) | SELECT place FROM table_name_30 WHERE to_par = 5 AND score = 72 - 73 = 145 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
286,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3399,
6,
116,
304,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
12,
834,
1893,
3274,
305,
3430,
2604,
3274,
9455,
3,
18,
3,
4552,
3274,
3,
20987,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the best preliminary for a contestant from New Mexico with interview less than 9.533? | CREATE TABLE table_48903 (
"State" text,
"Preliminary" real,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) | SELECT MAX("Preliminary") FROM table_48903 WHERE "State" = 'new mexico' AND "Interview" < '9.533' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
2394,
519,
41,
96,
134,
4748,
121,
1499,
6,
96,
10572,
4941,
77,
1208,
121,
490,
6,
96,
17555,
4576,
121,
490,
6,
96,
134,
210,
603,
7628,
121,
490,
6,
96,
427,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10572,
4941,
77,
1208,
8512,
21680,
953,
834,
3707,
2394,
519,
549,
17444,
427,
96,
134,
4748,
121,
3274,
3,
31,
5534,
140,
226,
5807,
31,
3430,
96,
17555,
4576,
121,
3,
2,
3,
31,
22321,
4201,
... |
Find the last name of the staff member who processed the complaint of the cheapest product. | CREATE TABLE staff (
staff_id number,
gender text,
first_name text,
last_name text,
email_address text,
phone_number text
)
CREATE TABLE products (
product_id number,
parent_product_id number,
product_category_code text,
date_product_first_available time,
date_product_discon... | SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id JOIN products AS t3 ON t2.product_id = t3.product_id ORDER BY t3.product_price LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
41,
871,
834,
23,
26,
381,
6,
7285,
1499,
6,
166,
834,
4350,
1499,
6,
336,
834,
4350,
1499,
6,
791,
834,
9,
26,
12039,
1499,
6,
951,
834,
5525,
1152,
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,
3,
17,
5411,
5064,
834,
4350,
21680,
871,
6157,
3,
17,
536,
3,
15355,
3162,
11244,
6157,
3,
17,
357,
9191,
3,
17,
5411,
26416,
834,
23,
26,
3274,
3,
17,
4416,
26416,
834,
23,
26,
3,
15355,
3162,
494,
6157,
3,
... |
What is the sum of the pick of the guard position player? | CREATE TABLE table_name_99 (
pick INTEGER,
position VARCHAR
) | SELECT SUM(pick) FROM table_name_99 WHERE position = "guard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
1432,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
1432,
13,
8,
4879,
1102,
1959,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
17967,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1102,
3274,
96,
11010,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Sport has a Founded larger than 1874 and a Club of birmingham city? | CREATE TABLE table_name_71 (sport VARCHAR, founded VARCHAR, club VARCHAR) | SELECT sport FROM table_name_71 WHERE founded > 1874 AND club = "birmingham city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
6661,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3349,
65,
3,
9,
3,
20100,
2186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2600,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
5710,
2490,
507,
4581,
3430,
1886,
3274,
96,
8781,
51,
14799,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
WHAT IS THE SECOND LEG WITH HARO AS TEAM TWO? | CREATE TABLE table_9351 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "2nd leg" FROM table_9351 WHERE "Team 2" = 'haro' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4271,
5553,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
357,
727,
4553,
121,
21680,
953,
834,
4271,
5553,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
3272,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the team when the category is field goal percentage? | CREATE TABLE table_28628309_6 (team VARCHAR, category VARCHAR) | SELECT team FROM table_28628309_6 WHERE category = "Field goal percentage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4056,
4591,
4198,
834,
948,
41,
11650,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
372,
116,
8,
3295,
19,
1057,
1288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2577,
4056,
4591,
4198,
834,
948,
549,
17444,
427,
3295,
3274,
96,
3183,
8804,
1288,
5294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was in the Original West End Cast when the Original Broadway Cast was audrie neenan? | CREATE TABLE table_name_1 (
original_west_end_cast VARCHAR,
original_broadway_cast VARCHAR
) | SELECT original_west_end_cast FROM table_name_1 WHERE original_broadway_cast = "audrie neenan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
926,
834,
12425,
834,
989,
834,
5254,
584,
4280,
28027,
6,
926,
834,
115,
8635,
1343,
834,
5254,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
926,
834,
12425,
834,
989,
834,
5254,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
926,
834,
115,
8635,
1343,
834,
5254,
3274,
96,
402,
26,
1753,
3,
29,
15,
35,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Away has a Home of 2–2? | CREATE TABLE table_name_84 (away VARCHAR, home VARCHAR) | SELECT away FROM table_name_84 WHERE home = "2–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
8006,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
71,
1343,
65,
3,
9,
1210,
13,
204,
104,
357,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
234,
3274,
96,
357,
104,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many titles/sources have a developer of Clover Studio? | CREATE TABLE table_26538035_1 (
title_and_source VARCHAR,
developer VARCHAR
) | SELECT COUNT(title_and_source) FROM table_26538035_1 WHERE developer = "Clover Studio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4867,
2079,
2469,
834,
536,
41,
2233,
834,
232,
834,
7928,
584,
4280,
28027,
6,
7523,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8342,
87,
7928,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
21869,
834,
232,
834,
7928,
61,
21680,
953,
834,
2688,
4867,
2079,
2469,
834,
536,
549,
17444,
427,
7523,
3274,
96,
254,
40,
1890,
5929,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2006 population of the area with vehicle registration code of G and population density of 1,432.0? | CREATE TABLE table_name_7 (population__2006_ VARCHAR, vehicle_registration_code VARCHAR, population_density VARCHAR) | SELECT population__2006_ FROM table_name_7 WHERE vehicle_registration_code = "g" AND population_density = "1,432.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
9791,
7830,
834,
834,
21196,
834,
584,
4280,
28027,
6,
1689,
834,
5200,
257,
834,
4978,
584,
4280,
28027,
6,
2074,
834,
537,
7,
485,
584,
4280,
28027,
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,
2074,
834,
834,
21196,
834,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1689,
834,
5200,
257,
834,
4978,
3274,
96,
122,
121,
3430,
2074,
834,
537,
7,
485,
3274,
96,
4347,
4906,
24273,
121,
1,
-100,
-100,
-100,... |
What university has a 2009 int'l student review greater than 268 and median rank greater than 4? | CREATE TABLE table_50748 (
"2010 ARWU Rankings" text,
"2010 QS World Rankings" text,
"2010 QS Asian Rankings" text,
"2010 eduniversal Rankings" text,
"2009 QS Asian Rankings: Int\u2019l faculty review" text,
"2009 QS Asian Rankings: Int\u2019l student review" real,
"2000 Singapore \u201cAsia... | SELECT "University" FROM table_50748 WHERE "Median ranks" > '4' AND "2009 QS Asian Rankings: Int\u2019l student review" > '268' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
940,
3707,
41,
96,
14926,
11155,
518,
1265,
29153,
7,
121,
1499,
6,
96,
14926,
1593,
134,
1150,
29153,
7,
121,
1499,
6,
96,
14926,
1593,
134,
6578,
29153,
7,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8313,
485,
121,
21680,
953,
834,
1752,
940,
3707,
549,
17444,
427,
96,
24607,
29,
13799,
121,
2490,
3,
31,
591,
31,
3430,
96,
16660,
1593,
134,
6578,
29153,
7,
10,
86,
17,
2,
76,
8584,
40,
1236,
1132,
121,
2... |
Where was the player from who graduated from Michigan after 2010? | CREATE TABLE table_32388 (
"Player" text,
"Home Town" text,
"College/Prior" text,
"Drafting Team" text,
"Graduated" real
) | SELECT "Home Town" FROM table_32388 WHERE "Graduated" > '2010' AND "College/Prior" = 'michigan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
519,
4060,
41,
96,
15800,
49,
121,
1499,
6,
96,
19040,
4463,
121,
1499,
6,
96,
9939,
7883,
87,
7855,
127,
121,
1499,
6,
96,
308,
10913,
53,
2271,
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,
19040,
4463,
121,
21680,
953,
834,
2668,
519,
4060,
549,
17444,
427,
96,
4744,
1259,
920,
121,
2490,
3,
31,
14926,
31,
3430,
96,
9939,
7883,
87,
7855,
127,
121,
3274,
3,
31,
51,
362,
12588,
31,
1,
-100,
-100,
... |
What loss happened june 8? | CREATE TABLE table_name_43 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_43 WHERE date = "june 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
2298,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1453,
2817,
3,
6959,
15,
505,
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,
1453,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
833,
3274,
96,
6959,
15,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
At which venue did an away team play with a score of 15.13 (103)? | CREATE TABLE table_10451 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_10451 WHERE "Away team score" = '15.13 (103)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
5553,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
15442,
5553,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
1808,
5,
2368,
11704,
5268,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the regular season 1 result of the season when the Copa M xico was no longer played, the pyramid level was 2, and the regular season 2 result was 15th? | CREATE TABLE table_52982 (
"Season" text,
"Pyramid Level" text,
"Regular Season 1" text,
"Playoffs 1" text,
"Regular Season 2" text,
"Playoffs 2" text,
"Copa M\u00e9xico" text,
"CONCACAF" text
) | SELECT "Regular Season 1" FROM table_52982 WHERE "Copa M\u00e9xico" = 'no longer played' AND "Pyramid Level" = '2' AND "Regular Season 2" = '15th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
3916,
357,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
345,
63,
2375,
23,
26,
7166,
121,
1499,
6,
96,
17748,
4885,
7960,
209,
121,
1499,
6,
96,
15800,
1647,
7,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17748,
4885,
7960,
209,
121,
21680,
953,
834,
5373,
3916,
357,
549,
17444,
427,
96,
3881,
102,
9,
283,
2,
76,
1206,
15,
1298,
226,
5807,
121,
3274,
3,
31,
29,
32,
1200,
1944,
31,
3430,
96,
345,
63,
2375,
23,... |
a candidate with the name of flash gordon approaching of what satirical political party came in last place in the 2001 general election in ochil ? | CREATE TABLE table_202_224 (
id number,
"party" text,
"candidate" text,
"votes" number,
"%" number
) | SELECT "party" FROM table_202_224 WHERE "candidate" = 'flash gordon approaching' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
24622,
41,
3,
23,
26,
381,
6,
96,
8071,
121,
1499,
6,
96,
1608,
12416,
342,
121,
1499,
6,
96,
1621,
1422,
121,
381,
6,
96,
1454,
121,
381,
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,
96,
8071,
121,
21680,
953,
834,
19818,
834,
24622,
549,
17444,
427,
96,
1608,
12416,
342,
121,
3274,
3,
31,
89,
8058,
281,
52,
2029,
16009,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In 1988, what Metro Champion had a Runner-up of Memphis State? | CREATE TABLE table_name_73 (
metro_champion VARCHAR,
runner_up VARCHAR,
year VARCHAR
) | SELECT metro_champion FROM table_name_73 WHERE runner_up = "memphis state" AND year = 1988 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
12810,
834,
17788,
12364,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12810,
834,
17788,
12364,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
526,
7656,
159,
538,
121,
3430,
215,
3274,
10414,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose lab test chart time is 2133-08-01 12:06:00? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN 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,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the total number of ends when the transfer fee was dkk 14m? | CREATE TABLE table_60338 (
"Nat." text,
"Name" text,
"Since" text,
"Goals" real,
"Ends" real,
"Transfer fee" text
) | SELECT COUNT("Ends") FROM table_60338 WHERE "Transfer fee" = 'dkk 14m' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
519,
3747,
41,
96,
567,
144,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
134,
77,
565,
121,
1499,
6,
96,
6221,
5405,
121,
490,
6,
96,
8532,
26,
7,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
8532,
26,
7,
8512,
21680,
953,
834,
3328,
519,
3747,
549,
17444,
427,
96,
18474,
1010,
2572,
121,
3274,
3,
31,
26,
8511,
968,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total time in office of the prime minister from the liberal party and left office in 19 December 1967? | CREATE TABLE table_61919 (
"Rank:" real,
"Prime Minister:" text,
"Party:" text,
"Assumed Office:" text,
"Left Office:" text,
"TOTAL Time in Office:" text
) | SELECT "TOTAL Time in Office:" FROM table_61919 WHERE "Party:" = 'liberal' AND "Left Office:" = '19 december 1967' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2294,
2294,
41,
96,
22557,
10,
121,
490,
6,
96,
7855,
526,
3271,
10,
121,
1499,
6,
96,
13725,
63,
10,
121,
1499,
6,
96,
188,
7,
4078,
15,
26,
2126,
10,
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,
5647,
16359,
2900,
16,
2126,
10,
121,
21680,
953,
834,
948,
2294,
2294,
549,
17444,
427,
96,
13725,
63,
10,
121,
3274,
3,
31,
10661,
138,
31,
3430,
96,
2796,
89,
17,
2126,
10,
121,
3274,
3,
31,
2294,
20,
75,... |
Visualize a bar chart for what is the number of their teams in elimination?, and show Team from low to high order. | CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
) | SELECT Team, COUNT(Team) FROM Elimination GROUP BY Team ORDER BY Team | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
26033,
52,
41,
549,
6216,
1171,
834,
4309,
16,
17,
6,
5570,
1499,
6,
419,
3191,
1499,
6,
13992,
834,
14796,
1499,
6,
10450,
1499,
6,
8042,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
6,
2847,
17161,
599,
18699,
61,
21680,
7495,
14484,
350,
4630,
6880,
272,
476,
2271,
4674,
11300,
272,
476,
2271,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the current streak when the last 5 meetings is osu, 4-1? | CREATE TABLE table_name_27 (current_streak VARCHAR, last_5_meetings VARCHAR) | SELECT current_streak FROM table_name_27 WHERE last_5_meetings = "osu, 4-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
14907,
834,
7,
929,
1639,
584,
4280,
28027,
6,
336,
834,
755,
834,
526,
15,
1222,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
750,
834,
7,
929,
1639,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
336,
834,
755,
834,
526,
15,
1222,
7,
3274,
96,
32,
7,
76,
6,
314,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What type of school has the nickname the Oilers? | CREATE TABLE table_28526 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text,
"Left" text,
"Nickname" text,
"Primary Conference when joining the MSFA" text,
"Current Primary Conference" text
) | SELECT "Type" FROM table_28526 WHERE "Nickname" = 'Oilers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4433,
2688,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25160,
121,
21680,
953,
834,
357,
4433,
2688,
549,
17444,
427,
96,
567,
3142,
4350,
121,
3274,
3,
31,
667,
173,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many seats in 2006 has a % 1997 rating of 38.9? | CREATE TABLE table_2418 (
"Political parties" text,
"% 2006" text,
"Seats 2006" real,
"% 2001" text,
"Seats 2001" real,
"% 1997" text
) | SELECT COUNT("Seats 2006") FROM table_2418 WHERE "% 1997" = '38.9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2606,
41,
96,
8931,
155,
1950,
2251,
121,
1499,
6,
96,
1454,
3581,
121,
1499,
6,
96,
134,
1544,
7,
3581,
121,
490,
6,
96,
1454,
4402,
121,
1499,
6,
96,
134,
1544,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
1544,
7,
3581,
8512,
21680,
953,
834,
2266,
2606,
549,
17444,
427,
96,
1454,
6622,
121,
3274,
3,
31,
3747,
5,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the sum of the pe draw of team plaza amador, who has less than 6 pg won? | CREATE TABLE table_58675 (
"Place (Posici\u00f3n)" real,
"Team (Equipo)" text,
"Played (PJ)" real,
"Won (PG)" real,
"Draw (PE)" real,
"Lost (PP)" real,
"Goals Scored (GF)" real,
"Goals Conceded (GC)" real,
"+/- (Dif.)" real,
"Points (Pts.)" real
) | SELECT SUM("Draw (PE)") FROM table_58675 WHERE "Team (Equipo)" = 'plaza amador' AND "Won (PG)" < '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3840,
3072,
41,
96,
345,
11706,
41,
345,
32,
7,
1294,
2,
76,
1206,
89,
519,
29,
61,
121,
490,
6,
96,
18699,
41,
427,
23067,
32,
61,
121,
1499,
6,
96,
15800,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
308,
10936,
41,
5668,
61,
8512,
21680,
953,
834,
755,
3840,
3072,
549,
17444,
427,
96,
18699,
41,
427,
23067,
32,
61,
121,
3274,
3,
31,
6042,
1629,
183,
7923,
31,
3430,
96,
518,
106,
41,
7861,... |
how many female patients had the drug code amid200? | 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.gender = "F" AND prescriptions.formulary_drug_cd = "AMID200" | [
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 is the highest amount of extra points someone got when they scored 28 points but had 0 field goals? | CREATE TABLE table_37759 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MAX("Extra points") FROM table_37759 WHERE "Points" = '28' AND "Field goals" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4013,
3390,
41,
96,
15800,
49,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979,
121,
490,
6,
96,
3183,
8804,
1766,
121,
490,
6,
96,
22512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5420,
1313,
979,
8512,
21680,
953,
834,
519,
4013,
3390,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
2577,
31,
3430,
96,
3183,
8804,
1766,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
... |
Which home team played against Geelong? | CREATE TABLE table_58192 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_58192 WHERE "Away team" = 'geelong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
19978,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
3449,
19978,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
397,
15,
2961,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many bubbles with category being input | CREATE TABLE table_72648 (
"Category" text,
"Type" text,
"Attribute" text,
"Description" text,
"Bubbles" text,
"Cancelable" text
) | SELECT COUNT("Bubbles") FROM table_72648 WHERE "Category" = 'Input' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2688,
3707,
41,
96,
18610,
6066,
651,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
188,
17,
5135,
17,
15,
121,
1499,
6,
96,
2962,
11830,
121,
1499,
6,
96,
7793,
7310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7793,
7310,
7,
8512,
21680,
953,
834,
940,
2688,
3707,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
1570,
2562,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many languages have elles as the film title used in nomination? | CREATE TABLE table_22073745_1 (
languages VARCHAR,
film_title_used_in_nomination VARCHAR
) | SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Elles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1755,
27931,
2128,
834,
536,
41,
8024,
584,
4280,
28027,
6,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
24925,
7,
61,
21680,
953,
834,
357,
1755,
27931,
2128,
834,
536,
549,
17444,
427,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
3274,
96,
10991,
965,
121,
1,
-100,
-100,
-100,
-100,
-10... |
What percentage of users were using Firefox during the period in which *0.77% were using Netscape? | CREATE TABLE table_name_8 (firefox VARCHAR, netscape VARCHAR) | SELECT firefox FROM table_name_8 WHERE netscape = "*0.77%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
6608,
20400,
584,
4280,
28027,
6,
3134,
12002,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
13,
1105,
130,
338,
19570,
383,
8,
1059,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1472,
20400,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
3134,
12002,
3274,
96,
1935,
22426,
6170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total score for the year 2012? | CREATE TABLE table_name_14 (
total_score VARCHAR,
year VARCHAR
) | SELECT total_score FROM table_name_14 WHERE year = 2012 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
792,
834,
7,
9022,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
2604,
21,
8,
215,
1673,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
834,
7,
9022,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
215,
3274,
1673,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the date that has a friendly competition at rheinpark stadion, vaduz | CREATE TABLE table_58402 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_58402 WHERE "Competition" = 'friendly' AND "Venue" = 'rheinpark stadion, vaduz' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
2445,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3449,
2445,
357,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
4905,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
52,
88,
77,
6334,
3342,
26,
23,
106,
6,
409,... |
What is the plural present that has a past participle of e and an infinitive stem of e? | CREATE TABLE table_name_61 (plur_pres VARCHAR, past_part VARCHAR, inf_stem VARCHAR) | SELECT plur_pres FROM table_name_61 WHERE past_part = "e" AND inf_stem = "e" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
12456,
52,
834,
7197,
584,
4280,
28027,
6,
657,
834,
2274,
584,
4280,
28027,
6,
16,
89,
834,
7,
3524,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3681,
52,
834,
7197,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
657,
834,
2274,
3274,
96,
15,
121,
3430,
16,
89,
834,
7,
3524,
3274,
96,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When was the game happening at Halton Stadium? | CREATE TABLE table_13328239_4 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_13328239_4 WHERE venue = "Halton Stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
2577,
357,
3288,
834,
591,
41,
5522,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
4626,
44,
1626,
7377,
12750,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
22974,
2577,
357,
3288,
834,
591,
549,
17444,
427,
5669,
3274,
96,
566,
9,
7377,
12750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Sum of cuyo selection as the opposing team? | CREATE TABLE table_50665 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT SUM("Against") FROM table_50665 WHERE "Opposing Team" = 'cuyo selection' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3539,
755,
41,
96,
667,
102,
2748,
53,
2271,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
17,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
20749,
8512,
21680,
953,
834,
1752,
3539,
755,
549,
17444,
427,
96,
667,
102,
2748,
53,
2271,
121,
3274,
3,
31,
1071,
63,
32,
1801,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the attendance at Corio Oval? | CREATE TABLE table_name_9 (
crowd VARCHAR,
venue VARCHAR
) | SELECT crowd FROM table_name_9 WHERE venue = "corio oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
4374,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
44,
2487,
23,
32,
411,
2165,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4374,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
5669,
3274,
96,
5715,
23,
32,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the lowest Crowd total from a game in which Essendon was the Away team? | CREATE TABLE table_name_35 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MIN(crowd) FROM table_name_35 WHERE away_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7402,
15343,
26,
792,
45,
3,
9,
467,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
550,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the distribution of personal_name and author_tutor_ATB in a bar chart. | CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_o... | SELECT personal_name, author_tutor_ATB FROM Course_Authors_and_Tutors ORDER BY personal_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
7,
41,
503,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
23,
26,
3,
21342,
17966,
6,
1426,
834,
23,
26,
3,
21342,
17966,
6,
503,
834,
4350,
584,
4280,
28027,
599,
15518,
201,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
525,
834,
4350,
6,
2291,
834,
17,
76,
17,
127,
834,
5767,
279,
21680,
8670,
834,
23602,
127,
7,
834,
232,
834,
28676,
7,
4674,
11300,
272,
476,
525,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When martha brae, river is the hydrographic basin what is the rainfall totals (million m 3)? | CREATE TABLE table_26609958_1 (
rainfall_totals__million_m_3__ VARCHAR,
hydrographic_basin VARCHAR
) | SELECT rainfall_totals__million_m_3__ FROM table_26609958_1 WHERE hydrographic_basin = "Martha Brae, River" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3328,
3264,
3449,
834,
536,
41,
24801,
834,
235,
1947,
7,
834,
834,
17030,
834,
51,
834,
519,
834,
834,
584,
4280,
28027,
6,
7668,
14797,
834,
4883,
77,
584,
4280,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
24801,
834,
235,
1947,
7,
834,
834,
17030,
834,
51,
834,
519,
834,
834,
21680,
953,
834,
2688,
3328,
3264,
3449,
834,
536,
549,
17444,
427,
7668,
14797,
834,
4883,
77,
3274,
96,
7286,
189,
9,
3497,
15,
6,
2473,
12... |
when since 2104 patient 016-35481 received for the last time a procedure? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
... | SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-35481')) AND STRFTIME('%y', treatment.treatmenttime) >= '2104... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1058,
5,
26889,
715,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
... |
at least how many types are there ? | CREATE TABLE table_204_218 (
id number,
"name" text,
"faith" text,
"type" text,
"gov" text,
"opened" number,
"intake" number,
"dcsf number" number,
"ofsted number" number,
"web" text,
"coordinates" text
) | SELECT COUNT(DISTINCT "type") FROM table_204_218 AS table_204_218 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
2606,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
10699,
107,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
9527,
121,
1499,
6,
96,
26940,
121,
381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
96,
6137,
8512,
21680,
953,
834,
26363,
834,
357,
2606,
6157,
953,
834,
26363,
834,
357,
2606,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what game ended f-a with a round of round 1 replay | CREATE TABLE table_name_63 (
result_f___a VARCHAR,
round VARCHAR
) | SELECT result_f___a FROM table_name_63 WHERE round = "round 1 replay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
741,
834,
89,
834,
834,
834,
9,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
467,
3492,
3,
89,
18,
9,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
834,
89,
834,
834,
834,
9,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
1751,
3274,
96,
7775,
209,
27204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Race has the Toyota Racing Series New Zealand and 0 wins? | CREATE TABLE table_name_99 (
races VARCHAR,
series VARCHAR,
wins VARCHAR
) | SELECT races FROM table_name_99 WHERE series = "toyota racing series new zealand" AND wins = "0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
10879,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
10949,
65,
8,
11509,
16046,
453... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10879,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
939,
3274,
96,
235,
63,
32,
17,
9,
8191,
939,
126,
3,
776,
138,
232,
121,
3430,
9204,
3274,
96,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Democrat was selected in the poll with a sample size smaller than 516 where the Republican chosen was Ron Paul? | CREATE TABLE table_name_16 (democrat VARCHAR, sample_size VARCHAR, republican VARCHAR) | SELECT democrat FROM table_name_16 WHERE sample_size < 516 AND republican = "ron paul" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
23319,
584,
4280,
28027,
6,
3106,
834,
7991,
584,
4280,
28027,
6,
20237,
152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
19679,
47,
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,
0... | [
3,
23143,
14196,
3,
23319,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
3106,
834,
7991,
3,
2,
305,
2938,
3430,
20237,
152,
3274,
96,
52,
106,
2576,
83,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the population in 2011 of the settlement with the cyrillic name of ватин? | CREATE TABLE table_2562572_46 (population__2011_ INTEGER, cyrillic_name_other_names VARCHAR) | SELECT MAX(population__2011_) FROM table_2562572_46 WHERE cyrillic_name_other_names = "Ватин" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
4448,
41,
9791,
7830,
834,
834,
13907,
834,
3,
21342,
17966,
6,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
584,
4280,
28027,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
9791,
7830,
834,
834,
13907,
834,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
4448,
549,
17444,
427,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
3274,
96,
2,
22581,
22420,
121,
1,
... |
what is the lowest year represented? | CREATE TABLE table_177273_2 (year INTEGER) | SELECT MIN(year) FROM table_177273_2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26793,
2555,
519,
834,
357,
41,
1201,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
7402,
215,
7283,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
26793,
2555,
519,
834,
357,
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,
... |
What is the Piano di Sorrento, Napoli lowest km2 with a total smaller than 121.14 km2? | CREATE TABLE table_55278 (
"Province" text,
"Comune" text,
"Population (inh.)" real,
"Area (km\u00b2)" real,
"Total (km\u00b2)" real
) | SELECT MIN("Area (km\u00b2)") FROM table_55278 WHERE "Province" = 'napoli' AND "Comune" = 'piano di sorrento' AND "Total (km\u00b2)" < '121.14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
357,
3940,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
5890,
444,
121,
1499,
6,
96,
27773,
7830,
41,
77,
107,
5,
61,
121,
490,
6,
96,
188,
864,
41,
5848,
2,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
8512,
21680,
953,
834,
3769,
357,
3940,
549,
17444,
427,
96,
3174,
2494,
565,
121,
3274,
3,
31,
29,
9,
3003,
31,
3430,
96,
5890,
444,
121,
3274,
3,... |
What is the average game number that took place after February 13 against the Toronto Maple Leafs and more than 47 points were scored? | CREATE TABLE table_name_3 (
game INTEGER,
points VARCHAR,
february VARCHAR,
opponent VARCHAR
) | SELECT AVG(game) FROM table_name_3 WHERE february > 13 AND opponent = "toronto maple leafs" AND points > 47 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
467,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
29976,
76,
1208,
584,
4280,
28027,
6,
15264,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
7261,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
29976,
76,
1208,
2490,
1179,
3430,
15264,
3274,
96,
235,
4438,
32,
22007,
8384,
7,
121,
3430,
979,
2490,
10635,
1,
-100,
-100,
-100,
-100,
... |
Find the distinct last names of the students who have class president votes. | CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (CLASS_President_VOTE VARCHAR) | SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5097,
10161,
6431,
41,
434,
23954,
584,
4280,
28027,
6,
3,
13076,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8040,
21089,
834,
20921,
18400,
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,
3,
15438,
25424,
6227,
332,
5411,
434,
23954,
21680,
5097,
10161,
6431,
6157,
332,
536,
3,
15355,
3162,
3,
8040,
21089,
834,
20921,
18400,
6157,
332,
357,
9191,
332,
5411,
13076,
4309,
3274,
332,
4416,
31598,
834,
345,
... |
Whose is the manufacturer for team Ranier-Lundy? | CREATE TABLE table_2268216_1 (manufacturer VARCHAR, team VARCHAR) | SELECT manufacturer FROM table_2268216_1 WHERE team = "Ranier-Lundy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3651,
27184,
834,
536,
41,
348,
76,
8717,
450,
49,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
7,
15,
19,
8,
4818,
21,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4818,
21680,
953,
834,
2884,
3651,
27184,
834,
536,
549,
17444,
427,
372,
3274,
96,
448,
9,
8632,
18,
434,
1106,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the name of the race that occurred in Brooklyn, Michigan with a sanctioning of cart? | CREATE TABLE table_32855 (
"Sanctioning" text,
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text
) | SELECT "Race Name" FROM table_32855 WHERE "Sanctioning" = 'cart' AND "City/Location" = 'brooklyn, michigan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28070,
3769,
41,
96,
134,
152,
4985,
53,
121,
1499,
6,
96,
448,
3302,
5570,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
254,
485,
87,
434,
32,
75,
257,
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,
5570,
121,
21680,
953,
834,
28070,
3769,
549,
17444,
427,
96,
134,
152,
4985,
53,
121,
3274,
3,
31,
1720,
17,
31,
3430,
96,
254,
485,
87,
434,
32,
75,
257,
121,
3274,
3,
31,
14370,
120,
29,
6,
2... |
who is the first pop musician on this list ? | CREATE TABLE table_204_866 (
id number,
"name" text,
"lifetime" text,
"nationality" text,
"notable as" text,
"notes" text
) | SELECT "name" FROM table_204_866 WHERE "notable as" = 'pop musician' ORDER BY id LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
26750,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
4597,
715,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
2264,
179,
38,
121,
1499,
6,
96,
7977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
26750,
549,
17444,
427,
96,
2264,
179,
38,
121,
3274,
3,
31,
9791,
16244,
31,
4674,
11300,
272,
476,
3,
23,
26,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the original air date of the episode written by Michelle Offen? | CREATE TABLE table_19517621_4 (
original_airdate VARCHAR,
written_by VARCHAR
) | SELECT original_airdate FROM table_19517621_4 WHERE written_by = "Michelle Offen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
26782,
2658,
834,
591,
41,
926,
834,
2256,
5522,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
926,
799,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
5522,
21680,
953,
834,
22464,
26782,
2658,
834,
591,
549,
17444,
427,
1545,
834,
969,
3274,
96,
30123,
109,
4395,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What surface was used on July 17, 1983? | CREATE TABLE table_55417 (
"Edition" text,
"Round" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Result" text
) | SELECT "Surface" FROM table_55417 WHERE "Date" = 'july 17, 1983' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
591,
2517,
41,
96,
427,
10569,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
3769,
591,
2517,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2047,
120,
12864,
15041,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many bronze medals has a total less than 3 with a silver less than 1 and gold more than 1? | CREATE TABLE table_14193 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Bronze") FROM table_14193 WHERE "Total" < '3' AND "Silver" < '1' AND "Gold" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26059,
4271,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26059,
4271,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
134,
173,
624,
121,
3,
2,
3,
31,
536,
31,
3430,
96,
23576,
121,
24... |
return me the organization ' H. V. Jagadish ' is in . | CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE publication_keyword (
kid int,
pid int
)
CREATE TABLE domain_keyword (
did int,
kid int
)
CREATE TABLE domain (
did i... | SELECT organization.name FROM author, organization WHERE author.name = 'H. V. Jagadish' AND organization.oid = author.oid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
9838,
3,
4331,
4059,
6,
3,
10812,
16,
17,
6,
3,
13903,
834,
5525,
16,
17,
6,
3,
354,
23,
26,
16,
17,
6,
3,
12417,
16,
17,
6,
2848,
834,
5525,
16,
17,
6,
2233,
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,
1470,
5,
4350,
21680,
2291,
6,
1470,
549,
17444,
427,
2291,
5,
4350,
3274,
3,
31,
566,
5,
584,
5,
21520,
9,
26,
1273,
31,
3430,
1470,
5,
32,
23,
26,
3274,
2291,
5,
32,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
... |
What class has less than 12 numbers built operated by southern? | CREATE TABLE table_51458 (
"Class" text,
"Operator" text,
"No. Built" real,
"Year Built" text,
"Cars per Set" real,
"Unit nos." text
) | SELECT "Class" FROM table_51458 WHERE "No. Built" < '12' AND "Operator" = 'southern' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2534,
3449,
41,
96,
21486,
121,
1499,
6,
96,
667,
883,
1016,
121,
1499,
6,
96,
4168,
5,
14862,
121,
490,
6,
96,
476,
2741,
14862,
121,
1499,
6,
96,
6936,
7,
399,
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,
21486,
121,
21680,
953,
834,
755,
2534,
3449,
549,
17444,
427,
96,
4168,
5,
14862,
121,
3,
2,
3,
31,
2122,
31,
3430,
96,
667,
883,
1016,
121,
3274,
3,
31,
7,
670,
760,
29,
31,
1,
-100,
-100,
-100,
-100,
-1... |
Which Home Team has a Game of game 1? | CREATE TABLE table_48705 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Home Team" FROM table_48705 WHERE "Game" = 'game 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
2518,
755,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
448,
32,
9,
26,
2271,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
19040,
2271,
121,
21680,
953,
834,
3707,
2518,
755,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
7261,
209,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the club that had 617 points and a draw of 0? | CREATE TABLE table_67279 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Bonus points" text,
"Points" text
) | SELECT "Club" FROM table_67279 WHERE "Drawn" = '0' AND "Points for" = '617' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
357,
4440,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
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,
254,
11158,
121,
21680,
953,
834,
3708,
357,
4440,
549,
17444,
427,
96,
308,
10936,
29,
121,
3274,
3,
31,
632,
31,
3430,
96,
22512,
7,
21,
121,
3274,
3,
31,
948,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the capital of Umbria? | CREATE TABLE table_14532_1 (
capital VARCHAR,
region VARCHAR
) | SELECT capital FROM table_14532_1 WHERE region = "Umbria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
2668,
834,
536,
41,
1784,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1784,
13,
2432,
2160,
9,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1784,
21680,
953,
834,
20987,
2668,
834,
536,
549,
17444,
427,
1719,
3274,
96,
1265,
51,
2160,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who is listed before jon taylor ? | CREATE TABLE table_204_575 (
id number,
"place" number,
"position" text,
"number" number,
"name" text,
"league one" number,
"fa cup" number,
"league cup" number,
"football league trophy" number,
"total" number
) | SELECT "name" FROM table_204_575 WHERE id = (SELECT id FROM table_204_575 WHERE "name" = 'jon taylor') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
3072,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
381,
6,
96,
4718,
121,
1499,
6,
96,
5525,
1152,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
29512,
80,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
755,
3072,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
755,
3072,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
15429,
3,
... |
What is the role of the aircraft that originates from the European Union? | CREATE TABLE table_58330 (
"Aircraft" text,
"Origin" text,
"Role" text,
"Registration" text,
"Number" text
) | SELECT "Role" FROM table_58330 WHERE "Origin" = 'european union' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
17225,
41,
96,
20162,
6696,
121,
1499,
6,
96,
667,
3380,
77,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
18752,
257,
121,
1499,
6,
96,
567,
5937,
49,
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,
96,
448,
32,
109,
121,
21680,
953,
834,
3449,
17225,
549,
17444,
427,
96,
667,
3380,
77,
121,
3274,
3,
31,
28188,
152,
7021,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the theme and artist name for the exhibition with a ticket price higher than the average? | CREATE TABLE exhibition (ticket_price INTEGER); CREATE TABLE exhibition (theme VARCHAR, artist_id VARCHAR, ticket_price INTEGER); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR) | SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
26639,
834,
102,
4920,
3,
21342,
17966,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
532,
526,
584,
4280,
28027,
6,
2377,
834,
23,
26,
584,
4280,
28027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
532,
526,
6,
332,
4416,
4350,
21680,
4473,
6157,
332,
536,
3,
15355,
3162,
2377,
6157,
332,
357,
9191,
332,
5411,
1408,
343,
834,
23,
26,
3274,
332,
4416,
1408,
343,
834,
23,
26,
549,
17444,
427,
332,
5... |
Which author wrote Sironia, Texas in English? | CREATE TABLE table_56185 (
"Book title" text,
"Author" text,
"Edition/Publisher" text,
"Page count" text,
"Page size" text,
"Language" text
) | SELECT "Author" FROM table_56185 WHERE "Language" = 'english' AND "Book title" = 'sironia, texas' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
21594,
41,
96,
13355,
2233,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
427,
10569,
87,
31009,
49,
121,
1499,
6,
96,
345,
545,
3476,
121,
1499,
6,
96,
345,
545,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23602,
127,
121,
21680,
953,
834,
4834,
21594,
549,
17444,
427,
96,
434,
1468,
76,
545,
121,
3274,
3,
31,
4606,
40,
1273,
31,
3430,
96,
13355,
2233,
121,
3274,
3,
31,
7,
17773,
23,
9,
6,
3,
10354,
9,
7,
31... |
How many rounds have john o'day as the name, and a pick less than 3? | CREATE TABLE table_name_87 (round INTEGER, name VARCHAR, pick VARCHAR) | SELECT SUM(round) FROM table_name_87 WHERE name = "john o'day" AND pick < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
7775,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
43,
3,
27341,
3,
32,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
564,
3274,
96,
27341,
3,
32,
31,
1135,
121,
3430,
1432,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the away team that goes against Team Zambia? | CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_13 WHERE home_team = "zambia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
550,
372,
24,
1550,
581,
2271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
234,
834,
11650,
3274,
96,
172,
11379,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Second Vice President, when Inaugurated is '26 March 1928'? | CREATE TABLE table_name_85 (
second_vice_president VARCHAR,
inaugurated VARCHAR
) | SELECT second_vice_president FROM table_name_85 WHERE inaugurated = "26 march 1928" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
511,
834,
7287,
15,
834,
102,
15704,
584,
4280,
28027,
6,
22035,
920,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
5212,
8236,
1661,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
511,
834,
7287,
15,
834,
102,
15704,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
22035,
920,
3274,
96,
2688,
10556,
29004,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is days of hospital stay and drug type of subject id 52012? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT demographic.days_stay, prescriptions.drug_type FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "52012" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1135,
7,
834,
21545,
6,
7744,
7,
5,
26,
13534,
834,
6137,
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,
17444,... |
which is the maximun serie episode number when the millions of North American spectators is 3.14? | CREATE TABLE table_73413 (
"Season no." real,
"Series no." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. Viewers (millions)" text
) | SELECT MAX("Series no.") FROM table_73413 WHERE "U.S. Viewers (millions)" = '3.14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
591,
2368,
41,
96,
134,
15,
9,
739,
150,
535,
490,
6,
96,
12106,
7,
150,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
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,
4800,
4,
599,
121,
12106,
7,
150,
5,
8512,
21680,
953,
834,
4552,
591,
2368,
549,
17444,
427,
96,
1265,
5,
134,
5,
4197,
277,
41,
17030,
7,
61,
121,
3274,
3,
31,
18495,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9? | CREATE TABLE table_62181 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT SUM("Overall") FROM table_62181 WHERE "Round" < '4' AND "College" = 'tennessee' AND "Pick #" > '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
2606,
536,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
180,
6122,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
4056,
2606,
536,
549,
17444,
427,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
9939,
7883,
121,
3274,
3,
31,
324,
655,
15,
15,
31,
3430,
96,
... |
Which is the lowest 1980 growth that had 2,610 in 1970? | CREATE TABLE table_name_61 (
Id VARCHAR
) | SELECT MIN(1980) FROM table_name_61 WHERE 1970 = 2 OFFSET 610 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
19,
8,
7402,
6694,
1170,
24,
141,
3547,
27097,
16,
7434,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2294,
2079,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
7434,
3274,
204,
3,
15316,
20788,
3,
27097,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What did St Kilda score when they were the home team? | CREATE TABLE table_56651 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_56651 WHERE "Home team" = 'st kilda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
4122,
536,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
4834,
4122,
536,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
7,
17,
3,
157,
173,
26,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many transaction does each account have? Show the number and account id. | CREATE TABLE financial_transactions (
transaction_id number,
account_id number,
invoice_number number,
transaction_type text,
transaction_date time,
transaction_amount number,
transaction_comment text,
other_transaction_details text
)
CREATE TABLE orders (
order_id number,
custo... | SELECT COUNT(*), account_id FROM financial_transactions | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
981,
834,
7031,
4787,
7,
41,
5878,
834,
23,
26,
381,
6,
905,
834,
23,
26,
381,
6,
10921,
834,
5525,
1152,
381,
6,
5878,
834,
6137,
1499,
6,
5878,
834,
5522,
97,
6,
5878,
834,
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,
2847,
17161,
599,
1935,
201,
905,
834,
23,
26,
21680,
981,
834,
7031,
4787,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many dead patients had sdh as the primary disease? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "SDH" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
536,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
13... |
What are the notes during 57 bc caesar? | CREATE TABLE table_242785_3 (notes VARCHAR, date_founded__founder VARCHAR) | SELECT notes FROM table_242785_3 WHERE date_founded__founder = "57 BC Caesar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2555,
4433,
834,
519,
41,
7977,
7,
584,
4280,
28027,
6,
833,
834,
23329,
834,
834,
14435,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3358,
383,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3358,
21680,
953,
834,
2266,
2555,
4433,
834,
519,
549,
17444,
427,
833,
834,
23329,
834,
834,
14435,
3274,
96,
3436,
9580,
26218,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Year(s) of manufacture has a Type of 1b n2, and a Quantity of 10? | CREATE TABLE table_name_26 (year_s__of_manufacture VARCHAR, type VARCHAR, quantity VARCHAR) | SELECT year_s__of_manufacture FROM table_name_26 WHERE type = "1b n2" AND quantity = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
1201,
834,
7,
834,
834,
858,
834,
348,
76,
8717,
1462,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
8708,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
215,
834,
7,
834,
834,
858,
834,
348,
76,
8717,
1462,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
686,
3274,
96,
536,
115,
3,
29,
357,
121,
3430,
8708,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the attendance on week 1? | CREATE TABLE table_62384 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Attendance" FROM table_62384 WHERE "Week" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
3747,
591,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
4056,
3747,
591,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the tries when tries against were 41, try bonus was 6, and had 317 points. | CREATE TABLE table_75125 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Tries for" FROM table_75125 WHERE "Try bonus" = '6' AND "Tries against" = '41' AND "Points against" = '317' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
10124,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
2593,
21,
121,
21680,
953,
834,
3072,
10124,
549,
17444,
427,
96,
382,
651,
4023,
121,
3274,
3,
31,
948,
31,
3430,
96,
382,
2593,
581,
121,
3274,
3,
31,
4853,
31,
3430,
96,
22512,
7,
581,
121,
3274,
3,
... |
How many undergraduates are there at San Jose State | CREATE TABLE faculty (
campus number,
year number,
faculty number
)
CREATE TABLE campuses (
id number,
campus text,
location text,
county text,
year number
)
CREATE TABLE enrollments (
campus number,
year number,
totalenrollment_ay number,
fte_ay number
)
CREATE TABLE ... | SELECT SUM(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Jose State University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6040,
41,
4730,
381,
6,
215,
381,
6,
6040,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
25784,
41,
3,
23,
26,
381,
6,
4730,
1499,
6,
1128,
1499,
6,
5435,
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,
180,
6122,
599,
17,
5411,
7248,
17079,
61,
21680,
7998,
834,
35,
4046,
4128,
6157,
3,
17,
536,
3,
15355,
3162,
25784,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25532,
3274,
3,
17,
4416,
23,
26,
549,
17444,
427,
3,
17... |
Where was 2010 tournament where the United States received the silver? | CREATE TABLE table_name_18 (
venue VARCHAR,
silver VARCHAR,
year VARCHAR
) | SELECT venue FROM table_name_18 WHERE silver = "united states" AND year = 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
5669,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
2735,
5892,
213,
8,
907,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
4294,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
215,
3274,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
WHAT IS THE GREGORIAN CALENDAR FOR AQUARIUS? | CREATE TABLE table_name_77 (
gregorian_calendar VARCHAR,
sign_of_zodiac VARCHAR
) | SELECT gregorian_calendar FROM table_name_77 WHERE sign_of_zodiac = "aquarius" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
3,
18301,
32,
5288,
834,
1489,
35,
3439,
584,
4280,
28027,
6,
1320,
834,
858,
834,
172,
23193,
75,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
18301,
32,
5288,
834,
1489,
35,
3439,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1320,
834,
858,
834,
172,
23193,
75,
3274,
96,
9,
4960,
18956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients whose age is less than 56 and lab test name is sodium, whole blood? | 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 demographic.age < "56" AND lab.label = "Sodium, Whole Blood" | [
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 listed in reward when the finish is listed at 13th voted out 6th jury Member Day 43? | CREATE TABLE table_28742659_2 (reward VARCHAR, finish VARCHAR) | SELECT reward FROM table_28742659_2 WHERE finish = "13th voted Out 6th Jury Member Day 43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4581,
2688,
3390,
834,
357,
41,
60,
2239,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2616,
16,
9676,
116,
8,
1992,
19,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9676,
21680,
953,
834,
2577,
4581,
2688,
3390,
834,
357,
549,
17444,
427,
1992,
3274,
96,
2368,
189,
3,
11060,
3387,
431,
189,
15598,
63,
8541,
1430,
8838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest Laps with a Time/Retired Wheel? | CREATE TABLE table_name_80 (
laps INTEGER,
time_retired VARCHAR
) | SELECT MAX(laps) FROM table_name_80 WHERE time_retired = "wheel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
14941,
7,
3,
21342,
17966,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
325,
102,
7,
28,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
14074,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which state was first elected in 1914, and a Member of edward jolley? | CREATE TABLE table_53013 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"First elected" text
) | SELECT "State" FROM table_53013 WHERE "First elected" = '1914' AND "Member" = 'edward jolley' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26918,
2368,
41,
96,
329,
18247,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
21543,
127,
342,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
25171,
8160,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
4748,
121,
21680,
953,
834,
26918,
2368,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
2534,
31,
3430,
96,
329,
18247,
121,
3274,
3,
31,
15,
26,
2239,
3,
1927,
40,
1306,
31,
1,
-100,
-100,
-... |
Visualize a bar chart for which catalog contents has price above 700 dollars? Show their catalog entry names and capacities, order in asc by the x-axis. | CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
)
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
)
CREATE TABL... | SELECT catalog_entry_name, capacity FROM Catalog_Contents WHERE price_in_dollars > 700 ORDER BY catalog_entry_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
22424,
834,
134,
17,
11783,
2693,
41,
10173,
834,
4563,
834,
5525,
1152,
3,
21342,
17966,
6,
10173,
834,
23,
26,
3,
21342,
17966,
6,
10173,
834,
4563,
834,
4350,
584,
4280,
28027,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10173,
834,
295,
651,
834,
4350,
6,
2614,
21680,
22424,
834,
4302,
4669,
7,
549,
17444,
427,
594,
834,
77,
834,
26748,
7,
2490,
12283,
4674,
11300,
272,
476,
10173,
834,
295,
651,
834,
4350,
1,
-100,
-100,
-100,
-10... |
What is the gold for a bronze larger than 1, with a total smaller than 10, and a silver of 3? | CREATE TABLE table_name_28 (
gold VARCHAR,
silver VARCHAR,
bronze VARCHAR,
total VARCHAR
) | SELECT gold FROM table_name_28 WHERE bronze > 1 AND total < 10 AND silver = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2045,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
13467,
2490,
209,
3430,
792,
3,
2,
335,
3430,
4294,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Sr. number of Banikhet Dalhouse Khajiar? | CREATE TABLE table_28274 (
"Sr. No." real,
"Name of Road" text,
"Passes Through - District(s" text,
"Length (in km)" text,
"MDR No." real
) | SELECT MAX("Sr. No.") FROM table_28274 WHERE "Name of Road" = 'Banikhet Dalhouse Khajiar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2555,
591,
41,
96,
134,
52,
5,
465,
535,
490,
6,
96,
23954,
13,
2409,
121,
1499,
6,
96,
20192,
15,
7,
4582,
3,
18,
3570,
599,
7,
121,
1499,
6,
96,
434,
4606,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
52,
5,
465,
5,
8512,
21680,
953,
834,
2577,
2555,
591,
549,
17444,
427,
96,
23954,
13,
2409,
121,
3274,
3,
31,
279,
9,
4953,
88,
17,
10729,
1840,
13495,
17815,
291,
31,
1,
-100,
-100,
-10... |
What is the variant when Alexander was the bodybuilder? | CREATE TABLE table_28035004_1 (variant VARCHAR, bodybuilder VARCHAR) | SELECT variant FROM table_28035004_1 WHERE bodybuilder = "Alexander" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
16975,
6348,
834,
536,
41,
9504,
288,
584,
4280,
28027,
6,
643,
16422,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6826,
116,
10135,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6826,
21680,
953,
834,
17518,
16975,
6348,
834,
536,
549,
17444,
427,
643,
16422,
49,
3274,
96,
27280,
11849,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.