answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k | input_ids listlengths 512 512 | labels listlengths 512 512 |
|---|---|---|---|---|
SELECT team FROM elimination GROUP BY team HAVING COUNT(*) > 3 | Which teams had more than 3 eliminations? | CREATE TABLE elimination (
elimination_id text,
wrestler_id text,
team text,
eliminated_by text,
elimination_move text,
time text
)
CREATE TABLE wrestler (
wrestler_id number,
name text,
reign text,
days_held text,
location text,
event text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
23458,
41,
23458,
834,
23,
26,
1499,
6,
26033,
52,
834,
23,
26,
1499,
6,
372,
1499,
6,
17809,
834,
969,
1499,
6,
23458,
834,
7168,
15,
1499,
6,
97,
1499,
3,
61,
205,
4386,
6048,
332,
1... | [
3,
23143,
14196,
372,
21680,
23458,
350,
4630,
6880,
272,
476,
372,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
220,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT incumbent FROM table_1341604_19 WHERE first_elected = 1976 | Who's the incumbent in the district first elected in 1976? | CREATE TABLE table_1341604_19 (incumbent VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
2294,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
2645,
31,
7,
8,
28406,
16,
8,
3939,
166,
8160,
16,
1... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
19129,
591,
834,
2294,
549,
17444,
427,
166,
834,
19971,
3274,
16164,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500 | Find the official names of cities with population bigger than 1500 or smaller than 500. | CREATE TABLE city (Official_Name VARCHAR, Population VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
690,
41,
667,
89,
22816,
834,
23954,
584,
4280,
28027,
6,
29659,
584,
4280,
28027,
61,
11860,
10,
2588,
8,
2314,
3056,
13,
3119,
28,
2074,
4038,
145,
15011,
42,
2755,
145,
2899,
5,
11801,
... | [
3,
23143,
14196,
13686,
834,
23954,
21680,
690,
549,
17444,
427,
29659,
2490,
15011,
4674,
29659,
3,
2,
2899,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT("name") FROM table_204_910 WHERE "result" > (SELECT "result" FROM table_204_910 WHERE "name" = 'tatyana bocharova') | how many athletes had a better result than tatyana bocharova ? | CREATE TABLE table_204_910 (
id number,
"rank" number,
"name" text,
"nationality" text,
"result" number,
"notes" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1298,
1714,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
381,
6,
96,
7977,
7,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4350,
8512,
21680,
953,
834,
26363,
834,
1298,
1714,
549,
17444,
427,
96,
60,
7,
83,
17,
121,
2490,
41,
23143,
14196,
96,
60,
7,
83,
17,
121,
21680,
953,
834,
26363,
834,
1298,
1714,
549,
17... |
SELECT incumbent FROM table_1341604_22 WHERE district = "Massachusetts 2" | what's the incumbent with district being massachusetts 2 | CREATE TABLE table_1341604_22 (incumbent VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
2884,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
125,
31,
7,
8,
28406,
28,
3939,
271,
3294,
1836,
1074,
17,
17,
... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
19129,
591,
834,
2884,
549,
17444,
427,
3939,
3274,
96,
27189,
1836,
1074,
17,
17,
7,
204,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Census_Ranking FROM city WHERE Status <> "Village" | Show the census ranking of cities whose status are not "Village". | CREATE TABLE city (Census_Ranking VARCHAR, Status VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
690,
41,
254,
35,
7,
302,
834,
22557,
53,
584,
4280,
28027,
6,
19318,
584,
4280,
28027,
61,
11860,
10,
3111,
8,
23087,
11592,
13,
3119,
3,
2544,
2637,
33,
59,
96,
553,
17614,
1280,
11801,
... | [
3,
23143,
14196,
23086,
834,
22557,
53,
21680,
690,
549,
17444,
427,
19318,
3,
2,
3155,
96,
553,
17614,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT "Type" FROM table_8430 WHERE "Capacity" = '28 passengers' AND "Number" = '16' | Which Type has a Capacity of 28 passengers, and a Number of 16? | CREATE TABLE table_8430 (
"Number" text,
"Builder" text,
"Type" text,
"Date" real,
"Length" text,
"Capacity" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4608,
1458,
41,
96,
567,
5937,
49,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
308,
342,
121,
490,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
19566,... | [
3,
23143,
14196,
96,
25160,
121,
21680,
953,
834,
4608,
1458,
549,
17444,
427,
96,
19566,
9,
6726,
121,
3274,
3,
31,
2577,
9234,
31,
3430,
96,
567,
5937,
49,
121,
3274,
3,
31,
2938,
31,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT party FROM table_1341604_22 WHERE candidates = "Silvio Conte (R) Unopposed" | what's the party with candidates being silvio conte (r) unopposed | CREATE TABLE table_1341604_22 (party VARCHAR, candidates VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
2884,
41,
8071,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
11860,
10,
125,
31,
7,
8,
1088,
28,
4341,
271,
108,
40,
2099,
32,
3622,
15,
41,
52,
61,... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
19129,
591,
834,
2884,
549,
17444,
427,
4341,
3274,
96,
134,
173,
2099,
32,
13228,
15,
41,
448,
61,
597,
28236,
3843,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY COUNT(*) DESC LIMIT 1 | which course has most number of registered students? | CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_Id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
2996,
41,
19221,
834,
4350,
584,
4280,
28027,
6,
503,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
19221,
834,
196,
26,
584,
4280,... | [
3,
23143,
14196,
332,
5411,
19221,
834,
4350,
21680,
2996,
6157,
332,
536,
3,
15355,
3162,
1236,
834,
19221,
834,
5200,
1628,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
196,
26,
350,
4630,
6880,
... |
SELECT T3.name, T2.date, T2.venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.debate_id = T2.debate_id JOIN people AS T3 ON T1.negative = T3.people_id ORDER BY T3.name | Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name. | CREATE TABLE people (
people_id number,
district text,
name text,
party text,
age number
)
CREATE TABLE debate_people (
debate_id number,
affirmative number,
negative number,
if_affirmative_win others
)
CREATE TABLE debate (
debate_id number,
date text,
venue text,
... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
151,
41,
151,
834,
23,
26,
381,
6,
3939,
1499,
6,
564,
1499,
6,
1088,
1499,
6,
1246,
381,
3,
61,
205,
4386,
6048,
332,
17098,
5054,
834,
16588,
41,
5054,
834,
23,
26,
381,
6,
11153,
15... | [
3,
23143,
14196,
332,
5787,
4350,
6,
332,
4416,
5522,
6,
332,
4416,
15098,
21680,
5054,
834,
16588,
6157,
332,
536,
3,
15355,
3162,
5054,
6157,
332,
357,
9191,
332,
5411,
221,
3697,
15,
834,
23,
26,
3274,
332,
4416,
221,
3697,
15,
... |
SELECT first_elected FROM table_1341604_22 WHERE incumbent = "Joseph D. Early" | what's the first elected with incumbent being joseph d. early | CREATE TABLE table_1341604_22 (first_elected VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
2884,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
125,
31,
7,
8,
166,
8160,
28,
28406,
271,
7406,
15,
102,
107,
3,... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
23747,
19129,
591,
834,
2884,
549,
17444,
427,
28406,
3274,
96,
683,
32,
7,
15,
102,
107,
309,
5,
8840,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY COUNT(*) LIMIT 1 | what is id of students who registered some courses but the least number of courses in these students? | CREATE TABLE student_course_registrations (student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
61,
11860,
10,
125,
19,
3,
23,
26,
13,
481,
113,
3366,
128,
2996,
68,
8,
709,
381,
13,
2996,
16,
175,
4... | [
3,
23143,
14196,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
5200,
1628,
350,
4630,
6880,
272,
476,
1236,
834,
23,
26,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
8729,
12604,
209,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT (SELECT "2 credits" FROM table_203_564 WHERE "hand" = 'full house') = (SELECT "5 credits" FROM table_203_564 WHERE "hand" = 'three of a kind') | is a 2 credit full house the same as a 5 credit three of a kind ? | CREATE TABLE table_203_564 (
id number,
"hand" text,
"1 credit" number,
"2 credits" number,
"3 credits" number,
"4 credits" number,
"5 credits" number
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4834,
591,
41,
3,
23,
26,
381,
6,
96,
2894,
121,
1499,
6,
96,
536,
998,
121,
381,
6,
96,
357,
11893,
121,
381,
6,
96,
519,
11893,
121,
381,
6,
96,
591,
11893,
1... | [
3,
23143,
14196,
41,
23143,
14196,
96,
357,
11893,
121,
21680,
953,
834,
23330,
834,
4834,
591,
549,
17444,
427,
96,
2894,
121,
3274,
3,
31,
1329,
40,
629,
31,
61,
3274,
41,
23143,
14196,
96,
755,
11893,
121,
21680,
953,
834,
23330,... |
SELECT party FROM table_1341604_22 WHERE district = "Massachusetts 3" | what's the party with dbeingtrict being massachusetts 3 | CREATE TABLE table_1341604_22 (party VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
2884,
41,
8071,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
125,
31,
7,
8,
1088,
28,
3,
26,
9032,
3929,
17,
271,
3294,
1836,
1074,
17,
1... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
19129,
591,
834,
2884,
549,
17444,
427,
3939,
3274,
96,
27189,
1836,
1074,
17,
17,
7,
220,
121,
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... |
SELECT T2.first_name, T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id | what are the first name and last name of all candidates? | CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (first_name VARCHAR, last_name VARCHAR, person_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
4341,
41,
1608,
12416,
342,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
151,
41,
14672,
834,
4350,
584,
4280,
28027,
6,
336,
834,
4350,
584,
4280,
28027,
6,
568,
834,
... | [
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,
... |
SELECT DISTINCT course_offering.start_time FROM course INNER JOIN program_course ON program_course.course_id = course.course_id INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'EDUC' AND course.nu... | Next semester , what time does the EDUC 510 lecture begin ? | CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course (
course_id int,
name varchar,
dep... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
616,
41,
503,
834,
23,
26,
16,
17,
6,
616,
3,
4331,
4059,
3,
61,
205,
4386,
6048,
332,
17098,
478,
41,
478,
834,
23,
26,
16,
17,
6,
564,
3,
4331,
4059,
6,
1900,
3,
4331,
4059,
6,
5... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
503,
834,
1647,
49,
53,
5,
10208,
834,
715,
21680,
503,
3388,
18206,
3,
15355,
3162,
478,
834,
19221,
9191,
478,
834,
19221,
5,
19221,
834,
23,
26,
3274,
503,
5,
19221,
834,
23,
26,
3388,
18... |
SELECT COUNT(candidates) FROM table_1341604_39 WHERE incumbent = "Bud Shuster" | How many candidates won the election in the district whose incumbent is Bud Shuster? | CREATE TABLE table_1341604_39 (candidates VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
3288,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
571,
186,
4341,
751,
8,
4356,
16,
8,
3939,
3,
2544,
28406,
19,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1608,
12416,
6203,
61,
21680,
953,
834,
23747,
19129,
591,
834,
3288,
549,
17444,
427,
28406,
3274,
96,
7793,
26,
14565,
1370,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance) | List the id of students who never attends courses? | CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE students (student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
481,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
61,
11860,
10,
6792,
... | [
3,
23143,
14196,
1236,
834,
23,
26,
21680,
481,
549,
17444,
427,
4486,
1236,
834,
23,
26,
3388,
41,
23143,
14196,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
15116,
663,
61,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code | For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of code , and group by attribute name, sort total number of code in asc order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833,
3,
... | [
3,
23143,
14196,
332,
4416,
23954,
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,
332,
4416,
2... |
SELECT candidates FROM table_1341604_39 WHERE incumbent = "Gus Yatron" | What are the candidates in the district whose incumbent is Gus Yatron? | CREATE TABLE table_1341604_39 (candidates VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
3288,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
363,
33,
8,
4341,
16,
8,
3939,
3,
2544,
28406,
19,
2846,
7,
4701... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
19129,
591,
834,
3288,
549,
17444,
427,
28406,
3274,
96,
9105,
7,
4701,
6255,
121,
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,
... |
SELECT student_id FROM student_course_attendance | List the id of students who attended some courses? | CREATE TABLE student_course_attendance (student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
61,
11860,
10,
6792,
8,
3,
23,
26,
13,
481,
113,
5526,
128,
2996,
58,
11801,
10,
3,
1,
0,
0,
0,
0,
0,... | [
3,
23143,
14196,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
15116,
663,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT MAX(round) FROM table_name_18 WHERE school = "northwestern" | What was the highest round that had northwestern? | CREATE TABLE table_name_18 (
round INTEGER,
school VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
1751,
3,
21342,
17966,
6,
496,
584,
4280,
28027,
3,
61,
11860,
10,
363,
47,
8,
2030,
1751,
24,
141,
3457,
24411,
58,
11801,
10,
3,
1,
0,
0,
0,
0,
0,
0,... | [
3,
23143,
14196,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
496,
3274,
96,
29,
127,
189,
24411,
121,
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,
... |
SELECT party FROM table_1341604_39 WHERE district = "Pennsylvania 6" | What's the winning party in the Pennsylvania 6 district? | CREATE TABLE table_1341604_39 (party VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
3288,
41,
8071,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
363,
31,
7,
8,
3447,
1088,
16,
8,
8913,
431,
3939,
58,
11801,
10,
3,
1,
0,
... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
19129,
591,
834,
3288,
549,
17444,
427,
3939,
3274,
96,
345,
35,
29,
7,
63,
40,
16658,
9,
431,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT T1.student_id, T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id | What are the ids of all students for courses and what are the names of those courses? | CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
2996,
41,
19221,
834,
4350,
584,
4280,
28027,
6,
503,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
8637,
295,
834,
23,
26,
584,
... | [
3,
23143,
14196,
332,
5411,
8637,
295,
834,
23,
26,
6,
332,
4416,
19221,
834,
4350,
21680,
1236,
834,
19221,
834,
5200,
1628,
6157,
332,
536,
3,
15355,
3162,
2996,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416... |
SELECT MIN(wins) FROM table_name_19 WHERE position = "20th" AND poles < 0 | What is the smallest Wins with a Position of 20th, and Poles smaller than 0? | CREATE TABLE table_name_19 (
wins INTEGER,
position VARCHAR,
poles VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
9204,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
11148,
7,
584,
4280,
28027,
3,
61,
11860,
10,
363,
19,
8,
3,
17924,
4871,
7,
28,
3,
9,
14258,
13,
46... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1102,
3274,
96,
1755,
189,
121,
3430,
11148,
7,
3,
2,
3,
632,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT candidates FROM table_1341640_39 WHERE party = "Republican" | What candidate is a member of the Republican party? | CREATE TABLE table_1341640_39 (candidates VARCHAR, party VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
3288,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
11860,
10,
363,
4775,
19,
3,
9,
1144,
13,
8,
8994,
1088,
58,
11801,
10,
3,
... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2938,
2445,
834,
3288,
549,
17444,
427,
1088,
3274,
96,
1649,
15727,
152,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1 | What is detail of the student who most recently registered course? | CREATE TABLE student_course_registrations (student_id VARCHAR, registration_date VARCHAR); CREATE TABLE students (student_details VARCHAR, student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
6,
3816,
834,
5522,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
481,
41,
8637,
295,
834,
221,
5756,
... | [
3,
23143,
14196,
332,
4416,
8637,
295,
834,
221,
5756,
7,
21680,
1236,
834,
19221,
834,
5200,
1628,
6157,
332,
536,
3,
15355,
3162,
481,
6157,
332,
357,
9191,
332,
5411,
8637,
295,
834,
23,
26,
3274,
332,
4416,
8637,
295,
834,
23,
... |
SELECT "Mens Singles" FROM table_30306 WHERE "Womens Doubles" = 'Wang Nan Zhang Yining' | Who is listed under mens singles when womens has wang nan zhang yining? | CREATE TABLE table_30306 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23335,
5176,
41,
96,
476,
2741,
10450,
121,
1499,
6,
96,
329,
35,
7,
7871,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
7871,
7,
121,
1499,
6,
96,
329,
35,
7,
8405,
7,
121,
1499,
... | [
3,
23143,
14196,
96,
329,
35,
7,
7871,
7,
121,
21680,
953,
834,
23335,
5176,
549,
17444,
427,
96,
518,
32,
904,
7,
8405,
7,
121,
3274,
3,
31,
518,
1468,
15206,
28015,
3,
476,
77,
53,
31,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT district FROM table_1341640_39 WHERE incumbent = "Ray Musto" | What district is Ray Musto the incumbent of? | CREATE TABLE table_1341640_39 (district VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
3288,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
363,
3939,
19,
8279,
12021,
32,
8,
28406,
13,
58,
11801,
10,
3,
1,
... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2938,
2445,
834,
3288,
549,
17444,
427,
28406,
3274,
96,
25619,
12021,
32,
121,
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,
... |
SELECT COUNT(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "English" | How many students attend course English? | CREATE TABLE student_course_attendance (course_id VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
19221,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
2996,
41,
19221,
834,
23,
26,
584,
4280,
28027,
6,
503,
834,
4350,
584,
4280,
... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2996,
6157,
332,
536,
3,
15355,
3162,
1236,
834,
19221,
834,
15116,
663,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
549,
17444,
427,
... |
SELECT date_incident_start, date_incident_end FROM Behavior_Incident WHERE incident_type_code = "NOISE" | What are the start and end dates for incidents with incident type code 'NOISE'? | CREATE TABLE Behavior_Incident (
date_incident_start VARCHAR,
date_incident_end VARCHAR,
incident_type_code VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
29396,
834,
1570,
75,
4215,
41,
833,
834,
77,
75,
4215,
834,
10208,
584,
4280,
28027,
6,
833,
834,
77,
75,
4215,
834,
989,
584,
4280,
28027,
6,
5415,
834,
6137,
834,
4978,
584,
4280,
28027... | [
3,
23143,
14196,
833,
834,
77,
75,
4215,
834,
10208,
6,
833,
834,
77,
75,
4215,
834,
989,
21680,
29396,
834,
1570,
75,
4215,
549,
17444,
427,
5415,
834,
6137,
834,
4978,
3274,
96,
7400,
19056,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT(party) FROM table_1341640_39 WHERE incumbent = "Donald A. Bailey" | How many parties does the incumbent Donald A. Bailey a member of? | CREATE TABLE table_1341640_39 (party VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
3288,
41,
8071,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
571,
186,
2251,
405,
8,
28406,
7459,
71,
5,
24042,
3,
9,
1144,
13,
58,
11801,... | [
3,
23143,
14196,
2847,
17161,
599,
8071,
61,
21680,
953,
834,
23747,
2938,
2445,
834,
3288,
549,
17444,
427,
28406,
3274,
96,
13843,
138,
26,
71,
5,
24042,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT COUNT(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171 | How many courses do the student whose id is 171 attend? | CREATE TABLE courses (course_id VARCHAR); CREATE TABLE student_course_attendance (course_id VARCHAR, student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
2996,
41,
19221,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
19221,
834,
23,
26,
584,
4280,
28027,
6,
1236,
834,
23,
26,
584,
4... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2996,
6157,
332,
536,
3,
15355,
3162,
1236,
834,
19221,
834,
15116,
663,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
549,
17444,
427,
... |
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID) | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of hire_date and the average of manager_id bin hire_date by weekday, display by the the average of manager id in ascending please. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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),
... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
6,
63... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
... |
SELECT result FROM table_1341640_39 WHERE district = "Pennsylvania 6" | What was the outcome of the election in Pennsylvania 6 district? | CREATE TABLE table_1341640_39 (result VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
3288,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
363,
47,
8,
6138,
13,
8,
4356,
16,
8913,
431,
3939,
58,
11801,
10,
... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2938,
2445,
834,
3288,
549,
17444,
427,
3939,
3274,
96,
345,
35,
29,
7,
63,
40,
16658,
9,
431,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = "stanley.monahan@example.org" | Find id of the candidate whose email is stanley.monahan@example.org? | CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (person_id VARCHAR, email_address VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
4341,
41,
1608,
12416,
342,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
151,
41,
6075,
834,
23,
26,
584,
4280,
28027,
6,
791,
834,
9,
26,
12039,
584,
4280,
28027,
61,... | [
3,
23143,
14196,
332,
4416,
1608,
12416,
342,
834,
23,
26,
21680,
151,
6157,
332,
536,
3,
15355,
3162,
4341,
6157,
332,
357,
9191,
332,
5411,
6075,
834,
23,
26,
3274,
332,
4416,
1608,
12416,
342,
834,
23,
26,
549,
17444,
427,
332,
... |
SELECT "responsible minister(s)" FROM table_204_988 ORDER BY id DESC LIMIT 1 | who is listed as the last responsible mister -lrb- s -rrb- on this chart ? | CREATE TABLE table_204_988 (
id number,
"responsible minister(s)" text,
"crown entities" text,
"monitoring department(s)" text,
"category / type" text,
"empowering legislation" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3916,
927,
41,
3,
23,
26,
381,
6,
96,
60,
7,
5041,
7,
2317,
6323,
599,
7,
61,
121,
1499,
6,
96,
75,
3623,
29,
12311,
121,
1499,
6,
96,
8823,
235,
1007,
3066,
59... | [
3,
23143,
14196,
96,
60,
7,
5041,
7,
2317,
6323,
599,
7,
61,
121,
21680,
953,
834,
26363,
834,
3916,
927,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT district FROM table_1341640_43 WHERE incumbent = "Al Gore" | Where was Al Gore elected | CREATE TABLE table_1341640_43 (district VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
4906,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
2840,
47,
901,
1263,
60,
8160,
11801,
10,
3,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2938,
2445,
834,
4906,
549,
17444,
427,
28406,
3274,
96,
188,
40,
1263,
60,
121,
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,... |
SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1 | Find id of the candidate who most recently accessed the course? | CREATE TABLE candidate_assessments (candidate_id VARCHAR, assessment_date VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
4775,
834,
3974,
7,
7,
4128,
41,
1608,
12416,
342,
834,
23,
26,
584,
4280,
28027,
6,
4193,
834,
5522,
584,
4280,
28027,
61,
11860,
10,
2588,
3,
23,
26,
13,
8,
4775,
113,
167,
1310,
3,
... | [
3,
23143,
14196,
4775,
834,
23,
26,
21680,
4775,
834,
3974,
7,
7,
4128,
4674,
11300,
272,
476,
4193,
834,
5522,
309,
25067,
8729,
12604,
209,
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,... |
SELECT s.DisplayName, s.Reputation AS RepSO, m.Reputation AS RepMath, (LOG10(s.Reputation) + LOG10(m.Reputation)) / 2 AS RepAvDigits FROM "stackexchange.math".Users AS m, "stackoverflow".Users AS s WHERE s.Reputation > 10000 AND m.Reputation > 10000 AND s.AccountId = m.AccountId ORDER BY 4 DESC | Users with highest reputation both in SO and Math ( geometric mean = average digits). | CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
4543,
382,
9,
7,
157,
20119,
7,
41,
27,
26,
381,
6,
4543,
382,
9,
7,
157,
196,
26,
381,
6,
4543,
382,
9,
7,
157,
20119,
25160,
196,
26,
381,
6,
24589,
308,
342,
97,
6,
419,
21440,
... | [
3,
23143,
14196,
3,
7,
5,
23664,
5595,
23954,
6,
3,
7,
5,
1649,
2562,
257,
6157,
7144,
6582,
6,
3,
51,
5,
1649,
2562,
257,
6157,
7144,
329,
9,
189,
6,
41,
20151,
1714,
599,
7,
5,
1649,
2562,
257,
61,
1768,
3,
20151,
1714,
59... |
SELECT result FROM table_1341640_43 WHERE first_elected = 1976 | Election results of 1976 | CREATE TABLE table_1341640_43 (result VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
4906,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
19488,
772,
13,
16164,
11801,
10,
3,
1,
0,
0,
0,
0,
0,... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2938,
2445,
834,
4906,
549,
17444,
427,
166,
834,
19971,
3274,
16164,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 | What is detail of the student who registered the most number of courses? | CREATE TABLE students (student_details VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
481,
41,
8637,
295,
834,
221,
5756,
7,
584,
4280,
28027,
6,
1236,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
8637,
295,
834,
2... | [
3,
23143,
14196,
332,
5411,
8637,
295,
834,
221,
5756,
7,
21680,
481,
6157,
332,
536,
3,
15355,
3162,
1236,
834,
19221,
834,
5200,
1628,
6157,
332,
357,
9191,
332,
5411,
8637,
295,
834,
23,
26,
3274,
332,
4416,
8637,
295,
834,
23,
... |
SELECT series__number FROM table_29747178_2 WHERE directed_by = "John Showalter" | What is the series # when the director is john showalter? | CREATE TABLE table_29747178_2 (
series__number VARCHAR,
directed_by VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4581,
4450,
3940,
834,
357,
41,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
11860,
10,
363,
19,
8,
939,
1713,
116,
8,
2090,
1... | [
3,
23143,
14196,
939,
834,
834,
5525,
1152,
21680,
953,
834,
3166,
4581,
4450,
3940,
834,
357,
549,
17444,
427,
6640,
834,
969,
3274,
96,
18300,
3111,
8818,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT incumbent FROM table_1341640_26 WHERE district = "Missouri 1" | What was the incumbent for missouri 1? | CREATE TABLE table_1341640_26 (incumbent VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
2688,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
363,
47,
8,
28406,
21,
3041,
32,
459,
209,
58,
11801,
10,
3,
1,... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
2938,
2445,
834,
2688,
549,
17444,
427,
3939,
3274,
96,
329,
159,
7,
32,
459,
209,
121,
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,
... |
SELECT T1.student_id, COUNT(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id | List the id of students who registered some courses and the number of their registered courses? | CREATE TABLE students (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
481,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
61,
11860,
10,
6792,
... | [
3,
23143,
14196,
332,
5411,
8637,
295,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
481,
6157,
332,
536,
3,
15355,
3162,
1236,
834,
19221,
834,
5200,
1628,
6157,
332,
357,
9191,
332,
5411,
8637,
295,
834,
23,
26,
3274,
332,
... |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Other drugs and medicinal substances causing adverse effects in therapeutic use" | provide the number of patients whose admission type is emergency and diagnosis long title is other drugs and medicinal substances causing adverse effects in therapeutic use. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | [
4398,
7,
10,
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,
1499,
6,... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
SELECT result FROM table_1341640_14 WHERE first_elected = 1960 | What was the result of the election when someone was first elected in 1960? | CREATE TABLE table_1341640_14 (result VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
2534,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
363,
47,
8,
741,
13,
8,
4356,
116,
841,
47,
166,
8160,
... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2938,
2445,
834,
2534,
549,
17444,
427,
166,
834,
19971,
3274,
8754,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT T3.course_name, COUNT(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id | How many registed students do each course have? List course name and the number of their registered students? | CREATE TABLE students (student_id VARCHAR); CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
481,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
2996,
41,
19221,
834,
4350,
584,
4280,
28027,
6,
503,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
... | [
3,
23143,
14196,
332,
5787,
19221,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
481,
6157,
332,
536,
3,
15355,
3162,
1236,
834,
19221,
834,
5200,
1628,
6157,
332,
357,
9191,
332,
5411,
8637,
295,
834,
23,
26,
3274,
332,
4416,
86... |
SELECT "Reg. Season" FROM table_19191 WHERE "Playoffs" = 'Conference Semifinals' AND "US Open Cup" = 'Did not qualify' | What was the regular season standings for the year when the playoffs reached the conference semifinals and the team did not qualify for the US Open Cup? | CREATE TABLE table_19191 (
"Year" real,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"US Open Cup" text,
"Avg. Attendance" real
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2294,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
5,
7960,
121,
1499,
6,
96,
15800,
1647,
7,
121,
1499,
6,
96,
3063,
2384,
3802,
12... | [
3,
23143,
14196,
96,
17748,
5,
7960,
121,
21680,
953,
834,
2294,
2294,
536,
549,
17444,
427,
96,
15800,
1647,
7,
121,
3274,
3,
31,
4302,
11788,
22217,
12406,
7,
31,
3430,
96,
3063,
2384,
3802,
121,
3274,
3,
31,
308,
23,
26,
59,
... |
SELECT first_elected FROM table_1341640_14 WHERE incumbent = "Phil Crane" | What year was incumbent phil crane first elected? | CREATE TABLE table_1341640_14 (first_elected VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
2534,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
363,
215,
47,
28406,
3,
18118,
25126,
166,
8160,
58,
11801,
10,
3,... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
23747,
2938,
2445,
834,
2534,
549,
17444,
427,
28406,
3274,
96,
23305,
18630,
15,
121,
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,
... |
SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = "Pass" | Find id of candidates whose assessment code is "Pass"? | CREATE TABLE candidate_assessments (candidate_id VARCHAR, asessment_outcome_code VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
4775,
834,
3974,
7,
7,
4128,
41,
1608,
12416,
342,
834,
23,
26,
584,
4280,
28027,
6,
38,
15,
7,
7,
297,
834,
670,
287,
15,
834,
4978,
584,
4280,
28027,
61,
11860,
10,
2588,
3,
23,
26,
... | [
3,
23143,
14196,
4775,
834,
23,
26,
21680,
4775,
834,
3974,
7,
7,
4128,
549,
17444,
427,
38,
15,
7,
7,
297,
834,
670,
287,
15,
834,
4978,
3274,
96,
20192,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT SUM("Long") FROM table_37490 WHERE "Loss" > '2' AND "Gain" = '157' AND "Avg/G" < '129' | How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129? | CREATE TABLE table_37490 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4581,
2394,
41,
96,
23954,
121,
1499,
6,
96,
517,
9,
77,
121,
490,
6,
96,
434,
32,
7,
7,
121,
490,
6,
96,
434,
2444,
121,
490,
6,
96,
188,
208,
122,
87,
517,
121,
49... | [
3,
23143,
14196,
180,
6122,
599,
121,
434,
2444,
8512,
21680,
953,
834,
519,
4581,
2394,
549,
17444,
427,
96,
434,
32,
7,
7,
121,
2490,
3,
31,
357,
31,
3430,
96,
517,
9,
77,
121,
3274,
3,
31,
27452,
31,
3430,
96,
188,
208,
122... |
SELECT candidates FROM table_1341640_14 WHERE first_elected = 1974 | What candidates were featured in the 1974 election? | CREATE TABLE table_1341640_14 (candidates VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
2534,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
363,
4341,
130,
4510,
16,
8,
17184,
4356,
58,
11801,
10,... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2938,
2445,
834,
2534,
549,
17444,
427,
166,
834,
19971,
3274,
17184,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = "Fail" | Find the cell mobile number of the candidates whose assessment code is "Fail"? | CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (cell_mobile_number VARCHAR, person_id VARCHAR); CREATE TABLE candidate_assessments (candidate_id VARCHAR, asessment_outcome_code VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
4341,
41,
1608,
12416,
342,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
151,
41,
8725,
834,
14814,
834,
5525,
1152,
584,
4280,
28027,
6,
568,
834,
23,
26,
584,
4280,
... | [
3,
23143,
14196,
332,
5787,
8725,
834,
14814,
834,
5525,
1152,
21680,
4341,
6157,
332,
536,
3,
15355,
3162,
4775,
834,
3974,
7,
7,
4128,
6157,
332,
357,
9191,
332,
5411,
1608,
12416,
342,
834,
23,
26,
3274,
332,
4416,
1608,
12416,
3... |
SELECT SUM("Pages") FROM table_7363 WHERE "Vol. #" < '8' AND "ISBN" = '1-40122-892-5' | How many pages does the edition with a volume # smaller than 8 and an ISBM of 1-40122-892-5 have? | CREATE TABLE table_7363 (
"Vol. #" real,
"Title" text,
"Material collected" text,
"Pages" real,
"ISBN" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
3891,
41,
96,
22803,
5,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
329,
342,
12042,
4759,
121,
1499,
6,
96,
345,
2568,
121,
490,
6,
96,
4555,
19174,
121,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
345,
2568,
8512,
21680,
953,
834,
4552,
3891,
549,
17444,
427,
96,
22803,
5,
1713,
121,
3,
2,
3,
31,
927,
31,
3430,
96,
4555,
19174,
121,
3274,
3,
31,
536,
15862,
20889,
6039,
4508,
4525,
31,
... |
SELECT first_elected FROM table_1341663_19 WHERE incumbent = "Jerry Huckaby" | What year was Jerry Huckaby first elected? | CREATE TABLE table_1341663_19 (first_elected VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2294,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
363,
215,
47,
16637,
454,
4636,
9,
969,
166,
8160,
58,
11801,
10,
... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
23747,
2938,
3891,
834,
2294,
549,
17444,
427,
28406,
3274,
96,
683,
49,
651,
454,
4636,
9,
969,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT student_id FROM student_course_attendance WHERE course_id = 301 | What are the id of students who registered course 301? | CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
6,
503,
834,
23,
26,
584,
4280,
28027,
61,
11860,
10,
363,
33,
8,
3,
23,
26,
13,
481,
113,
3366,
503,
3... | [
3,
23143,
14196,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
15116,
663,
549,
17444,
427,
503,
834,
23,
26,
3274,
3,
25626,
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,
... |
SELECT Posts.Id AS "post_link", Posts.Title, Posts.Score AS Score FROM Posts ORDER BY Posts.Score DESC LIMIT 100 | Ranking of questions by score. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAno... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
276,
9303,
371,
5430,
7,
41,
27,
26,
381,
6,
17016,
25160,
196,
26,
381,
6,
1844,
196,
26,
381,
6,
24589,
308,
342,
97,
6,
9084,
1649,
9,
739,
25160,
196,
26,
381,
6,
9084,
188,
7,
2... | [
3,
23143,
14196,
1844,
7,
5,
196,
26,
6157,
96,
5950,
834,
4907,
1686,
1844,
7,
5,
382,
155,
109,
6,
1844,
7,
5,
134,
9022,
6157,
17763,
21680,
1844,
7,
4674,
11300,
272,
476,
1844,
7,
5,
134,
9022,
309,
25067,
8729,
12604,
910,... |
SELECT candidates FROM table_1341663_19 WHERE incumbent = "Dave Treen" | What other cadidate ran against Dave Treen? | CREATE TABLE table_1341663_19 (candidates VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2294,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
363,
119,
212,
12416,
342,
4037,
581,
8545,
4691,
35,
58,
11801,
1... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2938,
3891,
834,
2294,
549,
17444,
427,
28406,
3274,
96,
308,
9,
162,
4691,
35,
121,
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... |
SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1 | What is the id of the student who most recently registered course 301? | CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR, date_of_attendance VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
6,
503,
834,
23,
26,
584,
4280,
28027,
6,
833,
834,
858,
834,
15116,
663,
584,
4280,
28027,
61,
11860,
10,
... | [
3,
23143,
14196,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
15116,
663,
549,
17444,
427,
503,
834,
23,
26,
3274,
3,
25626,
4674,
11300,
272,
476,
833,
834,
858,
834,
15116,
663,
309,
25067,
8729,
12604,
209,
1,
0,
0,
0,
0,
... |
SELECT game FROM table_name_40 WHERE score = "w 90–82 (ot)" | Which Game has a Score of w 90 82 (ot)? | CREATE TABLE table_name_40 (
game VARCHAR,
score VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
467,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
11860,
10,
4073,
4435,
65,
3,
9,
17763,
13,
3,
210,
2777,
3,
4613,
41,
32,
17,
61,
58,
11801,
10... | [
3,
23143,
14196,
467,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2604,
3274,
96,
210,
2777,
104,
4613,
41,
32,
17,
61,
121,
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,
... |
SELECT MIN(first_elected) FROM table_1341663_19 | What year was the earliest first elected? | CREATE TABLE table_1341663_19 (first_elected INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2294,
41,
14672,
834,
19971,
3,
21342,
17966,
61,
11860,
10,
363,
215,
47,
8,
3,
16454,
166,
8160,
58,
11801,
10,
3,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2938,
3891,
834,
2294,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id | Find distinct cities of addresses of people? | CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE people_addresses (address_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
7181,
41,
6726,
584,
4280,
28027,
6,
1115,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
151,
834,
9,
26,
12039,
15,
7,
41,
9,
26,
12039,
834,
23,
26,
584,
4280,
2802... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
6726,
21680,
7181,
6157,
332,
536,
3,
15355,
3162,
151,
834,
9,
26,
12039,
15,
7,
6157,
332,
357,
9191,
332,
5411,
9,
26,
12039,
834,
23,
26,
3274,
332,
4416,
9,
26,
12039,
834,
... |
SELECT MAX(crowd) FROM table_name_67 WHERE away_team = "collingwood" | What was the largest crowd when Collingwood was the away team? | CREATE TABLE table_name_67 (
crowd INTEGER,
away_team VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
11860,
10,
363,
47,
8,
2015,
4374,
116,
9919,
53,
2037,
47,
8,
550,
372,
58,
11801,
10,... | [
3,
23143,
14196,
4800,
4,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3297,
697,
2037,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT district FROM table_1341663_19 WHERE incumbent = "Dave Treen" | What district did Dave Treen serve? | CREATE TABLE table_1341663_19 (district VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2294,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
363,
3939,
410,
8545,
4691,
35,
1716,
58,
11801,
10,
3,
1,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2938,
3891,
834,
2294,
549,
17444,
427,
28406,
3274,
96,
308,
9,
162,
4691,
35,
121,
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... |
SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id | Find distinct cities of address of students? | CREATE TABLE students (student_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE people_addresses (address_id VARCHAR, person_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
481,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
7181,
41,
6726,
584,
4280,
28027,
6,
1115,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
6726,
21680,
7181,
6157,
332,
536,
3,
15355,
3162,
151,
834,
9,
26,
12039,
15,
7,
6157,
332,
357,
9191,
332,
5411,
9,
26,
12039,
834,
23,
26,
3274,
332,
4416,
9,
26,
12039,
834,
... |
SELECT COUNT("Cancelled") FROM table_24185 WHERE "Station" = 'Turnham Green' | Name the number of cancelled for turnham green | CREATE TABLE table_24185 (
"Station" text,
"Line" text,
"Planned" real,
"Cancelled" real,
"Proposal" text,
"Details" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
21594,
41,
96,
134,
6821,
121,
1499,
6,
96,
21022,
121,
1499,
6,
96,
17373,
29,
15,
26,
121,
490,
6,
96,
254,
663,
40,
1361,
121,
490,
6,
96,
3174,
2748,
138,
121,
1499... | [
3,
23143,
14196,
2847,
17161,
599,
121,
254,
663,
40,
1361,
8512,
21680,
953,
834,
2266,
21594,
549,
17444,
427,
96,
134,
6821,
121,
3274,
3,
31,
382,
450,
29,
1483,
1862,
31,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT(incumbent) FROM table_1341663_11 WHERE first_elected = 1972 | How many sitting politicians were originally elected in 1972? | CREATE TABLE table_1341663_11 (incumbent VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2596,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
571,
186,
3823,
13446,
130,
5330,
8160,
16,
16583,
58,
... | [
3,
23143,
14196,
2847,
17161,
599,
77,
75,
5937,
295,
61,
21680,
953,
834,
23747,
2938,
3891,
834,
2596,
549,
17444,
427,
166,
834,
19971,
3274,
16583,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT course_name FROM courses ORDER BY course_name | List the names of courses in alphabetical order? | CREATE TABLE courses (course_name VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
2996,
41,
19221,
834,
4350,
584,
4280,
28027,
61,
11860,
10,
6792,
8,
3056,
13,
2996,
16,
20688,
1950,
455,
58,
11801,
10,
3,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
503,
834,
4350,
21680,
2996,
4674,
11300,
272,
476,
503,
834,
4350,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT MAX(attendance) FROM table_name_59 WHERE score = "2:0" AND away = "vida" | What is the highest attendance of the match with a 2:0 score and vida as the away team? | CREATE TABLE table_name_59 (
attendance INTEGER,
score VARCHAR,
away VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
11364,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
6,
550,
584,
4280,
28027,
3,
61,
11860,
10,
363,
19,
8,
2030,
11364,
13,
8,
1588,
28,
3,
9,
204,
10,
6... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
2604,
3274,
96,
357,
10,
632,
121,
3430,
550,
3274,
96,
6961,
9,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT party FROM table_1341663_11 WHERE district = "Georgia 6" | In the Georgia 6 district, what is the elected party? | CREATE TABLE table_1341663_11 (party VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2596,
41,
8071,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
86,
8,
5664,
431,
3939,
6,
125,
19,
8,
8160,
1088,
58,
11801,
10,
3,
1,
0,
... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2938,
3891,
834,
2596,
549,
17444,
427,
3939,
3274,
96,
517,
15,
1677,
23,
9,
431,
121,
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... |
SELECT first_name FROM people ORDER BY first_name | List the first names of people in alphabetical order? | CREATE TABLE people (first_name VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
151,
41,
14672,
834,
4350,
584,
4280,
28027,
61,
11860,
10,
6792,
8,
166,
3056,
13,
151,
16,
20688,
1950,
455,
58,
11801,
10,
3,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
166,
834,
4350,
21680,
151,
4674,
11300,
272,
476,
166,
834,
4350,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT Name, Seating FROM track WHERE Year_Opened > 2000 | Visualize a pie chart with what are the names and seatings for all tracks opened after 2000? | CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1463,
41,
8799,
834,
4309,
16,
17,
6,
5570,
1499,
6,
10450,
1499,
6,
15915,
53,
490,
6,
2929,
834,
22696,
15,
26,
490,
3,
61,
205,
4386,
6048,
332,
17098,
1964,
41,
10949,
834,
4309,
16,... | [
3,
23143,
14196,
5570,
6,
15915,
53,
21680,
1463,
549,
17444,
427,
2929,
834,
22696,
15,
26,
2490,
2766,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT result FROM table_1341663_11 WHERE incumbent = "Billy Lee Evans" | In the race involving Billy Lee Evans as the seated Representative, was he elected again? | CREATE TABLE table_1341663_11 (result VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2596,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
86,
8,
1964,
3,
6475,
17724,
5531,
18305,
38,
8,
3,
22933,
13517,
... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2938,
3891,
834,
2596,
549,
17444,
427,
28406,
3274,
96,
279,
173,
120,
5531,
18305,
121,
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,... |
SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance | What are the id of students who registered courses or attended courses? | CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
8637,
295,
834,
23,
26,
584,
4280,
... | [
3,
23143,
14196,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
5200,
1628,
4417,
9215,
3,
23143,
14196,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
15116,
663,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY Region_name DESC | Show the name for regions and the number of storms for each region by a bar chart, and sort from high to low by the X-axis. | CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_cit... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5536,
41,
16133,
834,
4309,
16,
17,
6,
5570,
1499,
6,
7678,
7,
834,
6645,
1499,
6,
5370,
834,
9993,
16,
17,
6,
26135,
834,
17030,
7,
834,
23492,
490,
6,
7720,
834,
2962,
9,
189,
7,
16,... | [
3,
23143,
14196,
6163,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1719,
6157,
332,
536,
3,
15355,
3162,
4161,
834,
18145,
6157,
332,
357,
9191,
332,
5411,
17748,
23,
106,
834,
23,
26,
3274,
332,
4416,
17748,
23,
106,
834,
23,
... |
SELECT COUNT(party) FROM table_1341663_11 WHERE incumbent = "Dawson Mathis" | How many parties are there in races involving Dawson Mathis? | CREATE TABLE table_1341663_11 (party VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2596,
41,
8071,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
571,
186,
2251,
33,
132,
16,
10879,
3,
6475,
31676,
9762,
159,
58,
11801,
10,
... | [
3,
23143,
14196,
2847,
17161,
599,
8071,
61,
21680,
953,
834,
23747,
2938,
3891,
834,
2596,
549,
17444,
427,
28406,
3274,
96,
308,
9,
210,
739,
9762,
159,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121 | Find the id of courses which are registered or attended by student whose id is 121? | CREATE TABLE student_course_attendance (course_id VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
19221,
834,
23,
26,
584,
4280,
28027,
6,
1236,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,... | [
3,
23143,
14196,
503,
834,
23,
26,
21680,
1236,
834,
19221,
834,
5200,
1628,
549,
17444,
427,
1236,
834,
23,
26,
3274,
3,
22011,
4417,
9215,
3,
23143,
14196,
503,
834,
23,
26,
21680,
1236,
834,
19221,
834,
15116,
663,
549,
17444,
42... |
SELECT AVG(attendance) FROM table_name_44 WHERE record = "37–21–12" AND points < 86 | What is the Attendance of the game with a Record of 37 21 12 and less than 86 Points? | CREATE TABLE table_name_44 (
attendance INTEGER,
record VARCHAR,
points VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
11364,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
11860,
10,
363,
19,
8,
22497,
663,
13,
8,
467,
28,
3,
9,
11392,
13,
6... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1368,
3274,
96,
4118,
104,
2658,
104,
2122,
121,
3430,
979,
3,
2,
3,
3840,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT district FROM table_1341663_44 WHERE party = "Republican" | Which district is republican? | CREATE TABLE table_1341663_44 (district VARCHAR, party VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
3628,
41,
26,
23,
20066,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
11860,
10,
4073,
3939,
19,
20237,
152,
58,
11801,
10,
3,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2938,
3891,
834,
3628,
549,
17444,
427,
1088,
3274,
96,
1649,
15727,
152,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT * FROM student_course_registrations WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance) | What are all info of students who registered courses but not attended courses? | CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
8637,
295,
834,
23,
26,
584,
4280,
... | [
3,
23143,
14196,
1429,
21680,
1236,
834,
19221,
834,
5200,
1628,
549,
17444,
427,
4486,
1236,
834,
23,
26,
3388,
41,
23143,
14196,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
15116,
663,
61,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT SUM(yards_per_attempt) FROM table_name_17 WHERE net_yards > 631 | How many yards per attempt have net yards greater than 631? | CREATE TABLE table_name_17 (
yards_per_attempt INTEGER,
net_yards INTEGER
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
6460,
834,
883,
834,
144,
17,
9045,
3,
21342,
17966,
6,
3134,
834,
6636,
7,
3,
21342,
17966,
3,
61,
11860,
10,
571,
186,
6460,
399,
3332,
43,
3134,
6460,
2... | [
3,
23143,
14196,
180,
6122,
599,
6636,
7,
834,
883,
834,
144,
17,
9045,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3134,
834,
6636,
7,
2490,
431,
3341,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT result FROM table_1341663_44 WHERE incumbent = "George H. Mahon" | Name the result when the incumbent was george h. mahon | CREATE TABLE table_1341663_44 (result VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
3628,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
5570,
8,
741,
116,
8,
28406,
47,
873,
1677,
15,
3,
107,
5,
954,
... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2938,
3891,
834,
3628,
549,
17444,
427,
28406,
3274,
96,
31317,
454,
5,
8555,
106,
121,
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,
... |
SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.registration_date | List the id of students who registered course statistics in the order of registration date. | CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR, registration_date VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
6,
503,
834,
23,
26,
584,
4280,
28027,
6,
3816,
834,
5522,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17... | [
3,
23143,
14196,
332,
4416,
8637,
295,
834,
23,
26,
21680,
2996,
6157,
332,
536,
3,
15355,
3162,
1236,
834,
19221,
834,
5200,
1628,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
549,
17444... |
SELECT demographic.diagnosis, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Josette Orr" | What is the primary disease and diagnosis icd9 code of Josette Orr? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | [
4398,
7,
10,
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,
205,
4386,
6048,
332,... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
6,
18730,
7,
5,
447,
26,
1298,
834,
4978,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
549,
17... |
SELECT incumbent FROM table_1341663_44 WHERE district = "Texas 3" | What was the incumbent of texas 3? | CREATE TABLE table_1341663_44 (incumbent VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
3628,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
363,
47,
8,
28406,
13,
3,
10354,
9,
7,
220,
58,
11801,
10,
3,
... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
2938,
3891,
834,
3628,
549,
17444,
427,
3939,
3274,
96,
13598,
9,
7,
220,
121,
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,
... |
SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.date_of_attendance | List the id of students who attended statistics courses in the order of attendance date. | CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR, date_of_attendance VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
15116,
663,
41,
8637,
295,
834,
23,
26,
584,
4280,
28027,
6,
503,
834,
23,
26,
584,
4280,
28027,
6,
833,
834,
858,
834,
15116,
663,
584,
4280,
28027,
3670,
205,
4386... | [
3,
23143,
14196,
332,
4416,
8637,
295,
834,
23,
26,
21680,
2996,
6157,
332,
536,
3,
15355,
3162,
1236,
834,
19221,
834,
15116,
663,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
549,
17444... |
SELECT COUNT(scores) FROM table_23575917_2 WHERE davids_team = "David Baddiel and Maureen Lipman" | Name the scores for david baddiel and maureen lipman | CREATE TABLE table_23575917_2 (
scores VARCHAR,
davids_team VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3436,
3390,
2517,
834,
357,
41,
7586,
584,
4280,
28027,
6,
836,
6961,
7,
834,
11650,
584,
4280,
28027,
3,
61,
11860,
10,
5570,
8,
7586,
21,
836,
6961,
1282,
2498,
40,
11,
... | [
3,
23143,
14196,
2847,
17161,
599,
7,
9022,
7,
61,
21680,
953,
834,
2773,
3436,
3390,
2517,
834,
357,
549,
17444,
427,
836,
6961,
7,
834,
11650,
3274,
96,
308,
9,
6961,
3862,
2498,
40,
11,
7758,
60,
35,
10840,
348,
121,
1,
0,
0,... |
SELECT incumbent FROM table_1341663_44 WHERE district = "Texas 19" | What was the incumbent for texas 19? | CREATE TABLE table_1341663_44 (incumbent VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
3628,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
363,
47,
8,
28406,
21,
3,
10354,
9,
7,
957,
58,
11801,
10,
3,
... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
2938,
3891,
834,
3628,
549,
17444,
427,
3939,
3274,
96,
13598,
9,
7,
957,
121,
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,
... |
SELECT date FROM weather WHERE max_temperature_f > 85 | Give me the dates when the max temperature was higher than 85. | CREATE TABLE weather (date VARCHAR, max_temperature_f INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1969,
41,
5522,
584,
4280,
28027,
6,
9858,
834,
21010,
15,
834,
89,
3,
21342,
17966,
61,
11860,
10,
6434,
140,
8,
5128,
116,
8,
9858,
2912,
47,
1146,
145,
11989,
5,
11801,
10,
3,
1,
0,
... | [
3,
23143,
14196,
833,
21680,
1969,
549,
17444,
427,
9858,
834,
21010,
15,
834,
89,
2490,
11989,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT role FROM table_name_62 WHERE studio = "mono" AND title = "paradise canyon" | Name the role for mono studio and title of paradise canyon | CREATE TABLE table_name_62 (
role VARCHAR,
studio VARCHAR,
title VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
1075,
584,
4280,
28027,
6,
3100,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
3,
61,
11860,
10,
5570,
8,
1075,
21,
7414,
3100,
11,
2233,
13,
21691,
24032,
11... | [
3,
23143,
14196,
1075,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
3100,
3274,
96,
2157,
32,
121,
3430,
2233,
3274,
96,
6583,
26,
159,
15,
24032,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT district FROM table_1341663_26 WHERE candidates = "Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%" | Which district has candidates is dick gephardt (d) 81.9% lee buchschacher (r) 18.1%? | CREATE TABLE table_1341663_26 (district VARCHAR, candidates VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2688,
41,
26,
23,
20066,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
11860,
10,
4073,
3939,
65,
4341,
19,
3,
26,
3142,
873,
102,
5651,
17,
41,
26,
... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2938,
3891,
834,
2688,
549,
17444,
427,
4341,
3274,
96,
308,
3142,
961,
102,
5651,
17,
41,
308,
61,
3,
4959,
5,
7561,
5531,
4675,
860,
9,
1703,
41,
448,
61,
12265,
4704,
121,
1,
0,
... |
SELECT name FROM station WHERE lat < 37.5 | What are the names of stations that have latitude lower than 37.5? | CREATE TABLE station (name VARCHAR, lat INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
2478,
41,
4350,
584,
4280,
28027,
6,
50,
17,
3,
21342,
17966,
61,
11860,
10,
363,
33,
8,
3056,
13,
6991,
24,
43,
50,
6592,
1364,
145,
220,
15731,
58,
11801,
10,
3,
1,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
564,
21680,
2478,
549,
17444,
427,
50,
17,
3,
2,
220,
15731,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT total FROM table_name_24 WHERE finish = "t22" | Name the total with finish of t22 | CREATE TABLE table_name_24 (
total VARCHAR,
finish VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
792,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
3,
61,
11860,
10,
5570,
8,
792,
28,
1992,
13,
3,
17,
2884,
11801,
10,
3,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
3,
23143,
14196,
792,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1992,
3274,
96,
17,
2884,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT result FROM table_1341663_26 WHERE district = "Missouri 2" | What is the result for the district missouri 2? | CREATE TABLE table_1341663_26 (result VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2688,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
363,
19,
8,
741,
21,
8,
3939,
3041,
32,
459,
204,
58,
11801,
10,
... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2938,
3891,
834,
2688,
549,
17444,
427,
3939,
3274,
96,
329,
159,
7,
32,
459,
204,
121,
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,... |
SELECT city, MAX(lat) FROM station GROUP BY city | For each city, return the highest latitude among its stations. | CREATE TABLE station (city VARCHAR, lat INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
2478,
41,
6726,
584,
4280,
28027,
6,
50,
17,
3,
21342,
17966,
61,
11860,
10,
242,
284,
690,
6,
1205,
8,
2030,
50,
6592,
859,
165,
6991,
5,
11801,
10,
3,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
690,
6,
4800,
4,
599,
40,
144,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
690,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT "Location/Attendance" FROM table_3782 WHERE "Opponent" = '@ Boston Bruins' | If the opponent was @ Boston Bruins, what was the Location/Attendance? | CREATE TABLE table_3782 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Location/Attendance" text,
"Record" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
4613,
41,
96,
23055,
121,
490,
6,
96,
30404,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
6,
96,
434,
32,
75,... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
87,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
4118,
4613,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
1741,
5053,
272,
23162,
31,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT MIN(first_elected) FROM table_1341663_26 WHERE district = "Missouri 7" | When was the first elected for district missouri 7? | CREATE TABLE table_1341663_26 (first_elected INTEGER, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2688,
41,
14672,
834,
19971,
3,
21342,
17966,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
366,
47,
8,
166,
8160,
21,
3939,
3041,
32,
459,
489,
58,
11801,
10... | [
3,
23143,
14196,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2938,
3891,
834,
2688,
549,
17444,
427,
3939,
3274,
96,
329,
159,
7,
32,
459,
489,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT start_station_name, end_station_name FROM trip ORDER BY id LIMIT 3 | Give me the start station and end station for the trips with the three oldest id. | CREATE TABLE trip (start_station_name VARCHAR, end_station_name VARCHAR, id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1469,
41,
10208,
834,
6682,
834,
4350,
584,
4280,
28027,
6,
414,
834,
6682,
834,
4350,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28027,
61,
11860,
10,
6434,
140,
8,
456,
2478,
11,
414,
... | [
3,
23143,
14196,
456,
834,
6682,
834,
4350,
6,
414,
834,
6682,
834,
4350,
21680,
1469,
4674,
11300,
272,
476,
3,
23,
26,
8729,
12604,
220,
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,
... |
SELECT "Ticket price(s)" FROM table_64443 WHERE "Date(s)" = 'september 16, 1986' | What was the ticket price on September 16, 1986? | CREATE TABLE table_64443 (
"Date(s)" text,
"Venue" text,
"City" text,
"Ticket price(s)" text,
"Ticket sold / available" text,
"Ticket grossing" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3628,
519,
41,
96,
308,
342,
599,
7,
61,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
15569,
594,
599,
7,
61,
121,
1499,
6,
96,
... | [
3,
23143,
14196,
96,
15569,
594,
599,
7,
61,
121,
21680,
953,
834,
4389,
3628,
519,
549,
17444,
427,
96,
308,
342,
599,
7,
61,
121,
3274,
3,
31,
7,
6707,
18247,
11940,
12698,
31,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.