NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
When Paul Whiting won the mixed veteran, who won the mixed restricted? | CREATE TABLE table_28211674_3 (mixed_restricted VARCHAR, mixed_veteran VARCHAR) | SELECT mixed_restricted FROM table_28211674_3 WHERE mixed_veteran = "Paul Whiting" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2658,
2938,
4581,
834,
519,
41,
13682,
15,
26,
834,
60,
20066,
15,
26,
584,
4280,
28027,
6,
4838,
834,
162,
449,
152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4838,
834,
60,
20066,
15,
26,
21680,
953,
834,
2577,
2658,
2938,
4581,
834,
519,
549,
17444,
427,
4838,
834,
162,
449,
152,
3274,
96,
23183,
13334,
53,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest draws that have 31 for points, wins greater than 12, with a goal difference less than 11? | CREATE TABLE table_name_8 (draws INTEGER, goal_difference VARCHAR, points VARCHAR, wins VARCHAR) | SELECT MAX(draws) FROM table_name_8 WHERE points = 31 AND wins > 12 AND goal_difference < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
19489,
7,
3,
21342,
17966,
6,
1288,
834,
26,
99,
11788,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
9204,
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,
4800,
4,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
979,
3274,
2664,
3430,
9204,
2490,
586,
3430,
1288,
834,
26,
99,
11788,
3,
2,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which mean interview number had an average of more than 9.233, a swimsuit stat of more than 9.473, and an evening gown score of more than 9.671? | CREATE TABLE table_11150 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) | SELECT AVG("Interview") FROM table_11150 WHERE "Average" > '9.233' AND "Swimsuit" = '9.473' AND "Evening Gown" > '9.671' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
1752,
41,
96,
134,
4748,
121,
1499,
6,
96,
17555,
4576,
121,
490,
6,
96,
134,
210,
603,
7628,
121,
490,
6,
96,
427,
1926,
53,
350,
9197,
121,
490,
6,
96,
188,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17555,
4576,
8512,
21680,
953,
834,
15866,
1752,
549,
17444,
427,
96,
188,
624,
545,
121,
2490,
3,
31,
8797,
20879,
31,
3430,
96,
134,
210,
603,
7628,
121,
3274,
3,
31,
8797,
4177,
519,
31,
34... |
Who is the player with a t6 place and a 72-68-72=212 score? | CREATE TABLE table_name_7 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_7 WHERE place = "t6" AND score = 72 - 68 - 72 = 212 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
20846,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
28,
3,
9,
3,
17,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
286,
3274,
96,
17,
948,
121,
3430,
2604,
3274,
9455,
3,
18,
3,
3651,
3,
18,
9455,
3274,
3,
24837,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the organizer and name for churches that opened between 1830 and 1840. | CREATE TABLE people (
people_id number,
name text,
country text,
is_male text,
age number
)
CREATE TABLE church (
church_id number,
name text,
organized_by text,
open_date number,
continuation_of text
)
CREATE TABLE wedding (
church_id number,
male_id number,
female... | SELECT organized_by, name FROM church WHERE open_date BETWEEN 1830 AND 1840 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
151,
834,
23,
26,
381,
6,
564,
1499,
6,
684,
1499,
6,
19,
834,
13513,
1499,
6,
1246,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2078,
41,
2078,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4997,
834,
969,
6,
564,
21680,
2078,
549,
17444,
427,
539,
834,
5522,
272,
7969,
518,
23394,
507,
1458,
3430,
507,
2445,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the first year and last year of the parties whose theme is 'Spring' or 'Teqnology'? | CREATE TABLE party_host (
party_id number,
host_id number,
is_main_in_charge others
)
CREATE TABLE party (
party_id number,
party_theme text,
location text,
first_year text,
last_year text,
number_of_hosts number
)
CREATE TABLE host (
host_id number,
name text,
national... | SELECT first_year, last_year FROM party WHERE party_theme = "Spring" OR party_theme = "Teqnology" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
12675,
41,
1088,
834,
23,
26,
381,
6,
2290,
834,
23,
26,
381,
6,
19,
834,
7484,
834,
77,
834,
7993,
717,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
166,
834,
1201,
6,
336,
834,
1201,
21680,
1088,
549,
17444,
427,
1088,
834,
532,
526,
3274,
96,
14562,
53,
121,
4674,
1088,
834,
532,
526,
3274,
96,
382,
15,
1824,
29,
1863,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What Catalog was released in Germany? | CREATE TABLE table_7740 (
"Region" text,
"Date" real,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Catalog" FROM table_7740 WHERE "Region" = 'germany' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
2445,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
490,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
18610,
9,
2152,
121,
21680,
953,
834,
4013,
2445,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
1304,
348,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For player Wally Johnson, with goals larger than 0, the debut year later than 1904, and games greater than 136, what were the years at club? | CREATE TABLE table_name_5 (
years_at_club VARCHAR,
player VARCHAR,
games VARCHAR,
goals VARCHAR,
debut_year VARCHAR
) | SELECT years_at_club FROM table_name_5 WHERE goals > 0 AND debut_year > 1904 AND games > 136 AND player = "wally johnson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
203,
834,
144,
834,
13442,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
6,
5695,
834,
1201,
584,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
203,
834,
144,
834,
13442,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
1766,
2490,
3,
632,
3430,
5695,
834,
1201,
2490,
957,
6348,
3430,
1031,
2490,
3,
23459,
3430,
1959,
3274,
96,
210,
1427,
3,
27341,
739,
12... |
Bin the hire date into the day of week interval, and then calculate the total salary of employees in each day for a bar chart, note that just select those employees without the letter M in their first name. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(2... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
4486,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
329,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When did Richmond play an away game against Collingwood? | CREATE TABLE table_name_36 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_36 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
17247,
577,
46,
550,
467,
581,
9919,
53,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the 2000 carlton television for 1951 bbc john stuart | CREATE TABLE table_19185 (
"Cast" text,
"1951 ( BBC )" text,
"1957 (BBC)" text,
"1968 (BBC)" text,
"1970 (film)" text,
"2000 ( Carlton Television )" text
) | SELECT "2000 ( Carlton Television )" FROM table_19185 WHERE "1951 ( BBC )" = 'John Stuart' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
21594,
41,
96,
254,
9,
7,
17,
121,
1499,
6,
96,
2294,
5553,
41,
9938,
3,
61,
121,
1499,
6,
96,
2294,
3436,
41,
7640,
254,
61,
121,
1499,
6,
96,
2294,
3651,
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,
96,
13527,
41,
3,
30339,
21922,
3,
61,
121,
21680,
953,
834,
2294,
21594,
549,
17444,
427,
96,
2294,
5553,
41,
9938,
3,
61,
121,
3274,
3,
31,
18300,
23338,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
which institution has the highest amount of enrollment ? | CREATE TABLE table_204_442 (
id number,
"institution" text,
"location" text,
"enrollment" number,
"nickname" text,
"varsity\nsports" number,
"rugby\nsince" text,
"head coach" text
) | SELECT "institution" FROM table_204_442 ORDER BY "enrollment" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3628,
357,
41,
3,
23,
26,
381,
6,
96,
77,
17448,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
35,
4046,
297,
121,
381,
6,
96,
11191,
4350,
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,
77,
17448,
121,
21680,
953,
834,
26363,
834,
3628,
357,
4674,
11300,
272,
476,
96,
35,
4046,
297,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If artist 1 is 50 Cent featuring Mary J. Blige, what is the guitar part? | CREATE TABLE table_2923 (
"Song 1 title" text,
"Artist 1" text,
"Song 2 title" text,
"Artist 2" text,
"Mix artist" text,
"Guitar part?" text,
"Mix pack" text,
"Release date" text
) | SELECT "Guitar part?" FROM table_2923 WHERE "Artist 1" = '50 Cent featuring Mary J. Blige' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2773,
41,
96,
134,
2444,
209,
2233,
121,
1499,
6,
96,
7754,
343,
209,
121,
1499,
6,
96,
134,
2444,
204,
2233,
121,
1499,
6,
96,
7754,
343,
204,
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,
9105,
23,
2046,
294,
4609,
21680,
953,
834,
3166,
2773,
549,
17444,
427,
96,
7754,
343,
209,
121,
3274,
3,
31,
1752,
18434,
4767,
3790,
446,
5,
272,
2825,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the away team on 30 January 1988, when the home team was Everton? | CREATE TABLE table_name_45 (away_team VARCHAR, home_team VARCHAR, date VARCHAR) | SELECT away_team FROM table_name_45 WHERE home_team = "everton" AND date = "30 january 1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
234,
834,
11650,
3274,
96,
15,
3027,
106,
121,
3430,
833,
3274,
96,
1458,
3,
7066,
76,
1208,
10414,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the minimum yearly number of patients who suffer from stroke? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE lab (
labid numbe... | SELECT MIN(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 'stroke' GROUP BY STRFTIME('%y', diagnosis.diagnosistime)) AS t1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
17,
5411,
75,
6982,
21680,
41,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
8209,
5,
10061,
15129,
21545,
23,
26,
61,
6157,
3,
75,
536,
21680,
8209,
549,
17444,
427,
8209,
5,
25930,
4844,
159,
... |
specify the primary disease and icd9 code of patient id 1875 | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT demographic.diagnosis, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "1875" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
6,
4293,
5,
7,
14184,
834,
21869,
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,
427,
14798,
5... |
What is the title of the production with a number of 1039? | CREATE TABLE table_14117 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" text,
"Release date" text,
"reissue?" text
) | SELECT "Title" FROM table_14117 WHERE "Production Number" = '1039' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
20275,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
8291,
7720,
121,
1499,
6,
96,
1649,
40,
14608,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
2534,
20275,
549,
17444,
427,
96,
3174,
8291,
7720,
121,
3274,
3,
31,
1714,
3288,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which party is Madeleine Plamondon a member of? | CREATE TABLE table_name_94 (
party VARCHAR,
name VARCHAR
) | SELECT party FROM table_name_94 WHERE name = "madeleine plamondon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1088,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1088,
19,
6465,
109,
630,
8422,
6764,
106,
3,
9,
1144,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
564,
3274,
96,
4725,
109,
630,
9564,
6764,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the high amount of assists before game 60? | CREATE TABLE table_name_1 (high_assists VARCHAR, game INTEGER) | SELECT high_assists FROM table_name_1 WHERE game < 60 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
467,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
306,
866,
13,
13041,
274,
467,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
467,
3,
2,
1640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the record for the St. Louis team? | CREATE TABLE table_77379 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_77379 WHERE "Team" = 'st. louis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
519,
4440,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
434,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
4013,
519,
4440,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
7,
17,
5,
16585,
159,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is diagnoses short title and diagnoses long title of subject name gonzalo wasson? | 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 diagnoses.short_title, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Gonzalo Wasson" | [
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,
18730,
7,
5,
7,
14184,
834,
21869,
6,
18730,
7,
5,
2961,
834,
21869,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
549,
174... |
When has an Album of l'un n'empΓͺche pas l'autre? | CREATE TABLE table_name_14 (date VARCHAR, album VARCHAR) | SELECT date FROM table_name_14 WHERE album = "l'un n'empΓͺche pas l'autre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
5522,
584,
4280,
28027,
6,
2306,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
65,
46,
16135,
13,
3,
40,
31,
202,
3,
29,
31,
21881,
330,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
2306,
3274,
96,
40,
31,
202,
3,
29,
31,
21881,
330,
3,
40,
31,
6304,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who won the points classifications in the stage where Matteo Priamo was the winner? | CREATE TABLE table_14710984_2 (
points_classification VARCHAR,
winner VARCHAR
) | SELECT COUNT(points_classification) FROM table_14710984_2 WHERE winner = "Matteo Priamo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
17304,
4608,
834,
357,
41,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
8,
979,
13774,
7,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
834,
4057,
2420,
61,
21680,
953,
834,
24719,
17304,
4608,
834,
357,
549,
17444,
427,
4668,
3274,
96,
329,
10206,
32,
3,
7855,
265,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the websites of schools that were founded in 1872? | CREATE TABLE table_61766 (
"School" text,
"Suburb/Town" text,
"Years" text,
"Founded" real,
"Website" text
) | SELECT "Website" FROM table_61766 WHERE "Founded" = '1872' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2517,
3539,
41,
96,
29364,
121,
1499,
6,
96,
25252,
450,
115,
87,
382,
9197,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
15805,
3585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15805,
3585,
121,
21680,
953,
834,
948,
2517,
3539,
549,
17444,
427,
96,
20100,
121,
3274,
3,
31,
25828,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the timeslot for 'gary has to choose' with an 18-49 of 1.8/5? | CREATE TABLE table_50922 (
"Episode" text,
"Air Date" text,
"Timeslot" text,
"18-49" text,
"Viewers" real
) | SELECT "Timeslot" FROM table_50922 WHERE "18-49" = '1.8/5' AND "Episode" = 'gary has to choose' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
4508,
357,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
20162,
7678,
121,
1499,
6,
96,
13368,
7,
3171,
121,
1499,
6,
96,
2606,
18,
3647,
121,
1499,
6,
96,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
7,
3171,
121,
21680,
953,
834,
1752,
4508,
357,
549,
17444,
427,
96,
2606,
18,
3647,
121,
3274,
3,
31,
16253,
16936,
31,
3430,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
1478,
63,
65,
12,
854,
31,
... |
How many settlements are there in total? | CREATE TABLE settlements (
settlement_id number,
claim_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_settled number,
customer_policy_id number
)
CREATE TABLE customer_policies (
policy_id number,
customer_id number,
policy_type_code text... | SELECT COUNT(*) FROM settlements | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7025,
7,
41,
7025,
834,
23,
26,
381,
6,
1988,
834,
23,
26,
381,
6,
833,
834,
15085,
834,
4725,
97,
6,
833,
834,
15085,
834,
2244,
17,
1361,
97,
6,
866,
834,
20471,
381,
6,
866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
7025,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many seats were won in the year 1994 ? | CREATE TABLE table_203_558 (
id number,
"election" number,
"number of\npopular votes" number,
"% of\npopular votes" number,
"total\nelected seats" text,
"+/-" number
) | SELECT "total\nelected seats" FROM table_203_558 WHERE "election" = 1994 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
3449,
41,
3,
23,
26,
381,
6,
96,
15,
12252,
121,
381,
6,
96,
5525,
1152,
13,
2,
29,
27302,
11839,
121,
381,
6,
96,
1454,
13,
2,
29,
27302,
11839,
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,
235,
1947,
2,
29,
19971,
6116,
121,
21680,
953,
834,
23330,
834,
755,
3449,
549,
17444,
427,
96,
15,
12252,
121,
3274,
7520,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many crowds had a home team score of 9.13 (67)? | CREATE TABLE table_52964 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT COUNT("Crowd") FROM table_52964 WHERE "Home team score" = '9.13 (67)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3166,
4389,
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,
2847,
17161,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
755,
3166,
4389,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
8797,
2368,
41,
3708,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result in the election in the Kentucky 1 district? | CREATE TABLE table_2668367_7 (result VARCHAR, district VARCHAR) | SELECT result FROM table_2668367_7 WHERE district = "Kentucky 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
3708,
834,
940,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
16,
8,
4356,
16,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
2688,
3651,
519,
3708,
834,
940,
549,
17444,
427,
3939,
3274,
96,
439,
295,
4636,
63,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the career win-loss for the ATP Masters Series? | CREATE TABLE table_name_3 (career_win_loss VARCHAR) | SELECT career_win_loss FROM table_name_3 WHERE 1995 = "atp masters series" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
2864,
49,
834,
3757,
834,
2298,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1415,
1369,
18,
2298,
7,
21,
8,
3,
26758,
14119,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1415,
834,
3757,
834,
2298,
7,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
7273,
3274,
96,
144,
102,
2325,
7,
939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Name of the Ship attacked on 20February1942? | CREATE TABLE table_name_64 (name_of_ship VARCHAR, date VARCHAR) | SELECT name_of_ship FROM table_name_64 WHERE date = "20february1942" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
4350,
834,
858,
834,
2009,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5570,
13,
8,
15508,
17263,
30,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
834,
858,
834,
2009,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
833,
3274,
96,
1755,
89,
15,
9052,
1208,
2294,
4165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, show me the trend about salary over hire_date with a line chart. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
... | SELECT HIRE_DATE, SALARY FROM employees WHERE HIRE_DATE < '2002-06-21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the Latin Commander of the Siege of Constantinople? | CREATE TABLE table_name_88 (latin_commander VARCHAR, battle VARCHAR) | SELECT latin_commander FROM table_name_88 WHERE battle = "siege of constantinople" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
14098,
834,
13695,
49,
584,
4280,
28027,
6,
3392,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
6271,
24934,
13,
8,
15177,
15,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
14098,
834,
13695,
49,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
3392,
3274,
96,
19247,
15,
13,
3917,
77,
32,
4788,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Team Estudantes Paulista with a position less than 4 has what average against? | CREATE TABLE table_42173 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT AVG("Against") FROM table_42173 WHERE "Team" = 'estudantes paulista' AND "Position" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
2517,
519,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
20749,
8512,
21680,
953,
834,
4165,
2517,
519,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
15,
8637,
8386,
2576,
83,
343,
9,
31,
3430,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
591,
31,
1,... |
When is the earliest year for it is in barcelona, spain? | CREATE TABLE table_name_35 (year INTEGER, venue VARCHAR) | SELECT MIN(year) FROM table_name_35 WHERE venue = "barcelona, spain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
1201,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
19,
8,
3,
16454,
215,
21,
34,
19,
16,
1207,
7125,
106,
9,
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,
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,
4350,
834,
2469,
549,
17444,
427,
5669,
3274,
96,
1047,
7125,
106,
9,
6,
4174,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the runner-up on September 11? | CREATE TABLE table_21808535_1 (runner_up VARCHAR, date VARCHAR) | SELECT runner_up FROM table_21808535_1 WHERE date = "September 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2079,
4433,
2469,
834,
536,
41,
10806,
834,
413,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3,
10806,
18,
413,
30,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
413,
21680,
953,
834,
2658,
2079,
4433,
2469,
834,
536,
549,
17444,
427,
833,
3274,
96,
27652,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the lites 2 race two winning team when #11 Performance Tech is the lites 1 race two winning team? | CREATE TABLE table_26638600_3 (lites_2_race_two_winning_team VARCHAR, lites_1_race_two_winning_team VARCHAR) | SELECT lites_2_race_two_winning_team FROM table_26638600_3 WHERE lites_1_race_two_winning_team = "#11 Performance Tech" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
3747,
6007,
834,
519,
41,
6311,
7,
834,
357,
834,
12614,
834,
8264,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
3,
6311,
7,
834,
536,
834,
12614,
834,
8264,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
6311,
7,
834,
357,
834,
12614,
834,
8264,
834,
8163,
834,
11650,
21680,
953,
834,
357,
3539,
3747,
6007,
834,
519,
549,
17444,
427,
3,
6311,
7,
834,
536,
834,
12614,
834,
8264,
834,
8163,
834,
11650,
3274,
96,
... |
What rank is the team that has a player named Isco Alarc n? | CREATE TABLE table_46394 (
"Rank" real,
"Player" text,
"Club(s)" text,
"Year(s)" text,
"U-17 Caps" real
) | SELECT "Rank" FROM table_46394 WHERE "Player" = 'isco alarcΓ³n' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3288,
591,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
599,
7,
61,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
121,
1499,
6,
96,
1265,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
121,
21680,
953,
834,
4448,
3288,
591,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
23,
3523,
491,
4667,
15742,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Select the name of the products with a price less than or equal to $200. | CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
) | SELECT name FROM products WHERE price <= 200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
1081,
381,
6,
564,
1499,
6,
594,
381,
6,
4818,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
1081,
381,
6,
564,
1499,
6,
819,
19973,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
494,
549,
17444,
427,
594,
3,
2,
2423,
2382,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what are all the hometown where the average age is 16 | CREATE TABLE table_26267849_2 (hometown VARCHAR, age_s_ VARCHAR) | SELECT hometown FROM table_26267849_2 WHERE age_s_ = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2688,
3940,
3647,
834,
357,
41,
5515,
3540,
584,
4280,
28027,
6,
1246,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
33,
66,
8,
22295,
213,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22295,
21680,
953,
834,
2688,
2688,
3940,
3647,
834,
357,
549,
17444,
427,
1246,
834,
7,
834,
3274,
96,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which route has a terminus of pine Forest? | CREATE TABLE table_name_57 (name VARCHAR, terminus VARCHAR) | SELECT name FROM table_name_57 WHERE terminus = "pine forest" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
4350,
584,
4280,
28027,
6,
12089,
302,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2981,
65,
3,
9,
12089,
302,
13,
15178,
6944,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
12089,
302,
3274,
96,
3180,
15,
5827,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Set 1 has a Set 2 of 26β24? | CREATE TABLE table_name_77 (set_1 VARCHAR, set_2 VARCHAR) | SELECT set_1 FROM table_name_77 WHERE set_2 = "26β24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
2244,
834,
536,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2821,
209,
65,
3,
9,
2821,
204,
13,
2208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
356,
834,
536,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
356,
834,
357,
3274,
96,
2688,
104,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the largest goal number when the transfer fee was Β£0.8m? | CREATE TABLE table_name_50 (goals INTEGER, transfer_fee VARCHAR) | SELECT MAX(goals) FROM table_name_50 WHERE transfer_fee = "Β£0.8m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
839,
5405,
3,
21342,
17966,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
1288,
381,
116,
8,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
2025,
834,
89,
15,
15,
3274,
96,
19853,
22384,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Arena when there were 65 points? | CREATE TABLE table_79216 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text,
"Arena" text,
"Points" text
) | SELECT "Arena" FROM table_79216 WHERE "Points" = '65' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
27184,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1536,
9,
121,
21680,
953,
834,
4440,
27184,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
4122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what were four of the most frequent intakes since 2100? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagn... | SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' AND STRFTIME('%y', intakeoutput.intakeoutputtime) >= '2100' GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
8725,
40,
10333,
21680,
41,
23143,
14196,
11963,
670,
2562,
5,
8725,
40,
10333,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,... |
Rank of 5, and a Silver larger than 0 had what sum of total? | CREATE TABLE table_5987 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Total") FROM table_5987 WHERE "Rank" = '5' AND "Silver" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4225,
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,
180,
6122,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
3390,
4225,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
755,
31,
3430,
96,
134,
173,
624,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the head of household for married filing jointly or qualified widow(er) being $137,051 $208,850 | CREATE TABLE table_54815 (
"Marginal Ordinary Income Tax Rate" text,
"Single" text,
"Married Filing Jointly or Qualified Widow(er)" text,
"Married Filing Separately" text,
"Head of Household" text
) | SELECT "Head of Household" FROM table_54815 WHERE "Married Filing Jointly or Qualified Widow(er)" = '$137,051β$208,850' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3707,
1808,
41,
96,
7286,
19604,
40,
21983,
1208,
20110,
5287,
13002,
121,
1499,
6,
96,
134,
53,
109,
121,
1499,
6,
96,
7286,
9889,
6222,
53,
16761,
120,
42,
2415,
138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
9,
26,
13,
1384,
6134,
121,
21680,
953,
834,
755,
3707,
1808,
549,
17444,
427,
96,
7286,
9889,
6222,
53,
16761,
120,
42,
2415,
138,
3676,
2142,
15198,
599,
49,
61,
121,
3274,
3,
31,
3229,
24636,
6,
3076,... |
which team scored higher as the home team , ayr united or morton ? | CREATE TABLE table_204_475 (
id number,
"home team" text,
"score" text,
"away team" text,
"date" text,
"agg" text
) | SELECT "home team" FROM table_204_475 WHERE "home team" IN ('ayr united', 'morton') ORDER BY "score" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
3072,
41,
3,
23,
26,
381,
6,
96,
5515,
372,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
8006,
372,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
9,
4102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5515,
372,
121,
21680,
953,
834,
26363,
834,
591,
3072,
549,
17444,
427,
96,
5515,
372,
121,
3388,
41,
31,
9,
63,
52,
18279,
31,
6,
3,
31,
2528,
17,
106,
31,
61,
4674,
11300,
272,
476,
96,
7,
9022,
121,
30... |
The Last Metro refers to which Original Title? | CREATE TABLE table_name_91 (original_title VARCHAR, title_in_english VARCHAR) | SELECT original_title FROM table_name_91 WHERE title_in_english = "the last metro" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
21878,
834,
21869,
584,
4280,
28027,
6,
2233,
834,
77,
834,
4606,
40,
1273,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
37,
2506,
10730,
2401,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
21869,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2233,
834,
77,
834,
4606,
40,
1273,
3274,
96,
532,
336,
12810,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT SCORE HAD A RECORD OF 1-1? | CREATE TABLE table_name_42 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_42 WHERE record = "1-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6508,
20888,
454,
6762,
71,
3,
20921,
18400,
3347,
209,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1368,
3274,
96,
536,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the 2014 World Cup Qualification in Kampala that had Angola as an opponent | CREATE TABLE table_57659 (
"Date" text,
"Location" text,
"Opponent" text,
"Score" text,
"Competition" text
) | SELECT "Date" FROM table_57659 WHERE "Competition" = '2014 world cup qualification' AND "Location" = 'kampala' AND "Opponent" = 'angola' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3959,
3390,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
5890,
4995,
4749... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
755,
3959,
3390,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
10218,
296,
4119,
15513,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
157,
265,
13878,
31,
3430,
... |
How many tracks have the title let love be your energy? | CREATE TABLE table_74308 (
"Track no." real,
"Track" text,
"Original Artist" text,
"Soloist(s)" text,
"Vocal Percussionist(s)" text,
"Arranger(s)" text
) | SELECT COUNT("Track no.") FROM table_74308 WHERE "Track" = 'Let Love Be Your Energy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
1458,
927,
41,
96,
382,
16729,
150,
535,
490,
6,
96,
382,
16729,
121,
1499,
6,
96,
667,
3380,
10270,
9152,
121,
1499,
6,
96,
5231,
14970,
17,
599,
7,
61,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
382,
16729,
150,
5,
8512,
21680,
953,
834,
4581,
1458,
927,
549,
17444,
427,
96,
382,
16729,
121,
3274,
3,
31,
2796,
17,
2129,
493,
696,
4654,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What rank is the Silver Bell mine of Pima county? | CREATE TABLE table_name_56 (
rank VARCHAR,
county VARCHAR,
mine VARCHAR
) | SELECT rank FROM table_name_56 WHERE county = "pima" AND mine = "silver bell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
11003,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
6,
2000,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
11003,
19,
8,
5642,
5377,
2000,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
5435,
3274,
96,
102,
603,
9,
121,
3430,
2000,
3274,
96,
7,
173,
624,
12815,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the away team in a tie no larger than 16 with forest green rovers at home? | CREATE TABLE table_name_95 (
away_team VARCHAR,
tie_no VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_95 WHERE tie_no > 16 AND home_team = "forest green rovers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
550,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
6,
234,
834,
11650,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
6177,
834,
29,
32,
2490,
898,
3430,
234,
834,
11650,
3274,
96,
1161,
222,
1442,
3,
8843,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Higgins with a Davis that is 9%? | CREATE TABLE table_name_90 (
higgins VARCHAR,
davis VARCHAR
) | SELECT higgins FROM table_name_90 WHERE davis = "9%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
7102,
122,
19655,
584,
4280,
28027,
6,
836,
3466,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2018,
122,
19655,
28,
3,
9,
8688,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7102,
122,
19655,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
836,
3466,
3274,
96,
7561,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the sum of year for 2nd position for junior race | CREATE TABLE table_name_40 (year INTEGER, position VARCHAR, event VARCHAR) | SELECT SUM(year) FROM table_name_40 WHERE position = "2nd" AND event = "junior race" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1201,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4505,
13,
215,
21,
204,
727,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1102,
3274,
96,
357,
727,
121,
3430,
605,
3274,
96,
6959,
23,
127,
1964,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What type of cartridge is used by a Weatherby? | CREATE TABLE table_20467 (
"Cartridge" text,
"Bullet weight" text,
"Muzzle velocity" text,
"Muzzle energy" text,
"Source" text
) | SELECT "Cartridge" FROM table_20467 WHERE "Source" = 'Weatherby' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
3708,
41,
96,
6936,
17,
7700,
121,
1499,
6,
96,
279,
83,
1655,
1293,
121,
1499,
6,
96,
329,
76,
15133,
22924,
121,
1499,
6,
96,
329,
76,
15133,
827,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6936,
17,
7700,
121,
21680,
953,
834,
26363,
3708,
549,
17444,
427,
96,
23799,
121,
3274,
3,
31,
1326,
144,
760,
969,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many movie reviews does each director get? | CREATE TABLE Rating (mID VARCHAR); CREATE TABLE Movie (director VARCHAR, mID VARCHAR) | SELECT COUNT(*), T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
51,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
25982,
584,
4280,
28027,
6,
3,
51,
4309,
584,
4280,
28027,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
332,
5411,
25982,
21680,
10743,
6157,
332,
536,
3,
15355,
3162,
21662,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
350,
4630,
6880,
272,
476,
332,
5411,
25982,
1,... |
Who is the player with the pick# 80? | CREATE TABLE table_22402438_7 (player VARCHAR, pick__number VARCHAR) | SELECT player FROM table_22402438_7 WHERE pick__number = 80 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
11944,
2266,
3747,
834,
940,
41,
20846,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
28,
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,
1959,
21680,
953,
834,
357,
11944,
2266,
3747,
834,
940,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
2775,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the first game played on February 28? | CREATE TABLE table_44150 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT MIN("Game") FROM table_44150 WHERE "Date" = 'february 28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
12278,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
13041,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
8512,
21680,
953,
834,
3628,
12278,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
89,
15,
9052,
1208,
2059,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the score of the match on 3 March 1988 at the estadio nacional? | CREATE TABLE table_name_73 (score VARCHAR, venue VARCHAR, date VARCHAR) | SELECT score FROM table_name_73 WHERE venue = "estadio nacional" AND date = "3 march 1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
7,
9022,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
1588,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
5669,
3274,
96,
222,
9,
26,
23,
32,
3,
11962,
6318,
121,
3430,
833,
3274,
96,
519,
10556,
10414,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which final opponent's surface was hard (i) and participated on October 9, 2005? | CREATE TABLE table_name_26 (
opponent_in_the_final VARCHAR,
surface VARCHAR,
date VARCHAR
) | SELECT opponent_in_the_final FROM table_name_26 WHERE surface = "hard (i)" AND date = "october 9, 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1774,
3274,
96,
5651,
41,
23,
61,
121,
3430,
833,
3274,
96,
32,
75,
235,
1152,
9902,
3105,
121,
1,
-100,
-100,
-100,
-100,
-... |
What 2010 has a 2006 less than 6.9, a 2008 greater than 1.6, and 2 for 2007? | CREATE TABLE table_name_21 (Id VARCHAR) | SELECT 2010 FROM table_name_21 WHERE 2006 < 6.9 AND 2008 > 1.6 AND 2007 = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2735,
65,
3,
9,
3581,
705,
145,
4357,
1298,
6,
3,
9,
2628,
2123,
145,
3,
15062,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2735,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
3581,
3,
2,
4357,
1298,
3430,
2628,
2490,
3,
15062,
3430,
4101,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients admitted before the year 2200 had their discharge location as disc -tran cancer/chldrn h? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" AND demographic.admityear < "2200" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
15438,
254,
18,
11359,
567,
205,
15083,
448,
87,
8360,
9815,
... |
What is the 2009 when there's 11.8 in 2005 and less than 12.6 in 2006? | CREATE TABLE table_name_45 (
Id VARCHAR
) | SELECT MIN(2009) FROM table_name_45 WHERE 2005 = 11.8 AND 2006 < 12.6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2464,
116,
132,
31,
7,
209,
16253,
16,
3105,
11,
705,
145,
209,
22724,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
25812,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
3105,
3274,
209,
16253,
3430,
3581,
3,
2,
209,
22724,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many distinct companies are there? | CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
) | SELECT COUNT(DISTINCT company) FROM entrepreneur | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
12290,
41,
3,
12290,
834,
23,
26,
381,
6,
151,
834,
23,
26,
381,
6,
349,
1499,
6,
540,
834,
60,
835,
6265,
381,
6,
12024,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
349,
61,
21680,
3,
12290,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show me mean rating by languages in a histogram, order by the mean rating in desc please. | CREATE TABLE artist (
artist_name varchar2(50),
country varchar2(20),
gender varchar2(20),
preferred_genre varchar2(50)
)
CREATE TABLE files (
f_id number(10),
artist_name varchar2(50),
file_size varchar2(20),
duration varchar2(20),
formats varchar2(20)
)
CREATE TABLE song (
so... | SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY AVG(rating) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
2377,
834,
4350,
3,
4331,
4059,
357,
599,
1752,
201,
684,
3,
4331,
4059,
357,
599,
1755,
201,
7285,
3,
4331,
4059,
357,
599,
1755,
201,
6241,
834,
729,
60,
3,
4331,
4059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8024,
6,
71,
17217,
599,
52,
1014,
61,
21680,
2324,
350,
4630,
6880,
272,
476,
8024,
4674,
11300,
272,
476,
71,
17217,
599,
52,
1014,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
age less than 6 years or greater than 25 years. | CREATE TABLE table_train_216 (
"id" int,
"gender" string,
"hba1c" float,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_216 WHERE age <= 6 AND age >= 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
27184,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
107,
115,
9,
536,
75,
121,
3,
12660,
6,
96,
6965,
834,
2754,
7,
834,
18288,
834,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
27184,
549,
17444,
427,
1246,
3,
2,
2423,
431,
3430,
1246,
2490,
2423,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the Electorate, when the year for First elected is 1974, and when the Party is Country? | CREATE TABLE table_name_16 (electorate VARCHAR, first_elected VARCHAR, party VARCHAR) | SELECT electorate FROM table_name_16 WHERE first_elected = "1974" AND party = "country" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
400,
5317,
342,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
11924,
127,
342,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
166,
834,
19971,
3274,
96,
27181,
20364,
3430,
1088,
3274,
96,
17529,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What us the number of the round during which #56 Blue Thunder Racing become the GTP winning team and #38 Mandeville Auto Tech became the GTO winning team? | CREATE TABLE table_13643320_2 (
rnd VARCHAR,
gtp_winning_team VARCHAR,
gto_winning_team VARCHAR
) | SELECT rnd FROM table_13643320_2 WHERE gtp_winning_team = "#56 Blue Thunder Racing" AND gto_winning_team = "#38 Mandeville Auto Tech" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
4906,
15003,
834,
357,
41,
3,
52,
727,
584,
4280,
28027,
6,
3,
122,
17,
102,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
3,
122,
235,
834,
8163,
834,
11650,
584,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
52,
727,
21680,
953,
834,
23459,
4906,
15003,
834,
357,
549,
17444,
427,
3,
122,
17,
102,
834,
8163,
834,
11650,
3274,
96,
4663,
4834,
2419,
18114,
16046,
121,
3430,
3,
122,
235,
834,
8163,
834,
11650,
3274,
96,
... |
what is the circuit when the winner is stan jones and the race is phillip island trophy race? | CREATE TABLE table_46526 (
"Date" text,
"Race" text,
"Circuit" text,
"Location" text,
"Winner" text
) | SELECT "Circuit" FROM table_46526 WHERE "Winner" = 'stan jones' AND "Race" = 'phillip island trophy race' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4122,
2688,
41,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
18455,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
23,
52,
21560,
121,
21680,
953,
834,
591,
4122,
2688,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
5627,
3,
1927,
1496,
31,
3430,
96,
448,
3302,
121,
3274,
3,
31,
18118,
7446,
3368,
23921,
1964,
31,... |
How many people are high assists when location attendance is Seattle Center Coliseum 14,180? | CREATE TABLE table_30067 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("High assists") FROM table_30067 WHERE "Location Attendance" = 'Seattle Center Coliseum 14,180' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3708,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
21417,
13041,
8512,
21680,
953,
834,
5426,
3708,
549,
17444,
427,
96,
434,
32,
75,
257,
22497,
663,
121,
3274,
3,
31,
134,
15,
9,
8692,
1166,
3043,
159,
15,
440,
11363,
20829,
31,
1,
-100,
-... |
On October 25, when the visitor was Colorado, what is the score? | CREATE TABLE table_name_64 (
score VARCHAR,
visitor VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_64 WHERE visitor = "colorado" AND date = "october 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
2604,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
1797,
14105,
116,
8,
7019,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
7019,
3274,
96,
8135,
19042,
121,
3430,
833,
3274,
96,
32,
75,
235,
1152,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the away team at Junction Oval venue? | CREATE TABLE table_name_8 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_8 WHERE venue = "junction oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
550,
372,
44,
29092,
411,
216... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
5669,
3274,
96,
6959,
4985,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market. | CREATE TABLE market (District VARCHAR, Market_ID VARCHAR, Ranking VARCHAR); CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Market_ID VARCHAR, Phone_ID VARCHAR) | SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID ORDER BY T2.Ranking | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
512,
41,
308,
23,
20066,
584,
4280,
28027,
6,
3611,
834,
4309,
584,
4280,
28027,
6,
29153,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
41,
23954,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5787,
23954,
6,
332,
4416,
308,
23,
20066,
21680,
951,
834,
8809,
6157,
332,
536,
3,
15355,
3162,
512,
6157,
332,
357,
9191,
332,
5411,
22572,
834,
4309,
3274,
332,
4416,
22572,
834,
4309,
3,
15355,
3162,
951,
... |
Which Away team has a Venue of arden street oval? | CREATE TABLE table_52321 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_52321 WHERE "Venue" = 'arden street oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2773,
2658,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
755,
2773,
2658,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
986,
35,
2815,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the date of the game with 38,062 people in attendance? | CREATE TABLE table_38784 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Date" FROM table_38784 WHERE "Attendance" = '38,062' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
3940,
591,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
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... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3747,
3940,
591,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
3747,
6,
5176,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many poles are there in the Formula Three Euroseries in the 2008 season with more than 0 F/Laps? | CREATE TABLE table_76208 (
"Season" text,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Points" text,
"Position" text
) | SELECT SUM("Poles") FROM table_76208 WHERE "Series" = 'formula three euroseries' AND "Season" = '2008' AND "F/Laps" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
23946,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
8931,
15,
7,
8512,
21680,
953,
834,
3959,
23946,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
2032,
83,
9,
386,
10186,
4074,
7,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
16128,
... |
How many numbers were listed under losing bonus when there were 68 tries for? | CREATE TABLE table_13399573_3 (losing_bonus VARCHAR, tries_for VARCHAR) | SELECT COUNT(losing_bonus) FROM table_13399573_3 WHERE tries_for = "68" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3288,
3301,
4552,
834,
519,
41,
2298,
53,
834,
5407,
302,
584,
4280,
28027,
6,
3,
9000,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2298,
53,
834,
5407,
302,
61,
21680,
953,
834,
2368,
3288,
3301,
4552,
834,
519,
549,
17444,
427,
3,
9000,
834,
1161,
3274,
96,
3651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose primary disease is transient ischemic attack and procedure short title is cardiopulm resuscita nos? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "TRANSIENT ISCHEMIC ATTACK" AND procedures.short_title = "Cardiopulm resuscita NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many dvd releases where directed by david decoteau? | CREATE TABLE table_19982699_1 (
dvd_release VARCHAR,
director VARCHAR
) | SELECT COUNT(dvd_release) FROM table_19982699_1 WHERE director = "David DeCoteau" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3916,
2688,
3264,
834,
536,
41,
30114,
834,
21019,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
30114,
10375,
213,
6640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
26,
208,
26,
834,
21019,
61,
21680,
953,
834,
2294,
3916,
2688,
3264,
834,
536,
549,
17444,
427,
2090,
3274,
96,
308,
9,
6961,
374,
3881,
17,
1607,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
List all information about college sorted by enrollment number in the ascending order. | CREATE TABLE College (
enr VARCHAR
) | SELECT * FROM College ORDER BY enr | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1888,
41,
3,
35,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
66,
251,
81,
1900,
3,
14504,
57,
17938,
381,
16,
8,
25200,
53,
455,
5,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1429,
21680,
1888,
4674,
11300,
272,
476,
3,
35,
52,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of hire_date and the sum of salary bin hire_date by weekday, I want to display in desc by the total number. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JO... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(SALARY) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
180,
6122,
599,
134,
4... |
Which attendance has a Score of 3-5? | CREATE TABLE table_14561 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Attendance" FROM table_14561 WHERE "Score" = '3-5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
4241,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
20987,
4241,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
18366,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show all calendar dates and day Numbers. | CREATE TABLE ref_calendar (
calendar_date time,
day_number number
)
CREATE TABLE all_documents (
document_id number,
date_stored time,
document_type_code text,
document_name text,
document_description text,
other_details text
)
CREATE TABLE ref_document_types (
document_type_code t... | SELECT calendar_date, day_number FROM ref_calendar | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6273,
834,
1489,
35,
3439,
41,
4793,
834,
5522,
97,
6,
239,
834,
5525,
1152,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
66,
834,
28244,
7,
41,
1708,
834,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4793,
834,
5522,
6,
239,
834,
5525,
1152,
21680,
6273,
834,
1489,
35,
3439,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date of game 81? | CREATE TABLE table_38572 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Date" FROM table_38572 WHERE "Game" = '81' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
3436,
357,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3747,
3436,
357,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
4959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose diagnoses long title is presence of cerebrospinal fluid drainage device and lab test abnormal status is abnormal? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Presence of cerebrospinal fluid drainage device" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What was the score when Mark parterned with lorenzo manta? | CREATE TABLE table_name_19 (
score VARCHAR,
partner VARCHAR
) | SELECT score FROM table_name_19 WHERE partner = "lorenzo manta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
2604,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
2185,
294,
11965,
26,
28,
3,
322,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
2397,
3274,
96,
322,
15,
20547,
388,
17,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is team 1 when team 2 is usl dunkerque (d2)? | CREATE TABLE table_name_87 (
team_1 VARCHAR,
team_2 VARCHAR
) | SELECT team_1 FROM table_name_87 WHERE team_2 = "usl dunkerque (d2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
372,
834,
536,
584,
4280,
28027,
6,
372,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
372,
209,
116,
372,
204,
19,
178,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
536,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
372,
834,
357,
3274,
96,
302,
40,
146,
29,
2304,
835,
41,
26,
7318,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How did the game number 50 end? | CREATE TABLE table_23248940_9 (
score VARCHAR,
game VARCHAR
) | SELECT score FROM table_23248940_9 WHERE game = 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3914,
2445,
834,
1298,
41,
2604,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
410,
8,
467,
381,
943,
414,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2773,
2266,
3914,
2445,
834,
1298,
549,
17444,
427,
467,
3274,
943,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the away captain at Brisbane Cricket Ground? | CREATE TABLE table_name_34 (
away_captain VARCHAR,
venue VARCHAR
) | SELECT away_captain FROM table_name_34 WHERE venue = "brisbane cricket ground" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
550,
834,
4010,
17,
9,
77,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
550,
14268,
44,
19286,
24661... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
4010,
17,
9,
77,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
5669,
3274,
96,
2160,
7,
3478,
15,
18096,
1591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is every specialization with the website Jstu.edu.bd | CREATE TABLE table_2112260_1 (specialization VARCHAR, website VARCHAR) | SELECT specialization FROM table_2112260_1 WHERE website = "jstu.edu.bd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2122,
18365,
834,
536,
41,
17434,
1707,
584,
4280,
28027,
6,
475,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
534,
1707,
28,
8,
475,
446,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
534,
1707,
21680,
953,
834,
2658,
2122,
18365,
834,
536,
549,
17444,
427,
475,
3274,
96,
354,
7,
17,
76,
5,
15,
1259,
5,
115,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which average Game has a High points of wilson chandler (16)? | CREATE TABLE table_name_7 (
game INTEGER,
high_points VARCHAR
) | SELECT AVG(game) FROM table_name_7 WHERE high_points = "wilson chandler (16)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
467,
3,
21342,
17966,
6,
306,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1348,
4435,
65,
3,
9,
1592,
979,
13,
3,
210,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7261,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
210,
173,
739,
3,
8694,
12807,
19198,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what records have a score of l 109 116 2 ot | CREATE TABLE table_11964047_7 (
record VARCHAR,
score VARCHAR
) | SELECT record FROM table_11964047_7 WHERE score = "L 109β116 2 OT" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
23714,
4177,
834,
940,
41,
1368,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
3187,
43,
3,
9,
2604,
13,
3,
40,
3,
17304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
19993,
23714,
4177,
834,
940,
549,
17444,
427,
2604,
3274,
96,
434,
3,
17304,
104,
20159,
204,
3,
6951,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which of the lowest leagues had Aldershot town as a club when the play-offs number was less than 0? | CREATE TABLE table_name_13 (league INTEGER, club VARCHAR, play_offs VARCHAR) | SELECT MIN(league) FROM table_name_13 WHERE club = "aldershot town" AND play_offs < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
29512,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
6,
577,
834,
1647,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13,
8,
7402,
5533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
29512,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1886,
3274,
96,
138,
588,
11159,
1511,
121,
3430,
577,
834,
1647,
7,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Outcome has a Championship of us championships, and a Score in the final of 5β7, 6β1, 6β3, 6β3? | CREATE TABLE table_name_61 (outcome VARCHAR, championship VARCHAR, score_in_the_final VARCHAR) | SELECT outcome FROM table_name_61 WHERE championship = "us championships" AND score_in_the_final = "5β7, 6β1, 6β3, 6β3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
670,
287,
15,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6138,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
10183,
3274,
96,
302,
10183,
7,
121,
3430,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
755,
104,
940,
6,
431,
104,
4347,
431,
104,
6355,
431,
104,
519,
1... |
How many ranks had 367 matches and more than 216 goals? | CREATE TABLE table_41838 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
) | SELECT SUM("Rank") FROM table_41838 WHERE "Matches" = '367' AND "Goals" > '216' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2606,
3747,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
6221,
5405,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22557,
8512,
21680,
953,
834,
591,
2606,
3747,
549,
17444,
427,
96,
329,
144,
2951,
121,
3274,
3,
31,
519,
3708,
31,
3430,
96,
6221,
5405,
121,
2490,
3,
31,
27184,
31,
1,
-100,
-100,
-100,
-10... |
what is the number of draws for ali said gouled? | CREATE TABLE table_name_12 (
draws VARCHAR,
name VARCHAR
) | SELECT COUNT(draws) FROM table_name_12 WHERE name = "ali said gouled" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
14924,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
381,
13,
14924,
21,
3,
4288,
243,
281,
76,
1361,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
564,
3274,
96,
4288,
243,
281,
76,
1361,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the surface of the final which had score 6-2, 6-3 | CREATE TABLE table_1918850_2 (
surface VARCHAR,
score_in_the_final VARCHAR
) | SELECT surface FROM table_1918850_2 WHERE score_in_the_final = "6-2, 6-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2606,
17246,
834,
357,
41,
1774,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1774,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
2294,
2606,
17246,
834,
357,
549,
17444,
427,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
25369,
6,
3,
24262,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date of the game after week 5 with 62,262 fans attending? | CREATE TABLE table_name_82 (date VARCHAR, week VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_82 WHERE week > 5 AND attendance = "62,262" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
5522,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
227,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
471,
2490,
305,
3430,
11364,
3274,
96,
4056,
6,
2688,
357,
121,
1,
-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.