instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Which DOB has Throws of r, and a Position of c, and a First of torey? | SELECT "D.O.B." FROM table_37654 WHERE "Throws" = 'r' AND "Position" = 'c' AND "First" = 'torey' | [
13828,
8410,
33,
468,
536,
8516,
286,
374,
11,
290,
257,
23158,
286,
269,
11,
290,
257,
3274,
286,
284,
4364,
30,
46506,
366,
35,
13,
46,
13,
33,
526,
16034,
3084,
62,
2718,
39111,
33411,
366,
817,
8516,
1,
796,
705,
81,
6,
5357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
8410,
33,
468,
536,
8516,
286,
374,
11,
290,
257,
23158,
286,
269,
11,
290,
257,
3274,
286,
284,
4364,
30,
46506,
366,
35,
13,
46,
13,
33,
526,
16034,
3084,
62,
2718,
39111,
33411,
366,
817,
8516,
1,
796,
705,
81,
6,
5357... |
Name the name in syriac for 500 believers | SELECT name_in_syriac FROM table_24613895_1 WHERE number_of_believers = 500 | [
5376,
262,
1438,
287,
827,
380,
330,
329,
5323,
23142,
46506,
1438,
62,
259,
62,
1837,
380,
330,
16034,
3084,
62,
26912,
20107,
3865,
62,
16,
33411,
1271,
62,
1659,
62,
6667,
30296,
796,
5323
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1438,
287,
827,
380,
330,
329,
5323,
23142,
46506,
1438,
62,
259,
62,
1837,
380,
330,
16034,
3084,
62,
26912,
20107,
3865,
62,
16,
33411,
1271,
62,
1659,
62,
6667,
30296,
796,
5323
] |
users whose first question was closed but still had multiple posts. | SELECT sq.count, COUNT(DISTINCT sq.user) FROM (SELECT sq.user, CASE WHEN COUNT(DISTINCT Posts.Id) = 1 THEN '1' ELSE '>1' END AS count FROM (SELECT sq.user FROM (SELECT Users.Id AS "user", Posts.Id AS first_post, Posts.ClosedDate, ROW_NUMBER() OVER (PARTITION BY Users.Id ORDER BY Posts.CreationDate) AS rn FROM Users INN... | [
18417,
3025,
717,
1808,
373,
4838,
475,
991,
550,
3294,
6851,
13,
46506,
19862,
13,
9127,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
19862,
13,
7220,
8,
16034,
357,
46506,
19862,
13,
7220,
11,
42001,
42099,
327,
28270,
7,
35,
8808,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18417,
3025,
717,
1808,
373,
4838,
475,
991,
550,
3294,
6851,
13,
46506,
19862,
13,
9127,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
19862,
13,
7220,
8,
16034,
357,
46506,
19862,
13,
7220,
11,
42001,
42099,
327,
28270,
7,
35,
8808,
12... |
Show the number of documents created in each day and bin document date by weekday and group by document type description with a stacked bar chart. | SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Description | [
15307,
262,
1271,
286,
4963,
2727,
287,
1123,
1110,
290,
9874,
3188,
3128,
416,
28269,
290,
1448,
416,
3188,
2099,
6764,
351,
257,
24167,
2318,
8262,
13,
46506,
16854,
62,
10430,
11,
327,
28270,
7,
24941,
62,
10430,
8,
16034,
6524,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
1271,
286,
4963,
2727,
287,
1123,
1110,
290,
9874,
3188,
3128,
416,
28269,
290,
1448,
416,
3188,
2099,
6764,
351,
257,
24167,
2318,
8262,
13,
46506,
16854,
62,
10430,
11,
327,
28270,
7,
24941,
62,
10430,
8,
16034,
6524,
62... |
What is Tournament, when 2003 is 'A'? | SELECT tournament FROM table_name_90 WHERE 2003 = "a" | [
2061,
318,
9595,
11,
618,
5816,
318,
705,
32,
30960,
46506,
7756,
16034,
3084,
62,
3672,
62,
3829,
33411,
5816,
796,
366,
64,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
9595,
11,
618,
5816,
318,
705,
32,
30960,
46506,
7756,
16034,
3084,
62,
3672,
62,
3829,
33411,
5816,
796,
366,
64,
1
] |
Name the total number of losses with number result less than 0 | SELECT COUNT("Losses") FROM table_38073 WHERE "No Result" < '0' | [
5376,
262,
2472,
1271,
286,
9089,
351,
1271,
1255,
1342,
621,
657,
46506,
327,
28270,
7203,
43,
793,
274,
4943,
16034,
3084,
62,
23734,
4790,
33411,
366,
2949,
25414,
1,
1279,
705,
15,
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
] | [
5376,
262,
2472,
1271,
286,
9089,
351,
1271,
1255,
1342,
621,
657,
46506,
327,
28270,
7203,
43,
793,
274,
4943,
16034,
3084,
62,
23734,
4790,
33411,
366,
2949,
25414,
1,
1279,
705,
15,
6
] |
What is the type for rank 2? | SELECT "Type" FROM table_44875 WHERE "Rank" = '2' | [
2061,
318,
262,
2099,
329,
4279,
362,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
31115,
2425,
33411,
366,
27520,
1,
796,
705,
17,
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
] | [
2061,
318,
262,
2099,
329,
4279,
362,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
31115,
2425,
33411,
366,
27520,
1,
796,
705,
17,
6
] |
What's Jim Farmer's nationality? | SELECT "Nationality" FROM table_16868 WHERE "Player" = 'Jim Farmer' | [
2061,
338,
5395,
37755,
338,
29835,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
14656,
3104,
33411,
366,
14140,
1,
796,
705,
18050,
37755,
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
] | [
2061,
338,
5395,
37755,
338,
29835,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
14656,
3104,
33411,
366,
14140,
1,
796,
705,
18050,
37755,
6
] |
Which upper level CS courses are offered this following semester ? | SELECT DISTINCT course.department, course.name, course.number 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 program_course.catego... | [
13828,
6727,
1241,
9429,
10902,
389,
4438,
428,
1708,
24878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
6727,
1241,
9429,
10902,
389,
4438,
428,
1708,
24878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
173... |
Who was the winner of the race in monza? | SELECT race AS Winner FROM table_name_89 WHERE location = "monza" | [
8241,
373,
262,
8464,
286,
262,
3234,
287,
937,
4496,
30,
46506,
3234,
7054,
25358,
16034,
3084,
62,
3672,
62,
4531,
33411,
4067,
796,
366,
2144,
4496,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
8464,
286,
262,
3234,
287,
937,
4496,
30,
46506,
3234,
7054,
25358,
16034,
3084,
62,
3672,
62,
4531,
33411,
4067,
796,
366,
2144,
4496,
1
] |
find the female patients who have procedure icd9 code 3727. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.icd9_code = "3727" | [
19796,
262,
4048,
3871,
508,
423,
8771,
14158,
67,
24,
2438,
5214,
1983,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
262,
4048,
3871,
508,
423,
8771,
14158,
67,
24,
2438,
5214,
1983,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
... |
Which Championships have a League of ontario australian football league? | SELECT "Championships" FROM table_12662 WHERE "League" = 'ontario australian football league' | [
13828,
24782,
423,
257,
4041,
286,
39585,
4982,
38132,
1373,
666,
4346,
4652,
30,
46506,
366,
1925,
4350,
5748,
1,
16034,
3084,
62,
1065,
39380,
33411,
366,
24623,
1,
796,
705,
756,
4982,
38132,
1373,
666,
4346,
4652,
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
] | [
13828,
24782,
423,
257,
4041,
286,
39585,
4982,
38132,
1373,
666,
4346,
4652,
30,
46506,
366,
1925,
4350,
5748,
1,
16034,
3084,
62,
1065,
39380,
33411,
366,
24623,
1,
796,
705,
756,
4982,
38132,
1373,
666,
4346,
4652,
6
] |
Who was the opponent in the game that was attended by 48,000 people? | SELECT opponent_number FROM table_name_93 WHERE attendance = "48,000" | [
8241,
373,
262,
6125,
287,
262,
983,
326,
373,
9141,
416,
4764,
11,
830,
661,
30,
46506,
6125,
62,
17618,
16034,
3084,
62,
3672,
62,
6052,
33411,
14858,
796,
366,
2780,
11,
830,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
6125,
287,
262,
983,
326,
373,
9141,
416,
4764,
11,
830,
661,
30,
46506,
6125,
62,
17618,
16034,
3084,
62,
3672,
62,
6052,
33411,
14858,
796,
366,
2780,
11,
830,
1
] |
what was the five most frequent medicines that were prescribed during the same hospital encounter to the bradycardia - sick sinus syndrome male patients aged 60 or above after they had been diagnosed with bradycardia - sick sinus syndrome since 6 years ago? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'bradycardia - s... | [
10919,
373,
262,
1936,
749,
10792,
23533,
326,
547,
14798,
1141,
262,
976,
4436,
8791,
284,
262,
865,
4597,
9517,
544,
532,
6639,
7813,
385,
14027,
4257,
3871,
9722,
3126,
393,
2029,
706,
484,
550,
587,
14641,
351,
865,
4597,
9517,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1936,
749,
10792,
23533,
326,
547,
14798,
1141,
262,
976,
4436,
8791,
284,
262,
865,
4597,
9517,
544,
532,
6639,
7813,
385,
14027,
4257,
3871,
9722,
3126,
393,
2029,
706,
484,
550,
587,
14641,
351,
865,
4597,
9517,
54... |
For each type, how many ships are there. Show the proportion. | SELECT Type, COUNT(*) FROM ship GROUP BY Type | [
1890,
1123,
2099,
11,
703,
867,
7937,
389,
612,
13,
5438,
262,
9823,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
4074,
44441,
11050,
5994
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
1123,
2099,
11,
703,
867,
7937,
389,
612,
13,
5438,
262,
9823,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
4074,
44441,
11050,
5994
] |
what is the average finish for thomas lloyd ? | SELECT AVG("finish") FROM table_204_24 WHERE "manager" = 'thomas lloyd' | [
10919,
318,
262,
2811,
5461,
329,
294,
16911,
32660,
12192,
5633,
46506,
35224,
7203,
15643,
680,
4943,
16034,
3084,
62,
18638,
62,
1731,
33411,
366,
37153,
1,
796,
705,
400,
16911,
32660,
12192,
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
] | [
10919,
318,
262,
2811,
5461,
329,
294,
16911,
32660,
12192,
5633,
46506,
35224,
7203,
15643,
680,
4943,
16034,
3084,
62,
18638,
62,
1731,
33411,
366,
37153,
1,
796,
705,
400,
16911,
32660,
12192,
6
] |
A scatter chart shows the correlation between ACC_Percent and All_Games_Percent , and group by attribute ACC_Regular_Season. | SELECT ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY ACC_Regular_Season | [
32,
41058,
8262,
2523,
262,
16096,
1022,
15859,
62,
31905,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
15859,
62,
40164,
62,
18960,
13,
46506,
15859,
62,
31905,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
15699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
41058,
8262,
2523,
262,
16096,
1022,
15859,
62,
31905,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
15859,
62,
40164,
62,
18960,
13,
46506,
15859,
62,
31905,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
15699,
... |
What was the minimum attendance on December 7, 1969? | SELECT MIN(attendance) FROM table_10646790_2 WHERE date = "December 7, 1969" | [
2061,
373,
262,
5288,
14858,
319,
3426,
767,
11,
16450,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
940,
2414,
3134,
3829,
62,
17,
33411,
3128,
796,
366,
20588,
767,
11,
16450,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
5288,
14858,
319,
3426,
767,
11,
16450,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
940,
2414,
3134,
3829,
62,
17,
33411,
3128,
796,
366,
20588,
767,
11,
16450,
1
] |
What is the year of expected completion when the capacity is 22,500? | SELECT "Expected Completion" FROM table_10994 WHERE "Capacity" = '22,500' | [
2061,
318,
262,
614,
286,
2938,
11939,
618,
262,
5339,
318,
2534,
11,
4059,
30,
46506,
366,
3109,
7254,
955,
24547,
1,
16034,
3084,
62,
940,
42691,
33411,
366,
15610,
4355,
1,
796,
705,
1828,
11,
4059,
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
] | [
2061,
318,
262,
614,
286,
2938,
11939,
618,
262,
5339,
318,
2534,
11,
4059,
30,
46506,
366,
3109,
7254,
955,
24547,
1,
16034,
3084,
62,
940,
42691,
33411,
366,
15610,
4355,
1,
796,
705,
1828,
11,
4059,
6
] |
How many Games have an Average smaller than 46,864, and a W-L-T of 2-3-0, and an Attendance smaller than 98,776, and a Season larger than 1958? | SELECT SUM("Games") FROM table_14130 WHERE "Average" < '46,864' AND "W-L-T" = '2-3-0' AND "Attendance" < '98,776' AND "Season" > '1958' | [
2437,
867,
5776,
423,
281,
13475,
4833,
621,
6337,
11,
39570,
11,
290,
257,
370,
12,
43,
12,
51,
286,
362,
12,
18,
12,
15,
11,
290,
281,
46502,
590,
4833,
621,
9661,
11,
39509,
11,
290,
257,
7369,
4025,
621,
24648,
30,
46506,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
5776,
423,
281,
13475,
4833,
621,
6337,
11,
39570,
11,
290,
257,
370,
12,
43,
12,
51,
286,
362,
12,
18,
12,
15,
11,
290,
281,
46502,
590,
4833,
621,
9661,
11,
39509,
11,
290,
257,
7369,
4025,
621,
24648,
30,
46506,
35... |
what was the number of nations that participated in the 1996 summer olympics ? | SELECT "nations" FROM table_203_541 WHERE "games" = '1996 summer olympics' | [
10919,
373,
262,
1271,
286,
7027,
326,
14888,
287,
262,
8235,
3931,
267,
6760,
873,
5633,
46506,
366,
77,
602,
1,
16034,
3084,
62,
22416,
62,
20,
3901,
33411,
366,
19966,
1,
796,
705,
22288,
3931,
267,
6760,
873,
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
] | [
10919,
373,
262,
1271,
286,
7027,
326,
14888,
287,
262,
8235,
3931,
267,
6760,
873,
5633,
46506,
366,
77,
602,
1,
16034,
3084,
62,
22416,
62,
20,
3901,
33411,
366,
19966,
1,
796,
705,
22288,
3931,
267,
6760,
873,
6
] |
What was the lowest squad with 0 goals? | SELECT MIN(squad_no) FROM table_name_81 WHERE goals < 0 | [
2061,
373,
262,
9016,
8244,
351,
657,
4661,
30,
46506,
20625,
7,
16485,
324,
62,
3919,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
4661,
1279,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
9016,
8244,
351,
657,
4661,
30,
46506,
20625,
7,
16485,
324,
62,
3919,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
4661,
1279,
657
] |
serum creatinine > 1.4 mg / dl ( male ) or > 1.3 mg / dl ( female ) | SELECT * FROM table_train_145 WHERE (gender = 'male' AND serum_creatinine > 1.4) OR (gender = 'female' AND serum_creatinine > 1.3) | [
2655,
388,
1827,
259,
500,
1875,
352,
13,
19,
10527,
1220,
288,
75,
357,
4257,
1267,
393,
1875,
352,
13,
18,
10527,
1220,
288,
75,
357,
4048,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
18781,
33411,
357,
8388,
796,
705,
22606,
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... | [
2655,
388,
1827,
259,
500,
1875,
352,
13,
19,
10527,
1220,
288,
75,
357,
4257,
1267,
393,
1875,
352,
13,
18,
10527,
1220,
288,
75,
357,
4048,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
18781,
33411,
357,
8388,
796,
705,
22606,
6... |
Count the sum of Col (m) which has an Elevation (m) of 3,011, and a Country of equatorial guinea ( bioko )? | SELECT SUM("Col (m)") FROM table_65086 WHERE "Elevation (m)" = '3,011' AND "Country" = 'equatorial guinea ( bioko )' | [
12332,
262,
2160,
286,
1623,
357,
76,
8,
543,
468,
281,
37881,
341,
357,
76,
8,
286,
513,
11,
28555,
11,
290,
257,
12946,
286,
1602,
21592,
915,
18343,
357,
3182,
16044,
1267,
30,
46506,
35683,
7203,
5216,
357,
76,
8,
4943,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12332,
262,
2160,
286,
1623,
357,
76,
8,
543,
468,
281,
37881,
341,
357,
76,
8,
286,
513,
11,
28555,
11,
290,
257,
12946,
286,
1602,
21592,
915,
18343,
357,
3182,
16044,
1267,
30,
46506,
35683,
7203,
5216,
357,
76,
8,
4943,
16034,
... |
please list the AA flights from PHILADELPHIA to DALLAS on tuesday october first | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND date_day.day_number = 22 AND date_day.month_number = 3 AND d... | [
29688,
1351,
262,
15923,
13956,
422,
9370,
4146,
2885,
3698,
11909,
3539,
284,
360,
7036,
1921,
319,
256,
3322,
19318,
2023,
717,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
29688,
1351,
262,
15923,
13956,
422,
9370,
4146,
2885,
3698,
11909,
3539,
284,
360,
7036,
1921,
319,
256,
3322,
19318,
2023,
717,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35... |
tags from the answers the user posted. | SELECT P1.Tags, P.ParentId, P.Id, P.OwnerUserId, P.Body FROM Posts AS P, Users AS U, Posts AS P1 WHERE P.Id != P.ParentId AND P1.Id = P.ParentId AND P.OwnerUserId = U.Id AND U.Id = @UserId | [
31499,
422,
262,
7429,
262,
2836,
4481,
13,
46506,
350,
16,
13,
36142,
11,
350,
13,
24546,
7390,
11,
350,
13,
7390,
11,
350,
13,
42419,
12982,
7390,
11,
350,
13,
25842,
16034,
12043,
7054,
350,
11,
18987,
7054,
471,
11,
12043,
7054,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
31499,
422,
262,
7429,
262,
2836,
4481,
13,
46506,
350,
16,
13,
36142,
11,
350,
13,
24546,
7390,
11,
350,
13,
7390,
11,
350,
13,
42419,
12982,
7390,
11,
350,
13,
25842,
16034,
12043,
7054,
350,
11,
18987,
7054,
471,
11,
12043,
7054,... |
What is the number of nationality in 1992? | SELECT COUNT(nationality) FROM table_12086015_7 WHERE year_s_ = "1992" | [
2061,
318,
262,
1271,
286,
29835,
287,
9768,
30,
46506,
327,
28270,
7,
14648,
414,
8,
16034,
3084,
62,
1065,
2919,
21,
25150,
62,
22,
33411,
614,
62,
82,
62,
796,
366,
23847,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
29835,
287,
9768,
30,
46506,
327,
28270,
7,
14648,
414,
8,
16034,
3084,
62,
1065,
2919,
21,
25150,
62,
22,
33411,
614,
62,
82,
62,
796,
366,
23847,
1
] |
Who is ranked 2? | SELECT rider FROM table_25220821_4 WHERE rank = 2 | [
8241,
318,
10307,
362,
30,
46506,
17876,
16034,
3084,
62,
1495,
17572,
23,
2481,
62,
19,
33411,
4279,
796,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
10307,
362,
30,
46506,
17876,
16034,
3084,
62,
1495,
17572,
23,
2481,
62,
19,
33411,
4279,
796,
362
] |
Create a bar chart showing meter_100 across meter 600, and could you order from low to high by the Y-axis? | SELECT meter_600, meter_100 FROM swimmer ORDER BY meter_100 | [
16447,
257,
2318,
8262,
4478,
16430,
62,
3064,
1973,
16430,
10053,
11,
290,
714,
345,
1502,
422,
1877,
284,
1029,
416,
262,
575,
12,
22704,
30,
46506,
16430,
62,
8054,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
16430,
62,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16447,
257,
2318,
8262,
4478,
16430,
62,
3064,
1973,
16430,
10053,
11,
290,
714,
345,
1502,
422,
1877,
284,
1029,
416,
262,
575,
12,
22704,
30,
46506,
16430,
62,
8054,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
16430,
62,
30... |
list all DAILY flights between BOSTON and OAKLAND using AA | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLA... | [
4868,
477,
17051,
33340,
13956,
1022,
347,
10892,
1340,
290,
440,
10206,
28182,
1262,
317,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4868,
477,
17051,
33340,
13956,
1022,
347,
10892,
1340,
290,
440,
10206,
28182,
1262,
317,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62... |
Top 300 Users in India. It will gives you Top 300 Users who belongs to India. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IND' ORDER BY Reputation DESC LIMIT 300 | [
9126,
5867,
18987,
287,
3794,
13,
632,
481,
3607,
345,
5849,
5867,
18987,
508,
14448,
284,
3794,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
5867,
18987,
287,
3794,
13,
632,
481,
3607,
345,
5849,
5867,
18987,
508,
14448,
284,
3794,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,... |
Which Against has Losses larger than 10, and Wins smaller than 4, and a Club of dunolly? | SELECT MIN(against) FROM table_name_38 WHERE losses > 10 AND wins < 4 AND club = "dunolly" | [
13828,
12914,
468,
22014,
274,
4025,
621,
838,
11,
290,
24423,
4833,
621,
604,
11,
290,
257,
6289,
286,
12574,
5098,
30,
46506,
20625,
7,
32826,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
9089,
1875,
838,
5357,
7864,
1279,
604,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
12914,
468,
22014,
274,
4025,
621,
838,
11,
290,
24423,
4833,
621,
604,
11,
290,
257,
6289,
286,
12574,
5098,
30,
46506,
20625,
7,
32826,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
9089,
1875,
838,
5357,
7864,
1279,
604,
5357,
... |
what are all the date withdrawn for koningin beatrix | SELECT date_withdrawn FROM table_11662133_3 WHERE ships_name = "Koningin Beatrix" | [
10919,
389,
477,
262,
3128,
23019,
329,
479,
12484,
259,
4405,
8609,
46506,
3128,
62,
4480,
41549,
16034,
3084,
62,
1157,
39380,
16945,
62,
18,
33411,
7937,
62,
3672,
796,
366,
42,
12484,
259,
12568,
8609,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
389,
477,
262,
3128,
23019,
329,
479,
12484,
259,
4405,
8609,
46506,
3128,
62,
4480,
41549,
16034,
3084,
62,
1157,
39380,
16945,
62,
18,
33411,
7937,
62,
3672,
796,
366,
42,
12484,
259,
12568,
8609,
1
] |
What is the total swimsuit number with gowns larger than 9.48 with interviews larger than 8.94 in florida? | SELECT COUNT("Swimsuit") FROM table_58554 WHERE "Evening Gown" > '9.48' AND "Country" = 'florida' AND "Interview" > '8.94' | [
2061,
318,
262,
2472,
9422,
6063,
1271,
351,
33323,
82,
4025,
621,
860,
13,
2780,
351,
9299,
4025,
621,
807,
13,
5824,
287,
781,
273,
3755,
30,
46506,
327,
28270,
7203,
10462,
320,
6063,
4943,
16034,
3084,
62,
3365,
44218,
33411,
366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2472,
9422,
6063,
1271,
351,
33323,
82,
4025,
621,
860,
13,
2780,
351,
9299,
4025,
621,
807,
13,
5824,
287,
781,
273,
3755,
30,
46506,
327,
28270,
7203,
10462,
320,
6063,
4943,
16034,
3084,
62,
3365,
44218,
33411,
366,... |
give me the number of patients whose days of hospital stay is greater than 0 and drug name is morphine sulfate sr? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "0" AND prescriptions.drug = "Morphine Sulfate SR" | [
26535,
502,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
657,
290,
2563,
1438,
318,
43948,
22443,
378,
19677,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
657,
290,
2563,
1438,
318,
43948,
22443,
378,
19677,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... |
Which is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14? | SELECT MIN("Points") FROM table_54172 WHERE "Make" = 'chevrolet' AND "Driver" = 'sterling marlin' AND "Car #" < '14' | [
13828,
318,
262,
9016,
2173,
1988,
326,
550,
257,
35398,
1097,
11,
3025,
4639,
373,
23647,
1526,
2815,
11,
290,
3025,
1097,
1271,
373,
1342,
621,
1478,
30,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
4051,
23628,
33411,
366,
12050... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
318,
262,
9016,
2173,
1988,
326,
550,
257,
35398,
1097,
11,
3025,
4639,
373,
23647,
1526,
2815,
11,
290,
3025,
1097,
1271,
373,
1342,
621,
1478,
30,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
4051,
23628,
33411,
366,
12050... |
What is the highest number of poles? | SELECT MAX(poles) FROM table_26794530_1 | [
2061,
318,
262,
4511,
1271,
286,
24971,
30,
46506,
25882,
7,
79,
4316,
8,
16034,
3084,
62,
2075,
3720,
2231,
1270,
62,
16
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
1271,
286,
24971,
30,
46506,
25882,
7,
79,
4316,
8,
16034,
3084,
62,
2075,
3720,
2231,
1270,
62,
16
] |
What is the year for the country of Morocco? | SELECT MAX("Year") FROM table_45832 WHERE "Country" = 'morocco' | [
2061,
318,
262,
614,
329,
262,
1499,
286,
29638,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
29334,
2624,
33411,
366,
33921,
1,
796,
705,
4491,
420,
1073,
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
] | [
2061,
318,
262,
614,
329,
262,
1499,
286,
29638,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
29334,
2624,
33411,
366,
33921,
1,
796,
705,
4491,
420,
1073,
6
] |
what were hospital admission times of patient 65401 during this year? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 65401 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
10919,
547,
4436,
13938,
1661,
286,
5827,
718,
4051,
486,
1141,
428,
614,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
718,
4051,
486,
5357,
360,
1404,
2767,
12789,
7,
324,
8481,
13,
324,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
4436,
13938,
1661,
286,
5827,
718,
4051,
486,
1141,
428,
614,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
718,
4051,
486,
5357,
360,
1404,
2767,
12789,
7,
324,
8481,
13,
324,... |
count the number of patients who have been dead after having been diagnosed with chronic sinusitis nos in the same month until 2 years ago. | SELECT COUNT(DISTINCT t2.subject_id) FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_di... | [
9127,
262,
1271,
286,
3871,
508,
423,
587,
2636,
706,
1719,
587,
14641,
351,
10726,
7813,
385,
11815,
43630,
287,
262,
976,
1227,
1566,
362,
812,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
17,
13,
32796,
62,
312,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
508,
423,
587,
2636,
706,
1719,
587,
14641,
351,
10726,
7813,
385,
11815,
43630,
287,
262,
976,
1227,
1566,
362,
812,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
17,
13,
32796,
62,
312,
8,
... |
What is the lowest overall amount of shutouts? | SELECT MIN(shutouts) FROM table_29743928_4 | [
2061,
318,
262,
9016,
4045,
2033,
286,
4423,
5269,
30,
46506,
20625,
7,
49625,
5269,
8,
16034,
3084,
62,
1959,
4524,
2670,
2078,
62,
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
] | [
2061,
318,
262,
9016,
4045,
2033,
286,
4423,
5269,
30,
46506,
20625,
7,
49625,
5269,
8,
16034,
3084,
62,
1959,
4524,
2670,
2078,
62,
19
] |
Draw a bar chart for what is the average rating star for each reviewer?, show from high to low by the bar please. | SELECT name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name ORDER BY name DESC | [
25302,
257,
2318,
8262,
329,
644,
318,
262,
2811,
7955,
3491,
329,
1123,
37823,
21747,
905,
422,
1029,
284,
1877,
416,
262,
2318,
3387,
13,
46506,
1438,
11,
35224,
7,
51,
16,
13,
30783,
8,
16034,
12028,
7054,
309,
16,
32357,
1268,
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... | [
25302,
257,
2318,
8262,
329,
644,
318,
262,
2811,
7955,
3491,
329,
1123,
37823,
21747,
905,
422,
1029,
284,
1877,
416,
262,
2318,
3387,
13,
46506,
1438,
11,
35224,
7,
51,
16,
13,
30783,
8,
16034,
12028,
7054,
309,
16,
32357,
1268,
6... |
what month were the most games played ? | SELECT "date" FROM table_203_672 GROUP BY "date" ORDER BY COUNT(*) DESC LIMIT 1 | [
10919,
1227,
547,
262,
749,
1830,
2826,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
22416,
62,
43864,
44441,
11050,
366,
4475,
1,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
1227,
547,
262,
749,
1830,
2826,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
22416,
62,
43864,
44441,
11050,
366,
4475,
1,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
Which years did the Rockets number 6 play? | SELECT years_for_rockets FROM table_name_80 WHERE no_s_ = "6" | [
13828,
812,
750,
262,
23328,
1271,
718,
711,
30,
46506,
812,
62,
1640,
62,
10823,
1039,
16034,
3084,
62,
3672,
62,
1795,
33411,
645,
62,
82,
62,
796,
366,
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
] | [
13828,
812,
750,
262,
23328,
1271,
718,
711,
30,
46506,
812,
62,
1640,
62,
10823,
1039,
16034,
3084,
62,
3672,
62,
1795,
33411,
645,
62,
82,
62,
796,
366,
21,
1
] |
calculate patient 021-43538's duration of stay of the first stay in the icu. | SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-43538') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1 | [
9948,
3129,
378,
5827,
657,
2481,
12,
40064,
2548,
338,
9478,
286,
2652,
286,
262,
717,
2652,
287,
262,
14158,
84,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
12789,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9948,
3129,
378,
5827,
657,
2481,
12,
40064,
2548,
338,
9478,
286,
2652,
286,
262,
717,
2652,
287,
262,
14158,
84,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
12789,
... |
List all the login names and family names of course author and tutors. | SELECT login_name, family_name FROM course_authors_and_tutors | [
8053,
477,
262,
17594,
3891,
290,
1641,
3891,
286,
1781,
1772,
290,
9732,
669,
13,
46506,
17594,
62,
3672,
11,
1641,
62,
3672,
16034,
1781,
62,
41617,
62,
392,
62,
83,
315,
669
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
477,
262,
17594,
3891,
290,
1641,
3891,
286,
1781,
1772,
290,
9732,
669,
13,
46506,
17594,
62,
3672,
11,
1641,
62,
3672,
16034,
1781,
62,
41617,
62,
392,
62,
83,
315,
669
] |
what is the country where the player is phil mickelson? | SELECT country FROM table_13282157_1 WHERE player = "Phil Mickelson" | [
10919,
318,
262,
1499,
810,
262,
2137,
318,
5206,
12314,
7750,
1559,
30,
46506,
1499,
16034,
3084,
62,
1485,
32568,
18458,
62,
16,
33411,
2137,
796,
366,
18673,
7631,
7750,
1559,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1499,
810,
262,
2137,
318,
5206,
12314,
7750,
1559,
30,
46506,
1499,
16034,
3084,
62,
1485,
32568,
18458,
62,
16,
33411,
2137,
796,
366,
18673,
7631,
7750,
1559,
1
] |
A bar chart about what are the total number of credits offered by each department?, list in desc by the x-axis. | SELECT DEPT_CODE, SUM(T1.CRS_CREDIT) FROM COURSE AS T1 JOIN CLASS AS T2 ON T1.CRS_CODE = T2.CRS_CODE GROUP BY T1.DEPT_CODE ORDER BY DEPT_CODE DESC | [
32,
2318,
8262,
546,
644,
389,
262,
2472,
1271,
286,
10824,
4438,
416,
1123,
5011,
21747,
1351,
287,
1715,
416,
262,
2124,
12,
22704,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
35683,
7,
51,
16,
13,
34,
6998,
62,
9419,
24706,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
2318,
8262,
546,
644,
389,
262,
2472,
1271,
286,
10824,
4438,
416,
1123,
5011,
21747,
1351,
287,
1715,
416,
262,
2124,
12,
22704,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
35683,
7,
51,
16,
13,
34,
6998,
62,
9419,
24706,
8,
1... |
What is the highest attendance for the opponents Club Brugge in Venue A? | SELECT MAX("Attendance") FROM table_59832 WHERE "Opponent" = 'club brugge' AND "Venue" = 'a' | [
2061,
318,
262,
4511,
14858,
329,
262,
7691,
6289,
347,
2143,
469,
287,
9932,
518,
317,
30,
46506,
25882,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
41292,
2624,
33411,
366,
27524,
3471,
1,
796,
705,
18664,
275,
2143,
469,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
14858,
329,
262,
7691,
6289,
347,
2143,
469,
287,
9932,
518,
317,
30,
46506,
25882,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
41292,
2624,
33411,
366,
27524,
3471,
1,
796,
705,
18664,
275,
2143,
469,
6,
5357,
... |
What position did Joe Maddock play? | SELECT position FROM table_14342367_11 WHERE player = "Joe Maddock" | [
2061,
2292,
750,
5689,
21457,
735,
711,
30,
46506,
2292,
16034,
3084,
62,
1415,
2682,
1954,
3134,
62,
1157,
33411,
2137,
796,
366,
19585,
21457,
735,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2292,
750,
5689,
21457,
735,
711,
30,
46506,
2292,
16034,
3084,
62,
1415,
2682,
1954,
3134,
62,
1157,
33411,
2137,
796,
366,
19585,
21457,
735,
1
] |
Which team scored l 87 115 (ot)? | SELECT "Team" FROM table_46718 WHERE "Score" = 'l 87–115 (ot)' | [
13828,
1074,
7781,
300,
10083,
12279,
357,
313,
19427,
46506,
366,
15592,
1,
16034,
3084,
62,
24669,
1507,
33411,
366,
26595,
1,
796,
705,
75,
10083,
1906,
15363,
357,
313,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1074,
7781,
300,
10083,
12279,
357,
313,
19427,
46506,
366,
15592,
1,
16034,
3084,
62,
24669,
1507,
33411,
366,
26595,
1,
796,
705,
75,
10083,
1906,
15363,
357,
313,
33047
] |
Which Country has a Label of Toshiba-emi and a Catalog of vjcp-68403? | SELECT country FROM table_name_95 WHERE label = "toshiba-emi" AND catalog = "vjcp-68403" | [
13828,
12946,
468,
257,
36052,
286,
40195,
49224,
12,
43967,
290,
257,
44515,
286,
410,
73,
13155,
12,
3104,
31552,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
3865,
33411,
6167,
796,
366,
83,
418,
49224,
12,
43967,
1,
5357,
18388,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
12946,
468,
257,
36052,
286,
40195,
49224,
12,
43967,
290,
257,
44515,
286,
410,
73,
13155,
12,
3104,
31552,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
3865,
33411,
6167,
796,
366,
83,
418,
49224,
12,
43967,
1,
5357,
18388,
79... |
until 2104, when did patient 030-72509 last visit the hospital? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '030-72509' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
28446,
362,
13464,
11,
618,
750,
5827,
657,
1270,
12,
4761,
29022,
938,
3187,
262,
4436,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
39101,
12,
4761,
29022,
6,
5357,
19269,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
28446,
362,
13464,
11,
618,
750,
5827,
657,
1270,
12,
4761,
29022,
938,
3187,
262,
4436,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
39101,
12,
4761,
29022,
6,
5357,
19269,... |
What is the 07 points minimum if the 08 points is 50? | SELECT MIN("07 Pts") FROM table_24707 WHERE "08 Pts" = '50' | [
2061,
318,
262,
8753,
2173,
5288,
611,
262,
8487,
2173,
318,
2026,
30,
46506,
20625,
7203,
2998,
350,
912,
4943,
16034,
3084,
62,
1731,
24038,
33411,
366,
2919,
350,
912,
1,
796,
705,
1120,
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
] | [
2061,
318,
262,
8753,
2173,
5288,
611,
262,
8487,
2173,
318,
2026,
30,
46506,
20625,
7203,
2998,
350,
912,
4943,
16034,
3084,
62,
1731,
24038,
33411,
366,
2919,
350,
912,
1,
796,
705,
1120,
6
] |
what is the most cited paper of ohad shamir ? | SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM author, cite, paper, writes WHERE author.authorname = 'ohad shamir' AND paper.paperid = cite.citedpaperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY cite.citedpaperid ORDER BY COUNT(cite.citedpaperid) DESC | [
10919,
318,
262,
749,
9181,
3348,
286,
11752,
324,
23565,
343,
5633,
46506,
360,
8808,
1268,
4177,
21729,
13,
66,
863,
20189,
312,
11,
327,
28270,
7,
66,
578,
13,
66,
863,
20189,
312,
8,
16034,
1772,
11,
21729,
11,
3348,
11,
6797,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
749,
9181,
3348,
286,
11752,
324,
23565,
343,
5633,
46506,
360,
8808,
1268,
4177,
21729,
13,
66,
863,
20189,
312,
11,
327,
28270,
7,
66,
578,
13,
66,
863,
20189,
312,
8,
16034,
1772,
11,
21729,
11,
3348,
11,
6797,
... |
A bar chart for what are the number of the completion dates of all the tests that have result 'Fail'?, and list Y in ascending order. | SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" ORDER BY COUNT(date_of_completion) | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
11939,
9667,
286,
477,
262,
5254,
326,
423,
1255,
705,
39044,
6,
21747,
290,
1351,
575,
287,
41988,
1502,
13,
46506,
3128,
62,
1659,
62,
785,
24547,
11,
327,
28270,
7,
4475,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
11939,
9667,
286,
477,
262,
5254,
326,
423,
1255,
705,
39044,
6,
21747,
290,
1351,
575,
287,
41988,
1502,
13,
46506,
3128,
62,
1659,
62,
785,
24547,
11,
327,
28270,
7,
4475,
62,
... |
what were the three most frequent drugs prescribed in the same month to the male patients aged 40s after they had been diagnosed with late ef-hemplga side nos until 4 years ago. | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ... | [
10919,
547,
262,
1115,
749,
10792,
5010,
14798,
287,
262,
976,
1227,
284,
262,
4257,
3871,
9722,
2319,
82,
706,
484,
550,
587,
14641,
351,
2739,
304,
69,
12,
4411,
489,
4908,
1735,
43630,
1566,
604,
812,
2084,
13,
46506,
256,
18,
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... | [
10919,
547,
262,
1115,
749,
10792,
5010,
14798,
287,
262,
976,
1227,
284,
262,
4257,
3871,
9722,
2319,
82,
706,
484,
550,
587,
14641,
351,
2739,
304,
69,
12,
4411,
489,
4908,
1735,
43630,
1566,
604,
812,
2084,
13,
46506,
256,
18,
13... |
What is the Round with a Prize of money that is 120,000? | SELECT "Round" FROM table_42443 WHERE "Prize money" = '£120,000' | [
2061,
318,
262,
10485,
351,
257,
15895,
286,
1637,
326,
318,
7982,
11,
830,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
40090,
3559,
33411,
366,
34487,
2736,
1637,
1,
796,
705,
14988,
10232,
11,
830,
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
] | [
2061,
318,
262,
10485,
351,
257,
15895,
286,
1637,
326,
318,
7982,
11,
830,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
40090,
3559,
33411,
366,
34487,
2736,
1637,
1,
796,
705,
14988,
10232,
11,
830,
6
] |
What is the length when the expected start of revenue is more than 2017? | SELECT length FROM table_name_62 WHERE expected_start_of_revenue_services > 2017 | [
2061,
318,
262,
4129,
618,
262,
2938,
923,
286,
6426,
318,
517,
621,
2177,
30,
46506,
4129,
16034,
3084,
62,
3672,
62,
5237,
33411,
2938,
62,
9688,
62,
1659,
62,
260,
4080,
62,
30416,
1875,
2177
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4129,
618,
262,
2938,
923,
286,
6426,
318,
517,
621,
2177,
30,
46506,
4129,
16034,
3084,
62,
3672,
62,
5237,
33411,
2938,
62,
9688,
62,
1659,
62,
260,
4080,
62,
30416,
1875,
2177
] |
how many titles are on the album ? | SELECT COUNT("title") FROM table_203_701 | [
4919,
867,
8714,
389,
319,
262,
5062,
5633,
46506,
327,
28270,
7203,
7839,
4943,
16034,
3084,
62,
22416,
62,
41583
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
8714,
389,
319,
262,
5062,
5633,
46506,
327,
28270,
7203,
7839,
4943,
16034,
3084,
62,
22416,
62,
41583
] |
What gender is allowed to attend the school that has a decile of 6 and a roll that is less than 179? | SELECT "Gender" FROM table_14942 WHERE "Decile" = '6' AND "Roll" < '179' | [
2061,
5279,
318,
3142,
284,
5262,
262,
1524,
326,
468,
257,
875,
576,
286,
718,
290,
257,
4836,
326,
318,
1342,
621,
27228,
30,
46506,
366,
41394,
1,
16034,
3084,
62,
19442,
3682,
33411,
366,
10707,
576,
1,
796,
705,
21,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
5279,
318,
3142,
284,
5262,
262,
1524,
326,
468,
257,
875,
576,
286,
718,
290,
257,
4836,
326,
318,
1342,
621,
27228,
30,
46506,
366,
41394,
1,
16034,
3084,
62,
19442,
3682,
33411,
366,
10707,
576,
1,
796,
705,
21,
6,
5357,
... |
what is the number of patients whose drug route is tp and admission year is before 2167? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2167" AND prescriptions.route = "TP" | [
10919,
318,
262,
1271,
286,
3871,
3025,
2563,
6339,
318,
256,
79,
290,
13938,
614,
318,
878,
362,
21940,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
2563,
6339,
318,
256,
79,
290,
13938,
614,
318,
878,
362,
21940,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177... |
What date was Leeds United the away team? | SELECT date FROM table_name_36 WHERE away_team = "leeds united" | [
2061,
3128,
373,
29293,
1578,
262,
1497,
1074,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2623,
33411,
1497,
62,
15097,
796,
366,
293,
5379,
16503,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3128,
373,
29293,
1578,
262,
1497,
1074,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2623,
33411,
1497,
62,
15097,
796,
366,
293,
5379,
16503,
1
] |
What state is the city of Ruston in? | SELECT state FROM table_name_13 WHERE city = "ruston" | [
2061,
1181,
318,
262,
1748,
286,
17103,
261,
287,
30,
46506,
1181,
16034,
3084,
62,
3672,
62,
1485,
33411,
1748,
796,
366,
11469,
261,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1181,
318,
262,
1748,
286,
17103,
261,
287,
30,
46506,
1181,
16034,
3084,
62,
3672,
62,
1485,
33411,
1748,
796,
366,
11469,
261,
1
] |
Who placed t7 with a score of 70-71=141? | SELECT "Player" FROM table_47786 WHERE "Place" = 't7' AND "Score" = '70-71=141' | [
8241,
4624,
256,
22,
351,
257,
4776,
286,
4317,
12,
4869,
28,
23756,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2857,
46302,
33411,
366,
27271,
1,
796,
705,
83,
22,
6,
5357,
366,
26595,
1,
796,
705,
2154,
12,
4869,
28,
23756,
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
] | [
8241,
4624,
256,
22,
351,
257,
4776,
286,
4317,
12,
4869,
28,
23756,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2857,
46302,
33411,
366,
27271,
1,
796,
705,
83,
22,
6,
5357,
366,
26595,
1,
796,
705,
2154,
12,
4869,
28,
23756,
6
] |
Who is Mike Wallace's primary Sponsor(s)? | SELECT primary_sponsor_s_ FROM table_name_45 WHERE driver_s_ = "mike wallace" | [
8241,
318,
4995,
17161,
338,
4165,
23389,
7,
82,
19427,
46506,
4165,
62,
20587,
273,
62,
82,
62,
16034,
3084,
62,
3672,
62,
2231,
33411,
4639,
62,
82,
62,
796,
366,
76,
522,
3355,
558,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
4995,
17161,
338,
4165,
23389,
7,
82,
19427,
46506,
4165,
62,
20587,
273,
62,
82,
62,
16034,
3084,
62,
3672,
62,
2231,
33411,
4639,
62,
82,
62,
796,
366,
76,
522,
3355,
558,
1
] |
all flights from PITTSBURGH to PHILADELPHIA | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHI... | [
439,
13956,
422,
49040,
4694,
38926,
17511,
284,
9370,
4146,
2885,
3698,
11909,
40,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
439,
13956,
422,
49040,
4694,
38926,
17511,
284,
9370,
4146,
2885,
3698,
11909,
40,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271... |
let me know the number of patients with diagnoses icd9 code 29634 who were admitted in hospital before 2124. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2124" AND diagnoses.icd9_code = "29634" | [
1616,
502,
760,
262,
1271,
286,
3871,
351,
40567,
14158,
67,
24,
2438,
41922,
2682,
508,
547,
6848,
287,
4436,
878,
362,
17464,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1616,
502,
760,
262,
1271,
286,
3871,
351,
40567,
14158,
67,
24,
2438,
41922,
2682,
508,
547,
6848,
287,
4436,
878,
362,
17464,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... |
What is the % identity to C7orf38 of the animal whose common name is rat? | SELECT MIN(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE common_name = "Rat" | [
2061,
318,
262,
4064,
5369,
284,
327,
22,
24263,
2548,
286,
262,
5044,
3025,
2219,
1438,
318,
4227,
30,
46506,
20625,
28264,
25067,
496,
62,
738,
414,
62,
1462,
62,
66,
22,
24263,
2548,
8,
16034,
3084,
62,
2075,
3865,
2154,
5066,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4064,
5369,
284,
327,
22,
24263,
2548,
286,
262,
5044,
3025,
2219,
1438,
318,
4227,
30,
46506,
20625,
28264,
25067,
496,
62,
738,
414,
62,
1462,
62,
66,
22,
24263,
2548,
8,
16034,
3084,
62,
2075,
3865,
2154,
5066,
62... |
provide the number of patients born before 2024 diagnosed with other chronic nonalcoholic liver disease. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2024" AND diagnoses.short_title = "Chronic liver dis NEC" | [
15234,
485,
262,
1271,
286,
3871,
4642,
878,
48609,
14641,
351,
584,
10726,
1729,
42142,
291,
14383,
4369,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
4642,
878,
48609,
14641,
351,
584,
10726,
1729,
42142,
291,
14383,
4369,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177... |
Which Free polite has a Genitive 1 of *=ku? | SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku | [
13828,
3232,
23507,
468,
257,
5215,
1800,
352,
286,
1635,
28,
23063,
30,
46506,
1479,
7054,
23507,
16034,
3084,
62,
3672,
62,
1485,
33411,
2429,
1800,
62,
16,
796,
1635,
796,
479,
84
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3232,
23507,
468,
257,
5215,
1800,
352,
286,
1635,
28,
23063,
30,
46506,
1479,
7054,
23507,
16034,
3084,
62,
3672,
62,
1485,
33411,
2429,
1800,
62,
16,
796,
1635,
796,
479,
84
] |
What is the title of the story published on October 19, 2011? | SELECT story FROM table_name_42 WHERE date = "october 19, 2011" | [
2061,
318,
262,
3670,
286,
262,
1621,
3199,
319,
3267,
678,
11,
2813,
30,
46506,
1621,
16034,
3084,
62,
3672,
62,
3682,
33411,
3128,
796,
366,
38441,
2023,
678,
11,
2813,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3670,
286,
262,
1621,
3199,
319,
3267,
678,
11,
2813,
30,
46506,
1621,
16034,
3084,
62,
3672,
62,
3682,
33411,
3128,
796,
366,
38441,
2023,
678,
11,
2813,
1
] |
What is the total year of the winner who plays the halfback position with a % of points possible of 80.64%? | SELECT COUNT("Year") FROM table_42496 WHERE "Position" = 'halfback' AND "% of Points Possible" = '80.64%' | [
2061,
318,
262,
2472,
614,
286,
262,
8464,
508,
5341,
262,
2063,
1891,
2292,
351,
257,
4064,
286,
2173,
1744,
286,
4019,
13,
2414,
4,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
40090,
4846,
33411,
366,
26545,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
614,
286,
262,
8464,
508,
5341,
262,
2063,
1891,
2292,
351,
257,
4064,
286,
2173,
1744,
286,
4019,
13,
2414,
4,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
40090,
4846,
33411,
366,
26545,
1,
796,
... |
how many hours have elapsed since patient 007-15837 last received an intake of intake (ml)-gastrostomy/enterostomy gastrostomy 20 fr. luq on the current icu visit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid ... | [
4919,
867,
2250,
423,
42118,
1201,
5827,
3571,
22,
12,
21273,
2718,
938,
2722,
281,
10337,
286,
10337,
357,
4029,
13219,
70,
459,
23341,
9145,
14,
9255,
455,
9145,
21956,
23341,
9145,
1160,
1216,
13,
300,
84,
80,
319,
262,
1459,
14158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
2250,
423,
42118,
1201,
5827,
3571,
22,
12,
21273,
2718,
938,
2722,
281,
10337,
286,
10337,
357,
4029,
13219,
70,
459,
23341,
9145,
14,
9255,
455,
9145,
21956,
23341,
9145,
1160,
1216,
13,
300,
84,
80,
319,
262,
1459,
14158... |
how big is the difference in patient 006-254182's weight measured at 2104-09-10 20:41:00 compared to the value measured at 2104-09-08 21:57:00? | SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-254182') AND NOT patient.admissionweight IS NULL AND patient.unitadmittime = '2104-09-10 20:41:00') - (SELECT patient.admissionweight FROM ... | [
4919,
1263,
318,
262,
3580,
287,
5827,
3571,
21,
12,
24970,
24294,
338,
3463,
8630,
379,
362,
13464,
12,
2931,
12,
940,
1160,
25,
3901,
25,
405,
3688,
284,
262,
1988,
8630,
379,
362,
13464,
12,
2931,
12,
2919,
2310,
25,
3553,
25,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
1263,
318,
262,
3580,
287,
5827,
3571,
21,
12,
24970,
24294,
338,
3463,
8630,
379,
362,
13464,
12,
2931,
12,
940,
1160,
25,
3901,
25,
405,
3688,
284,
262,
1988,
8630,
379,
362,
13464,
12,
2931,
12,
2919,
2310,
25,
3553,
25,
... |
What was the USA airdate for 'Jenny From the Block'? | SELECT "U.S. airdate" FROM table_24041 WHERE "Title" = 'Jenny from the Block' | [
2061,
373,
262,
4916,
257,
1447,
378,
329,
705,
41,
11870,
3574,
262,
9726,
30960,
46506,
366,
52,
13,
50,
13,
257,
1447,
378,
1,
16034,
3084,
62,
1731,
50049,
33411,
366,
19160,
1,
796,
705,
41,
11870,
422,
262,
9726,
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
] | [
2061,
373,
262,
4916,
257,
1447,
378,
329,
705,
41,
11870,
3574,
262,
9726,
30960,
46506,
366,
52,
13,
50,
13,
257,
1447,
378,
1,
16034,
3084,
62,
1731,
50049,
33411,
366,
19160,
1,
796,
705,
41,
11870,
422,
262,
9726,
6
] |
does any organism have been detected in the first bronchial lavage microbiology test of patient 031-19622 until 2 years ago? | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-19622')) AND microlab.culturesite = 'bronchial lavage' AND DATETIME(microl... | [
22437,
597,
26433,
423,
587,
12326,
287,
262,
717,
18443,
354,
498,
21606,
496,
24559,
1435,
1332,
286,
5827,
657,
3132,
12,
25272,
1828,
1566,
362,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
4580,
23912,
33411,
4580,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
22437,
597,
26433,
423,
587,
12326,
287,
262,
717,
18443,
354,
498,
21606,
496,
24559,
1435,
1332,
286,
5827,
657,
3132,
12,
25272,
1828,
1566,
362,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
4580,
23912,
33411,
4580,... |
What was the Royal House for the state of Song? | SELECT "Royal house" FROM table_46863 WHERE "State" = 'song' | [
2061,
373,
262,
8111,
2097,
329,
262,
1181,
286,
10940,
30,
46506,
366,
41861,
2156,
1,
16034,
3084,
62,
38472,
5066,
33411,
366,
9012,
1,
796,
705,
34050,
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
] | [
2061,
373,
262,
8111,
2097,
329,
262,
1181,
286,
10940,
30,
46506,
366,
41861,
2156,
1,
16034,
3084,
62,
38472,
5066,
33411,
366,
9012,
1,
796,
705,
34050,
6
] |
What is the Stage, when the Rally leader is C. Atkinson? | SELECT "Stage" FROM table_66931 WHERE "Rally leader" = 'c. atkinson' | [
2061,
318,
262,
15371,
11,
618,
262,
27752,
3554,
318,
327,
13,
49042,
30,
46506,
366,
29391,
1,
16034,
3084,
62,
36657,
3132,
33411,
366,
49,
453,
3554,
1,
796,
705,
66,
13,
379,
26030,
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
] | [
2061,
318,
262,
15371,
11,
618,
262,
27752,
3554,
318,
327,
13,
49042,
30,
46506,
366,
29391,
1,
16034,
3084,
62,
36657,
3132,
33411,
366,
49,
453,
3554,
1,
796,
705,
66,
13,
379,
26030,
6
] |
count the number of patients whose primary disease is ventricular tachycardia and age is less than 70? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "VENTRICULAR TACHYCARDIA" AND demographic.age < "70" | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7435,
41001,
256,
35586,
9517,
544,
290,
2479,
318,
1342,
621,
4317,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
4735... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7435,
41001,
256,
35586,
9517,
544,
290,
2479,
318,
1342,
621,
4317,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
4735... |
What is the to par of player peter senior? | SELECT to_par FROM table_name_91 WHERE player = "peter senior" | [
2061,
318,
262,
284,
1582,
286,
2137,
279,
2357,
4664,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
6420,
33411,
2137,
796,
366,
79,
2357,
4664,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
284,
1582,
286,
2137,
279,
2357,
4664,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
6420,
33411,
2137,
796,
366,
79,
2357,
4664,
1
] |
What is the Total of the Player with a Year(s) won of 1982? | SELECT MIN("Total") FROM table_77096 WHERE "Year(s) won" = '1982' | [
2061,
318,
262,
7472,
286,
262,
7853,
351,
257,
6280,
7,
82,
8,
1839,
286,
14489,
30,
46506,
20625,
7203,
14957,
4943,
16034,
3084,
62,
41820,
4846,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
30763,
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
] | [
2061,
318,
262,
7472,
286,
262,
7853,
351,
257,
6280,
7,
82,
8,
1839,
286,
14489,
30,
46506,
20625,
7203,
14957,
4943,
16034,
3084,
62,
41820,
4846,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
30763,
6
] |
Which Parent has height smaller than 756 and a Prom of 39? | SELECT "Parent" FROM table_78230 WHERE "Height (m)" < '756' AND "Prom. (m)" = '39' | [
13828,
16774,
468,
6001,
4833,
621,
767,
3980,
290,
257,
10335,
286,
5014,
30,
46506,
366,
24546,
1,
16034,
3084,
62,
3695,
19214,
33411,
366,
23106,
357,
76,
16725,
1279,
705,
38219,
6,
5357,
366,
24129,
13,
357,
76,
16725,
796,
705,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
16774,
468,
6001,
4833,
621,
767,
3980,
290,
257,
10335,
286,
5014,
30,
46506,
366,
24546,
1,
16034,
3084,
62,
3695,
19214,
33411,
366,
23106,
357,
76,
16725,
1279,
705,
38219,
6,
5357,
366,
24129,
13,
357,
76,
16725,
796,
705,... |
Where was the game held when Fitzroy was the away team? | SELECT venue FROM table_name_24 WHERE away_team = "fitzroy" | [
8496,
373,
262,
983,
2714,
618,
16703,
3287,
373,
262,
1497,
1074,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1731,
33411,
1497,
62,
15097,
796,
366,
69,
4224,
3287,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
983,
2714,
618,
16703,
3287,
373,
262,
1497,
1074,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1731,
33411,
1497,
62,
15097,
796,
366,
69,
4224,
3287,
1
] |
Which championship was the 100m backstroke performed? | SELECT meet FROM table_name_22 WHERE event = "100m backstroke" | [
13828,
12184,
373,
262,
1802,
76,
736,
30757,
6157,
30,
46506,
1826,
16034,
3084,
62,
3672,
62,
1828,
33411,
1785,
796,
366,
3064,
76,
736,
30757,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
12184,
373,
262,
1802,
76,
736,
30757,
6157,
30,
46506,
1826,
16034,
3084,
62,
3672,
62,
1828,
33411,
1785,
796,
366,
3064,
76,
736,
30757,
1
] |
the town with the largest population desnsity | SELECT "township" FROM table_203_459 ORDER BY "population\ndensity\n/km2 (/sq mi)" DESC LIMIT 1 | [
1169,
3240,
351,
262,
4387,
3265,
748,
5907,
414,
46506,
366,
12735,
6720,
1,
16034,
3084,
62,
22416,
62,
33459,
38678,
11050,
366,
39748,
59,
358,
6377,
59,
77,
14,
13276,
17,
50247,
31166,
21504,
16725,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1169,
3240,
351,
262,
4387,
3265,
748,
5907,
414,
46506,
366,
12735,
6720,
1,
16034,
3084,
62,
22416,
62,
33459,
38678,
11050,
366,
39748,
59,
358,
6377,
59,
77,
14,
13276,
17,
50247,
31166,
21504,
16725,
22196,
34,
27564,
2043,
352
] |
What draw has a lost less than 6 with 28 as the points? | SELECT "Draw" FROM table_41174 WHERE "Lost" < '6' AND "Points" = '28' | [
2061,
3197,
468,
257,
2626,
1342,
621,
718,
351,
2579,
355,
262,
2173,
30,
46506,
366,
25302,
1,
16034,
3084,
62,
42224,
4524,
33411,
366,
31042,
1,
1279,
705,
21,
6,
5357,
366,
40710,
1,
796,
705,
2078,
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
] | [
2061,
3197,
468,
257,
2626,
1342,
621,
718,
351,
2579,
355,
262,
2173,
30,
46506,
366,
25302,
1,
16034,
3084,
62,
42224,
4524,
33411,
366,
31042,
1,
1279,
705,
21,
6,
5357,
366,
40710,
1,
796,
705,
2078,
6
] |
What are the names and locations of all tracks? | SELECT name, location FROM track | [
2061,
389,
262,
3891,
290,
7064,
286,
477,
8339,
30,
46506,
1438,
11,
4067,
16034,
2610
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
290,
7064,
286,
477,
8339,
30,
46506,
1438,
11,
4067,
16034,
2610
] |
What was the home team score when the away team scored 6.13 (49)? | SELECT "Home team score" FROM table_51203 WHERE "Away team score" = '6.13 (49)' | [
2061,
373,
262,
1363,
1074,
4776,
618,
262,
1497,
1074,
7781,
718,
13,
1485,
357,
2920,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
25836,
3070,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
21,
13,
1485,
357,
2920,
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
] | [
2061,
373,
262,
1363,
1074,
4776,
618,
262,
1497,
1074,
7781,
718,
13,
1485,
357,
2920,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
25836,
3070,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
21,
13,
1485,
357,
2920,
3... |
what is the number of countries in each team ? | SELECT COUNT("team 1") FROM table_203_526 | [
10919,
318,
262,
1271,
286,
2678,
287,
1123,
1074,
5633,
46506,
327,
28270,
7203,
15097,
352,
4943,
16034,
3084,
62,
22416,
62,
48531
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
2678,
287,
1123,
1074,
5633,
46506,
327,
28270,
7203,
15097,
352,
4943,
16034,
3084,
62,
22416,
62,
48531
] |
mention the time of admission and disgnosis short title of the patient robert clayton? | SELECT demographic.admittime, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Robert Clayton" | [
434,
295,
262,
640,
286,
13938,
290,
595,
4593,
5958,
1790,
3670,
286,
262,
5827,
686,
4835,
21558,
1122,
30,
46506,
16728,
13,
324,
20124,
524,
11,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
434,
295,
262,
640,
286,
13938,
290,
595,
4593,
5958,
1790,
3670,
286,
262,
5827,
686,
4835,
21558,
1122,
30,
46506,
16728,
13,
324,
20124,
524,
11,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,... |
How many heats does Julia Wilkinson have? | SELECT COUNT(heat) FROM table_name_88 WHERE name = "julia wilkinson" | [
2437,
867,
37876,
857,
22300,
46463,
423,
30,
46506,
327,
28270,
7,
25080,
8,
16034,
3084,
62,
3672,
62,
3459,
33411,
1438,
796,
366,
73,
43640,
39716,
26030,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
37876,
857,
22300,
46463,
423,
30,
46506,
327,
28270,
7,
25080,
8,
16034,
3084,
62,
3672,
62,
3459,
33411,
1438,
796,
366,
73,
43640,
39716,
26030,
1
] |
Number of Posts closed as duplicates. | WITH stub_list AS (SELECT p.Id, p.Score, pl.RelatedPostId FROM Posts AS p JOIN PostLinks AS pl ON pl.PostId = p.Id WHERE p.PostTypeId = 1 AND EXISTS(SELECT * FROM PostHistory AS ph WHERE ph.PostId = p.Id AND ph.PostHistoryTypeId IN (10)) AND pl.LinkTypeId = 3) SELECT COUNT(s.Id) AS "closed as duplicate" FROM stub_list ... | [
15057,
286,
12043,
4838,
355,
14184,
16856,
13,
54,
10554,
17071,
62,
4868,
7054,
357,
46506,
279,
13,
7390,
11,
279,
13,
26595,
11,
458,
13,
9819,
6307,
7390,
16034,
12043,
7054,
279,
32357,
1268,
2947,
31815,
7054,
458,
6177,
458,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15057,
286,
12043,
4838,
355,
14184,
16856,
13,
54,
10554,
17071,
62,
4868,
7054,
357,
46506,
279,
13,
7390,
11,
279,
13,
26595,
11,
458,
13,
9819,
6307,
7390,
16034,
12043,
7054,
279,
32357,
1268,
2947,
31815,
7054,
458,
6177,
458,
1... |
What brand of vehicle won a race driven by Tazio Nuvolari? | SELECT winning_constructor FROM table_name_81 WHERE winning_drivers = "tazio nuvolari" | [
2061,
4508,
286,
4038,
1839,
257,
3234,
7986,
416,
309,
1031,
952,
21733,
10396,
2743,
30,
46506,
5442,
62,
41571,
273,
16034,
3084,
62,
3672,
62,
6659,
33411,
5442,
62,
36702,
796,
366,
83,
1031,
952,
14364,
10396,
2743,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4508,
286,
4038,
1839,
257,
3234,
7986,
416,
309,
1031,
952,
21733,
10396,
2743,
30,
46506,
5442,
62,
41571,
273,
16034,
3084,
62,
3672,
62,
6659,
33411,
5442,
62,
36702,
796,
366,
83,
1031,
952,
14364,
10396,
2743,
1
] |
who was coach before tilden campbell ? | SELECT "coach" FROM table_203_577 WHERE id = (SELECT id FROM table_203_577 WHERE "coach" = 'tilden campbell') - 1 | [
8727,
373,
3985,
878,
256,
688,
268,
1413,
7923,
5633,
46506,
366,
1073,
620,
1,
16034,
3084,
62,
22416,
62,
49447,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
49447,
33411,
366,
1073,
620,
1,
796,
705,
83,
688,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
373,
3985,
878,
256,
688,
268,
1413,
7923,
5633,
46506,
366,
1073,
620,
1,
16034,
3084,
62,
22416,
62,
49447,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
49447,
33411,
366,
1073,
620,
1,
796,
705,
83,
688,
... |
What is the fewest amount of laps when the grid was larger than 1 and 42:31.153? | SELECT MIN("Laps") FROM table_49461 WHERE "Time" = '42:31.153' AND "Grid" > '1' | [
2061,
318,
262,
1178,
395,
2033,
286,
24590,
618,
262,
10706,
373,
4025,
621,
352,
290,
5433,
25,
3132,
13,
21395,
30,
46506,
20625,
7203,
43,
1686,
4943,
16034,
3084,
62,
2920,
40652,
33411,
366,
7575,
1,
796,
705,
3682,
25,
3132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1178,
395,
2033,
286,
24590,
618,
262,
10706,
373,
4025,
621,
352,
290,
5433,
25,
3132,
13,
21395,
30,
46506,
20625,
7203,
43,
1686,
4943,
16034,
3084,
62,
2920,
40652,
33411,
366,
7575,
1,
796,
705,
3682,
25,
3132,
... |
What is the Place of the Player with Money greater than 300 and a Score of 71-69-70-70=280? | SELECT place FROM table_name_1 WHERE money___$__ > 300 AND score = 71 - 69 - 70 - 70 = 280 | [
2061,
318,
262,
8474,
286,
262,
7853,
351,
12911,
3744,
621,
5867,
290,
257,
15178,
286,
9166,
12,
3388,
12,
2154,
12,
2154,
28,
21033,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
16,
33411,
1637,
17569,
3,
834,
1875,
5867,
5357,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
8474,
286,
262,
7853,
351,
12911,
3744,
621,
5867,
290,
257,
15178,
286,
9166,
12,
3388,
12,
2154,
12,
2154,
28,
21033,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
16,
33411,
1637,
17569,
3,
834,
1875,
5867,
5357,
47... |
When was successor George E. Harris (R) seated? | SELECT date_successor_seated FROM table_2417345_4 WHERE successor = "George E. Harris (R)" | [
2215,
373,
17270,
4502,
412,
13,
10026,
357,
49,
8,
21639,
30,
46506,
3128,
62,
13138,
273,
62,
325,
515,
16034,
3084,
62,
1731,
25399,
2231,
62,
19,
33411,
17270,
796,
366,
20191,
412,
13,
10026,
357,
49,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
17270,
4502,
412,
13,
10026,
357,
49,
8,
21639,
30,
46506,
3128,
62,
13138,
273,
62,
325,
515,
16034,
3084,
62,
1731,
25399,
2231,
62,
19,
33411,
17270,
796,
366,
20191,
412,
13,
10026,
357,
49,
16725
] |
Which Fictional narrator has a Published as serial of february july 1912, all-story? | SELECT fictional_narrator FROM table_name_63 WHERE published_as_serial = "february–july 1912, all-story" | [
13828,
376,
47273,
32339,
468,
257,
26372,
355,
11389,
286,
730,
65,
3728,
474,
2062,
34463,
11,
477,
12,
13571,
30,
46506,
19812,
62,
77,
3258,
1352,
16034,
3084,
62,
3672,
62,
5066,
33411,
3199,
62,
292,
62,
46911,
796,
366,
69,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
376,
47273,
32339,
468,
257,
26372,
355,
11389,
286,
730,
65,
3728,
474,
2062,
34463,
11,
477,
12,
13571,
30,
46506,
19812,
62,
77,
3258,
1352,
16034,
3084,
62,
3672,
62,
5066,
33411,
3199,
62,
292,
62,
46911,
796,
366,
69,
1... |
What is the NBA draft result of the player from Washington, DC? | SELECT "NBA Draft" FROM table_54586 WHERE "Hometown" = 'washington, dc' | [
2061,
318,
262,
7403,
4538,
1255,
286,
262,
2137,
422,
2669,
11,
6257,
30,
46506,
366,
32470,
13650,
1,
16034,
3084,
62,
45326,
4521,
33411,
366,
39,
19191,
1,
796,
705,
86,
2542,
11,
30736,
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
] | [
2061,
318,
262,
7403,
4538,
1255,
286,
262,
2137,
422,
2669,
11,
6257,
30,
46506,
366,
32470,
13650,
1,
16034,
3084,
62,
45326,
4521,
33411,
366,
39,
19191,
1,
796,
705,
86,
2542,
11,
30736,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.