instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Where did Scott Fitzgerald rank on the UK charts? | SELECT "UK Chart" FROM table_65325 WHERE "Artist" = 'scott fitzgerald' | [
8496,
750,
4746,
28397,
4279,
319,
262,
3482,
15907,
30,
46506,
366,
15039,
22086,
1,
16034,
3084,
62,
2996,
26582,
33411,
366,
43020,
1,
796,
705,
1416,
1252,
4197,
89,
26941,
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
] | [
8496,
750,
4746,
28397,
4279,
319,
262,
3482,
15907,
30,
46506,
366,
15039,
22086,
1,
16034,
3084,
62,
2996,
26582,
33411,
366,
43020,
1,
796,
705,
1416,
1252,
4197,
89,
26941,
6
] |
Which Bronze has a Gold larger than 1, and a Total larger than 11, and a Silver larger than 5? | SELECT AVG(bronze) FROM table_name_36 WHERE gold > 1 AND total > 11 AND silver > 5 | [
13828,
19461,
468,
257,
3561,
4025,
621,
352,
11,
290,
257,
7472,
4025,
621,
1367,
11,
290,
257,
7698,
4025,
621,
642,
30,
46506,
35224,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
2623,
33411,
3869,
1875,
352,
5357,
2472,
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,
1,
1,
1,
1
] | [
13828,
19461,
468,
257,
3561,
4025,
621,
352,
11,
290,
257,
7472,
4025,
621,
1367,
11,
290,
257,
7698,
4025,
621,
642,
30,
46506,
35224,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
2623,
33411,
3869,
1875,
352,
5357,
2472,
1875... |
how many yachts are on the list total ? | SELECT COUNT("yacht") FROM table_204_431 | [
4919,
867,
331,
620,
912,
389,
319,
262,
1351,
2472,
5633,
46506,
327,
28270,
7203,
88,
19725,
4943,
16034,
3084,
62,
18638,
62,
50080
] | [
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,
331,
620,
912,
389,
319,
262,
1351,
2472,
5633,
46506,
327,
28270,
7203,
88,
19725,
4943,
16034,
3084,
62,
18638,
62,
50080
] |
Who is number 4 when Harper is number 10 and Abigail is number 5? | SELECT "No. 4" FROM table_48022 WHERE "No. 10" = 'harper' AND "No. 5" = 'abigail' | [
8241,
318,
1271,
604,
618,
12686,
318,
1271,
838,
290,
2275,
328,
603,
318,
1271,
642,
30,
46506,
366,
2949,
13,
604,
1,
16034,
3084,
62,
22148,
1828,
33411,
366,
2949,
13,
838,
1,
796,
705,
9869,
525,
6,
5357,
366,
2949,
13,
642,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
604,
618,
12686,
318,
1271,
838,
290,
2275,
328,
603,
318,
1271,
642,
30,
46506,
366,
2949,
13,
604,
1,
16034,
3084,
62,
22148,
1828,
33411,
366,
2949,
13,
838,
1,
796,
705,
9869,
525,
6,
5357,
366,
2949,
13,
642,... |
What is the status of Norris? | SELECT status FROM table_name_31 WHERE name = "norris" | [
2061,
318,
262,
3722,
286,
33444,
30,
46506,
3722,
16034,
3084,
62,
3672,
62,
3132,
33411,
1438,
796,
366,
13099,
2442,
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,
3722,
286,
33444,
30,
46506,
3722,
16034,
3084,
62,
3672,
62,
3132,
33411,
1438,
796,
366,
13099,
2442,
1
] |
For a venue of Rome on July 30, 2009, what are the notes? | SELECT "Notes" FROM table_68730 WHERE "Venue" = 'rome' AND "Date" = 'july 30, 2009' | [
1890,
257,
14359,
286,
10598,
319,
2901,
1542,
11,
3717,
11,
644,
389,
262,
4710,
30,
46506,
366,
16130,
1,
16034,
3084,
62,
39925,
1270,
33411,
366,
37522,
518,
1,
796,
705,
5998,
6,
5357,
366,
10430,
1,
796,
705,
73,
2062,
1542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
14359,
286,
10598,
319,
2901,
1542,
11,
3717,
11,
644,
389,
262,
4710,
30,
46506,
366,
16130,
1,
16034,
3084,
62,
39925,
1270,
33411,
366,
37522,
518,
1,
796,
705,
5998,
6,
5357,
366,
10430,
1,
796,
705,
73,
2062,
1542,
... |
how many patients primarily suffering from sdh had their lab test fluid as urine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "SDH" AND lab.fluid = "Urine" | [
4919,
867,
3871,
7525,
7195,
422,
264,
34985,
550,
511,
2248,
1332,
11711,
355,
18922,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7525,
7195,
422,
264,
34985,
550,
511,
2248,
1332,
11711,
355,
18922,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
... |
What was the score of the game when the record was 18 43? | SELECT score FROM table_name_3 WHERE record = "18–43" | [
2061,
373,
262,
4776,
286,
262,
983,
618,
262,
1700,
373,
1248,
5946,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
18,
33411,
1700,
796,
366,
1507,
1906,
3559,
1
] | [
1,
1,
1,
1,
1,
1,
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,
286,
262,
983,
618,
262,
1700,
373,
1248,
5946,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
18,
33411,
1700,
796,
366,
1507,
1906,
3559,
1
] |
What is the low score for the jaguar r3 chasis? | SELECT MIN("Points") FROM table_57859 WHERE "Chassis" = 'jaguar r3' | [
2061,
318,
262,
1877,
4776,
329,
262,
474,
11433,
283,
374,
18,
442,
17765,
30,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
38907,
3270,
33411,
366,
1925,
20297,
1,
796,
705,
73,
11433,
283,
374,
18,
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,
1877,
4776,
329,
262,
474,
11433,
283,
374,
18,
442,
17765,
30,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
38907,
3270,
33411,
366,
1925,
20297,
1,
796,
705,
73,
11433,
283,
374,
18,
6
] |
What opponent has a record of 6-9? | SELECT "Opponent" FROM table_37350 WHERE "Record" = '6-9' | [
2061,
6125,
468,
257,
1700,
286,
718,
12,
24,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2718,
14877,
33411,
366,
23739,
1,
796,
705,
21,
12,
24,
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,
6125,
468,
257,
1700,
286,
718,
12,
24,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2718,
14877,
33411,
366,
23739,
1,
796,
705,
21,
12,
24,
6
] |
Name the most # of total votes with % of popular vote of 32.41% and # of seats won more than 95 | SELECT MAX(_number_of_total_votes) FROM table_name_31 WHERE _percentage_of_popular_vote = "32.41%" AND _number_of_seats_won > 95 | [
5376,
262,
749,
1303,
286,
2472,
5690,
351,
4064,
286,
2968,
3015,
286,
3933,
13,
3901,
4,
290,
1303,
286,
8632,
1839,
517,
621,
6957,
46506,
25882,
28264,
17618,
62,
1659,
62,
23350,
62,
29307,
8,
16034,
3084,
62,
3672,
62,
3132,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5376,
262,
749,
1303,
286,
2472,
5690,
351,
4064,
286,
2968,
3015,
286,
3933,
13,
3901,
4,
290,
1303,
286,
8632,
1839,
517,
621,
6957,
46506,
25882,
28264,
17618,
62,
1659,
62,
23350,
62,
29307,
8,
16034,
3084,
62,
3672,
62,
3132,
3... |
count the number of patients whose admission location is emergency room admit and procedure short title is closed liver biopsy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND procedures.short_title = "Closed liver biopsy" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
8771,
1790,
3670,
318,
4838,
14383,
3182,
44522,
30,
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... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
8771,
1790,
3670,
318,
4838,
14383,
3182,
44522,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
Name the production code for viewers for 1.69 | SELECT "Production code" FROM table_22904 WHERE "U.S. viewers (million)" = '1.69' | [
5376,
262,
3227,
2438,
329,
10209,
329,
352,
13,
3388,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
23539,
3023,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
16,
13,
3388,
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
] | [
5376,
262,
3227,
2438,
329,
10209,
329,
352,
13,
3388,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
23539,
3023,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
16,
13,
3388,
6
] |
What was the 2001-05 rate for the country that had 1981-85 rate of -3.48%? | SELECT "2001-05" FROM table_33438 WHERE "1981-85" = '-3.48%' | [
2061,
373,
262,
5878,
12,
2713,
2494,
329,
262,
1499,
326,
550,
14745,
12,
5332,
2494,
286,
532,
18,
13,
2780,
4,
30,
46506,
366,
14585,
12,
2713,
1,
16034,
3084,
62,
31380,
2548,
33411,
366,
35411,
12,
5332,
1,
796,
705,
12,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
5878,
12,
2713,
2494,
329,
262,
1499,
326,
550,
14745,
12,
5332,
2494,
286,
532,
18,
13,
2780,
4,
30,
46506,
366,
14585,
12,
2713,
1,
16034,
3084,
62,
31380,
2548,
33411,
366,
35411,
12,
5332,
1,
796,
705,
12,
18,
... |
Who was the opponent for game number less than 47 and a record of 24-13-4? | SELECT "Opponent" FROM table_38284 WHERE "Game" < '47' AND "Record" = '24-13-4' | [
8241,
373,
262,
6125,
329,
983,
1271,
1342,
621,
6298,
290,
257,
1700,
286,
1987,
12,
1485,
12,
19,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2548,
30336,
33411,
366,
8777,
1,
1279,
705,
2857,
6,
5357,
366,
23739,
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,
1,
1
] | [
8241,
373,
262,
6125,
329,
983,
1271,
1342,
621,
6298,
290,
257,
1700,
286,
1987,
12,
1485,
12,
19,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2548,
30336,
33411,
366,
8777,
1,
1279,
705,
2857,
6,
5357,
366,
23739,
1,
796,
7... |
Comments per post for user, most to least. | SELECT @UserID AS "user_link", PostId AS "post_link", COUNT(*) AS Comments FROM Comments WHERE UserId = @UserId GROUP BY PostId ORDER BY Comments DESC | [
23903,
583,
1281,
329,
2836,
11,
749,
284,
1551,
13,
46506,
2488,
12982,
2389,
7054,
366,
7220,
62,
8726,
1600,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
327,
28270,
7,
28104,
7054,
19502,
16034,
19502,
33411,
11787,
7390,
796,
2488,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23903,
583,
1281,
329,
2836,
11,
749,
284,
1551,
13,
46506,
2488,
12982,
2389,
7054,
366,
7220,
62,
8726,
1600,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
327,
28270,
7,
28104,
7054,
19502,
16034,
19502,
33411,
11787,
7390,
796,
2488,... |
What is the total rank number for Los Alamos' girls cross country? | SELECT COUNT("Rank") FROM table_75519 WHERE "School" = 'los alamos' AND "Sport" = 'girls cross country' | [
2061,
318,
262,
2472,
4279,
1271,
329,
5401,
41514,
418,
6,
4813,
3272,
1499,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
38172,
1129,
33411,
366,
26130,
1,
796,
705,
33280,
435,
321,
418,
6,
5357,
366,
42576,
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
] | [
2061,
318,
262,
2472,
4279,
1271,
329,
5401,
41514,
418,
6,
4813,
3272,
1499,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
38172,
1129,
33411,
366,
26130,
1,
796,
705,
33280,
435,
321,
418,
6,
5357,
366,
42576,
1,
796,
... |
What prize did good old boy win in 2002 at the camra london and south east regional competition? | SELECT prize FROM table_name_31 WHERE year > 2002 AND competition = "camra london and south east regional competition" AND beer_name = "good old boy" | [
2061,
11596,
750,
922,
1468,
2933,
1592,
287,
6244,
379,
262,
12172,
430,
300,
3391,
290,
5366,
7627,
7915,
5449,
30,
46506,
11596,
16034,
3084,
62,
3672,
62,
3132,
33411,
614,
1875,
6244,
5357,
5449,
796,
366,
20991,
430,
300,
3391,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11596,
750,
922,
1468,
2933,
1592,
287,
6244,
379,
262,
12172,
430,
300,
3391,
290,
5366,
7627,
7915,
5449,
30,
46506,
11596,
16034,
3084,
62,
3672,
62,
3132,
33411,
614,
1875,
6244,
5357,
5449,
796,
366,
20991,
430,
300,
3391,
... |
For each classroom with at least 2 classes, how many classes are offered, and sort in asc by the y-axis. | SELECT CLASS_ROOM, COUNT(*) FROM CLASS GROUP BY CLASS_ROOM ORDER BY COUNT(*) | [
1890,
1123,
15806,
351,
379,
1551,
362,
6097,
11,
703,
867,
6097,
389,
4438,
11,
290,
3297,
287,
10570,
416,
262,
331,
12,
22704,
13,
46506,
42715,
62,
13252,
2662,
11,
327,
28270,
7,
28104,
16034,
42715,
44441,
11050,
42715,
62,
1325... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15806,
351,
379,
1551,
362,
6097,
11,
703,
867,
6097,
389,
4438,
11,
290,
3297,
287,
10570,
416,
262,
331,
12,
22704,
13,
46506,
42715,
62,
13252,
2662,
11,
327,
28270,
7,
28104,
16034,
42715,
44441,
11050,
42715,
62,
1325... |
What is the earliest year the world junior championships has 1500 m notes? | SELECT MIN(year) FROM table_name_85 WHERE notes = "1500 m" AND competition = "world junior championships" | [
2061,
318,
262,
14555,
614,
262,
995,
13430,
27459,
468,
20007,
285,
4710,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
4710,
796,
366,
33698,
285,
1,
5357,
5449,
796,
366,
6894,
13430,
27459,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14555,
614,
262,
995,
13430,
27459,
468,
20007,
285,
4710,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
4710,
796,
366,
33698,
285,
1,
5357,
5449,
796,
366,
6894,
13430,
27459,
1
] |
Which round has an Opposing Team of manchester united? | SELECT round FROM table_name_64 WHERE opposing_team = "manchester united" | [
13828,
2835,
468,
281,
9385,
2752,
4816,
286,
582,
35983,
16503,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
2414,
33411,
12330,
62,
15097,
796,
366,
805,
35983,
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,
1,
1,
1
] | [
13828,
2835,
468,
281,
9385,
2752,
4816,
286,
582,
35983,
16503,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
2414,
33411,
12330,
62,
15097,
796,
366,
805,
35983,
16503,
1
] |
i would like a nonstop flight from MEMPHIS to LAS VEGAS on 3 2 | 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 = 'LAS VEGAS' AND date_day.day_number = 2 AND date_day.month_number = 3 AND... | [
72,
561,
588,
257,
1729,
11338,
5474,
422,
35153,
11909,
1797,
284,
406,
1921,
569,
7156,
1921,
319,
513,
362,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
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,
1... | [
72,
561,
588,
257,
1729,
11338,
5474,
422,
35153,
11909,
1797,
284,
406,
1921,
569,
7156,
1921,
319,
513,
362,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
1... |
What is the latitude with a GEO ID larger than 3806352640, and a Land(sqmi) of 34.345? | SELECT AVG(latitude) FROM table_name_98 WHERE geo_id > 3806352640 AND land___sqmi__ = 34.345 | [
2061,
318,
262,
32477,
351,
257,
402,
4720,
4522,
4025,
621,
29101,
48250,
2075,
1821,
11,
290,
257,
6379,
7,
31166,
11632,
8,
286,
4974,
13,
27712,
30,
46506,
35224,
7,
15460,
3984,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
40087,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
32477,
351,
257,
402,
4720,
4522,
4025,
621,
29101,
48250,
2075,
1821,
11,
290,
257,
6379,
7,
31166,
11632,
8,
286,
4974,
13,
27712,
30,
46506,
35224,
7,
15460,
3984,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
40087,
... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of founder and the sum of code , and group by attribute founder, I want to sort by the Y-axis in desc. | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T1.Code DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
9119,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
314,
765,
284,
3297,
416,
262,
575,
12,
22704,
287,
1715... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2318,
8262,
2523,
262,
6082,
286,
9119,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
314,
765,
284,
3297,
416,
262,
575,
12,
22704,
287,
1715... |
For each denomination, return the denomination and the count of schools with that denomination. Visualize by bar 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,
2318,
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,
2318,
8262,
13,
46506,
5601,
27744,
11,
327,
28270,
7,
28104,
16034,
1524,
44441,
11050,
5601,
27744
] |
What is the name of the constructor when report shows report in 1955? | SELECT constructor FROM table_name_48 WHERE "report" = "report" AND year = "1955" | [
2061,
318,
262,
1438,
286,
262,
23772,
618,
989,
2523,
989,
287,
25325,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
2780,
33411,
366,
13116,
1,
796,
366,
13116,
1,
5357,
614,
796,
366,
1129,
2816,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23772,
618,
989,
2523,
989,
287,
25325,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
2780,
33411,
366,
13116,
1,
796,
366,
13116,
1,
5357,
614,
796,
366,
1129,
2816,
1
] |
Which catalog contents have length below 3 or above 5? Find the catalog entry names. | SELECT catalog_entry_name FROM catalog_contents WHERE length < 3 OR width > 5 | [
13828,
18388,
10154,
423,
4129,
2174,
513,
393,
2029,
642,
30,
9938,
262,
18388,
5726,
3891,
13,
46506,
18388,
62,
13000,
62,
3672,
16034,
18388,
62,
3642,
658,
33411,
4129,
1279,
513,
6375,
9647,
1875,
642
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18388,
10154,
423,
4129,
2174,
513,
393,
2029,
642,
30,
9938,
262,
18388,
5726,
3891,
13,
46506,
18388,
62,
13000,
62,
3672,
16034,
18388,
62,
3642,
658,
33411,
4129,
1279,
513,
6375,
9647,
1875,
642
] |
What is the lowest Winner's share ( ) in 2011? | SELECT MIN("Winner's share (\u00a5)") FROM table_59386 WHERE "Year" = '2011' | [
2061,
318,
262,
9016,
25358,
338,
2648,
357,
1267,
287,
2813,
30,
46506,
20625,
7203,
48056,
338,
2648,
357,
59,
84,
405,
64,
20,
8,
4943,
16034,
3084,
62,
3270,
21734,
33411,
366,
17688,
1,
796,
705,
9804,
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,
9016,
25358,
338,
2648,
357,
1267,
287,
2813,
30,
46506,
20625,
7203,
48056,
338,
2648,
357,
59,
84,
405,
64,
20,
8,
4943,
16034,
3084,
62,
3270,
21734,
33411,
366,
17688,
1,
796,
705,
9804,
6
] |
cheapest fare round trip from INDIANAPOLIS to ORLANDO on 12 27 | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND C... | [
2395,
35746,
14505,
2835,
5296,
422,
24413,
16868,
2969,
3535,
1797,
284,
6375,
28182,
46,
319,
1105,
2681,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2395,
35746,
14505,
2835,
5296,
422,
24413,
16868,
2969,
3535,
1797,
284,
6375,
28182,
46,
319,
1105,
2681,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11... |
What is the city of txdot har? | SELECT "City of License" FROM table_69195 WHERE "Brand" = 'txdot har' | [
2061,
318,
262,
1748,
286,
256,
24954,
313,
3971,
30,
46506,
366,
14941,
286,
13789,
1,
16034,
3084,
62,
3388,
22186,
33411,
366,
38416,
1,
796,
705,
17602,
26518,
3971,
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
] | [
2061,
318,
262,
1748,
286,
256,
24954,
313,
3971,
30,
46506,
366,
14941,
286,
13789,
1,
16034,
3084,
62,
3388,
22186,
33411,
366,
38416,
1,
796,
705,
17602,
26518,
3971,
6
] |
Name the l g for rubio | SELECT "L G" FROM table_25108 WHERE "Player" = 'Rubio' | [
5376,
262,
300,
308,
329,
6437,
952,
46506,
366,
43,
402,
1,
16034,
3084,
62,
1495,
15711,
33411,
366,
14140,
1,
796,
705,
21312,
952,
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
] | [
5376,
262,
300,
308,
329,
6437,
952,
46506,
366,
43,
402,
1,
16034,
3084,
62,
1495,
15711,
33411,
366,
14140,
1,
796,
705,
21312,
952,
6
] |
For those employees who was hired before 2002-06-21, give me the comparison about the average of manager_id over the hire_date bin hire_date by time, list in asc by the Y-axis. | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(MANAGER_ID) | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
4706,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
11,
1351,
287,
10570,
416,
262,
575,
12,
227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
4706,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
11,
1351,
287,
10570,
416,
262,
575,
12,
227... |
What is the reserved for (SC/ST/None) when number of electorates (2009) is larger than 101,595, and constituency is 49? | SELECT "Reserved for ( SC / ST /None)" FROM table_62680 WHERE "Number of electorates (2009)" > '101,595' AND "Constituency number" = '49' | [
2061,
318,
262,
10395,
329,
357,
6173,
14,
2257,
14,
14202,
8,
618,
1271,
286,
43191,
689,
357,
10531,
8,
318,
4025,
621,
8949,
11,
35124,
11,
290,
28280,
318,
5125,
30,
46506,
366,
4965,
8520,
329,
357,
6374,
1220,
3563,
1220,
1420... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10395,
329,
357,
6173,
14,
2257,
14,
14202,
8,
618,
1271,
286,
43191,
689,
357,
10531,
8,
318,
4025,
621,
8949,
11,
35124,
11,
290,
28280,
318,
5125,
30,
46506,
366,
4965,
8520,
329,
357,
6374,
1220,
3563,
1220,
1420... |
What was the engine driven by Jean-Pierre Jarier and has a chassis of PC4? | SELECT engine FROM table_name_66 WHERE driver = "jean-pierre jarier" AND chassis = "pc4" | [
2061,
373,
262,
3113,
7986,
416,
11320,
12,
36910,
15374,
959,
290,
468,
257,
24587,
286,
4217,
19,
30,
46506,
3113,
16034,
3084,
62,
3672,
62,
2791,
33411,
4639,
796,
366,
73,
11025,
12,
79,
31058,
17379,
959,
1,
5357,
24587,
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
] | [
2061,
373,
262,
3113,
7986,
416,
11320,
12,
36910,
15374,
959,
290,
468,
257,
24587,
286,
4217,
19,
30,
46506,
3113,
16034,
3084,
62,
3672,
62,
2791,
33411,
4639,
796,
366,
73,
11025,
12,
79,
31058,
17379,
959,
1,
5357,
24587,
796,
... |
what is the highest ANSI code with a latitude more than 47.623288 and a geo id more than 3805508060 with land (sqmi) more than 35.66 and a longitude less than -102.054248 | SELECT MAX(ansi_code) FROM table_name_98 WHERE latitude > 47.623288 AND geo_id > 3805508060 AND land___sqmi__ > 35.66 AND longitude < -102.054248 | [
10919,
318,
262,
4511,
3537,
11584,
2438,
351,
257,
32477,
517,
621,
6298,
13,
46872,
25270,
290,
257,
40087,
4686,
517,
621,
29101,
22730,
1795,
1899,
351,
1956,
357,
31166,
11632,
8,
517,
621,
3439,
13,
2791,
290,
257,
890,
3984,
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,
318,
262,
4511,
3537,
11584,
2438,
351,
257,
32477,
517,
621,
6298,
13,
46872,
25270,
290,
257,
40087,
4686,
517,
621,
29101,
22730,
1795,
1899,
351,
1956,
357,
31166,
11632,
8,
517,
621,
3439,
13,
2791,
290,
257,
890,
3984,
13... |
What was the date of the game when St. Louis was the home team? | SELECT "Date" FROM table_6085 WHERE "Home" = 'st. louis' | [
2061,
373,
262,
3128,
286,
262,
983,
618,
520,
13,
5593,
373,
262,
1363,
1074,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1899,
5332,
33411,
366,
16060,
1,
796,
705,
301,
13,
21081,
271,
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,
373,
262,
3128,
286,
262,
983,
618,
520,
13,
5593,
373,
262,
1363,
1074,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1899,
5332,
33411,
366,
16060,
1,
796,
705,
301,
13,
21081,
271,
6
] |
What is the average time in a rank of 61? | SELECT AVG(time) FROM table_name_29 WHERE rank = 61 | [
2061,
318,
262,
2811,
640,
287,
257,
4279,
286,
8454,
30,
46506,
35224,
7,
2435,
8,
16034,
3084,
62,
3672,
62,
1959,
33411,
4279,
796,
8454
] | [
1,
1,
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,
2811,
640,
287,
257,
4279,
286,
8454,
30,
46506,
35224,
7,
2435,
8,
16034,
3084,
62,
3672,
62,
1959,
33411,
4279,
796,
8454
] |
Find the status of orders which belong to the customer named 'Jeramie', group by order status, and count them. Show the result with a bar chart. | SELECT T2.order_status, COUNT(T2.order_status) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie" GROUP BY order_status | [
16742,
262,
3722,
286,
6266,
543,
5594,
284,
262,
6491,
3706,
705,
36134,
321,
494,
3256,
1448,
416,
1502,
3722,
11,
290,
954,
606,
13,
5438,
262,
1255,
351,
257,
2318,
8262,
13,
46506,
309,
17,
13,
2875,
62,
13376,
11,
327,
28270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
3722,
286,
6266,
543,
5594,
284,
262,
6491,
3706,
705,
36134,
321,
494,
3256,
1448,
416,
1502,
3722,
11,
290,
954,
606,
13,
5438,
262,
1255,
351,
257,
2318,
8262,
13,
46506,
309,
17,
13,
2875,
62,
13376,
11,
327,
28270,
... |
What is the First Branch Opened, when Branch is Belmont Library? | SELECT first_branch_opened FROM table_name_21 WHERE branch = "belmont library" | [
2061,
318,
262,
3274,
20551,
8670,
2945,
11,
618,
20551,
318,
3944,
8691,
10074,
30,
46506,
717,
62,
1671,
3702,
62,
26350,
16034,
3084,
62,
3672,
62,
2481,
33411,
8478,
796,
366,
6667,
8691,
5888,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3274,
20551,
8670,
2945,
11,
618,
20551,
318,
3944,
8691,
10074,
30,
46506,
717,
62,
1671,
3702,
62,
26350,
16034,
3084,
62,
3672,
62,
2481,
33411,
8478,
796,
366,
6667,
8691,
5888,
1
] |
What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Championships? | SELECT "FIS Nordic World Ski Championships" FROM table_21694 WHERE "Country" = 'Norway' AND "Holmenkollen" = '1958' | [
2061,
614,
750,
262,
582,
422,
15238,
508,
1839,
262,
6479,
3653,
74,
29952,
287,
24648,
1592,
262,
376,
1797,
35834,
2159,
38809,
24782,
30,
46506,
366,
37,
1797,
35834,
2159,
38809,
24782,
1,
16034,
3084,
62,
20666,
5824,
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
] | [
2061,
614,
750,
262,
582,
422,
15238,
508,
1839,
262,
6479,
3653,
74,
29952,
287,
24648,
1592,
262,
376,
1797,
35834,
2159,
38809,
24782,
30,
46506,
366,
37,
1797,
35834,
2159,
38809,
24782,
1,
16034,
3084,
62,
20666,
5824,
33411,
366,
... |
What is the Rank of Qi Hui? | SELECT COUNT(rank) FROM table_name_52 WHERE name = "qi hui" | [
2061,
318,
262,
10916,
286,
21924,
367,
9019,
30,
46506,
327,
28270,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
1438,
796,
366,
40603,
289,
9019,
1
] | [
1,
1,
1,
1,
1,
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,
10916,
286,
21924,
367,
9019,
30,
46506,
327,
28270,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
1438,
796,
366,
40603,
289,
9019,
1
] |
in 05/2103, when was the first time patient 002-38644 was prescribed insulin lispro (humalog) injection 0-20 units and duoneb at the same time? | SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'insulin lispro (humalog) injection 0-20 units' AND patient.uniquepid = '002-38644' AND STRFTIME('%y-%m', medication.drugs... | [
259,
8870,
14,
17,
15197,
11,
618,
373,
262,
717,
640,
5827,
3571,
17,
12,
2548,
29173,
373,
14798,
14588,
300,
271,
1676,
357,
17047,
11794,
8,
16954,
657,
12,
1238,
4991,
290,
7043,
505,
65,
379,
262,
976,
640,
30,
46506,
256,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
259,
8870,
14,
17,
15197,
11,
618,
373,
262,
717,
640,
5827,
3571,
17,
12,
2548,
29173,
373,
14798,
14588,
300,
271,
1676,
357,
17047,
11794,
8,
16954,
657,
12,
1238,
4991,
290,
7043,
505,
65,
379,
262,
976,
640,
30,
46506,
256,
1... |
Show the number of male and female assistant professors Plot them as bar chart, and I want to display y axis in descending order. | SELECT Sex, COUNT(*) FROM Faculty WHERE Rank = "AsstProf" GROUP BY Sex ORDER BY COUNT(*) DESC | [
15307,
262,
1271,
286,
4257,
290,
4048,
8796,
20339,
28114,
606,
355,
2318,
8262,
11,
290,
314,
765,
284,
3359,
331,
16488,
287,
31491,
1502,
13,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
35262,
33411,
10916,
796,
366,
1722,
301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4257,
290,
4048,
8796,
20339,
28114,
606,
355,
2318,
8262,
11,
290,
314,
765,
284,
3359,
331,
16488,
287,
31491,
1502,
13,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
35262,
33411,
10916,
796,
366,
1722,
301,
... |
What is the platelet count when partial thromboplastin time and bleeding time are unaffected? | SELECT platelet_count FROM table_221653_1 WHERE partial_thromboplastin_time = "Unaffected" AND bleeding_time = "Unaffected" | [
2061,
318,
262,
7480,
1616,
954,
618,
13027,
294,
398,
65,
404,
12957,
259,
640,
290,
16832,
640,
389,
35290,
30,
46506,
7480,
1616,
62,
9127,
16034,
3084,
62,
1828,
1433,
4310,
62,
16,
33411,
13027,
62,
400,
398,
65,
404,
12957,
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
] | [
2061,
318,
262,
7480,
1616,
954,
618,
13027,
294,
398,
65,
404,
12957,
259,
640,
290,
16832,
640,
389,
35290,
30,
46506,
7480,
1616,
62,
9127,
16034,
3084,
62,
1828,
1433,
4310,
62,
16,
33411,
13027,
62,
400,
398,
65,
404,
12957,
25... |
please give me the UA flights from DENVER to BALTIMORE that are the FIRST class flights please | 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, fare, fare_basis, flight, flight_fare 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_cod... | [
29688,
1577,
502,
262,
46164,
13956,
422,
37692,
5959,
284,
347,
31429,
3955,
6965,
326,
389,
262,
31328,
1398,
13956,
3387,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
46164,
13956,
422,
37692,
5959,
284,
347,
31429,
3955,
6965,
326,
389,
262,
31328,
1398,
13956,
3387,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
... |
count the number of patients who were admitted before year 2111 and had done a heparin, lmw lab test. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2111" AND lab.label = "Heparin, LMW" | [
9127,
262,
1271,
286,
3871,
508,
547,
6848,
878,
614,
362,
16243,
290,
550,
1760,
257,
339,
1845,
259,
11,
300,
76,
86,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
6848,
878,
614,
362,
16243,
290,
550,
1760,
257,
339,
1845,
259,
11,
300,
76,
86,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
What is the nation when the for is 326? | SELECT "Nation" FROM table_28838 WHERE "for" = '326' | [
2061,
318,
262,
3277,
618,
262,
329,
318,
40660,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
25270,
2548,
33411,
366,
1640,
1,
796,
705,
39195,
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
] | [
2061,
318,
262,
3277,
618,
262,
329,
318,
40660,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
25270,
2548,
33411,
366,
1640,
1,
796,
705,
39195,
6
] |
What is the least amount of prize money when there are 21 events? | SELECT MIN("Prize money ( $ )") FROM table_36215 WHERE "Events" = '21' | [
2061,
318,
262,
1551,
2033,
286,
11596,
1637,
618,
612,
389,
2310,
2995,
30,
46506,
20625,
7203,
34487,
2736,
1637,
357,
720,
1267,
4943,
16034,
3084,
62,
2623,
23349,
33411,
366,
37103,
1,
796,
705,
2481,
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,
1551,
2033,
286,
11596,
1637,
618,
612,
389,
2310,
2995,
30,
46506,
20625,
7203,
34487,
2736,
1637,
357,
720,
1267,
4943,
16034,
3084,
62,
2623,
23349,
33411,
366,
37103,
1,
796,
705,
2481,
6
] |
Get the number of inpatient hospital admitted patients with upper gi bleed as their primary disease. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.diagnosis = "UPPER GI BLEED" | [
3855,
262,
1271,
286,
287,
26029,
4436,
6848,
3871,
351,
6727,
308,
72,
30182,
355,
511,
4165,
4369,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
24886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3855,
262,
1271,
286,
287,
26029,
4436,
6848,
3871,
351,
6727,
308,
72,
30182,
355,
511,
4165,
4369,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
24886,
... |
Which Third has a Champion of metalurh novomoskovsk? | SELECT "Third" FROM table_44581 WHERE "Champion" = 'metalurh novomoskovsk' | [
13828,
10467,
468,
257,
15869,
286,
6147,
333,
71,
645,
85,
296,
418,
21862,
8135,
30,
46506,
366,
22747,
1,
16034,
3084,
62,
43489,
6659,
33411,
366,
1925,
6734,
1,
796,
705,
28469,
333,
71,
645,
85,
296,
418,
21862,
8135,
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
] | [
13828,
10467,
468,
257,
15869,
286,
6147,
333,
71,
645,
85,
296,
418,
21862,
8135,
30,
46506,
366,
22747,
1,
16034,
3084,
62,
43489,
6659,
33411,
366,
1925,
6734,
1,
796,
705,
28469,
333,
71,
645,
85,
296,
418,
21862,
8135,
6
] |
How many results for incumbent Noble Jones Gregory? | SELECT COUNT(district) FROM table_1342198_17 WHERE incumbent = "Noble Jones Gregory" | [
2437,
867,
2482,
329,
23526,
20833,
5437,
20653,
30,
46506,
327,
28270,
7,
17080,
2012,
8,
16034,
3084,
62,
1485,
3682,
22337,
62,
1558,
33411,
23526,
796,
366,
21191,
293,
5437,
20653,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2482,
329,
23526,
20833,
5437,
20653,
30,
46506,
327,
28270,
7,
17080,
2012,
8,
16034,
3084,
62,
1485,
3682,
22337,
62,
1558,
33411,
23526,
796,
366,
21191,
293,
5437,
20653,
1
] |
What is the record on February 23? | SELECT record FROM table_name_82 WHERE february = 23 | [
2061,
318,
262,
1700,
319,
3945,
2242,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
6469,
33411,
730,
65,
3728,
796,
2242
] | [
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,
1700,
319,
3945,
2242,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
6469,
33411,
730,
65,
3728,
796,
2242
] |
What is Nick Price's score? | SELECT "Score" FROM table_14870 WHERE "Player" = 'nick price' | [
2061,
318,
8047,
7886,
338,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
18294,
2154,
33411,
366,
14140,
1,
796,
705,
17172,
2756,
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,
8047,
7886,
338,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
18294,
2154,
33411,
366,
14140,
1,
796,
705,
17172,
2756,
6
] |
what was the top team according to position in table called ? | SELECT "team" FROM table_203_450 WHERE id = 1 | [
10919,
373,
262,
1353,
1074,
1864,
284,
2292,
287,
3084,
1444,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
22416,
62,
17885,
33411,
4686,
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,
1,
1,
1
] | [
10919,
373,
262,
1353,
1074,
1864,
284,
2292,
287,
3084,
1444,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
22416,
62,
17885,
33411,
4686,
796,
352
] |
what is marital status and gender of subject name jerry deberry? | SELECT demographic.marital_status, demographic.gender FROM demographic WHERE demographic.name = "Jerry Deberry" | [
10919,
318,
29555,
3722,
290,
5279,
286,
2426,
1438,
474,
6996,
390,
8396,
30,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
8388,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29555,
3722,
290,
5279,
286,
2426,
1438,
474,
6996,
390,
8396,
30,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
8388,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] |
how many comedians made their only appearance on comedy central presents in season 15 ? | SELECT COUNT("performer") FROM table_203_784 | [
4919,
867,
43520,
925,
511,
691,
5585,
319,
10997,
4318,
10969,
287,
1622,
1315,
5633,
46506,
327,
28270,
7203,
525,
16354,
4943,
16034,
3084,
62,
22416,
62,
37688
] | [
1,
1,
1,
1,
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,
43520,
925,
511,
691,
5585,
319,
10997,
4318,
10969,
287,
1622,
1315,
5633,
46506,
327,
28270,
7203,
525,
16354,
4943,
16034,
3084,
62,
22416,
62,
37688
] |
What location has a school with enrollment of 850? | SELECT "Location" FROM table_28523 WHERE "Enrollment" = '850' | [
2061,
4067,
468,
257,
1524,
351,
20753,
286,
30607,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
26279,
1954,
33411,
366,
4834,
48108,
1,
796,
705,
25764,
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
] | [
2061,
4067,
468,
257,
1524,
351,
20753,
286,
30607,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
26279,
1954,
33411,
366,
4834,
48108,
1,
796,
705,
25764,
6
] |
What is 1 vs 2 when total is more than 28 and 2 vs 3 is 8? | SELECT "1. vs 2." FROM table_12199 WHERE "Total" > '28' AND "2. vs 3." = '8' | [
2061,
318,
352,
3691,
362,
618,
2472,
318,
517,
621,
2579,
290,
362,
3691,
513,
318,
807,
30,
46506,
366,
16,
13,
3691,
362,
526,
16034,
3084,
62,
1065,
19104,
33411,
366,
14957,
1,
1875,
705,
2078,
6,
5357,
366,
17,
13,
3691,
513... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
352,
3691,
362,
618,
2472,
318,
517,
621,
2579,
290,
362,
3691,
513,
318,
807,
30,
46506,
366,
16,
13,
3691,
362,
526,
16034,
3084,
62,
1065,
19104,
33411,
366,
14957,
1,
1875,
705,
2078,
6,
5357,
366,
17,
13,
3691,
513... |
when was the last arterial bp [diastolic] of patient 25814 measured on this month/28? | SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25814)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial... | [
12518,
373,
262,
938,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
286,
5827,
37528,
1415,
8630,
319,
428,
1227,
14,
2078,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
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... | [
12518,
373,
262,
938,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
286,
5827,
37528,
1415,
8630,
319,
428,
1227,
14,
2078,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,... |
What is the position of the player with a pick less than 3 from team san diego? | SELECT "Position" FROM table_66564 WHERE "Pick" < '3' AND "Team" = 'san diego' | [
2061,
318,
262,
2292,
286,
262,
2137,
351,
257,
2298,
1342,
621,
513,
422,
1074,
5336,
4656,
2188,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
36879,
2414,
33411,
366,
31686,
1,
1279,
705,
18,
6,
5357,
366,
15592,
1,
796,
705,
12807,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
286,
262,
2137,
351,
257,
2298,
1342,
621,
513,
422,
1074,
5336,
4656,
2188,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
36879,
2414,
33411,
366,
31686,
1,
1279,
705,
18,
6,
5357,
366,
15592,
1,
796,
705,
12807,... |
What date had a result of W 41-0? | SELECT "Date" FROM table_65046 WHERE "Result" = 'w 41-0' | [
2061,
3128,
550,
257,
1255,
286,
370,
6073,
12,
15,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
17544,
3510,
33411,
366,
23004,
1,
796,
705,
86,
6073,
12,
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
] | [
2061,
3128,
550,
257,
1255,
286,
370,
6073,
12,
15,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
17544,
3510,
33411,
366,
23004,
1,
796,
705,
86,
6073,
12,
15,
6
] |
What driver has a stock car vehicle with a year of 1999? | SELECT driver FROM table_name_71 WHERE type_of_vehicle = "stock car" AND year = 1999 | [
2061,
4639,
468,
257,
4283,
1097,
4038,
351,
257,
614,
286,
7358,
30,
46506,
4639,
16034,
3084,
62,
3672,
62,
4869,
33411,
2099,
62,
1659,
62,
33892,
1548,
796,
366,
13578,
1097,
1,
5357,
614,
796,
7358
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4639,
468,
257,
4283,
1097,
4038,
351,
257,
614,
286,
7358,
30,
46506,
4639,
16034,
3084,
62,
3672,
62,
4869,
33411,
2099,
62,
1659,
62,
33892,
1548,
796,
366,
13578,
1097,
1,
5357,
614,
796,
7358
] |
did any organisms be found in the first peripheral blood lymphocytes microbiology test done on patient 10624 in 12/2105? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10624) AND microbiologyevents.spec_type_desc = 'peripheral blood lymphocytes' AND NOT microbiologyevents.org_name IS NULL AND STRFTIME('%y-%m', microbiologyevents.char... | [
20839,
597,
20296,
307,
1043,
287,
262,
717,
25514,
2910,
28837,
30309,
24559,
1435,
1332,
1760,
319,
5827,
15696,
1731,
287,
1105,
14,
17,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20839,
597,
20296,
307,
1043,
287,
262,
717,
25514,
2910,
28837,
30309,
24559,
1435,
1332,
1760,
319,
5827,
15696,
1731,
287,
1105,
14,
17,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
... |
how many times did patient 14982 visit the hospital? | SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 14982 | [
4919,
867,
1661,
750,
5827,
1478,
4089,
17,
3187,
262,
4436,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
18108,
76,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1478,
4089,
17
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
1661,
750,
5827,
1478,
4089,
17,
3187,
262,
4436,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
18108,
76,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1478,
4089,
17
] |
For those employees who did not have any job in the past, give me the comparison about the sum of manager_id over the hire_date bin hire_date by time by a bar chart. | SELECT HIRE_DATE, SUM(MANAGER_ID) 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,
1577,
502,
262,
7208,
546,
262,
2160,
286,
4706,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
416,
257,
2318,
8262,
13,
46506,
36210,
2200,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
262,
2160,
286,
4706,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
416,
257,
2318,
8262,
13,
46506,
36210,
2200,
... |
what was the top five most frequent drugs prescribed to patients within the same month after they had been prescribed promethazine hcl 25 mg/ml ij soln in 2105? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'promethazine hcl 25 mg/ml ij soln' AND STRFTIME('%y... | [
10919,
373,
262,
1353,
1936,
749,
10792,
5010,
14798,
284,
3871,
1626,
262,
976,
1227,
706,
484,
550,
587,
14798,
1552,
2788,
4994,
289,
565,
1679,
10527,
14,
4029,
1312,
73,
1540,
77,
287,
362,
13348,
30,
46506,
256,
18,
13,
30349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
1936,
749,
10792,
5010,
14798,
284,
3871,
1626,
262,
976,
1227,
706,
484,
550,
587,
14798,
1552,
2788,
4994,
289,
565,
1679,
10527,
14,
4029,
1312,
73,
1540,
77,
287,
362,
13348,
30,
46506,
256,
18,
13,
30349,
... |
What is the Date of the match with Opponent in the final Kenneth Carlsen? | SELECT "Date" FROM table_45476 WHERE "Opponent in the final" = 'kenneth carlsen' | [
2061,
318,
262,
7536,
286,
262,
2872,
351,
9385,
3471,
287,
262,
2457,
23632,
8124,
6248,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2231,
35435,
33411,
366,
27524,
3471,
287,
262,
2457,
1,
796,
705,
74,
1697,
2788,
1097,
75,
6248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7536,
286,
262,
2872,
351,
9385,
3471,
287,
262,
2457,
23632,
8124,
6248,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2231,
35435,
33411,
366,
27524,
3471,
287,
262,
2457,
1,
796,
705,
74,
1697,
2788,
1097,
75,
6248,
... |
Get old unanswered questions from users with recent activity. | SELECT question.Id AS "post_link" FROM Posts AS question | [
3855,
1468,
34001,
2683,
422,
2985,
351,
2274,
3842,
13,
46506,
1808,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
7054,
1808
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3855,
1468,
34001,
2683,
422,
2985,
351,
2274,
3842,
13,
46506,
1808,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
7054,
1808
] |
when did patient 010-16572 last have a maximum value of systemicsystolic during yesterday? | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-16572')) AND NOT vitalperiodic.systemicsystolic... | [
12518,
750,
5827,
5534,
15,
12,
1433,
48724,
938,
423,
257,
5415,
1988,
286,
1080,
873,
88,
301,
4160,
1141,
7415,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
750,
5827,
5534,
15,
12,
1433,
48724,
938,
423,
257,
5415,
1988,
286,
1080,
873,
88,
301,
4160,
1141,
7415,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
208... |
Who got the 3rd place in the cup on 01.02.2009? | SELECT "3rd place" FROM table_2253 WHERE "Date" = '01.02.2009' | [
8241,
1392,
262,
513,
4372,
1295,
287,
262,
6508,
319,
5534,
13,
2999,
13,
10531,
30,
46506,
366,
18,
4372,
1295,
1,
16034,
3084,
62,
18182,
18,
33411,
366,
10430,
1,
796,
705,
486,
13,
2999,
13,
10531,
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
] | [
8241,
1392,
262,
513,
4372,
1295,
287,
262,
6508,
319,
5534,
13,
2999,
13,
10531,
30,
46506,
366,
18,
4372,
1295,
1,
16034,
3084,
62,
18182,
18,
33411,
366,
10430,
1,
796,
705,
486,
13,
2999,
13,
10531,
6
] |
How many drivers have 1942 points? | SELECT COUNT("Driver") FROM table_25750 WHERE "Points" = '1942' | [
2437,
867,
6643,
423,
22458,
2173,
30,
46506,
327,
28270,
7203,
32103,
4943,
16034,
3084,
62,
1495,
15426,
33411,
366,
40710,
1,
796,
705,
1129,
3682,
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
] | [
2437,
867,
6643,
423,
22458,
2173,
30,
46506,
327,
28270,
7203,
32103,
4943,
16034,
3084,
62,
1495,
15426,
33411,
366,
40710,
1,
796,
705,
1129,
3682,
6
] |
What is the last name of the artist who sang the most songs? | SELECT T2.lastname FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1 | [
2061,
318,
262,
938,
1438,
286,
262,
6802,
508,
25889,
262,
749,
7259,
30,
46506,
309,
17,
13,
12957,
3672,
16034,
2854,
7054,
309,
16,
32357,
1268,
4097,
7054,
309,
17,
6177,
309,
16,
13,
3903,
9830,
796,
309,
17,
13,
312,
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... | [
2061,
318,
262,
938,
1438,
286,
262,
6802,
508,
25889,
262,
749,
7259,
30,
46506,
309,
17,
13,
12957,
3672,
16034,
2854,
7054,
309,
16,
32357,
1268,
4097,
7054,
309,
17,
6177,
309,
16,
13,
3903,
9830,
796,
309,
17,
13,
312,
32357,
... |
how many patients have stayed in the hospital for more than 2 days with sigmoid diverticulitis, colovestical fistula/sda? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA" AND demographic.days_stay > "2" | [
4919,
867,
3871,
423,
9658,
287,
262,
4436,
329,
517,
621,
362,
1528,
351,
264,
17225,
1868,
12312,
13370,
377,
11815,
11,
951,
709,
395,
605,
18606,
4712,
14,
82,
6814,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9658,
287,
262,
4436,
329,
517,
621,
362,
1528,
351,
264,
17225,
1868,
12312,
13370,
377,
11815,
11,
951,
709,
395,
605,
18606,
4712,
14,
82,
6814,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
327... |
What was the score when the place was t8? | SELECT "Score" FROM table_58717 WHERE "Place" = 't8' | [
2061,
373,
262,
4776,
618,
262,
1295,
373,
256,
23,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
44617,
1558,
33411,
366,
27271,
1,
796,
705,
83,
23,
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,
4776,
618,
262,
1295,
373,
256,
23,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
44617,
1558,
33411,
366,
27271,
1,
796,
705,
83,
23,
6
] |
how many interception return yards does this player have throughout his career ? | SELECT SUM("interception return yards") FROM table_204_957 | [
4919,
867,
28759,
1441,
5695,
857,
428,
2137,
423,
3690,
465,
3451,
5633,
46506,
35683,
7203,
3849,
4516,
1441,
5695,
4943,
16034,
3084,
62,
18638,
62,
24,
3553
] | [
1,
1,
1,
1,
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,
28759,
1441,
5695,
857,
428,
2137,
423,
3690,
465,
3451,
5633,
46506,
35683,
7203,
3849,
4516,
1441,
5695,
4943,
16034,
3084,
62,
18638,
62,
24,
3553
] |
what is the number of patients whose year of birth is less than 2053? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dob_year < "2053" | [
10919,
318,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
4310,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
286,
4082,
318,
1342,
621,
1160,
4310,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
43... |
How big is the 494 class ? | SELECT DISTINCT num_enrolled FROM course WHERE department = 'EECS' AND number = 494 | [
2437,
1263,
318,
262,
5125,
19,
1398,
5633,
46506,
360,
8808,
1268,
4177,
997,
62,
268,
8375,
16034,
1781,
33411,
5011,
796,
705,
36,
2943,
50,
6,
5357,
1271,
796,
5125,
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
] | [
2437,
1263,
318,
262,
5125,
19,
1398,
5633,
46506,
360,
8808,
1268,
4177,
997,
62,
268,
8375,
16034,
1781,
33411,
5011,
796,
705,
36,
2943,
50,
6,
5357,
1271,
796,
5125,
19
] |
Who has a license of proprietary (available on inquiry)? | SELECT name FROM table_name_67 WHERE license = "proprietary (available on inquiry)" | [
8241,
468,
257,
5964,
286,
20622,
357,
15182,
319,
12069,
19427,
46506,
1438,
16034,
3084,
62,
3672,
62,
3134,
33411,
5964,
796,
366,
1676,
3448,
8527,
357,
15182,
319,
12069,
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
] | [
8241,
468,
257,
5964,
286,
20622,
357,
15182,
319,
12069,
19427,
46506,
1438,
16034,
3084,
62,
3672,
62,
3134,
33411,
5964,
796,
366,
1676,
3448,
8527,
357,
15182,
319,
12069,
16725
] |
Which Binibining Pilipinas International has a Binibining Pilipinas-World of sharmaine gutierrez? | SELECT binibining_pilipinas_international FROM table_name_24 WHERE binibining_pilipinas_world = "sharmaine gutierrez" | [
13828,
20828,
571,
3191,
12693,
541,
24252,
4037,
468,
257,
20828,
571,
3191,
12693,
541,
24252,
12,
10603,
286,
427,
1670,
5718,
12500,
44448,
30,
46506,
9874,
571,
3191,
62,
79,
346,
541,
24252,
62,
45609,
16034,
3084,
62,
3672,
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
] | [
13828,
20828,
571,
3191,
12693,
541,
24252,
4037,
468,
257,
20828,
571,
3191,
12693,
541,
24252,
12,
10603,
286,
427,
1670,
5718,
12500,
44448,
30,
46506,
9874,
571,
3191,
62,
79,
346,
541,
24252,
62,
45609,
16034,
3084,
62,
3672,
62,
... |
Who is the player from United States who play in year 2003-06 in Toronto? | SELECT "Player" FROM table_31536 WHERE "Nationality" = 'united states' AND "Years in Toronto" = '2003-06' | [
8241,
318,
262,
2137,
422,
1578,
1829,
508,
711,
287,
614,
5816,
12,
3312,
287,
6586,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
27936,
2623,
33411,
366,
16186,
414,
1,
796,
705,
41187,
2585,
6,
5357,
366,
40630,
287,
6586,
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
] | [
8241,
318,
262,
2137,
422,
1578,
1829,
508,
711,
287,
614,
5816,
12,
3312,
287,
6586,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
27936,
2623,
33411,
366,
16186,
414,
1,
796,
705,
41187,
2585,
6,
5357,
366,
40630,
287,
6586,
1,
796,
... |
What Coding has a 3 UTR sequence of 6a 4 with a GenBank id of hq021439? | SELECT "Coding" FROM table_5218 WHERE "3\u2019UTR sequence" = '6a 4' AND "GenBank id" = 'hq021439' | [
2061,
327,
7656,
468,
257,
513,
471,
5446,
8379,
286,
718,
64,
604,
351,
257,
5215,
28650,
4686,
286,
289,
80,
2999,
1415,
2670,
30,
46506,
366,
34,
7656,
1,
16034,
3084,
62,
4309,
1507,
33411,
366,
18,
59,
84,
23344,
3843,
49,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
327,
7656,
468,
257,
513,
471,
5446,
8379,
286,
718,
64,
604,
351,
257,
5215,
28650,
4686,
286,
289,
80,
2999,
1415,
2670,
30,
46506,
366,
34,
7656,
1,
16034,
3084,
62,
4309,
1507,
33411,
366,
18,
59,
84,
23344,
3843,
49,
83... |
How many figures for birth/2013 when January-September is Oryol Oblast? | SELECT COUNT(birth_2013) FROM table_25703_1 WHERE january_september_2013 = "Oryol Oblast" | [
2437,
867,
5538,
329,
4082,
14,
6390,
618,
3269,
12,
17543,
318,
440,
563,
349,
1835,
12957,
30,
46506,
327,
28270,
7,
24280,
62,
6390,
8,
16034,
3084,
62,
1495,
36809,
62,
16,
33411,
42897,
2838,
62,
325,
457,
1491,
62,
6390,
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
] | [
2437,
867,
5538,
329,
4082,
14,
6390,
618,
3269,
12,
17543,
318,
440,
563,
349,
1835,
12957,
30,
46506,
327,
28270,
7,
24280,
62,
6390,
8,
16034,
3084,
62,
1495,
36809,
62,
16,
33411,
42897,
2838,
62,
325,
457,
1491,
62,
6390,
796,
... |
What are the majors of male (sex is M) students? | SELECT Major FROM STUDENT WHERE Sex = "M" | [
2061,
389,
262,
26353,
286,
4257,
357,
8044,
318,
337,
8,
2444,
30,
46506,
8386,
16034,
49348,
3525,
33411,
14419,
796,
366,
44,
1
] | [
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,
26353,
286,
4257,
357,
8044,
318,
337,
8,
2444,
30,
46506,
8386,
16034,
49348,
3525,
33411,
14419,
796,
366,
44,
1
] |
If 70+ is 2554, what is the 25 to 29 amount? | SELECT "25 to 29" FROM table_20830 WHERE "70+" = '2554' | [
1532,
4317,
10,
318,
1679,
4051,
11,
644,
318,
262,
1679,
284,
2808,
2033,
30,
46506,
366,
1495,
284,
2808,
1,
16034,
3084,
62,
21315,
1270,
33411,
366,
2154,
10,
1,
796,
705,
1495,
4051,
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
] | [
1532,
4317,
10,
318,
1679,
4051,
11,
644,
318,
262,
1679,
284,
2808,
2033,
30,
46506,
366,
1495,
284,
2808,
1,
16034,
3084,
62,
21315,
1270,
33411,
366,
2154,
10,
1,
796,
705,
1495,
4051,
6
] |
How many different instruments are used in the song 'Badlands'? | SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands" | [
2437,
867,
1180,
12834,
389,
973,
287,
262,
3496,
705,
22069,
4447,
30960,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
8875,
8,
16034,
12834,
7054,
309,
16,
32357,
1268,
7259,
7054,
309,
17,
6177,
309,
16,
13,
34050,
312,
796,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1180,
12834,
389,
973,
287,
262,
3496,
705,
22069,
4447,
30960,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
8875,
8,
16034,
12834,
7054,
309,
16,
32357,
1268,
7259,
7054,
309,
17,
6177,
309,
16,
13,
34050,
312,
796,
309,
... |
Who wrote the episode that has the production code ad1c05? | SELECT written_by FROM table_name_4 WHERE production_code = "ad1c05" | [
8241,
2630,
262,
4471,
326,
468,
262,
3227,
2438,
512,
16,
66,
2713,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
3672,
62,
19,
33411,
3227,
62,
8189,
796,
366,
324,
16,
66,
2713,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2630,
262,
4471,
326,
468,
262,
3227,
2438,
512,
16,
66,
2713,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
3672,
62,
19,
33411,
3227,
62,
8189,
796,
366,
324,
16,
66,
2713,
1
] |
in how many races did michael andretti come in pole position ? | SELECT COUNT("race name") FROM table_203_742 WHERE "pole position" = 'michael andretti' | [
259,
703,
867,
9558,
750,
285,
40302,
290,
11489,
72,
1282,
287,
16825,
2292,
5633,
46506,
327,
28270,
7203,
16740,
1438,
4943,
16034,
3084,
62,
22416,
62,
22,
3682,
33411,
366,
36869,
2292,
1,
796,
705,
76,
40302,
290,
11489,
72,
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
] | [
259,
703,
867,
9558,
750,
285,
40302,
290,
11489,
72,
1282,
287,
16825,
2292,
5633,
46506,
327,
28270,
7203,
16740,
1438,
4943,
16034,
3084,
62,
22416,
62,
22,
3682,
33411,
366,
36869,
2292,
1,
796,
705,
76,
40302,
290,
11489,
72,
6
] |
Which works number has a class of 15th and year of 1940? | SELECT works_no FROM table_name_69 WHERE class = "15th" AND year = "1940" | [
13828,
2499,
1271,
468,
257,
1398,
286,
1315,
400,
290,
614,
286,
16236,
30,
46506,
2499,
62,
3919,
16034,
3084,
62,
3672,
62,
3388,
33411,
1398,
796,
366,
1314,
400,
1,
5357,
614,
796,
366,
1129,
1821,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2499,
1271,
468,
257,
1398,
286,
1315,
400,
290,
614,
286,
16236,
30,
46506,
2499,
62,
3919,
16034,
3084,
62,
3672,
62,
3388,
33411,
1398,
796,
366,
1314,
400,
1,
5357,
614,
796,
366,
1129,
1821,
1
] |
What's the 1996 when 1997 is 3R? | SELECT 1996 FROM table_name_44 WHERE 1997 = "3r" | [
2061,
338,
262,
8235,
618,
8309,
318,
513,
49,
30,
46506,
8235,
16034,
3084,
62,
3672,
62,
2598,
33411,
8309,
796,
366,
18,
81,
1
] | [
1,
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,
8235,
618,
8309,
318,
513,
49,
30,
46506,
8235,
16034,
3084,
62,
3672,
62,
2598,
33411,
8309,
796,
366,
18,
81,
1
] |
What is the Absorbtion (in nanometers) of the color Violet with an emission of 432 nm? | SELECT "Absorb (nm)" FROM table_78465 WHERE "Color" = 'violet' AND "Emit (nm)" = '432' | [
2061,
318,
262,
13051,
27688,
5378,
357,
259,
15709,
40077,
8,
286,
262,
3124,
37111,
351,
281,
25592,
286,
46393,
28642,
30,
46506,
366,
24849,
27688,
357,
21533,
16725,
16034,
3084,
62,
37688,
2996,
33411,
366,
10258,
1,
796,
705,
85,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13051,
27688,
5378,
357,
259,
15709,
40077,
8,
286,
262,
3124,
37111,
351,
281,
25592,
286,
46393,
28642,
30,
46506,
366,
24849,
27688,
357,
21533,
16725,
16034,
3084,
62,
37688,
2996,
33411,
366,
10258,
1,
796,
705,
85,... |
How much Capacity has a Vehicle of 2003 holden commodore ute? | SELECT COUNT("Capacity") FROM table_63009 WHERE "Vehicle" = '2003 holden commodore ute' | [
2437,
881,
29765,
468,
257,
21501,
286,
5816,
1745,
268,
13088,
382,
220,
1133,
30,
46506,
327,
28270,
7203,
15610,
4355,
4943,
16034,
3084,
62,
5066,
28694,
33411,
366,
37870,
1548,
1,
796,
705,
16088,
1745,
268,
13088,
382,
220,
1133,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
881,
29765,
468,
257,
21501,
286,
5816,
1745,
268,
13088,
382,
220,
1133,
30,
46506,
327,
28270,
7203,
15610,
4355,
4943,
16034,
3084,
62,
5066,
28694,
33411,
366,
37870,
1548,
1,
796,
705,
16088,
1745,
268,
13088,
382,
220,
1133,... |
What is the name for the best of 1:45.361? | SELECT "Name" FROM table_44255 WHERE "Best" = '1:45.361' | [
2061,
318,
262,
1438,
329,
262,
1266,
286,
352,
25,
2231,
13,
35195,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
2598,
13381,
33411,
366,
13014,
1,
796,
705,
16,
25,
2231,
13,
35195,
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,
1438,
329,
262,
1266,
286,
352,
25,
2231,
13,
35195,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
2598,
13381,
33411,
366,
13014,
1,
796,
705,
16,
25,
2231,
13,
35195,
6
] |
have buprenorphine-naloxone (8mg-2mg) ever been prescribed to patient 18457 until 2103? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 18457) AND prescriptions.drug = 'buprenorphine-naloxone (8mg-2mg)' AND STRFTIME('%y', prescriptions.startdate) <= '2103' | [
14150,
809,
79,
918,
13425,
500,
12,
77,
282,
1140,
505,
357,
23,
11296,
12,
17,
11296,
8,
1683,
587,
14798,
284,
5827,
1248,
33032,
1566,
362,
15197,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14150,
809,
79,
918,
13425,
500,
12,
77,
282,
1140,
505,
357,
23,
11296,
12,
17,
11296,
8,
1683,
587,
14798,
284,
5827,
1248,
33032,
1566,
362,
15197,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
... |
What is the most recent year from Creighton? | SELECT MAX("From") FROM table_32206 WHERE "School/Country" = 'creighton' | [
2061,
318,
262,
749,
2274,
614,
422,
5844,
42993,
30,
46506,
25882,
7203,
4863,
4943,
16034,
3084,
62,
2624,
22136,
33411,
366,
26130,
14,
33921,
1,
796,
705,
7513,
42993,
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
] | [
2061,
318,
262,
749,
2274,
614,
422,
5844,
42993,
30,
46506,
25882,
7203,
4863,
4943,
16034,
3084,
62,
2624,
22136,
33411,
366,
26130,
14,
33921,
1,
796,
705,
7513,
42993,
6
] |
What is the set 2 the has 1 set of 21-25, and 4 sets of 25-20? | SELECT set_2 FROM table_name_17 WHERE set_1 = "21-25" AND set_4 = "25-20" | [
2061,
318,
262,
900,
362,
262,
468,
352,
900,
286,
2310,
12,
1495,
11,
290,
604,
5621,
286,
1679,
12,
1238,
30,
46506,
900,
62,
17,
16034,
3084,
62,
3672,
62,
1558,
33411,
900,
62,
16,
796,
366,
2481,
12,
1495,
1,
5357,
900,
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,
900,
362,
262,
468,
352,
900,
286,
2310,
12,
1495,
11,
290,
604,
5621,
286,
1679,
12,
1238,
30,
46506,
900,
62,
17,
16034,
3084,
62,
3672,
62,
1558,
33411,
900,
62,
16,
796,
366,
2481,
12,
1495,
1,
5357,
900,
62,... |
Which mountain range has a rank of 19? | SELECT "Mountain Range" FROM table_71989 WHERE "Rank" = '19' | [
13828,
8598,
2837,
468,
257,
4279,
286,
678,
30,
46506,
366,
44,
18635,
13667,
1,
16034,
3084,
62,
22,
25475,
33411,
366,
27520,
1,
796,
705,
1129,
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,
8598,
2837,
468,
257,
4279,
286,
678,
30,
46506,
366,
44,
18635,
13667,
1,
16034,
3084,
62,
22,
25475,
33411,
366,
27520,
1,
796,
705,
1129,
6
] |
when was the ship completed when laid down is 21 august 1925? | SELECT "Completed" FROM table_64456 WHERE "Laid down" = '21 august 1925' | [
12518,
373,
262,
4074,
5668,
618,
8104,
866,
318,
2310,
16339,
436,
36864,
30,
46506,
366,
43768,
1,
16034,
3084,
62,
2414,
29228,
33411,
366,
43,
1698,
866,
1,
796,
705,
2481,
16339,
436,
36864,
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
] | [
12518,
373,
262,
4074,
5668,
618,
8104,
866,
318,
2310,
16339,
436,
36864,
30,
46506,
366,
43768,
1,
16034,
3084,
62,
2414,
29228,
33411,
366,
43,
1698,
866,
1,
796,
705,
2481,
16339,
436,
36864,
6
] |
What is the last season the Worcester Wolves played? | SELECT last_season FROM table_name_65 WHERE team = "worcester wolves" | [
2061,
318,
262,
938,
1622,
262,
50075,
25953,
2826,
30,
46506,
938,
62,
6230,
16034,
3084,
62,
3672,
62,
2996,
33411,
1074,
796,
366,
86,
273,
33187,
23214,
1
] | [
1,
1,
1,
1,
1,
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,
938,
1622,
262,
50075,
25953,
2826,
30,
46506,
938,
62,
6230,
16034,
3084,
62,
3672,
62,
2996,
33411,
1074,
796,
366,
86,
273,
33187,
23214,
1
] |
What are the last names of the teachers who teach the student called GELL TAMI? | SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "GELL" AND T1.lastname = "TAMI" | [
2061,
389,
262,
938,
3891,
286,
262,
7799,
508,
4545,
262,
3710,
1444,
22319,
3069,
33112,
40,
30,
46506,
309,
17,
13,
12957,
3672,
16034,
1351,
7054,
309,
16,
32357,
1268,
7799,
7054,
309,
17,
6177,
309,
16,
13,
4871,
3823,
796,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
938,
3891,
286,
262,
7799,
508,
4545,
262,
3710,
1444,
22319,
3069,
33112,
40,
30,
46506,
309,
17,
13,
12957,
3672,
16034,
1351,
7054,
309,
16,
32357,
1268,
7799,
7054,
309,
17,
6177,
309,
16,
13,
4871,
3823,
796,
30... |
How many viewers tuned in for season 2? | SELECT "U.S. viewers (million)" FROM table_24929 WHERE "No. in season" = '2' | [
2437,
867,
10209,
16524,
287,
329,
1622,
362,
30,
46506,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
16034,
3084,
62,
21626,
1959,
33411,
366,
2949,
13,
287,
1622,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
10209,
16524,
287,
329,
1622,
362,
30,
46506,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
16034,
3084,
62,
21626,
1959,
33411,
366,
2949,
13,
287,
1622,
1,
796,
705,
17,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.