NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What Social AO has an External CO of elena buscher, and a President of harm van leeuwen? | CREATE TABLE table_61957 (
"President" text,
"Treasurer" text,
"Secretary" text,
"Social AO" text,
"Academic AO" text,
"Internal CO" text,
"External CO" text
) | SELECT "Social AO" FROM table_61957 WHERE "External CO" = 'elena buscher' AND "President" = 'harm van leeuwen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2294,
3436,
41,
96,
345,
15704,
121,
1499,
6,
96,
382,
864,
3042,
49,
121,
1499,
6,
96,
134,
15,
16794,
1208,
121,
1499,
6,
96,
5231,
4703,
3,
17249,
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,
5231,
4703,
3,
17249,
121,
21680,
953,
834,
948,
2294,
3436,
549,
17444,
427,
96,
5420,
2947,
138,
2847,
121,
3274,
3,
31,
400,
29,
9,
2601,
1703,
31,
3430,
96,
345,
15704,
121,
3274,
3,
31,
17178,
4049,
90,
... |
What was John Watson's time/retired? | CREATE TABLE table_52569 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_52569 WHERE "Driver" = 'john watson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
3951,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
755,
1828,
3951,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
27341,
8036,
17,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What position does the player from the Miami University (CCHA) club team play? | CREATE TABLE table_name_20 (position VARCHAR, club_team VARCHAR) | SELECT position FROM table_name_20 WHERE club_team = "miami university (ccha)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
4718,
584,
4280,
28027,
6,
1886,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
405,
8,
1959,
45,
8,
8327,
636,
41,
254,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
1886,
834,
11650,
3274,
96,
51,
23,
3690,
3819,
41,
75,
3441,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Week had an Attendance smaller than 22,333? | CREATE TABLE table_5758 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT COUNT("Week") FROM table_5758 WHERE "Attendance" < '22,333' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3449,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
518,
10266,
8512,
21680,
953,
834,
3436,
3449,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3,
2,
3,
31,
2884,
6,
23360,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the difference in attendance for week 5 and 9 | CREATE TABLE table_204_670 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" number
) | SELECT ABS((SELECT "attendance" FROM table_204_670 WHERE "week" = 5) - (SELECT "attendance" FROM table_204_670 WHERE "week" = 9)) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3708,
632,
41,
3,
23,
26,
381,
6,
96,
8041,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
1499,
6,
96,
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,
20798,
599,
599,
23143,
14196,
96,
15116,
663,
121,
21680,
953,
834,
26363,
834,
3708,
632,
549,
17444,
427,
96,
8041,
121,
3274,
3,
9120,
3,
18,
41,
23143,
14196,
96,
15116,
663,
121,
21680,
953,
834,
26363,
834,
3... |
How many Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds? | CREATE TABLE table_name_68 (
games INTEGER,
team VARCHAR,
rebounds VARCHAR
) | SELECT SUM(games) FROM table_name_68 WHERE team = "lietuvos rytas vilnius" AND rebounds < 43 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
1031,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
3,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5880,
21,
8,
12387,
45,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
7261,
7,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
372,
3274,
96,
1896,
17,
76,
1621,
7,
3,
651,
17,
9,
7,
3,
6372,
22901,
121,
3430,
3,
23768,
3,
2,
8838,
1,
-100,
-100,
-100,
-10... |
the last team to win the west ? | CREATE TABLE table_204_1 (
id number,
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
) | SELECT "west" FROM table_204_1 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
536,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
29,
127,
189,
121,
1499,
6,
96,
7,
670,
107,
121,
1499,
6,
96,
11535,
121,
1499,
6,
96,
12425,
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,
12425,
121,
21680,
953,
834,
26363,
834,
536,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
the city 's total number of dwellings as of 2012 . | CREATE TABLE table_203_642 (
id number,
"name" text,
"quadrant" text,
"sector" text,
"ward" text,
"type" text,
"2012\npopulation\nrank" number,
"population\n(2012)" number,
"population\n(2011)" number,
"% change" number,
"dwellings\n(2012)" number,
"area\n(km2)" number,
"population\ndensity" number
) | SELECT SUM("dwellings\n(2012)") FROM table_203_642 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4389,
357,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
4960,
26,
3569,
121,
1499,
6,
96,
7,
15,
5317,
121,
1499,
6,
96,
2239,
121,
1499,
6,
96,
613... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26,
2091,
53,
7,
2,
29,
599,
12172,
61,
8512,
21680,
953,
834,
23330,
834,
4389,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the 3rd ratio for tag number 1386-000-017 and input splines of 26? | CREATE TABLE table_1310499_1 (input_splines VARCHAR, tag_id VARCHAR) | SELECT 3 AS rd FROM table_1310499_1 WHERE input_splines = 26 AND tag_id = "1386-000-017" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
15442,
3264,
834,
536,
41,
77,
2562,
834,
7,
102,
6972,
584,
4280,
28027,
6,
7860,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
220,
6157,
3,
52,
26,
21680,
953,
834,
2368,
15442,
3264,
834,
536,
549,
17444,
427,
3785,
834,
7,
102,
6972,
3274,
2208,
3430,
7860,
834,
23,
26,
3274,
96,
22744,
28625,
1206,
14772,
940,
121,
1,
-100,
-100,
-100,
... |
Who was the winner of the 23rd Edition? | CREATE TABLE table_name_58 (winner VARCHAR, edition VARCHAR) | SELECT winner FROM table_name_58 WHERE edition = "23rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
3757,
687,
584,
4280,
28027,
6,
4182,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4668,
13,
8,
1902,
52,
26,
7504,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
4182,
3274,
96,
2773,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the date when the visitor is nets | CREATE TABLE table_name_29 (
date VARCHAR,
visitor VARCHAR
) | SELECT date FROM table_name_29 WHERE visitor = "nets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
833,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
116,
8,
7019,
19,
3134,
7,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
7019,
3274,
96,
1582,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest Tournaments with Highest Rank of Maegashira 13? | CREATE TABLE table_62625 (
"Name" text,
"Tournaments" real,
"Pro Debut" text,
"Top division debut" text,
"Highest rank" text
) | SELECT MIN("Tournaments") FROM table_62625 WHERE "Highest rank" = 'maegashira 13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2688,
1828,
41,
96,
23954,
121,
1499,
6,
96,
382,
1211,
29,
9,
4128,
121,
490,
6,
96,
3174,
374,
2780,
121,
1499,
6,
96,
22481,
4889,
5695,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
382,
1211,
29,
9,
4128,
8512,
21680,
953,
834,
948,
2688,
1828,
549,
17444,
427,
96,
21417,
222,
11003,
121,
3274,
3,
31,
51,
9,
15,
5556,
9288,
9,
1179,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who scored the most points? | CREATE TABLE table_19262 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MAX("Points") FROM table_19262 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
4056,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
7681,
449,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
19978,
4056,
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,
... |
What was the record on the date of december 1, 1968? | CREATE TABLE table_44147 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT "Record" FROM table_44147 WHERE "Date" = 'december 1, 1968' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
24719,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
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,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
3628,
24719,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
1914,
16506,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which region has and eyeball label and catalogue 7200222? | CREATE TABLE table_name_23 (
region VARCHAR,
label VARCHAR,
catalogue VARCHAR
) | SELECT region FROM table_name_23 WHERE label = "eyeball" AND catalogue = "7200222" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
1719,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
6,
14978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1719,
65,
11,
1580,
3184,
3783... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1719,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
3783,
3274,
96,
13370,
3184,
121,
3430,
14978,
3274,
96,
940,
24898,
2884,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Points, when Series is Queensland Formula Ford Championship, and when Position is 1st? | CREATE TABLE table_45824 (
"Season" real,
"Series" text,
"Points" text,
"Position" text,
"Driver" text
) | SELECT "Points" FROM table_45824 WHERE "Series" = 'queensland formula ford championship' AND "Position" = '1st' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
927,
2266,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
22512,
7,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
20982,
52,
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,
22512,
7,
121,
21680,
953,
834,
2128,
927,
2266,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
835,
35,
7,
40,
232,
5403,
21,
26,
10183,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
536,
7,
17,
3... |
What was the rating in Brisbane the week it was 276000 in Melbourne? | CREATE TABLE table_24291077_8 (
brisbane INTEGER,
melbourne VARCHAR
) | SELECT MAX(brisbane) FROM table_24291077_8 WHERE melbourne = 276000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3166,
1714,
4013,
834,
927,
41,
3,
2160,
7,
3478,
15,
3,
21342,
17966,
6,
3,
2341,
26255,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5773,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2160,
7,
3478,
15,
61,
21680,
953,
834,
2266,
3166,
1714,
4013,
834,
927,
549,
17444,
427,
3,
2341,
26255,
3274,
2307,
21987,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent at the game when the record was 4-5? | CREATE TABLE table_name_69 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_69 WHERE record = "4-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
44,
8,
467,
116,
8,
1368,
47,
3,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1368,
3274,
96,
18822,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the most recent year that China won a bronze? | CREATE TABLE table_38120 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
) | SELECT MAX("Year") FROM table_38120 WHERE "Bronze" = 'china' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
15518,
41,
96,
476,
2741,
121,
490,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
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,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3747,
15518,
549,
17444,
427,
96,
22780,
29,
776,
121,
3274,
3,
31,
5675,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player scored 70-72-70=212? | CREATE TABLE table_name_35 (
player VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_35 WHERE score = 70 - 72 - 70 = 212 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
1959,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
5799,
2861,
18,
5865,
18,
2518,
2423,
24837,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
2604,
3274,
2861,
3,
18,
9455,
3,
18,
2861,
3274,
3,
24837,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent during the game that had more than 31,891 people in attendance? | CREATE TABLE table_37771 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Opponent" FROM table_37771 WHERE "Attendance" > '31,891' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
4013,
536,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
4118,
4013,
536,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
3341,
6,
3914,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Score of the game larger than 57 with a Record of 4 55? | CREATE TABLE table_34295 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Score" FROM table_34295 WHERE "Game" > '57' AND "Record" = '4–55' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
357,
3301,
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,
134,
9022,
121,
21680,
953,
834,
3710,
357,
3301,
549,
17444,
427,
96,
23055,
121,
2490,
3,
31,
3436,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
591,
104,
3769,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the sum of All-Time, when Amateur Era is less than 0? | CREATE TABLE table_46742 (
"Country" text,
"Amateur Era" real,
"Open Era" real,
"All-time" real,
"First title" real,
"Last title" real
) | SELECT SUM("All-time") FROM table_46742 WHERE "Amateur Era" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
4581,
357,
41,
96,
10628,
651,
121,
1499,
6,
96,
8123,
6408,
848,
9,
121,
490,
6,
96,
22696,
848,
9,
121,
490,
6,
96,
6838,
18,
715,
121,
490,
6,
96,
25171,
2233,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6838,
18,
715,
8512,
21680,
953,
834,
4448,
4581,
357,
549,
17444,
427,
96,
8123,
6408,
848,
9,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the minimum age of married patients who were admitted to hospital on or after 2180. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear >= "2180" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
2658,
2079,
121,
1,
-10... |
If the stage is smaller than 5.0, and the points classification is by Marco Marcato, who is the General classification by? | CREATE TABLE table_27573848_18 (
general_classification VARCHAR,
points_classification VARCHAR,
stage VARCHAR
) | SELECT general_classification FROM table_27573848_18 WHERE points_classification = "Marco Marcato" AND stage < 5.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3436,
3747,
3707,
834,
2606,
41,
879,
834,
4057,
2420,
584,
4280,
28027,
6,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
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,
879,
834,
4057,
2420,
21680,
953,
834,
2555,
3436,
3747,
3707,
834,
2606,
549,
17444,
427,
979,
834,
4057,
2420,
3274,
96,
7286,
509,
10290,
9,
235,
121,
3430,
1726,
3,
2,
3,
20734,
1,
-100,
-100,
-100,
-100,
-100,
... |
What time span is listed under years for the 96th congres? | CREATE TABLE table_4022 (
"Representative" text,
"Party" text,
"Years" text,
"Congress" text,
"District Home" text,
"Occupation" text,
"Electoral history" text
) | SELECT "Years" FROM table_4022 WHERE "Congress" = '96th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
2884,
41,
96,
1649,
12640,
1528,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
4302,
10292,
121,
1499,
6,
96,
308,
23,
20066,
1210,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
7,
121,
21680,
953,
834,
2445,
2884,
549,
17444,
427,
96,
4302,
10292,
121,
3274,
3,
31,
4314,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
The highest position with more than 16 points and less than 7 concedes? | CREATE TABLE table_name_40 (
position INTEGER,
points VARCHAR,
conceded VARCHAR
) | SELECT MAX(position) FROM table_name_40 WHERE points > 16 AND conceded < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1102,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
28325,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
2030,
1102,
28,
72,
145,
898... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4718,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
979,
2490,
898,
3430,
28325,
26,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the last 1/4 for the QUA race with a finishing time of 2:03.1? | CREATE TABLE table_name_22 (last_1_4 VARCHAR, race VARCHAR, fin_time VARCHAR) | SELECT last_1_4 FROM table_name_22 WHERE race = "qua" AND fin_time = "2:03.1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
5064,
834,
536,
834,
591,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
6,
2202,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
336,
834,
536,
834,
591,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1964,
3274,
96,
4960,
121,
3430,
2202,
834,
715,
3274,
96,
357,
10,
13267,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many employees does each role have? Plot a bar chart listing role id and number of employees, rank by the x-axis in asc. | CREATE TABLE Employees (
employee_id INTEGER,
role_code CHAR(15),
employee_name VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Ref_Shipping_Agents (
shipping_agent_code CHAR(15),
shipping_agent_name VARCHAR(255),
shipping_agent_description VARCHAR(255)
)
CREATE TABLE Document_Drafts (
document_id INTEGER,
draft_number INTEGER,
draft_details VARCHAR(255)
)
CREATE TABLE Circulation_History (
document_id INTEGER,
draft_number INTEGER,
copy_number INTEGER,
employee_id INTEGER
)
CREATE TABLE Roles (
role_code CHAR(15),
role_description VARCHAR(255)
)
CREATE TABLE Documents (
document_id INTEGER,
document_status_code CHAR(15),
document_type_code CHAR(15),
shipping_agent_code CHAR(15),
receipt_date DATETIME,
receipt_number VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Documents_Mailed (
document_id INTEGER,
mailed_to_address_id INTEGER,
mailing_date DATETIME
)
CREATE TABLE Addresses (
address_id INTEGER,
address_details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
document_type_code CHAR(15),
document_type_description VARCHAR(255)
)
CREATE TABLE Ref_Document_Status (
document_status_code CHAR(15),
document_status_description VARCHAR(255)
)
CREATE TABLE Draft_Copies (
document_id INTEGER,
draft_number INTEGER,
copy_number INTEGER
) | SELECT T1.role_code, COUNT(*) FROM Roles AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code ORDER BY T1.role_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15871,
7,
41,
3490,
834,
23,
26,
3,
21342,
17966,
6,
1075,
834,
4978,
3,
28027,
599,
1808,
201,
3490,
834,
4350,
584,
4280,
28027,
599,
25502,
201,
119,
834,
221,
5756,
7,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
3491,
15,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
2158,
965,
6157,
332,
536,
3,
15355,
3162,
15871,
7,
6157,
332,
357,
9191,
332,
5411,
3491,
15,
834,
4978,
3274,
332,
4416,
3491,
15,
834,
4978,
... |
What date did home team liverpool play? | CREATE TABLE table_name_70 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_70 WHERE home_team = "liverpool" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
5522,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
410,
234,
372,
11501,
13194,
577,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7591,
52,
13194,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which District is Constituency number 22? | CREATE TABLE table_name_43 (
district VARCHAR,
constituency_number VARCHAR
) | SELECT district FROM table_name_43 WHERE constituency_number = "22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
3939,
584,
4280,
28027,
6,
6439,
4392,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3570,
19,
22636,
4392,
381,
1630,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
6439,
4392,
834,
5525,
1152,
3274,
96,
2884,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title that was first published in February 2009 and is still ongoing? | CREATE TABLE table_name_44 (title VARCHAR, last_issue VARCHAR, first_issue VARCHAR) | SELECT title FROM table_name_44 WHERE last_issue = "ongoing" AND first_issue = "february 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
21869,
584,
4280,
28027,
6,
336,
834,
13159,
584,
4280,
28027,
6,
166,
834,
13159,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
336,
834,
13159,
3274,
96,
106,
9545,
121,
3430,
166,
834,
13159,
3274,
96,
89,
15,
9052,
1208,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the highest number of starts in 2007 when the average start was over 17.6? | CREATE TABLE table_name_49 (starts INTEGER, year VARCHAR, avg_start VARCHAR) | SELECT MAX(starts) FROM table_name_49 WHERE year = 2007 AND avg_start > 17.6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
10208,
7,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
10208,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
10208,
7,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
215,
3274,
4101,
3430,
3,
9,
208,
122,
834,
10208,
2490,
11030,
948,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What team is in the city of Rock Island? | CREATE TABLE table_30143 (
"Institution" text,
"City" text,
"State" text,
"Team Name" text,
"Affiliation" text,
"Enrollment" real,
"Home Conference" text
) | SELECT "Team Name" FROM table_30143 WHERE "City" = 'Rock Island' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
25133,
41,
96,
1570,
17448,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
188,
89,
8027,
23,
257,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
5570,
121,
21680,
953,
834,
1458,
25133,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
23349,
2834,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Format of the Frequency owned by Laval University? | CREATE TABLE table_name_96 (
format VARCHAR,
owner VARCHAR
) | SELECT format FROM table_name_96 WHERE owner = "laval university" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
1910,
584,
4280,
28027,
6,
2527,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12439,
13,
8,
5532,
835,
11298,
4157,
57,
325,
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,
1910,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2527,
3274,
96,
22288,
40,
3819,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What series had a high points of Prince (23)? | CREATE TABLE table_name_32 (series VARCHAR, high_points VARCHAR) | SELECT series FROM table_name_32 WHERE high_points = "prince (23)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
10833,
7,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
939,
141,
3,
9,
306,
979,
13,
9027,
4743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
939,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
12298,
565,
4743,
5268,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the partner for the game on October 20, 2013? | CREATE TABLE table_name_80 (
partner VARCHAR,
date VARCHAR
) | SELECT partner FROM table_name_80 WHERE date = "october 20, 2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
2397,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2397,
21,
8,
467,
30,
1797,
16047,
2038,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2397,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
16047,
2038,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the member countries for finnish swedish | CREATE TABLE table_26519486_1 (member_countries VARCHAR, languages VARCHAR) | SELECT member_countries FROM table_26519486_1 WHERE languages = "Finnish Swedish" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
5553,
4240,
3840,
834,
536,
41,
12066,
834,
13362,
2593,
584,
4280,
28027,
6,
8024,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1144,
1440,
21,
2202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1144,
834,
13362,
2593,
21680,
953,
834,
2688,
5553,
4240,
3840,
834,
536,
549,
17444,
427,
8024,
3274,
96,
371,
77,
29,
1273,
16531,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what was the number of freshmen on the team ? | CREATE TABLE table_204_526 (
id number,
"name" text,
"#" number,
"position" text,
"height" text,
"weight" number,
"year" text,
"home town" text,
"high school" text
) | SELECT COUNT(*) FROM table_204_526 WHERE "year" = 'freshman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
2688,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
4663,
121,
381,
6,
96,
4718,
121,
1499,
6,
96,
88,
2632,
121,
1499,
6,
96,
9378,
121,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
755,
2688,
549,
17444,
427,
96,
1201,
121,
3274,
3,
31,
20164,
348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What city has channel tv (dt) 25 (31)? | CREATE TABLE table_18791 (
"City of license /Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Owned since" text,
"Primary affiliation" text
) | SELECT "City of license /Market" FROM table_18791 WHERE "Channel TV ( DT )" = '25 (31)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25828,
4729,
41,
96,
254,
485,
13,
3344,
3,
87,
22572,
121,
1499,
6,
96,
134,
6821,
121,
1499,
6,
96,
3541,
4515,
40,
1424,
41,
3,
12111,
3,
61,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
485,
13,
3344,
3,
87,
22572,
121,
21680,
953,
834,
25828,
4729,
549,
17444,
427,
96,
3541,
4515,
40,
1424,
41,
3,
12111,
3,
61,
121,
3274,
3,
31,
1828,
6918,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What Total Assets (% Change) that has Performance/Return on Capital (%) greater than 25.63, and a Performance/Return on Capital (Score) greater than 7? | CREATE TABLE table_43663 (
"Bank" text,
"Score (Iran)" real,
"Score (Global)" real,
"Banking Power/Capital Base ($ Million)" real,
"Banking Power/Capital Base (% Change)" text,
"Total Assets ($ Million)" real,
"Total Assets (Score)" real,
"Total Assets (% Change)" text,
"Credibility/Capital to Assets Ratio (%)" real,
"Credibility/Capital to Assets Ratio (Score)" real,
"Performance/Return on Capital (%)" real,
"Performance/Return on Capital (Score)" real,
"Return on Assets (%)" real,
"Return on Assets (Score)" real
) | SELECT "Total Assets (% Change)" FROM table_43663 WHERE "Performance/Return on Capital (%)" > '25.63' AND "Performance/Return on Capital (Score)" > '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3420,
3891,
41,
96,
21347,
121,
1499,
6,
96,
134,
9022,
41,
196,
2002,
61,
121,
490,
6,
96,
134,
9022,
41,
31190,
61,
121,
490,
6,
96,
21347,
53,
2621,
87,
19566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
18202,
7,
41,
1454,
5968,
61,
121,
21680,
953,
834,
591,
3420,
3891,
549,
17444,
427,
96,
12988,
2032,
663,
87,
1649,
7535,
30,
5826,
41,
6210,
121,
2490,
3,
31,
1828,
5,
3891,
31,
3430,
96,
12988,... |
What was the highest average point rating for a modern suspense show with 21 episodes? | CREATE TABLE table_name_29 (
highest_average_point_ratings INTEGER,
genre VARCHAR,
number_of_episodes VARCHAR
) | SELECT SUM(highest_average_point_ratings) FROM table_name_29 WHERE genre = "modern suspense" AND number_of_episodes = 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
2030,
834,
28951,
834,
2700,
834,
52,
1014,
7,
3,
21342,
17966,
6,
5349,
584,
4280,
28027,
6,
381,
834,
858,
834,
15,
102,
159,
32,
1395,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
6739,
222,
834,
28951,
834,
2700,
834,
52,
1014,
7,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
5349,
3274,
96,
18306,
4324,
3801,
15,
121,
3430,
381,
834,
858,
834,
15,
102,
159,
32,
13... |
What is the total number of each fate? Give me the result in a bar graph, and could you order Y-axis from low to high order? | CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) | SELECT Fate, COUNT(Fate) FROM mission GROUP BY Fate ORDER BY COUNT(Fate) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
868,
485,
1499,
6,
8475,
9761,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11762,
15,
6,
2847,
17161,
599,
371,
342,
61,
21680,
2253,
350,
4630,
6880,
272,
476,
11762,
15,
4674,
11300,
272,
476,
2847,
17161,
599,
371,
342,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Venue with an Attendance that is larger than 6,938? | CREATE TABLE table_name_55 (
venue VARCHAR,
attendance INTEGER
) | SELECT venue FROM table_name_55 WHERE attendance > 6 OFFSET 938 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
5669,
584,
4280,
28027,
6,
11364,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
29940,
28,
46,
22497,
663,
24,
19,
2186,
145,
8580... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
11364,
2490,
431,
3,
15316,
20788,
668,
3747,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest value for 2000, when the value for 1950 is 3.5, and when the value for 1970 is greater than 3.4? | CREATE TABLE table_name_78 (Id VARCHAR) | SELECT MAX(2000) FROM table_name_78 WHERE 1950 = 3.5 AND 1970 > 3.4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
701,
21,
2766,
6,
116,
8,
701,
21,
10247,
19,
3,
9285,
6,
11,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
31804,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
10247,
3274,
3,
9285,
3430,
7434,
2490,
3,
23204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many states is Grant Wharington from? | CREATE TABLE table_25595209_1 (state_country VARCHAR, skipper VARCHAR) | SELECT COUNT(state_country) FROM table_25595209_1 WHERE skipper = "Grant Wharington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3390,
5373,
4198,
834,
536,
41,
5540,
834,
17529,
584,
4280,
28027,
6,
26205,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2315,
19,
8059,
549,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5540,
834,
17529,
61,
21680,
953,
834,
1828,
3390,
5373,
4198,
834,
536,
549,
17444,
427,
26205,
52,
3274,
96,
517,
3569,
549,
3272,
6029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which method has a 1:46 time? | CREATE TABLE table_name_63 (method VARCHAR, time VARCHAR) | SELECT method FROM table_name_63 WHERE time = "1:46" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
23152,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1573,
65,
3,
9,
209,
10,
4448,
97,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
97,
3274,
96,
536,
10,
4448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the gpa per capita (nominal) for the country with gdp (nominal) is $52.0 billion? | CREATE TABLE table_17187 (
"Country" text,
"Population" real,
"Area (km\u00b2)" real,
"GDP (nominal)" text,
"GDP per capita (nominal)" text
) | SELECT "GDP per capita (nominal)" FROM table_17187 WHERE "GDP (nominal)" = '$52.0 billion' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
25828,
41,
96,
10628,
651,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
490,
6,
96,
517,
7410,
41,
3114,
10270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
517,
7410,
399,
23219,
41,
3114,
10270,
61,
121,
21680,
953,
834,
2517,
25828,
549,
17444,
427,
96,
517,
7410,
41,
3114,
10270,
61,
121,
3274,
3,
31,
3229,
755,
24273,
2108,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was the introductory phrase on the episode production code 6101? | CREATE TABLE table_28006 (
"Episode #" real,
"The W\u00f8rd" text,
"Guest" text,
"Introductory phrase" text,
"Original airdate" text,
"Production code" real
) | SELECT "Introductory phrase" FROM table_28006 WHERE "Production code" = '6101' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
5176,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
634,
549,
2,
76,
1206,
89,
927,
52,
26,
121,
1499,
6,
96,
9105,
222,
121,
1499,
6,
96,
1570,
17,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1570,
17,
52,
32,
4817,
10972,
9261,
121,
21680,
953,
834,
17518,
5176,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
4241,
4542,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many original air dates were there for episode 22? | CREATE TABLE table_24798489_2 (
original_airdate VARCHAR,
episode_number VARCHAR
) | SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE episode_number = 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4440,
4608,
3914,
834,
357,
41,
926,
834,
2256,
5522,
584,
4280,
28027,
6,
5640,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
926,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
21878,
834,
2256,
5522,
61,
21680,
953,
834,
2266,
4440,
4608,
3914,
834,
357,
549,
17444,
427,
5640,
834,
5525,
1152,
3274,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
I want the total number of people in the crowd for essendon home team | CREATE TABLE table_51845 (
"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_51845 WHERE "Home team" = 'essendon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2606,
2128,
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,
2606,
2128,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
8185,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Song has Points smaller than 53, and a Place larger than 8, and a Draw larger than 1? | CREATE TABLE table_name_52 (song VARCHAR, draw VARCHAR, points VARCHAR, place VARCHAR) | SELECT song FROM table_name_52 WHERE points < 53 AND place > 8 AND draw > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
7,
2444,
584,
4280,
28027,
6,
3314,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11263,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2324,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
979,
3,
2,
12210,
3430,
286,
2490,
505,
3430,
3314,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which institution is the author 'Matthias Blume' belong to? Give me the name of the institution. | CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE authors (
authid number,
lname text,
fname text
) | SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Matthias" AND t1.lname = "Blume" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16,
7,
17,
41,
16,
2248,
26,
381,
6,
564,
1499,
6,
684,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5778,
41,
1040,
23,
26,
381,
6,
2233,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
3,
17,
5787,
4350,
21680,
5921,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
402,
17,
11740,
3274,
3,
17,
4416,
402,
17,
11740,
3,
15355,
3162,
16,
7,... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of code over the headquarter , and group by attribute headquarter. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
3845,
9,
26,
19973,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,... |
where catalog number is 81258 , what are all the studio ? | CREATE TABLE table_11222744_2 (studio VARCHAR, catalog_number VARCHAR) | SELECT studio FROM table_11222744_2 WHERE catalog_number = "81258" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2884,
2555,
3628,
834,
357,
41,
22991,
584,
4280,
28027,
6,
10173,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
213,
10173,
381,
19,
505,
2122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3100,
21680,
953,
834,
2596,
2884,
2555,
3628,
834,
357,
549,
17444,
427,
10173,
834,
5525,
1152,
3274,
96,
4959,
357,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the number of departments for each building with a bar chart, and could you rank bar from high to low order? | CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
) | SELECT building, COUNT(building) FROM department GROUP BY building ORDER BY building DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1217,
41,
4699,
3,
4331,
4059,
15757,
6,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
4220,
834,
23,
26,
3,
4331,
4059,
28007,
6,
10542,
3,
4331,
4059,
18669,
6,
215,
206,
17552,
599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
740,
6,
2847,
17161,
599,
10905,
61,
21680,
3066,
350,
4630,
6880,
272,
476,
740,
4674,
11300,
272,
476,
740,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many total with county being rooks county, kansas | CREATE TABLE table_13606924_1 (total VARCHAR, county VARCHAR) | SELECT COUNT(total) FROM table_13606924_1 WHERE county = "Rooks county, Kansas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3328,
3951,
2266,
834,
536,
41,
235,
1947,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
792,
28,
5435,
271,
3,
52,
32,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
2368,
3328,
3951,
2266,
834,
536,
549,
17444,
427,
5435,
3274,
96,
22778,
157,
7,
5435,
6,
10585,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest stage number for a year later than 1948, leader at the summit was group, and finish was Bagn res-De-Bigorre? | CREATE TABLE table_name_36 (
stage INTEGER,
finish VARCHAR,
year VARCHAR,
leader_at_the_summit VARCHAR
) | SELECT MAX(stage) FROM table_name_36 WHERE year > 1948 AND leader_at_the_summit = "group" AND finish = "bagnères-de-bigorre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1726,
3,
21342,
17966,
6,
1992,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2488,
834,
144,
834,
532,
834,
4078,
1538,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
10705,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
215,
2490,
21474,
3430,
2488,
834,
144,
834,
532,
834,
4078,
1538,
3274,
96,
10739,
121,
3430,
1992,
3274,
96,
7893,
29,
12449,
18,
221,
18... |
What is the date for the game at the tallaght stadium and result was 0–1? | CREATE TABLE table_24949975_1 (date VARCHAR, stadium VARCHAR, result VARCHAR) | SELECT date FROM table_24949975_1 WHERE stadium = "Tallaght stadium" AND result = "0–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4240,
3264,
3072,
834,
536,
41,
5522,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2266,
4240,
3264,
3072,
834,
536,
549,
17444,
427,
14939,
3274,
96,
382,
1748,
18583,
17,
14939,
121,
3430,
741,
3274,
96,
632,
104,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the movie produced after 2000 and directed by James Cameron? | CREATE TABLE Movie (title VARCHAR, director VARCHAR, YEAR VARCHAR) | SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
21869,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
6,
30431,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1974,
2546,
227,
2766,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
10743,
549,
17444,
427,
2090,
3274,
3,
31,
683,
9,
2687,
18501,
31,
3430,
30431,
2490,
2766,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the TV time for the road game against Phoenix where the score was 98-99? | CREATE TABLE table_name_30 (tv_time VARCHAR, home_team VARCHAR, result VARCHAR) | SELECT tv_time FROM table_name_30 WHERE home_team = "phoenix" AND result = "98-99" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
17,
208,
834,
715,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
208,
834,
715,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
234,
834,
11650,
3274,
96,
9553,
35,
2407,
121,
3430,
741,
3274,
96,
3916,
18,
3264,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average round of the player from the college of baylor with a pick less than 28? | CREATE TABLE table_name_18 (round INTEGER, college VARCHAR, pick VARCHAR) | SELECT AVG(round) FROM table_name_18 WHERE college = "baylor" AND pick < 28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
7775,
3,
21342,
17966,
6,
1900,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1751,
13,
8,
1959,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1900,
3274,
96,
11119,
322,
121,
3430,
1432,
3,
2,
2059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the thursday iuppiter (jupiter) with friday venus (venus) being vendredi | CREATE TABLE table_1277350_1 (
thursday_iuppiter__jupiter_ VARCHAR,
friday_venus__venus_ VARCHAR
) | SELECT thursday_iuppiter__jupiter_ FROM table_1277350_1 WHERE friday_venus__venus_ = "vendredi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4013,
16975,
834,
536,
41,
3,
189,
3589,
1135,
834,
23,
413,
5230,
49,
834,
834,
2047,
5230,
49,
834,
584,
4280,
28027,
6,
9030,
1135,
834,
25116,
834,
834,
25116,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
189,
3589,
1135,
834,
23,
413,
5230,
49,
834,
834,
2047,
5230,
49,
834,
21680,
953,
834,
2122,
4013,
16975,
834,
536,
549,
17444,
427,
9030,
1135,
834,
25116,
834,
834,
25116,
834,
3274,
96,
1926,
26,
1271,
23,
... |
What is the average in 2010 of the team with a code of (IATA/ICAO) or cra/lrcv? | CREATE TABLE table_67116 (
"Rank" real,
"Airport" text,
"City" text,
"Code (IATA/ICAO)" text,
"2008" real,
"2009" real,
"2010" real
) | SELECT "2010" FROM table_67116 WHERE "Code (IATA/ICAO)" = 'cra/lrcv' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
20159,
41,
96,
22557,
121,
490,
6,
96,
20162,
1493,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
22737,
41,
196,
19282,
87,
15038,
667,
61,
121,
1499,
6,
96,
16128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14926,
121,
21680,
953,
834,
3708,
20159,
549,
17444,
427,
96,
22737,
41,
196,
19282,
87,
15038,
667,
61,
121,
3274,
3,
31,
2935,
87,
40,
52,
75,
208,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT VENUE HAD AN AWAY TEAM SCORE OF 12.15 (87)? | CREATE TABLE table_33673 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_33673 WHERE "Away team score" = '12.15 (87)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3420,
4552,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
519,
3420,
4552,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
9368,
1808,
41,
4225,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where there any Draws with 45 tries against? | CREATE TABLE table_name_56 (
drawn VARCHAR,
tries_against VARCHAR
) | SELECT drawn FROM table_name_56 WHERE tries_against = "45" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
6796,
584,
4280,
28027,
6,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
132,
136,
19183,
7,
28,
3479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6796,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
3,
9000,
834,
9,
16720,
7,
17,
3274,
96,
2128,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
larry rentz was drafted to the san diego chargers , but what was his college ? | CREATE TABLE table_203_229 (
id number,
"pick #" number,
"nfl team" text,
"player" text,
"position" text,
"college" text
) | SELECT "college" FROM table_203_229 WHERE "nfl team" = 'san diego chargers' AND "player" = 'larry rentz' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
3166,
41,
3,
23,
26,
381,
6,
96,
17967,
1713,
121,
381,
6,
96,
29,
89,
40,
372,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
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,
3297,
7883,
121,
21680,
953,
834,
23330,
834,
357,
3166,
549,
17444,
427,
96,
29,
89,
40,
372,
121,
3274,
3,
31,
7,
152,
67,
839,
17020,
7,
31,
3430,
96,
20846,
121,
3274,
3,
31,
40,
291,
651,
3170,
172,
3... |
what is the number of patients whose year of birth is less than 2120 and lab test fluid is pleural? | 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
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2120" AND lab.fluid = "Pleural" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the biggest number of females where the males are at 28.2 with a rank greater than 5? | CREATE TABLE table_43654 (
"Rank" real,
"Country" text,
"Year" real,
"Males" real,
"Females" real,
"Total" real
) | SELECT MAX("Females") FROM table_43654 WHERE "Males" = '28.2' AND "Rank" > '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
10402,
591,
41,
96,
22557,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
329,
4529,
121,
490,
6,
96,
371,
15,
13513,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
371,
15,
13513,
7,
8512,
21680,
953,
834,
591,
10402,
591,
549,
17444,
427,
96,
329,
4529,
121,
3274,
3,
31,
2577,
5,
357,
31,
3430,
96,
22557,
121,
2490,
3,
31,
755,
31,
1,
-100,
-100,
-100,
... |
Who was the opponent with a score of 141 102? | CREATE TABLE table_39656 (
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text,
"Streak" text
) | SELECT "Opponent" FROM table_39656 WHERE "Score" = '141–102' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4314,
4834,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
519,
4314,
4834,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
26059,
104,
14388,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many teams did they not lose to ? | CREATE TABLE table_203_506 (
id number,
"opponent" text,
"played" number,
"won" number,
"lost" number,
"drawn" number,
"% won overall" text
) | SELECT COUNT("opponent") FROM table_203_506 WHERE "lost" = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
948,
41,
3,
23,
26,
381,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
210,
106,
121,
381,
6,
96,
2298,
17,
121,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
32,
102,
9977,
8512,
21680,
953,
834,
23330,
834,
1752,
948,
549,
17444,
427,
96,
2298,
17,
121,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of students whose age is younger than the average age and group by students' last name in a bar chart, and could you order X-axis in ascending order? | CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
) | SELECT LName, COUNT(LName) FROM Student WHERE Age < (SELECT AVG(Age) FROM Student) GROUP BY LName ORDER BY LName | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3306,
7,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
103,
52,
6983,
3,
21342,
17966,
6,
562,
834,
5525,
1152,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
23954,
6,
2847,
17161,
599,
434,
23954,
61,
21680,
6341,
549,
17444,
427,
7526,
3,
2,
41,
23143,
14196,
71,
17217,
599,
188,
397,
61,
21680,
6341,
61,
350,
4630,
6880,
272,
476,
301,
23954,
4674,
11300,
272,
47... |
Which Points have a Score of 4 1? | CREATE TABLE table_name_35 (
points INTEGER,
score VARCHAR
) | SELECT MAX(points) FROM table_name_35 WHERE score = "4–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
979,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4564,
7,
43,
3,
9,
17763,
13,
314,
209,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
2604,
3274,
96,
591,
104,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest defense a champion with 345 days held has? | CREATE TABLE table_name_46 (
defenses INTEGER,
days_held VARCHAR
) | SELECT MIN(defenses) FROM table_name_46 WHERE days_held = "345" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
4453,
7,
3,
21342,
17966,
6,
477,
834,
14796,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
4453,
3,
9,
6336,
28,
220,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
31749,
7,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
477,
834,
14796,
3274,
96,
3710,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What lane had a heat after 12, a rank of 38 and a time larger than 22.67? | CREATE TABLE table_name_59 (
lane INTEGER,
time VARCHAR,
heat VARCHAR,
rank VARCHAR
) | SELECT AVG(lane) FROM table_name_59 WHERE heat > 12 AND rank = 38 AND time > 22.67 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
3,
8102,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
8102,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1678,
2490,
586,
3430,
11003,
3274,
6654,
3430,
97,
2490,
1630,
5,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6? | CREATE TABLE table_name_12 (
byes VARCHAR,
losses VARCHAR,
wins VARCHAR,
wimmera_fl VARCHAR
) | SELECT COUNT(byes) FROM table_name_12 WHERE wins < 11 AND wimmera_fl = "minyip murtoa" AND losses < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
57,
15,
7,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
3,
210,
12174,
9,
834,
89,
40,
584,
4280,
28027,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
969,
15,
7,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
9204,
3,
2,
850,
3430,
3,
210,
12174,
9,
834,
89,
40,
3274,
96,
1109,
63,
23,
102,
9593,
235,
9,
121,
3430,
8467,
3,
2,
431,... |
What day did Phoenix play? | CREATE TABLE table_name_32 (date VARCHAR, team VARCHAR) | SELECT date FROM table_name_32 WHERE team = "phoenix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
5522,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
410,
12308,
577,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
372,
3274,
96,
9553,
35,
2407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the horizontal bar is n/a and the floor is 14.175, what is the number for the parallel bars? | CREATE TABLE table_18662026_10 (
parallel_bars VARCHAR,
floor VARCHAR,
horizontal_bar VARCHAR
) | SELECT parallel_bars FROM table_18662026_10 WHERE floor = "14.175" AND horizontal_bar = "N/A" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
26898,
2688,
834,
1714,
41,
8449,
834,
1047,
7,
584,
4280,
28027,
6,
1501,
584,
4280,
28027,
6,
9969,
834,
1047,
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,
8449,
834,
1047,
7,
21680,
953,
834,
25398,
26898,
2688,
834,
1714,
549,
17444,
427,
1501,
3274,
96,
2534,
5,
2517,
17395,
3430,
9969,
834,
1047,
3274,
96,
567,
87,
188,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who wrote the episode that aired February 4, 2010? | CREATE TABLE table_23483182_1 (
written_by VARCHAR,
original_air_date VARCHAR
) | SELECT written_by FROM table_23483182_1 WHERE original_air_date = "February 4, 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3707,
3341,
4613,
834,
536,
41,
1545,
834,
969,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2773,
3707,
3341,
4613,
834,
536,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
31122,
6464,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the density of San Sebasti n? | CREATE TABLE table_name_11 (
density__hab_km²_ VARCHAR,
city_district VARCHAR
) | SELECT density__hab_km²_ FROM table_name_11 WHERE city_district = "san sebastián" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
11048,
834,
834,
6111,
834,
5848,
357,
834,
584,
4280,
28027,
6,
690,
834,
26,
23,
20066,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11048,
834,
834,
6111,
834,
5848,
357,
834,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
690,
834,
26,
23,
20066,
3274,
96,
7,
152,
142,
4883,
17,
23,
12916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
I want the D 47 for D 41 being r 21 | CREATE TABLE table_name_78 (d_47 VARCHAR, d_41 VARCHAR) | SELECT d_47 FROM table_name_78 WHERE d_41 = "r 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
26,
834,
4177,
584,
4280,
28027,
6,
3,
26,
834,
4853,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
309,
10635,
21,
309,
8798,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26,
834,
4177,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
3,
26,
834,
4853,
3274,
96,
52,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What Winning Jockey ran in the Tampa Bay Downs Track on Winning Horse Barkley Sound? | CREATE TABLE table_name_86 (
winning_jockey VARCHAR,
track VARCHAR,
winning_horse VARCHAR
) | SELECT winning_jockey FROM table_name_86 WHERE track = "tampa bay downs" AND winning_horse = "barkley sound" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3447,
834,
1927,
75,
4397,
584,
4280,
28027,
6,
1463,
584,
4280,
28027,
6,
3447,
834,
107,
127,
7,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3447,
834,
1927,
75,
4397,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1463,
3274,
96,
17,
4624,
9,
10210,
323,
7,
121,
3430,
3447,
834,
107,
127,
7,
15,
3274,
96,
1047,
157,
1306,
1345,
121,
1,
-100,
-100,... |
What is the smallest pick for the player, brett lindros? | CREATE TABLE table_15966 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT MIN("Pick") FROM table_15966 WHERE "Player" = 'Brett Lindros' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27904,
3539,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
345,
3142,
8512,
21680,
953,
834,
27904,
3539,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
279,
60,
17,
17,
14482,
1859,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team was the winner when the runner-up shows both teams awarded championship after a draw.? | CREATE TABLE table_76140 (
"Title" text,
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
) | SELECT "Winner" FROM table_76140 WHERE "Runner-up" = 'both teams awarded championship after a draw.' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
22012,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
23572,
18,
413,
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,
18455,
687,
121,
21680,
953,
834,
3959,
22012,
549,
17444,
427,
96,
23572,
18,
413,
121,
3274,
3,
31,
17158,
2323,
5539,
10183,
227,
3,
9,
3314,
5,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Let's say Type is of datasetcomplete, what is the Attribute? | CREATE TABLE table_37681 (
"Category" text,
"Type" text,
"Attribute" text,
"Bubbles" text,
"Cancelable" text
) | SELECT "Attribute" FROM table_37681 WHERE "Type" = 'datasetcomplete' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
3651,
536,
41,
96,
18610,
6066,
651,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
188,
17,
5135,
17,
15,
121,
1499,
6,
96,
7793,
7310,
7,
121,
1499,
6,
96,
254,
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,
5135,
17,
15,
121,
21680,
953,
834,
4118,
3651,
536,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
6757,
2244,
25288,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the number of the game when the record was 11-12? | CREATE TABLE table_66048 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Game" FROM table_66048 WHERE "Record" = '11-12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
3707,
41,
96,
23055,
121,
1499,
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,
87,
188,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23055,
121,
21680,
953,
834,
27720,
3707,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2596,
5947,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
To what district does Bill Hefner belong? | CREATE TABLE table_1341522_36 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1341522_36 WHERE incumbent = "Bill Hefner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
2884,
834,
3420,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
304,
125,
3939,
405,
3259,
216,
89,
687,
130... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3939,
21680,
953,
834,
23747,
1808,
2884,
834,
3420,
549,
17444,
427,
28406,
3274,
96,
279,
1092,
216,
89,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the record of the game with number 40? | CREATE TABLE table_23285761_7 (record VARCHAR, game VARCHAR) | SELECT record FROM table_23285761_7 WHERE game = 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
3436,
4241,
834,
940,
41,
60,
7621,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1368,
13,
8,
467,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2773,
2577,
3436,
4241,
834,
940,
549,
17444,
427,
467,
3274,
1283,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When does Donaldson's move end? | CREATE TABLE table_48066 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" text,
"Transfer fee" text
) | SELECT "Ends" FROM table_48066 WHERE "Name" = 'donaldson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20579,
3539,
41,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
329,
32,
3745,
45,
121,
1499,
6,
96,
18474,
1010,
2034,
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,
8532,
26,
7,
121,
21680,
953,
834,
20579,
3539,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
26,
9533,
26,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, find hire_date and the sum of department_id bin hire_date by time, and visualize them by a bar 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 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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
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,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
5... |
What are the census ranking(s) that have an area of 369.25 km2? | CREATE TABLE table_21371 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) | SELECT "Census Ranking" FROM table_21371 WHERE "Area km 2" = '369.25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
4450,
41,
96,
667,
89,
22816,
5570,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
188,
864,
2280,
204,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
35,
7,
302,
29153,
121,
21680,
953,
834,
357,
2368,
4450,
549,
17444,
427,
96,
188,
864,
2280,
204,
121,
3274,
3,
31,
3420,
8797,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who did the housemate that nominated Kashmera Rakhi in week 3 and Amit Bobby in week 1 nominate in week 6? | CREATE TABLE table_name_60 (week_6 VARCHAR, week_3 VARCHAR, week_1 VARCHAR) | SELECT week_6 FROM table_name_60 WHERE week_3 = "kashmera rakhi" AND week_1 = "amit bobby" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
8041,
834,
948,
584,
4280,
28027,
6,
471,
834,
519,
584,
4280,
28027,
6,
471,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
471,
834,
948,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
471,
834,
519,
3274,
96,
157,
3198,
935,
9,
3,
52,
9,
29392,
121,
3430,
471,
834,
536,
3274,
96,
9,
1538,
3,
17396,
969,
121,
1,
-100,
-100,
-100... |
What is the average Gold, when Nation is Yugoslavia, and when Silver is greater than 0? | CREATE TABLE table_name_28 (gold INTEGER, nation VARCHAR, silver VARCHAR) | SELECT AVG(gold) FROM table_name_28 WHERE nation = "yugoslavia" AND silver > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
14910,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
2540,
6,
116,
11046,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
2982,
3274,
96,
63,
76,
839,
17457,
23,
9,
121,
3430,
4294,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the first name and last name of all candidates? | CREATE TABLE student_course_attendance (
student_id number,
course_id number,
date_of_attendance time
)
CREATE TABLE people (
person_id number,
first_name text,
middle_name text,
last_name text,
cell_mobile_number text,
email_address text,
login_name text,
password text
)
CREATE TABLE students (
student_id number,
student_details text
)
CREATE TABLE addresses (
address_id number,
line_1 text,
line_2 text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE candidate_assessments (
candidate_id number,
qualification text,
assessment_date time,
asessment_outcome_code text
)
CREATE TABLE courses (
course_id text,
course_name text,
course_description text,
other_details text
)
CREATE TABLE candidates (
candidate_id number,
candidate_details text
)
CREATE TABLE people_addresses (
person_address_id number,
person_id number,
address_id number,
date_from time,
date_to time
)
CREATE TABLE student_course_registrations (
student_id number,
course_id number,
registration_date time
) | SELECT T2.first_name, T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
1236,
834,
23,
26,
381,
6,
503,
834,
23,
26,
381,
6,
833,
834,
858,
834,
15116,
663,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
14672,
834,
4350,
6,
332,
4416,
5064,
834,
4350,
21680,
4341,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
1608,
12416,
342,
834,
23,
26,
3274,
332,
4416,
6075,
834,
23,
26,
1,
... |
What is the last season? | CREATE TABLE table_24337 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
) | SELECT MAX("Season") FROM table_24337 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27730,
4118,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
427,
102,
159,
32,
221,
20698,
121,
1499,
6,
96,
10572,
51,
972,
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,
4800,
4,
599,
121,
134,
15,
9,
739,
8512,
21680,
953,
834,
27730,
4118,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Pinnacle height of chimney of orot rabin? | CREATE TABLE table_name_31 (
pinnacle_height VARCHAR,
name VARCHAR
) | SELECT pinnacle_height FROM table_name_31 WHERE name = "chimney of orot rabin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
4522,
11962,
109,
834,
88,
2632,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8050,
11962,
109,
3902,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4522,
11962,
109,
834,
88,
2632,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
564,
3274,
96,
9737,
3186,
13,
42,
32,
17,
3,
7093,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Overall is the highest one that has a Name of raleigh mckenzie, and a Pick larger than 10? | CREATE TABLE table_76730 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Overall") FROM table_76730 WHERE "Name" = 'raleigh mckenzie' AND "Pick" > '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3708,
1458,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
940,
3708,
1458,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
52,
9,
23260,
3,
51,
4695,
5600,
31,
3430,
96,
345,
3142,
121,
2490,
3,
31,
1714,
31,
1,
-100... |
Bar chart x axis meter 500 y axis meter_100, sort y-axis in ascending order. | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
) | SELECT meter_500, meter_100 FROM swimmer ORDER BY meter_100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
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,
3,
4401,
834,
2560,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2915,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is maximum age of patients whose marital status is married and primary disease is left femur fracture? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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
)
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
) | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.diagnosis = "LEFT FEMUR FRACTURE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
3765,
6245,
377,
6037,
5905,
... |
where did obama get 41.3% | CREATE TABLE table_23698 (
"County" text,
"McCain #" real,
"McCain %" text,
"Obama #" real,
"Obama %" text
) | SELECT "County" FROM table_23698 WHERE "Obama %" = '41.3%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
3916,
41,
96,
10628,
63,
121,
1499,
6,
96,
329,
75,
254,
9,
77,
1713,
121,
490,
6,
96,
329,
75,
254,
9,
77,
3,
1454,
121,
1499,
6,
96,
667,
115,
265,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
63,
121,
21680,
953,
834,
357,
3420,
3916,
549,
17444,
427,
96,
667,
115,
265,
9,
3,
1454,
121,
3274,
3,
31,
4853,
5,
5170,
31,
1,
-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.