instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
how many patients have received cardiology consultation until 2103 after the first analgesics - non-narcotic analgesic procedure during the same hospital visit? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'analgesics - non-narcotic analgesic' AND STRFTIME('%y', treatment.treatme... | [
4919,
867,
3871,
423,
2722,
2657,
12371,
18103,
1566,
362,
15197,
706,
262,
717,
48895,
873,
532,
1729,
12,
77,
5605,
6210,
48895,
291,
8771,
1141,
262,
976,
4436,
3187,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
423,
2722,
2657,
12371,
18103,
1566,
362,
15197,
706,
262,
717,
48895,
873,
532,
1729,
12,
77,
5605,
6210,
48895,
291,
8771,
1141,
262,
976,
4436,
3187,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
4... |
How many episodes aired on October 17, 2007? | SELECT COUNT(episode) FROM table_24910733_2 WHERE air_date = "October 17, 2007" | [
2437,
867,
8640,
18530,
319,
3267,
1596,
11,
4343,
30,
46506,
327,
28270,
7,
38668,
8,
16034,
3084,
62,
21626,
15982,
2091,
62,
17,
33411,
1633,
62,
4475,
796,
366,
18517,
1596,
11,
4343,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8640,
18530,
319,
3267,
1596,
11,
4343,
30,
46506,
327,
28270,
7,
38668,
8,
16034,
3084,
62,
21626,
15982,
2091,
62,
17,
33411,
1633,
62,
4475,
796,
366,
18517,
1596,
11,
4343,
1
] |
Show the average share count of transactions for different investors with a scatter chart. | SELECT investor_id, AVG(share_count) FROM Transactions GROUP BY investor_id | [
15307,
262,
2811,
2648,
954,
286,
8945,
329,
1180,
7713,
351,
257,
41058,
8262,
13,
46506,
15811,
62,
312,
11,
35224,
7,
20077,
62,
9127,
8,
16034,
46192,
44441,
11050,
15811,
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
] | [
15307,
262,
2811,
2648,
954,
286,
8945,
329,
1180,
7713,
351,
257,
41058,
8262,
13,
46506,
15811,
62,
312,
11,
35224,
7,
20077,
62,
9127,
8,
16034,
46192,
44441,
11050,
15811,
62,
312
] |
what is the first venue in calender year 2012 ? | SELECT "venue" FROM table_204_860 WHERE "date" = 2012 ORDER BY "date" LIMIT 1 | [
10919,
318,
262,
717,
14359,
287,
2386,
2194,
614,
2321,
5633,
46506,
366,
4080,
1,
16034,
3084,
62,
18638,
62,
45039,
33411,
366,
4475,
1,
796,
2321,
38678,
11050,
366,
4475,
1,
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
] | [
10919,
318,
262,
717,
14359,
287,
2386,
2194,
614,
2321,
5633,
46506,
366,
4080,
1,
16034,
3084,
62,
18638,
62,
45039,
33411,
366,
4475,
1,
796,
2321,
38678,
11050,
366,
4475,
1,
27564,
2043,
352
] |
Open questions with lame titles CORRECT, GRAMM, RIGHT. | SELECT Id AS "post_link", Score, AnswerCount FROM Posts WHERE PostTypeId = 1 AND (Title LIKE '%standard%') AND ClosedDate IS NULL ORDER BY Score, AnswerCount | [
11505,
2683,
351,
30248,
8714,
23929,
23988,
11,
10863,
2390,
44,
11,
33621,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
23998,
12332,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
357,
19160,
34178,
705,
4,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
11505,
2683,
351,
30248,
8714,
23929,
23988,
11,
10863,
2390,
44,
11,
33621,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
23998,
12332,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
357,
19160,
34178,
705,
4,
20... |
What venue has the away side scoring 16.14 (110)? | SELECT "Venue" FROM table_52115 WHERE "Away team score" = '16.14 (110)' | [
2061,
14359,
468,
262,
1497,
1735,
9689,
1467,
13,
1415,
357,
11442,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
4309,
15363,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1433,
13,
1415,
357,
11442,
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,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
14359,
468,
262,
1497,
1735,
9689,
1467,
13,
1415,
357,
11442,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
4309,
15363,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1433,
13,
1415,
357,
11442,
33047
] |
On what date was the game with fewer than 6650 in attendance, that finished 0:1? | SELECT "Date" FROM table_8195 WHERE "Attendance" < '6650' AND "Score" = '0:1' | [
2202,
644,
3128,
373,
262,
983,
351,
7380,
621,
7930,
1120,
287,
14858,
11,
326,
5201,
657,
25,
16,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
23,
22186,
33411,
366,
8086,
437,
590,
1,
1279,
705,
2791,
1120,
6,
5357,
366,
26595,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
373,
262,
983,
351,
7380,
621,
7930,
1120,
287,
14858,
11,
326,
5201,
657,
25,
16,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
23,
22186,
33411,
366,
8086,
437,
590,
1,
1279,
705,
2791,
1120,
6,
5357,
366,
26595,
1... |
Find old posts (more than 2 months) without any answers. | SELECT Id AS "post_link", Tags FROM Posts WHERE CreationDate > DATEADD(month, -2, GETDATE()) AND AcceptedAnswerId IS NULL AND PostTypeId = 1 AND AnswerCount = 0 | [
16742,
1468,
6851,
357,
3549,
621,
362,
1933,
8,
1231,
597,
7429,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
44789,
16034,
12043,
33411,
21582,
10430,
1875,
360,
6158,
29266,
7,
8424,
11,
532,
17,
11,
17151,
35,
6158,
28955,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
1468,
6851,
357,
3549,
621,
362,
1933,
8,
1231,
597,
7429,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
44789,
16034,
12043,
33411,
21582,
10430,
1875,
360,
6158,
29266,
7,
8424,
11,
532,
17,
11,
17151,
35,
6158,
28955,
53... |
Name the 2008 for 2012 being a and tournament of australian open | SELECT 2008 FROM table_name_20 WHERE 2012 = "a" AND tournament = "australian open" | [
5376,
262,
3648,
329,
2321,
852,
257,
290,
7756,
286,
38132,
1373,
666,
1280,
46506,
3648,
16034,
3084,
62,
3672,
62,
1238,
33411,
2321,
796,
366,
64,
1,
5357,
7756,
796,
366,
64,
436,
1373,
666,
1280,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3648,
329,
2321,
852,
257,
290,
7756,
286,
38132,
1373,
666,
1280,
46506,
3648,
16034,
3084,
62,
3672,
62,
1238,
33411,
2321,
796,
366,
64,
1,
5357,
7756,
796,
366,
64,
436,
1373,
666,
1280,
1
] |
Where was the game played on 2004-06-23? | SELECT "Venue" FROM table_43716 WHERE "Date" = '2004-06-23' | [
8496,
373,
262,
983,
2826,
319,
5472,
12,
3312,
12,
1954,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
43284,
1433,
33411,
366,
10430,
1,
796,
705,
15724,
12,
3312,
12,
1954,
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
] | [
8496,
373,
262,
983,
2826,
319,
5472,
12,
3312,
12,
1954,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
43284,
1433,
33411,
366,
10430,
1,
796,
705,
15724,
12,
3312,
12,
1954,
6
] |
what is drug code of drug name aloe vesta 2-n-1 skin cond? | SELECT prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Aloe Vesta 2-n-1 Skin Cond" | [
10919,
318,
2563,
2438,
286,
2563,
1438,
435,
2577,
410,
18059,
362,
12,
77,
12,
16,
4168,
1779,
30,
46506,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
2348,
2577,
569,
18059,
362,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
2438,
286,
2563,
1438,
435,
2577,
410,
18059,
362,
12,
77,
12,
16,
4168,
1779,
30,
46506,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
2348,
2577,
569,
18059,
362,
... |
What was the NCAA Tournament record after the June 26 game? | SELECT "NCAAT Record" FROM table_30207 WHERE "Date" = 'June 26' | [
2061,
373,
262,
15244,
9595,
1700,
706,
262,
2795,
2608,
983,
30,
46506,
366,
7792,
32,
1404,
13266,
1,
16034,
3084,
62,
1270,
22745,
33411,
366,
10430,
1,
796,
705,
15749,
2608,
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
] | [
2061,
373,
262,
15244,
9595,
1700,
706,
262,
2795,
2608,
983,
30,
46506,
366,
7792,
32,
1404,
13266,
1,
16034,
3084,
62,
1270,
22745,
33411,
366,
10430,
1,
796,
705,
15749,
2608,
6
] |
What was the to par when South Africa was in T4 place? | SELECT "To par" FROM table_8924 WHERE "Place" = 't4' AND "Country" = 'south africa' | [
2061,
373,
262,
284,
1582,
618,
2520,
5478,
373,
287,
309,
19,
1295,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
4531,
1731,
33411,
366,
27271,
1,
796,
705,
83,
19,
6,
5357,
366,
33921,
1,
796,
705,
35782,
6580,
30997,
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
] | [
2061,
373,
262,
284,
1582,
618,
2520,
5478,
373,
287,
309,
19,
1295,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
4531,
1731,
33411,
366,
27271,
1,
796,
705,
83,
19,
6,
5357,
366,
33921,
1,
796,
705,
35782,
6580,
30997,
6
] |
What's the leader team in the Trofeo Fast Team in stage 20? | SELECT "Trofeo Fast Team" FROM table_17563 WHERE "Stage" = '20' | [
2061,
338,
262,
3554,
1074,
287,
262,
8498,
5036,
78,
12549,
4816,
287,
3800,
1160,
30,
46506,
366,
44095,
5036,
78,
12549,
4816,
1,
16034,
3084,
62,
1558,
46572,
33411,
366,
29391,
1,
796,
705,
1238,
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,
338,
262,
3554,
1074,
287,
262,
8498,
5036,
78,
12549,
4816,
287,
3800,
1160,
30,
46506,
366,
44095,
5036,
78,
12549,
4816,
1,
16034,
3084,
62,
1558,
46572,
33411,
366,
29391,
1,
796,
705,
1238,
6
] |
Which Record has a Score of 0 2? | SELECT "Record" FROM table_69744 WHERE "Score" = '0–2' | [
13828,
13266,
468,
257,
15178,
286,
657,
362,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
40035,
2598,
33411,
366,
26595,
1,
796,
705,
15,
1906,
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,
1,
1,
1
] | [
13828,
13266,
468,
257,
15178,
286,
657,
362,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
40035,
2598,
33411,
366,
26595,
1,
796,
705,
15,
1906,
17,
6
] |
For each denomination, return the denomination and the count of schools with that denomination. Visualize by pie chart. | SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination | [
1890,
1123,
47491,
11,
1441,
262,
47491,
290,
262,
954,
286,
4266,
351,
326,
47491,
13,
15612,
1096,
416,
2508,
8262,
13,
46506,
5601,
27744,
11,
327,
28270,
7,
28104,
16034,
1524,
44441,
11050,
5601,
27744
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
47491,
11,
1441,
262,
47491,
290,
262,
954,
286,
4266,
351,
326,
47491,
13,
15612,
1096,
416,
2508,
8262,
13,
46506,
5601,
27744,
11,
327,
28270,
7,
28104,
16034,
1524,
44441,
11050,
5601,
27744
] |
What is the highest number of bronze medals of west germany, which has more than 0 golds? | SELECT MAX("Bronze") FROM table_66006 WHERE "Nation" = 'west germany' AND "Gold" > '0' | [
2061,
318,
262,
4511,
1271,
286,
22101,
28057,
286,
7421,
308,
2224,
88,
11,
543,
468,
517,
621,
657,
3869,
82,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
2791,
28041,
33411,
366,
46108,
1,
796,
705,
7038,
308,
2224,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
22101,
28057,
286,
7421,
308,
2224,
88,
11,
543,
468,
517,
621,
657,
3869,
82,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
2791,
28041,
33411,
366,
46108,
1,
796,
705,
7038,
308,
2224,
... |
Name the first elected for new york 1 | SELECT COUNT("First elected") FROM table_18195 WHERE "District" = 'New York 1' | [
5376,
262,
717,
7018,
329,
649,
331,
967,
352,
46506,
327,
28270,
7203,
5962,
7018,
4943,
16034,
3084,
62,
1507,
22186,
33411,
366,
44857,
1,
796,
705,
3791,
1971,
352,
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
] | [
5376,
262,
717,
7018,
329,
649,
331,
967,
352,
46506,
327,
28270,
7203,
5962,
7018,
4943,
16034,
3084,
62,
1507,
22186,
33411,
366,
44857,
1,
796,
705,
3791,
1971,
352,
6
] |
what is discharge location and discharge time of subject id 2560? | SELECT demographic.discharge_location, demographic.dischtime FROM demographic WHERE demographic.subject_id = "2560" | [
10919,
318,
17655,
4067,
290,
17655,
640,
286,
2426,
4686,
1679,
1899,
30,
46506,
16728,
13,
6381,
10136,
62,
24886,
11,
16728,
13,
6381,
354,
2435,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17655,
4067,
290,
17655,
640,
286,
2426,
4686,
1679,
1899,
30,
46506,
16728,
13,
6381,
10136,
62,
24886,
11,
16728,
13,
6381,
354,
2435,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] |
WHAT IS THE LAPS WITH A GRID OF 26? | SELECT laps FROM table_name_7 WHERE grid = "26" | [
32971,
3180,
3336,
406,
44580,
13315,
317,
10863,
2389,
3963,
2608,
30,
46506,
24590,
16034,
3084,
62,
3672,
62,
22,
33411,
10706,
796,
366,
2075,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
3180,
3336,
406,
44580,
13315,
317,
10863,
2389,
3963,
2608,
30,
46506,
24590,
16034,
3084,
62,
3672,
62,
22,
33411,
10706,
796,
366,
2075,
1
] |
How many viewer data were given for episode 'If at First You Don't Succeed, Lie, Lie Again'? | SELECT COUNT("U.S. viewers (in millions)") FROM table_29271 WHERE "Title" = 'If at First You Don''t Succeed, Lie, Lie Again' | [
2437,
867,
19091,
1366,
547,
1813,
329,
4471,
705,
1532,
379,
3274,
921,
2094,
470,
47352,
2707,
11,
12060,
11,
12060,
6521,
30960,
46506,
327,
28270,
7203,
52,
13,
50,
13,
10209,
357,
259,
5242,
8,
4943,
16034,
3084,
62,
1959,
28977,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19091,
1366,
547,
1813,
329,
4471,
705,
1532,
379,
3274,
921,
2094,
470,
47352,
2707,
11,
12060,
11,
12060,
6521,
30960,
46506,
327,
28270,
7203,
52,
13,
50,
13,
10209,
357,
259,
5242,
8,
4943,
16034,
3084,
62,
1959,
28977,... |
Find Length Of All Tables. | SELECT COUNT(*) FROM VoteTypes | [
16742,
22313,
3226,
1439,
33220,
13,
46506,
327,
28270,
7,
28104,
16034,
19175,
31431
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
22313,
3226,
1439,
33220,
13,
46506,
327,
28270,
7,
28104,
16034,
19175,
31431
] |
what is the most recent year for a ligier gitanes blondes | SELECT MAX(year) FROM table_name_84 WHERE entrant = "ligier gitanes blondes" | [
10919,
318,
262,
749,
2274,
614,
329,
257,
26106,
959,
17606,
7305,
32749,
274,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5705,
33411,
920,
5250,
796,
366,
4604,
959,
17606,
7305,
32749,
274,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2274,
614,
329,
257,
26106,
959,
17606,
7305,
32749,
274,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5705,
33411,
920,
5250,
796,
366,
4604,
959,
17606,
7305,
32749,
274,
1
] |
For those employees who did not have any job in the past, draw a line chart about the change of commission_pct over hire_date . | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
3197,
257,
1627,
8262,
546,
262,
1487,
286,
5810,
62,
79,
310,
625,
11078,
62,
4475,
764,
46506,
36210,
2200,
62,
35,
6158,
11,
22240,
40373,
62,
47,
4177,
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... | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
3197,
257,
1627,
8262,
546,
262,
1487,
286,
5810,
62,
79,
310,
625,
11078,
62,
4475,
764,
46506,
36210,
2200,
62,
35,
6158,
11,
22240,
40373,
62,
47,
4177,
16034,
... |
Bin the hire date into Month interval, and then compute the average salary of employees in each month for a bar chart, note that just select those employees without the letter M in their first name, display by the the average of salary from high to low. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY AVG(SALARY) DESC | [
33,
259,
262,
11078,
3128,
656,
16061,
16654,
11,
290,
788,
24061,
262,
2811,
9588,
286,
4409,
287,
1123,
1227,
329,
257,
2318,
8262,
11,
3465,
326,
655,
2922,
883,
4409,
1231,
262,
3850,
337,
287,
511,
717,
1438,
11,
3359,
416,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33,
259,
262,
11078,
3128,
656,
16061,
16654,
11,
290,
788,
24061,
262,
2811,
9588,
286,
4409,
287,
1123,
1227,
329,
257,
2318,
8262,
11,
3465,
326,
655,
2922,
883,
4409,
1231,
262,
3850,
337,
287,
511,
717,
1438,
11,
3359,
416,
262... |
I want the lowest Grid for David Coulthard | SELECT MIN(grid) FROM table_name_85 WHERE driver = "david coulthard" | [
40,
765,
262,
9016,
24846,
329,
3271,
27854,
400,
446,
46506,
20625,
7,
25928,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
4639,
796,
366,
67,
8490,
2284,
75,
400,
446,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
262,
9016,
24846,
329,
3271,
27854,
400,
446,
46506,
20625,
7,
25928,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
4639,
796,
366,
67,
8490,
2284,
75,
400,
446,
1
] |
Which charts had debut sales of 101976? | SELECT "Oricon Albums Chart" FROM table_2786 WHERE "Debut Sales (copies)" = '101976' | [
13828,
15907,
550,
8886,
4200,
286,
8949,
24,
4304,
30,
46506,
366,
46,
1173,
261,
23999,
82,
22086,
1,
16034,
3084,
62,
1983,
4521,
33411,
366,
16587,
315,
17329,
357,
22163,
444,
16725,
796,
705,
8784,
24,
4304,
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,
15907,
550,
8886,
4200,
286,
8949,
24,
4304,
30,
46506,
366,
46,
1173,
261,
23999,
82,
22086,
1,
16034,
3084,
62,
1983,
4521,
33411,
366,
16587,
315,
17329,
357,
22163,
444,
16725,
796,
705,
8784,
24,
4304,
6
] |
What rank has a gross of $35,976,000? | SELECT rank FROM table_name_44 WHERE gross = "$35,976,000" | [
2061,
4279,
468,
257,
10319,
286,
720,
2327,
11,
24,
4304,
11,
830,
30,
46506,
4279,
16034,
3084,
62,
3672,
62,
2598,
33411,
10319,
796,
17971,
2327,
11,
24,
4304,
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
] | [
2061,
4279,
468,
257,
10319,
286,
720,
2327,
11,
24,
4304,
11,
830,
30,
46506,
4279,
16034,
3084,
62,
3672,
62,
2598,
33411,
10319,
796,
17971,
2327,
11,
24,
4304,
11,
830,
1
] |
what is the longest track in terms of time ? | SELECT "title" FROM table_203_353 ORDER BY "time" DESC LIMIT 1 | [
10919,
318,
262,
14069,
2610,
287,
2846,
286,
640,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
33319,
38678,
11050,
366,
2435,
1,
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
] | [
10919,
318,
262,
14069,
2610,
287,
2846,
286,
640,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
33319,
38678,
11050,
366,
2435,
1,
22196,
34,
27564,
2043,
352
] |
Which City has a Colony Name of northeastern crescent colony? | SELECT "City" FROM table_6037 WHERE "Colony Name" = 'northeastern crescent colony' | [
13828,
2254,
468,
257,
34480,
6530,
286,
38131,
269,
26505,
18815,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
1899,
2718,
33411,
366,
5216,
1647,
6530,
1,
796,
705,
77,
419,
18160,
269,
26505,
18815,
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
] | [
13828,
2254,
468,
257,
34480,
6530,
286,
38131,
269,
26505,
18815,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
1899,
2718,
33411,
366,
5216,
1647,
6530,
1,
796,
705,
77,
419,
18160,
269,
26505,
18815,
6
] |
A bar chart showing the sum of capacity of cinemas open for each year, and show by the Y-axis in ascending. | SELECT Openning_year, SUM(Capacity) FROM cinema GROUP BY Openning_year ORDER BY SUM(Capacity) | [
32,
2318,
8262,
4478,
262,
2160,
286,
5339,
286,
13483,
292,
1280,
329,
1123,
614,
11,
290,
905,
416,
262,
575,
12,
22704,
287,
41988,
13,
46506,
4946,
768,
62,
1941,
11,
35683,
7,
15610,
4355,
8,
16034,
22041,
44441,
11050,
4946,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
4478,
262,
2160,
286,
5339,
286,
13483,
292,
1280,
329,
1123,
614,
11,
290,
905,
416,
262,
575,
12,
22704,
287,
41988,
13,
46506,
4946,
768,
62,
1941,
11,
35683,
7,
15610,
4355,
8,
16034,
22041,
44441,
11050,
4946,
7... |
What is the method of resolution for the fight that had a time of 5:00 and a record of 5-0? | SELECT method FROM table_name_57 WHERE time = "5:00" AND record = "5-0" | [
2061,
318,
262,
2446,
286,
6323,
329,
262,
1907,
326,
550,
257,
640,
286,
642,
25,
405,
290,
257,
1700,
286,
642,
12,
15,
30,
46506,
2446,
16034,
3084,
62,
3672,
62,
3553,
33411,
640,
796,
366,
20,
25,
405,
1,
5357,
1700,
796,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2446,
286,
6323,
329,
262,
1907,
326,
550,
257,
640,
286,
642,
25,
405,
290,
257,
1700,
286,
642,
12,
15,
30,
46506,
2446,
16034,
3084,
62,
3672,
62,
3553,
33411,
640,
796,
366,
20,
25,
405,
1,
5357,
1700,
796,
3... |
his / her efforts awarded them the 416th oak leaves ? | SELECT "name" FROM table_203_71 WHERE "notes" = 'awarded 416th oak leaves 2 march 1944' | [
14363,
1220,
607,
4040,
11343,
606,
262,
38158,
400,
26210,
5667,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
4869,
33411,
366,
17815,
1,
796,
705,
707,
10676,
38158,
400,
26210,
5667,
362,
9960,
16994,
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
] | [
14363,
1220,
607,
4040,
11343,
606,
262,
38158,
400,
26210,
5667,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
4869,
33411,
366,
17815,
1,
796,
705,
707,
10676,
38158,
400,
26210,
5667,
362,
9960,
16994,
6
] |
Who was the home team at the game that had a score of 2 2? | SELECT home FROM table_name_96 WHERE score = "2 – 2" | [
8241,
373,
262,
1363,
1074,
379,
262,
983,
326,
550,
257,
4776,
286,
362,
362,
30,
46506,
1363,
16034,
3084,
62,
3672,
62,
4846,
33411,
4776,
796,
366,
17,
784,
362,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
1074,
379,
262,
983,
326,
550,
257,
4776,
286,
362,
362,
30,
46506,
1363,
16034,
3084,
62,
3672,
62,
4846,
33411,
4776,
796,
366,
17,
784,
362,
1
] |
Which race did Mercedes win? | SELECT "Name" FROM table_60227 WHERE "Winning constructor" = 'mercedes' | [
13828,
3234,
750,
21279,
1592,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
1899,
24403,
33411,
366,
16643,
768,
23772,
1,
796,
705,
647,
19285,
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
] | [
13828,
3234,
750,
21279,
1592,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
1899,
24403,
33411,
366,
16643,
768,
23772,
1,
796,
705,
647,
19285,
6
] |
What was the Snatch weight for the year that had a total of 409kg? | SELECT snatch FROM table_name_92 WHERE total = "409kg" | [
2061,
373,
262,
5489,
963,
3463,
329,
262,
614,
326,
550,
257,
2472,
286,
48132,
10025,
30,
46506,
43388,
16034,
3084,
62,
3672,
62,
5892,
33411,
2472,
796,
366,
29416,
10025,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
5489,
963,
3463,
329,
262,
614,
326,
550,
257,
2472,
286,
48132,
10025,
30,
46506,
43388,
16034,
3084,
62,
3672,
62,
5892,
33411,
2472,
796,
366,
29416,
10025,
1
] |
explain restriction AP/57 | SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP/57' | [
20676,
391,
17504,
3486,
14,
3553,
46506,
360,
8808,
1268,
4177,
5963,
62,
79,
18737,
11,
3586,
11,
5415,
62,
31712,
11,
5288,
62,
31712,
11,
645,
62,
15410,
608,
82,
11,
17504,
62,
8189,
11,
264,
3658,
62,
31712,
62,
35827,
11,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20676,
391,
17504,
3486,
14,
3553,
46506,
360,
8808,
1268,
4177,
5963,
62,
79,
18737,
11,
3586,
11,
5415,
62,
31712,
11,
5288,
62,
31712,
11,
645,
62,
15410,
608,
82,
11,
17504,
62,
8189,
11,
264,
3658,
62,
31712,
62,
35827,
11,
2... |
Which bullet has a Length of 33.78 (1.33)? | SELECT bullet FROM table_name_28 WHERE length = "33.78 (1.33)" | [
13828,
10492,
468,
257,
22313,
286,
4747,
13,
3695,
357,
16,
13,
2091,
19427,
46506,
10492,
16034,
3084,
62,
3672,
62,
2078,
33411,
4129,
796,
366,
2091,
13,
3695,
357,
16,
13,
2091,
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
] | [
13828,
10492,
468,
257,
22313,
286,
4747,
13,
3695,
357,
16,
13,
2091,
19427,
46506,
10492,
16034,
3084,
62,
3672,
62,
2078,
33411,
4129,
796,
366,
2091,
13,
3695,
357,
16,
13,
2091,
16725
] |
How many pole positions for round 20? | SELECT COUNT("Pole Position") FROM table_73884 WHERE "Round" = '20' | [
2437,
867,
16825,
6116,
329,
2835,
1160,
30,
46506,
327,
28270,
7203,
47,
2305,
23158,
4943,
16034,
3084,
62,
22,
2548,
5705,
33411,
366,
22685,
1,
796,
705,
1238,
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
] | [
2437,
867,
16825,
6116,
329,
2835,
1160,
30,
46506,
327,
28270,
7203,
47,
2305,
23158,
4943,
16034,
3084,
62,
22,
2548,
5705,
33411,
366,
22685,
1,
796,
705,
1238,
6
] |
Name the date for oregon jurisdiction | SELECT date FROM table_name_92 WHERE jurisdiction = "oregon" | [
5376,
262,
3128,
329,
267,
8285,
12934,
46506,
3128,
16034,
3084,
62,
3672,
62,
5892,
33411,
12934,
796,
366,
382,
14520,
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,
3128,
329,
267,
8285,
12934,
46506,
3128,
16034,
3084,
62,
3672,
62,
5892,
33411,
12934,
796,
366,
382,
14520,
1
] |
What is the location of the perpetrator with the largest kills. | SELECT LOCATION FROM perpetrator ORDER BY Killed DESC LIMIT 1 | [
2061,
318,
262,
4067,
286,
262,
33599,
351,
262,
4387,
12847,
13,
46506,
37347,
6234,
16034,
33599,
38678,
11050,
13095,
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
] | [
2061,
318,
262,
4067,
286,
262,
33599,
351,
262,
4387,
12847,
13,
46506,
37347,
6234,
16034,
33599,
38678,
11050,
13095,
22196,
34,
27564,
2043,
352
] |
Who was the Independent Socialist candidate for the office of comptroller? | SELECT independent_socialist_ticket FROM table_name_35 WHERE office = "comptroller" | [
8241,
373,
262,
13362,
21773,
4540,
329,
262,
2607,
286,
401,
44913,
30,
46506,
4795,
62,
14557,
396,
62,
43350,
16034,
3084,
62,
3672,
62,
2327,
33411,
2607,
796,
366,
785,
44913,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13362,
21773,
4540,
329,
262,
2607,
286,
401,
44913,
30,
46506,
4795,
62,
14557,
396,
62,
43350,
16034,
3084,
62,
3672,
62,
2327,
33411,
2607,
796,
366,
785,
44913,
1
] |
Which player is the centre for the Detroit Red Wings? | SELECT "Player" FROM table_30870 WHERE "Position" = 'Centre' AND "NHL team" = 'Detroit Red Wings' | [
13828,
2137,
318,
262,
7372,
329,
262,
8488,
2297,
17330,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
21495,
2154,
33411,
366,
26545,
1,
796,
705,
19085,
260,
6,
5357,
366,
45,
6581,
1074,
1,
796,
705,
40404,
2297,
17330,
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
] | [
13828,
2137,
318,
262,
7372,
329,
262,
8488,
2297,
17330,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
21495,
2154,
33411,
366,
26545,
1,
796,
705,
19085,
260,
6,
5357,
366,
45,
6581,
1074,
1,
796,
705,
40404,
2297,
17330,
6
] |
List of all edits where edit summary contains given keyword (between two dates). | SELECT PostId AS "post_link", Comment, UserId AS "user_link", CreationDate FROM PostHistory WHERE Comment LIKE '%##keyword##%' AND CreationDate >= '##Date1?2018-01-01##' AND CreationDate <= '##Date2?2019-01-01##' ORDER BY CreationDate | [
8053,
286,
477,
31671,
810,
4370,
10638,
4909,
1813,
21179,
357,
23395,
734,
9667,
737,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
18957,
11,
11787,
7390,
7054,
366,
7220,
62,
8726,
1600,
21582,
10430,
16034,
2947,
18122,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
477,
31671,
810,
4370,
10638,
4909,
1813,
21179,
357,
23395,
734,
9667,
737,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
18957,
11,
11787,
7390,
7054,
366,
7220,
62,
8726,
1600,
21582,
10430,
16034,
2947,
18122,
33411,
... |
What was the score on a clay surface on May 29, 2006? | SELECT "Score" FROM table_6379 WHERE "Surface" = 'clay' AND "Date" = 'may 29, 2006' | [
2061,
373,
262,
4776,
319,
257,
21558,
4417,
319,
1737,
2808,
11,
4793,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
21,
29088,
33411,
366,
14214,
2550,
1,
796,
705,
565,
323,
6,
5357,
366,
10430,
1,
796,
705,
11261,
2808,
11,
4793,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
319,
257,
21558,
4417,
319,
1737,
2808,
11,
4793,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
21,
29088,
33411,
366,
14214,
2550,
1,
796,
705,
565,
323,
6,
5357,
366,
10430,
1,
796,
705,
11261,
2808,
11,
4793,
... |
What is the grid average with a +1 lap time and more than 27 laps? | SELECT AVG("Grid") FROM table_46104 WHERE "Time/Retired" = '+1 lap' AND "Laps" > '27' | [
2061,
318,
262,
10706,
2811,
351,
257,
1343,
16,
14779,
640,
290,
517,
621,
2681,
24590,
30,
46506,
35224,
7203,
41339,
4943,
16034,
3084,
62,
3510,
13464,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
10,
16,
14779,
6,
5357,
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
] | [
2061,
318,
262,
10706,
2811,
351,
257,
1343,
16,
14779,
640,
290,
517,
621,
2681,
24590,
30,
46506,
35224,
7203,
41339,
4943,
16034,
3084,
62,
3510,
13464,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
10,
16,
14779,
6,
5357,
366,
... |
What make of car did Brian Vickers drive? | SELECT "Make" FROM table_74730 WHERE "Driver" = 'brian vickers' | [
2061,
787,
286,
1097,
750,
8403,
569,
21630,
3708,
30,
46506,
366,
12050,
1,
16034,
3084,
62,
48882,
1270,
33411,
366,
32103,
1,
796,
705,
65,
4484,
410,
21630,
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,
787,
286,
1097,
750,
8403,
569,
21630,
3708,
30,
46506,
366,
12050,
1,
16034,
3084,
62,
48882,
1270,
33411,
366,
32103,
1,
796,
705,
65,
4484,
410,
21630,
6
] |
Which Chile central bank has a Euro larger than 297.547? | SELECT "Central bank" FROM table_70192 WHERE "1 Euro =" > '297.547' AND "Country" = 'chile' | [
13828,
17456,
4318,
3331,
468,
257,
1898,
4025,
621,
41103,
13,
20,
2857,
30,
46506,
366,
30645,
3331,
1,
16034,
3084,
62,
41583,
5892,
33411,
366,
16,
1898,
796,
1,
1875,
705,
26561,
13,
20,
2857,
6,
5357,
366,
33921,
1,
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,
1,
1
] | [
13828,
17456,
4318,
3331,
468,
257,
1898,
4025,
621,
41103,
13,
20,
2857,
30,
46506,
366,
30645,
3331,
1,
16034,
3084,
62,
41583,
5892,
33411,
366,
16,
1898,
796,
1,
1875,
705,
26561,
13,
20,
2857,
6,
5357,
366,
33921,
1,
796,
705,
... |
How many faculty members have 20 years of experience? | SELECT COUNT(designation) FROM table_17384764_1 WHERE experience = "20 years" | [
2437,
867,
12829,
1866,
423,
1160,
812,
286,
1998,
30,
46506,
327,
28270,
7,
26124,
341,
8,
16034,
3084,
62,
1558,
2548,
2857,
2414,
62,
16,
33411,
1998,
796,
366,
1238,
812,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12829,
1866,
423,
1160,
812,
286,
1998,
30,
46506,
327,
28270,
7,
26124,
341,
8,
16034,
3084,
62,
1558,
2548,
2857,
2414,
62,
16,
33411,
1998,
796,
366,
1238,
812,
1
] |
Calculate the minimum days for which patients born after 2065 stayed in the hospital. | SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.dob_year > "2065" | [
9771,
3129,
378,
262,
5288,
1528,
329,
543,
3871,
4642,
706,
1160,
2996,
9658,
287,
262,
4436,
13,
46506,
20625,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
67,
672,
62,
1941,
1875,
366,
1238,
2996,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9771,
3129,
378,
262,
5288,
1528,
329,
543,
3871,
4642,
706,
1160,
2996,
9658,
287,
262,
4436,
13,
46506,
20625,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
67,
672,
62,
1941,
1875,
366,
1238,
2996,
1
] |
What MLB draft has a School of green valley high school? | SELECT mlb_draft FROM table_name_7 WHERE school = "green valley high school" | [
2061,
18532,
4538,
468,
257,
3961,
286,
4077,
19272,
1029,
1524,
30,
46506,
285,
23160,
62,
35679,
16034,
3084,
62,
3672,
62,
22,
33411,
1524,
796,
366,
14809,
19272,
1029,
1524,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
18532,
4538,
468,
257,
3961,
286,
4077,
19272,
1029,
1524,
30,
46506,
285,
23160,
62,
35679,
16034,
3084,
62,
3672,
62,
22,
33411,
1524,
796,
366,
14809,
19272,
1029,
1524,
1
] |
A bar chart shows the distribution of All_Road and ACC_Percent . | SELECT All_Road, ACC_Percent FROM basketball_match | [
32,
2318,
8262,
2523,
262,
6082,
286,
1439,
62,
29197,
290,
15859,
62,
31905,
764,
46506,
1439,
62,
29197,
11,
15859,
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
] | [
32,
2318,
8262,
2523,
262,
6082,
286,
1439,
62,
29197,
290,
15859,
62,
31905,
764,
46506,
1439,
62,
29197,
11,
15859,
62,
31905,
16034,
9669,
62,
15699
] |
On what Date did the friendly Competition take place? | SELECT "Date" FROM table_78471 WHERE "Competition" = 'friendly' | [
2202,
644,
7536,
750,
262,
8030,
27348,
1011,
1295,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3695,
38339,
33411,
366,
7293,
15620,
1,
796,
705,
13120,
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
] | [
2202,
644,
7536,
750,
262,
8030,
27348,
1011,
1295,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3695,
38339,
33411,
366,
7293,
15620,
1,
796,
705,
13120,
6
] |
Show all artist names and ages in a histogram. | SELECT Name, Age FROM artist | [
15307,
477,
6802,
3891,
290,
9337,
287,
257,
1554,
21857,
13,
46506,
6530,
11,
7129,
16034,
6802
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
477,
6802,
3891,
290,
9337,
287,
257,
1554,
21857,
13,
46506,
6530,
11,
7129,
16034,
6802
] |
How many of the white (russian) patients had a lab test for troponin i? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND lab.label = "Troponin I" | [
2437,
867,
286,
262,
2330,
357,
81,
31562,
8,
3871,
550,
257,
2248,
1332,
329,
14673,
261,
259,
1312,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
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... | [
2437,
867,
286,
262,
2330,
357,
81,
31562,
8,
3871,
550,
257,
2248,
1332,
329,
14673,
261,
259,
1312,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
... |
what flights are there from DENVER to ATLANTA | 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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA... | [
10919,
13956,
389,
612,
422,
37692,
5959,
284,
41051,
8643,
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,
7054,
31600,
15490,
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... | [
10919,
13956,
389,
612,
422,
37692,
5959,
284,
41051,
8643,
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,
7054,
31600,
15490,
62... |
What is the away team for the home team wigan athletic? | SELECT "Away team" FROM table_47299 WHERE "Home team" = 'wigan athletic' | [
2061,
318,
262,
1497,
1074,
329,
262,
1363,
1074,
266,
5516,
15177,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
2857,
22579,
33411,
366,
16060,
1074,
1,
796,
705,
86,
5516,
15177,
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,
1497,
1074,
329,
262,
1363,
1074,
266,
5516,
15177,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
2857,
22579,
33411,
366,
16060,
1074,
1,
796,
705,
86,
5516,
15177,
6
] |
What Nation has more than 4 silver, more than 3 gold and 18 total medals? | SELECT "Nation" FROM table_13460 WHERE "Silver" > '4' AND "Gold" > '3' AND "Total" = '18' | [
2061,
8741,
468,
517,
621,
604,
8465,
11,
517,
621,
513,
3869,
290,
1248,
2472,
28057,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
19880,
1899,
33411,
366,
26766,
1,
1875,
705,
19,
6,
5357,
366,
13306,
1,
1875,
705,
18,
6,
5357,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8741,
468,
517,
621,
604,
8465,
11,
517,
621,
513,
3869,
290,
1248,
2472,
28057,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
19880,
1899,
33411,
366,
26766,
1,
1875,
705,
19,
6,
5357,
366,
13306,
1,
1875,
705,
18,
6,
5357,
36... |
tell me the number of patients who had bicarbonate lab test and were hospitalized for more than 15 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "15" AND lab.label = "Bicarbonate" | [
33331,
502,
262,
1271,
286,
3871,
508,
550,
275,
291,
42084,
378,
2248,
1332,
290,
547,
31736,
329,
517,
621,
1315,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
1271,
286,
3871,
508,
550,
275,
291,
42084,
378,
2248,
1332,
290,
547,
31736,
329,
517,
621,
1315,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
Date of 15 july 1994 involves which performer 3? | SELECT performer_3 FROM table_name_56 WHERE date = "15 july 1994" | [
10430,
286,
1315,
474,
2062,
9162,
9018,
543,
26960,
513,
30,
46506,
26960,
62,
18,
16034,
3084,
62,
3672,
62,
3980,
33411,
3128,
796,
366,
1314,
474,
2062,
9162,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10430,
286,
1315,
474,
2062,
9162,
9018,
543,
26960,
513,
30,
46506,
26960,
62,
18,
16034,
3084,
62,
3672,
62,
3980,
33411,
3128,
796,
366,
1314,
474,
2062,
9162,
1
] |
What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie rock albums of all time? | SELECT MIN("Rank") FROM table_35414 WHERE "Year" > '1999' AND "Accolade" = 'the 100 greatest indie rock albums of all time' | [
2061,
318,
262,
9016,
4279,
329,
281,
5062,
706,
7358,
290,
281,
6366,
349,
671,
286,
262,
1802,
6000,
19907,
3881,
16788,
286,
477,
640,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
32182,
1415,
33411,
366,
17688,
1,
1875,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
4279,
329,
281,
5062,
706,
7358,
290,
281,
6366,
349,
671,
286,
262,
1802,
6000,
19907,
3881,
16788,
286,
477,
640,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
32182,
1415,
33411,
366,
17688,
1,
1875,
7... |
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by time, and sort by the y axis in ascending. | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(EMPLOYEE_ID) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
290,
3297,
416,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
290,
3297,
416,
26... |
What is the prerequisite for THTREMUS 342 ? | SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT... | [
2061,
318,
262,
43119,
329,
2320,
51,
40726,
2937,
44341,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
15,
13,
10378,
1823,
11,
37384,
5188,
62,
15,
13,
3672,
11,
37384,
5188,
62,
15,
13,
17618,
16034,
1781,
7054,
37384,
5188,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
43119,
329,
2320,
51,
40726,
2937,
44341,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
15,
13,
10378,
1823,
11,
37384,
5188,
62,
15,
13,
3672,
11,
37384,
5188,
62,
15,
13,
17618,
16034,
1781,
7054,
37384,
5188,... |
who many times is gloucestershire is painswick? | SELECT COUNT("Premier Two") FROM table_72262 WHERE "Gloucestershire" = 'Painswick' | [
8727,
867,
1661,
318,
1278,
280,
728,
1010,
10695,
318,
24985,
16239,
30,
46506,
327,
28270,
7203,
24914,
959,
4930,
4943,
16034,
3084,
62,
22,
1828,
5237,
33411,
366,
9861,
280,
728,
1010,
10695,
1,
796,
705,
47,
1299,
16239,
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
] | [
8727,
867,
1661,
318,
1278,
280,
728,
1010,
10695,
318,
24985,
16239,
30,
46506,
327,
28270,
7203,
24914,
959,
4930,
4943,
16034,
3084,
62,
22,
1828,
5237,
33411,
366,
9861,
280,
728,
1010,
10695,
1,
796,
705,
47,
1299,
16239,
6
] |
What is the name of the Home Captain for 23,24,25,26 july 1992? | SELECT "Home captain" FROM table_14723 WHERE "Date" = '23,24,25,26 july 1992' | [
2061,
318,
262,
1438,
286,
262,
5995,
8599,
329,
2242,
11,
1731,
11,
1495,
11,
2075,
474,
2062,
9768,
30,
46506,
366,
16060,
10654,
1,
16034,
3084,
62,
20198,
1954,
33411,
366,
10430,
1,
796,
705,
1954,
11,
1731,
11,
1495,
11,
2075,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
262,
5995,
8599,
329,
2242,
11,
1731,
11,
1495,
11,
2075,
474,
2062,
9768,
30,
46506,
366,
16060,
10654,
1,
16034,
3084,
62,
20198,
1954,
33411,
366,
10430,
1,
796,
705,
1954,
11,
1731,
11,
1495,
11,
2075,... |
What is the date of the game in a week earlier than 10 played in Texas stadium agains the Atlanta Falcons? | SELECT date FROM table_name_92 WHERE week < 10 AND game_site = "texas stadium" AND opponent = "atlanta falcons" | [
2061,
318,
262,
3128,
286,
262,
983,
287,
257,
1285,
2961,
621,
838,
2826,
287,
3936,
10308,
757,
82,
262,
9371,
21026,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5892,
33411,
1285,
1279,
838,
5357,
983,
62,
15654,
796,
366,
16886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
286,
262,
983,
287,
257,
1285,
2961,
621,
838,
2826,
287,
3936,
10308,
757,
82,
262,
9371,
21026,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5892,
33411,
1285,
1279,
838,
5357,
983,
62,
15654,
796,
366,
16886,
... |
What are the sum of points in 1989 with 0 wins? | SELECT SUM("Points") FROM table_35201 WHERE "Wins" = '0' AND "Year" = '1989' | [
2061,
389,
262,
2160,
286,
2173,
287,
11104,
351,
657,
7864,
30,
46506,
35683,
7203,
40710,
4943,
16034,
3084,
62,
2327,
1264,
33411,
366,
54,
1040,
1,
796,
705,
15,
6,
5357,
366,
17688,
1,
796,
705,
25475,
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,
389,
262,
2160,
286,
2173,
287,
11104,
351,
657,
7864,
30,
46506,
35683,
7203,
40710,
4943,
16034,
3084,
62,
2327,
1264,
33411,
366,
54,
1040,
1,
796,
705,
15,
6,
5357,
366,
17688,
1,
796,
705,
25475,
6
] |
What was the tie number of the game when the queens park rangers were the home team? | SELECT "Tie no" FROM table_8266 WHERE "Home team" = 'queens park rangers' | [
2061,
373,
262,
9839,
1271,
286,
262,
983,
618,
262,
38771,
3952,
374,
6606,
547,
262,
1363,
1074,
30,
46506,
366,
51,
494,
645,
1,
16034,
3084,
62,
23,
25540,
33411,
366,
16060,
1074,
1,
796,
705,
4188,
641,
3952,
374,
6606,
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
] | [
2061,
373,
262,
9839,
1271,
286,
262,
983,
618,
262,
38771,
3952,
374,
6606,
547,
262,
1363,
1074,
30,
46506,
366,
51,
494,
645,
1,
16034,
3084,
62,
23,
25540,
33411,
366,
16060,
1074,
1,
796,
705,
4188,
641,
3952,
374,
6606,
6
] |
What was the score when the Vikings won the championship at Namyangju Stadium? | SELECT "Score" FROM table_10493 WHERE "Champion" = 'vikings' AND "Stadium" = 'namyangju stadium' | [
2061,
373,
262,
4776,
618,
262,
16420,
1839,
262,
12184,
379,
399,
14814,
648,
14396,
10499,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
940,
43134,
33411,
366,
1925,
6734,
1,
796,
705,
28930,
654,
6,
5357,
366,
1273,
6271,
1,
796,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
618,
262,
16420,
1839,
262,
12184,
379,
399,
14814,
648,
14396,
10499,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
940,
43134,
33411,
366,
1925,
6734,
1,
796,
705,
28930,
654,
6,
5357,
366,
1273,
6271,
1,
796,
7... |
What is the smallest rank with less than 2 wings, more than 26 events, and less than $1,831,211? | SELECT MIN("Rank") FROM table_54369 WHERE "Wins" < '2' AND "Earnings ( $ )" < '1,831,211' AND "Events" > '26' | [
2061,
318,
262,
18197,
4279,
351,
1342,
621,
362,
12098,
11,
517,
621,
2608,
2995,
11,
290,
1342,
621,
720,
16,
11,
23,
3132,
11,
21895,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
4051,
30803,
33411,
366,
54,
1040,
1,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18197,
4279,
351,
1342,
621,
362,
12098,
11,
517,
621,
2608,
2995,
11,
290,
1342,
621,
720,
16,
11,
23,
3132,
11,
21895,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
4051,
30803,
33411,
366,
54,
1040,
1,
127... |
Which NFL team has a pick# less than 200 for Travis Davis? | SELECT nfl_team FROM table_name_23 WHERE pick__number < 200 AND player = "travis davis" | [
13828,
5134,
1074,
468,
257,
2298,
2,
1342,
621,
939,
329,
19804,
7802,
30,
46506,
299,
2704,
62,
15097,
16034,
3084,
62,
3672,
62,
1954,
33411,
2298,
834,
17618,
1279,
939,
5357,
2137,
796,
366,
83,
16956,
288,
23401,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5134,
1074,
468,
257,
2298,
2,
1342,
621,
939,
329,
19804,
7802,
30,
46506,
299,
2704,
62,
15097,
16034,
3084,
62,
3672,
62,
1954,
33411,
2298,
834,
17618,
1279,
939,
5357,
2137,
796,
366,
83,
16956,
288,
23401,
1
] |
What Class to 1928 has the Quantity smaller than 440 and Seats of 29/29? | SELECT class_to_1928 FROM table_name_16 WHERE quantity < 440 AND seats = "29/29" | [
2061,
5016,
284,
35768,
468,
262,
39789,
4833,
621,
33879,
290,
1001,
1381,
286,
2808,
14,
1959,
30,
46506,
1398,
62,
1462,
62,
1129,
2078,
16034,
3084,
62,
3672,
62,
1433,
33411,
12040,
1279,
33879,
5357,
8632,
796,
366,
1959,
14,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
5016,
284,
35768,
468,
262,
39789,
4833,
621,
33879,
290,
1001,
1381,
286,
2808,
14,
1959,
30,
46506,
1398,
62,
1462,
62,
1129,
2078,
16034,
3084,
62,
3672,
62,
1433,
33411,
12040,
1279,
33879,
5357,
8632,
796,
366,
1959,
14,
19... |
What is the show episode number of the episode that reached 1.215 millions views? | SELECT MIN(series_episode) FROM table_18712423_3 WHERE viewers__millions_ = "1.215" | [
2061,
318,
262,
905,
4471,
1271,
286,
262,
4471,
326,
4251,
352,
13,
23349,
5242,
5009,
30,
46506,
20625,
7,
25076,
62,
38668,
8,
16034,
3084,
62,
23451,
17464,
1954,
62,
18,
33411,
10209,
834,
17805,
507,
62,
796,
366,
16,
13,
2334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
905,
4471,
1271,
286,
262,
4471,
326,
4251,
352,
13,
23349,
5242,
5009,
30,
46506,
20625,
7,
25076,
62,
38668,
8,
16034,
3084,
62,
23451,
17464,
1954,
62,
18,
33411,
10209,
834,
17805,
507,
62,
796,
366,
16,
13,
2334... |
how many total medals did russia win ? | SELECT "total" FROM table_203_535 WHERE "nation" = 'russia' | [
4919,
867,
2472,
28057,
750,
374,
31269,
1592,
5633,
46506,
366,
23350,
1,
16034,
3084,
62,
22416,
62,
44465,
33411,
366,
25729,
1,
796,
705,
81,
31269,
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
] | [
4919,
867,
2472,
28057,
750,
374,
31269,
1592,
5633,
46506,
366,
23350,
1,
16034,
3084,
62,
22416,
62,
44465,
33411,
366,
25729,
1,
796,
705,
81,
31269,
6
] |
What is the lowest Goal Difference, when Position is '7', and when Played is greater than 30? | SELECT MIN(goal_difference) FROM table_name_1 WHERE position = 7 AND played > 30 | [
2061,
318,
262,
9016,
25376,
43795,
11,
618,
23158,
318,
705,
22,
3256,
290,
618,
33101,
318,
3744,
621,
1542,
30,
46506,
20625,
7,
35231,
62,
26069,
1945,
8,
16034,
3084,
62,
3672,
62,
16,
33411,
2292,
796,
767,
5357,
2826,
1875,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25376,
43795,
11,
618,
23158,
318,
705,
22,
3256,
290,
618,
33101,
318,
3744,
621,
1542,
30,
46506,
20625,
7,
35231,
62,
26069,
1945,
8,
16034,
3084,
62,
3672,
62,
16,
33411,
2292,
796,
767,
5357,
2826,
1875,
1... |
What is the highest week that has September 14, 2003 as the date? | SELECT MAX("Week") FROM table_13790 WHERE "Date" = 'september 14, 2003' | [
2061,
318,
262,
4511,
1285,
326,
468,
2693,
1478,
11,
5816,
355,
262,
3128,
30,
46506,
25882,
7203,
20916,
4943,
16034,
3084,
62,
1485,
37750,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
1478,
11,
5816,
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,
4511,
1285,
326,
468,
2693,
1478,
11,
5816,
355,
262,
3128,
30,
46506,
25882,
7203,
20916,
4943,
16034,
3084,
62,
1485,
37750,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
1478,
11,
5816,
6
] |
Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School? | SELECT "Hometown" FROM table_52817 WHERE "School" = 'kennedy-kenrick catholic high school' | [
8496,
318,
262,
367,
19191,
286,
262,
1048,
326,
9141,
10401,
12,
27827,
5557,
7835,
3334,
3961,
30,
46506,
366,
39,
19191,
1,
16034,
3084,
62,
49351,
1558,
33411,
366,
26130,
1,
796,
705,
74,
1697,
4716,
12,
3464,
5557,
32171,
4160,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
367,
19191,
286,
262,
1048,
326,
9141,
10401,
12,
27827,
5557,
7835,
3334,
3961,
30,
46506,
366,
39,
19191,
1,
16034,
3084,
62,
49351,
1558,
33411,
366,
26130,
1,
796,
705,
74,
1697,
4716,
12,
3464,
5557,
32171,
4160,
... |
What Election has a 2nd Member of frederick knight, and a 1st Member of sir edmund lechmere, bt? | SELECT "Election" FROM table_60550 WHERE "2nd Member" = 'frederick knight' AND "1st Member" = 'sir edmund lechmere, bt' | [
2061,
14219,
468,
257,
362,
358,
10239,
286,
277,
445,
41556,
22062,
11,
290,
257,
352,
301,
10239,
286,
15967,
1225,
20125,
443,
354,
34671,
11,
275,
83,
30,
46506,
366,
36,
1564,
1,
16034,
3084,
62,
1899,
22730,
33411,
366,
17,
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... | [
2061,
14219,
468,
257,
362,
358,
10239,
286,
277,
445,
41556,
22062,
11,
290,
257,
352,
301,
10239,
286,
15967,
1225,
20125,
443,
354,
34671,
11,
275,
83,
30,
46506,
366,
36,
1564,
1,
16034,
3084,
62,
1899,
22730,
33411,
366,
17,
35... |
500 -level classes , are they offered in the Fall or Winter term ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 500 AND 500 + 100 AND semester.semester IN ('FA', 'WN') AND semester.semester_id = course_of... | [
4059,
532,
5715,
6097,
837,
389,
484,
4438,
287,
262,
7218,
393,
10633,
3381,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4059,
532,
5715,
6097,
837,
389,
484,
4438,
287,
262,
7218,
393,
10633,
3381,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
... |
WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387? | SELECT AVG("Votes") FROM table_51014 WHERE "Constituency" = 'dublin south' AND "Spoilt" < '3,387' | [
32971,
3180,
3336,
317,
5959,
11879,
569,
23051,
7473,
35480,
9148,
1268,
30065,
4221,
11,
5357,
6226,
49713,
51,
9447,
7036,
1137,
2320,
1565,
513,
11,
32220,
30,
46506,
35224,
7203,
53,
6421,
4943,
16034,
3084,
62,
4349,
28645,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32971,
3180,
3336,
317,
5959,
11879,
569,
23051,
7473,
35480,
9148,
1268,
30065,
4221,
11,
5357,
6226,
49713,
51,
9447,
7036,
1137,
2320,
1565,
513,
11,
32220,
30,
46506,
35224,
7203,
53,
6421,
4943,
16034,
3084,
62,
4349,
28645,
33411,
... |
What party did the incumbent of the Arkansas 6 district belong to? | SELECT party FROM table_1342249_5 WHERE district = "Arkansas 6" | [
2061,
2151,
750,
262,
23526,
286,
262,
14538,
718,
4783,
5594,
284,
30,
46506,
2151,
16034,
3084,
62,
1485,
3682,
21626,
62,
20,
33411,
4783,
796,
366,
42007,
6618,
718,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
2151,
750,
262,
23526,
286,
262,
14538,
718,
4783,
5594,
284,
30,
46506,
2151,
16034,
3084,
62,
1485,
3682,
21626,
62,
20,
33411,
4783,
796,
366,
42007,
6618,
718,
1
] |
Name who directed season 1 | SELECT directed_by FROM table_20704243_5 WHERE season__number = 1 | [
5376,
508,
7924,
1622,
352,
46506,
7924,
62,
1525,
16034,
3084,
62,
1238,
32869,
26660,
62,
20,
33411,
1622,
834,
17618,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
508,
7924,
1622,
352,
46506,
7924,
62,
1525,
16034,
3084,
62,
1238,
32869,
26660,
62,
20,
33411,
1622,
834,
17618,
796,
352
] |
tell me the yearly minimum systemicdiastolic of patient 017-12240 until 27 months ago. | SELECT MIN(vitalperiodic.systemicdiastolic) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-12240')) AND NOT vitalperiodic.systemicd... | [
33331,
502,
262,
24169,
5288,
21971,
10989,
459,
4160,
286,
5827,
5534,
22,
12,
1065,
16102,
1566,
2681,
1933,
2084,
13,
46506,
20625,
7,
85,
1287,
41007,
291,
13,
10057,
291,
10989,
459,
4160,
8,
16034,
9204,
41007,
291,
33411,
9204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
24169,
5288,
21971,
10989,
459,
4160,
286,
5827,
5534,
22,
12,
1065,
16102,
1566,
2681,
1933,
2084,
13,
46506,
20625,
7,
85,
1287,
41007,
291,
13,
10057,
291,
10989,
459,
4160,
8,
16034,
9204,
41007,
291,
33411,
9204,
... |
How many Novembers have a Game larger than 14, and an Opponent of minnesota wild? | SELECT COUNT(november) FROM table_name_50 WHERE game > 14 AND opponent = "minnesota wild" | [
2437,
867,
399,
659,
76,
1213,
423,
257,
3776,
4025,
621,
1478,
11,
290,
281,
9385,
3471,
286,
949,
8360,
4295,
30,
46506,
327,
28270,
7,
77,
3239,
8,
16034,
3084,
62,
3672,
62,
1120,
33411,
983,
1875,
1478,
5357,
6125,
796,
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
] | [
2437,
867,
399,
659,
76,
1213,
423,
257,
3776,
4025,
621,
1478,
11,
290,
281,
9385,
3471,
286,
949,
8360,
4295,
30,
46506,
327,
28270,
7,
77,
3239,
8,
16034,
3084,
62,
3672,
62,
1120,
33411,
983,
1875,
1478,
5357,
6125,
796,
366,
... |
Count the number of patients whose ethnicity is Hispanic or Latino/Puerto Rican and who have stayed in the hospital for more than 16 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.days_stay > "16" | [
12332,
262,
1271,
286,
3871,
3025,
26289,
318,
16949,
393,
20496,
14,
47,
84,
13806,
44459,
290,
508,
423,
9658,
287,
262,
4436,
329,
517,
621,
1467,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
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... | [
12332,
262,
1271,
286,
3871,
3025,
26289,
318,
16949,
393,
20496,
14,
47,
84,
13806,
44459,
290,
508,
423,
9658,
287,
262,
4436,
329,
517,
621,
1467,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8... |
Create a bar chart showing the total number across premises type | SELECT premises_type, COUNT(*) FROM Premises GROUP BY premises_type | [
16447,
257,
2318,
8262,
4478,
262,
2472,
1271,
1973,
17095,
2099,
46506,
17095,
62,
4906,
11,
327,
28270,
7,
28104,
16034,
6929,
2696,
44441,
11050,
17095,
62,
4906
] | [
1,
1,
1,
1,
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,
262,
2472,
1271,
1973,
17095,
2099,
46506,
17095,
62,
4906,
11,
327,
28270,
7,
28104,
16034,
6929,
2696,
44441,
11050,
17095,
62,
4906
] |
what were the five most frequent medications prescribed to male patients 30s after they were diagnosed with accidental op laceration within 2 months? | 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,
1936,
749,
10792,
17638,
14798,
284,
4257,
3871,
1542,
82,
706,
484,
547,
14641,
351,
23221,
1034,
300,
11736,
341,
1626,
362,
1933,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1936,
749,
10792,
17638,
14798,
284,
4257,
3871,
1542,
82,
706,
484,
547,
14641,
351,
23221,
1034,
300,
11736,
341,
1626,
362,
1933,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290... |
who is the home team when the away team is wolverhampton wanderers? | SELECT home_team FROM table_name_20 WHERE away_team = "wolverhampton wanderers" | [
8727,
318,
262,
1363,
1074,
618,
262,
1497,
1074,
318,
266,
14375,
2763,
10972,
11569,
19288,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
1238,
33411,
1497,
62,
15097,
796,
366,
86,
14375,
2763,
10972,
11569,
19288,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
1363,
1074,
618,
262,
1497,
1074,
318,
266,
14375,
2763,
10972,
11569,
19288,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
1238,
33411,
1497,
62,
15097,
796,
366,
86,
14375,
2763,
10972,
11569,
19288,
1
] |
Papers written by daniel a. epstein in 2016 | SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'daniel a. epstein' AND paper.year = 2016 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
47,
5656,
3194,
416,
288,
6321,
257,
13,
2462,
5714,
287,
1584,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
67,
6321,
257,
13,
2462,
5714,
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,
1,
1... | [
47,
5656,
3194,
416,
288,
6321,
257,
13,
2462,
5714,
287,
1584,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
67,
6321,
257,
13,
2462,
5714,
6,
5357... |
Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain? | SELECT "Location" FROM table_71990 WHERE "Mountain Range" = 'coast mountains' AND "Rank" < '18' AND "Mountain Peak" = 'skihist mountain' | [
13828,
4067,
3407,
8545,
21124,
351,
257,
4279,
1342,
621,
1248,
379,
3661,
4449,
396,
9638,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
22,
19891,
33411,
366,
44,
18635,
13667,
1,
796,
705,
1073,
459,
12269,
6,
5357,
366,
27520,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4067,
3407,
8545,
21124,
351,
257,
4279,
1342,
621,
1248,
379,
3661,
4449,
396,
9638,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
22,
19891,
33411,
366,
44,
18635,
13667,
1,
796,
705,
1073,
459,
12269,
6,
5357,
366,
27520,
1,
... |
Which college/junior/club team has jim mathieson as the player? | SELECT "College/junior/club team" FROM table_30858 WHERE "Player" = 'Jim Mathieson' | [
13828,
4152,
14,
29741,
1504,
14,
18664,
1074,
468,
474,
320,
10688,
444,
261,
355,
262,
2137,
30,
46506,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
16034,
3084,
62,
21495,
3365,
33411,
366,
14140,
1,
796,
705,
18050,
16320,
444... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4152,
14,
29741,
1504,
14,
18664,
1074,
468,
474,
320,
10688,
444,
261,
355,
262,
2137,
30,
46506,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
16034,
3084,
62,
21495,
3365,
33411,
366,
14140,
1,
796,
705,
18050,
16320,
444... |
which country scored the most gold medals - iran or indonesia ? | SELECT "nation" FROM table_204_725 WHERE "nation" IN ('iran', 'indonesia') ORDER BY "gold" DESC LIMIT 1 | [
4758,
1499,
7781,
262,
749,
3869,
28057,
532,
4173,
272,
393,
773,
1952,
544,
5633,
46506,
366,
25729,
1,
16034,
3084,
62,
18638,
62,
45151,
33411,
366,
25729,
1,
3268,
19203,
343,
272,
3256,
705,
521,
1952,
544,
11537,
38678,
11050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
1499,
7781,
262,
749,
3869,
28057,
532,
4173,
272,
393,
773,
1952,
544,
5633,
46506,
366,
25729,
1,
16034,
3084,
62,
18638,
62,
45151,
33411,
366,
25729,
1,
3268,
19203,
343,
272,
3256,
705,
521,
1952,
544,
11537,
38678,
11050,
... |
can you list all round trip flights from ORLANDO to KANSAS CITY and then to MINNEAPOLIS | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, fare, flight, flight_fare, flight_stop WHERE ((CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'KA... | [
5171,
345,
1351,
477,
2835,
5296,
13956,
422,
6375,
28182,
46,
284,
509,
15037,
1921,
27993,
290,
788,
284,
20625,
12161,
2969,
3535,
1797,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5171,
345,
1351,
477,
2835,
5296,
13956,
422,
6375,
28182,
46,
284,
509,
15037,
1921,
27993,
290,
788,
284,
20625,
12161,
2969,
3535,
1797,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
154... |
what is the official rating 16-39 for the episode with a 16-39 share of 22,77%? | SELECT official_rating_16_39 FROM table_29804176_23 WHERE share_16_39 = "22,77%" | [
10919,
318,
262,
1743,
7955,
1467,
12,
2670,
329,
262,
4471,
351,
257,
1467,
12,
2670,
2648,
286,
2534,
11,
3324,
4,
30,
46506,
1743,
62,
8821,
62,
1433,
62,
2670,
16034,
3084,
62,
1959,
36088,
24096,
62,
1954,
33411,
2648,
62,
1433... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
7955,
1467,
12,
2670,
329,
262,
4471,
351,
257,
1467,
12,
2670,
2648,
286,
2534,
11,
3324,
4,
30,
46506,
1743,
62,
8821,
62,
1433,
62,
2670,
16034,
3084,
62,
1959,
36088,
24096,
62,
1954,
33411,
2648,
62,
1433... |
For those records from the products and each product's manufacturer, find name and the sum of revenue , and group by attribute name, and visualize them by a bar chart, I want to sort Y-axis in asc order. | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T2.Revenue | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
262,
2160,
286,
6426,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
3297,
575,
12,
22704,
287,
1057... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
262,
2160,
286,
6426,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
3297,
575,
12,
22704,
287,
1057... |
What is the Nationality with an Elector with bertrand de saint-martin? | SELECT nationality FROM table_name_36 WHERE elector = "bertrand de saint-martin" | [
2061,
318,
262,
2351,
414,
351,
281,
5903,
273,
351,
275,
861,
25192,
390,
32292,
12,
13822,
259,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
2623,
33411,
43191,
796,
366,
527,
2213,
392,
390,
32292,
12,
13822,
259,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2351,
414,
351,
281,
5903,
273,
351,
275,
861,
25192,
390,
32292,
12,
13822,
259,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
2623,
33411,
43191,
796,
366,
527,
2213,
392,
390,
32292,
12,
13822,
259,
1
] |
count the number of times patient 016-2639 had been prescribed 1000 ml flex cont: dextrose-nacl 5-0.45 % iv soln the last year. | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-2639')) AND medication.drugname = '1000 ml flex cont: dextrose-nacl 5-0.45... | [
9127,
262,
1271,
286,
1661,
5827,
5534,
21,
12,
2075,
2670,
550,
587,
14798,
8576,
25962,
7059,
542,
25,
390,
742,
13698,
12,
77,
37779,
642,
12,
15,
13,
2231,
4064,
21628,
1540,
77,
262,
938,
614,
13,
46506,
327,
28270,
7,
28104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
5827,
5534,
21,
12,
2075,
2670,
550,
587,
14798,
8576,
25962,
7059,
542,
25,
390,
742,
13698,
12,
77,
37779,
642,
12,
15,
13,
2231,
4064,
21628,
1540,
77,
262,
938,
614,
13,
46506,
327,
28270,
7,
28104,
... |
Which 2004 has a Tournament of french open? | SELECT 2004 FROM table_name_41 WHERE tournament = "french open" | [
13828,
5472,
468,
257,
9595,
286,
48718,
1280,
30,
46506,
5472,
16034,
3084,
62,
3672,
62,
3901,
33411,
7756,
796,
366,
69,
3532,
1280,
1
] | [
1,
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,
5472,
468,
257,
9595,
286,
48718,
1280,
30,
46506,
5472,
16034,
3084,
62,
3672,
62,
3901,
33411,
7756,
796,
366,
69,
3532,
1280,
1
] |
What is the tournament when 2010 is not held? | SELECT tournament FROM table_name_86 WHERE 2010 = "not held" | [
2061,
318,
262,
7756,
618,
3050,
318,
407,
2714,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
4521,
33411,
3050,
796,
366,
1662,
2714,
1
] | [
1,
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,
7756,
618,
3050,
318,
407,
2714,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
4521,
33411,
3050,
796,
366,
1662,
2714,
1
] |
Which Tail Code belongs to Weapon Systems Officer Capt Charles B. Debellevue? | SELECT tail_code FROM table_name_29 WHERE weapon_systems_officer = "capt charles b. debellevue" | [
13828,
21759,
6127,
14448,
284,
13072,
11998,
10391,
6790,
7516,
347,
13,
1024,
6667,
2768,
518,
30,
46506,
7894,
62,
8189,
16034,
3084,
62,
3672,
62,
1959,
33411,
4282,
62,
10057,
82,
62,
14406,
263,
796,
366,
27144,
1149,
829,
275,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21759,
6127,
14448,
284,
13072,
11998,
10391,
6790,
7516,
347,
13,
1024,
6667,
2768,
518,
30,
46506,
7894,
62,
8189,
16034,
3084,
62,
3672,
62,
1959,
33411,
4282,
62,
10057,
82,
62,
14406,
263,
796,
366,
27144,
1149,
829,
275,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.