instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
When was the match with a result of sa by 10 wkts? | SELECT "Date" FROM table_70520 WHERE "Result" = 'sa by 10 wkts' | [
2215,
373,
262,
2872,
351,
257,
1255,
286,
473,
416,
838,
266,
74,
912,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2154,
31211,
33411,
366,
23004,
1,
796,
705,
11400,
416,
838,
266,
74,
912,
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
] | [
2215,
373,
262,
2872,
351,
257,
1255,
286,
473,
416,
838,
266,
74,
912,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2154,
31211,
33411,
366,
23004,
1,
796,
705,
11400,
416,
838,
266,
74,
912,
6
] |
What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10? | SELECT COUNT(total) FROM table_name_72 WHERE silver > 6 AND nation = "norway" AND gold > 10 | [
2061,
318,
262,
2472,
1271,
286,
28057,
286,
15238,
351,
257,
8465,
18279,
954,
3744,
621,
718,
290,
257,
3869,
18279,
954,
3744,
621,
838,
30,
46506,
327,
28270,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4761,
33411,
8465,
1875,
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,
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,
1271,
286,
28057,
286,
15238,
351,
257,
8465,
18279,
954,
3744,
621,
718,
290,
257,
3869,
18279,
954,
3744,
621,
838,
30,
46506,
327,
28270,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4761,
33411,
8465,
1875,
718,
... |
For those records from the products and each product's manufacturer, give me the comparison about the average of revenue over the headquarter , and group by attribute headquarter, and display X in desc order. | SELECT Headquarter, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
6426,
625,
262,
1182,
24385,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
3359,
1395,
287,
1715,
1502,
13,
46506,
7123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
262,
2811,
286,
6426,
625,
262,
1182,
24385,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
3359,
1395,
287,
1715,
1502,
13,
46506,
7123,
... |
Give me the comparison about ID over the meter_700 by a bar chart, sort by the y-axis in desc. | SELECT meter_700, ID FROM swimmer ORDER BY ID DESC | [
23318,
502,
262,
7208,
546,
4522,
625,
262,
16430,
62,
9879,
416,
257,
2318,
8262,
11,
3297,
416,
262,
331,
12,
22704,
287,
1715,
13,
46506,
16430,
62,
9879,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
262,
7208,
546,
4522,
625,
262,
16430,
62,
9879,
416,
257,
2318,
8262,
11,
3297,
416,
262,
331,
12,
22704,
287,
1715,
13,
46506,
16430,
62,
9879,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522,
22196,
34
] |
How many drivers had a time of 3:09:45? | SELECT COUNT(driver) FROM table_2175858_1 WHERE race_time = "3:09:45" | [
2437,
867,
6643,
550,
257,
640,
286,
513,
25,
2931,
25,
2231,
30,
46506,
327,
28270,
7,
26230,
8,
16034,
3084,
62,
24591,
3365,
3365,
62,
16,
33411,
3234,
62,
2435,
796,
366,
18,
25,
2931,
25,
2231,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
257,
640,
286,
513,
25,
2931,
25,
2231,
30,
46506,
327,
28270,
7,
26230,
8,
16034,
3084,
62,
24591,
3365,
3365,
62,
16,
33411,
3234,
62,
2435,
796,
366,
18,
25,
2931,
25,
2231,
1
] |
how many number of titles are listed for the year 1991 ? | SELECT COUNT(DISTINCT "title") FROM table_203_788 WHERE "year" = 1991 | [
4919,
867,
1271,
286,
8714,
389,
5610,
329,
262,
614,
10249,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
366,
7839,
4943,
16034,
3084,
62,
22416,
62,
22,
3459,
33411,
366,
1941,
1,
796,
10249
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
8714,
389,
5610,
329,
262,
614,
10249,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
366,
7839,
4943,
16034,
3084,
62,
22416,
62,
22,
3459,
33411,
366,
1941,
1,
796,
10249
] |
What was the winning car's chassis for the 1982 season? | SELECT "Chassis" FROM table_51569 WHERE "Season" = '1982' | [
2061,
373,
262,
5442,
1097,
338,
24587,
329,
262,
14489,
1622,
30,
46506,
366,
1925,
20297,
1,
16034,
3084,
62,
45969,
3388,
33411,
366,
18960,
1,
796,
705,
30763,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
5442,
1097,
338,
24587,
329,
262,
14489,
1622,
30,
46506,
366,
1925,
20297,
1,
16034,
3084,
62,
45969,
3388,
33411,
366,
18960,
1,
796,
705,
30763,
6
] |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of hire_date and the average of department_id bin hire_date by weekday in a bar chart, list by the the average of department id in desc. | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(DEPARTMENT_ID) DESC | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
5011,
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... | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
5011,
62,
... |
What is the sum of goals against for positions higher than 14, with fewer than 30 played? | SELECT SUM("Goals against") FROM table_60324 WHERE "Position" > '14' AND "Played" < '30' | [
2061,
318,
262,
2160,
286,
4661,
1028,
329,
6116,
2440,
621,
1478,
11,
351,
7380,
621,
1542,
2826,
30,
46506,
35683,
7203,
5247,
874,
1028,
4943,
16034,
3084,
62,
1899,
33916,
33411,
366,
26545,
1,
1875,
705,
1415,
6,
5357,
366,
11002... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
4661,
1028,
329,
6116,
2440,
621,
1478,
11,
351,
7380,
621,
1542,
2826,
30,
46506,
35683,
7203,
5247,
874,
1028,
4943,
16034,
3084,
62,
1899,
33916,
33411,
366,
26545,
1,
1875,
705,
1415,
6,
5357,
366,
11002... |
What player scored 71-69-71=211? | SELECT player FROM table_name_68 WHERE score = 71 - 69 - 71 = 211 | [
2061,
2137,
7781,
9166,
12,
3388,
12,
4869,
28,
21895,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
3104,
33411,
4776,
796,
9166,
532,
8644,
532,
9166,
796,
28714
] | [
1,
1,
1,
1,
1,
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,
2137,
7781,
9166,
12,
3388,
12,
4869,
28,
21895,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
3104,
33411,
4776,
796,
9166,
532,
8644,
532,
9166,
796,
28714
] |
Who was the pitcher on June 8, 1961? | SELECT "Pitcher" FROM table_35748 WHERE "Date" = 'june 8, 1961' | [
8241,
373,
262,
18086,
319,
2795,
807,
11,
20510,
30,
46506,
366,
47,
23640,
1,
16034,
3084,
62,
27277,
2780,
33411,
366,
10430,
1,
796,
705,
73,
1726,
807,
11,
20510,
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
] | [
8241,
373,
262,
18086,
319,
2795,
807,
11,
20510,
30,
46506,
366,
47,
23640,
1,
16034,
3084,
62,
27277,
2780,
33411,
366,
10430,
1,
796,
705,
73,
1726,
807,
11,
20510,
6
] |
What model number has part number cl8064701510101? | SELECT "Model number" FROM table_66141 WHERE "Part number(s)" = 'cl8064701510101' | [
2061,
2746,
1271,
468,
636,
1271,
537,
1795,
33981,
486,
4349,
486,
486,
30,
46506,
366,
17633,
1271,
1,
16034,
3084,
62,
2791,
23756,
33411,
366,
7841,
1271,
7,
82,
16725,
796,
705,
565,
1795,
33981,
486,
4349,
486,
486,
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
] | [
2061,
2746,
1271,
468,
636,
1271,
537,
1795,
33981,
486,
4349,
486,
486,
30,
46506,
366,
17633,
1271,
1,
16034,
3084,
62,
2791,
23756,
33411,
366,
7841,
1271,
7,
82,
16725,
796,
705,
565,
1795,
33981,
486,
4349,
486,
486,
6
] |
was a procedure performed on patient 65838 this year? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65838) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
9776,
257,
8771,
6157,
319,
5827,
718,
3365,
2548,
428,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9776,
257,
8771,
6157,
319,
5827,
718,
3365,
2548,
428,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
... |
Which team was the opponent that had a location of Madison Square Garden with a score of 87-83? | SELECT "Team" FROM table_44901 WHERE "Location Attendance" = 'madison square garden' AND "Score" = '87-83' | [
13828,
1074,
373,
262,
6125,
326,
550,
257,
4067,
286,
14909,
9276,
11652,
351,
257,
4776,
286,
10083,
12,
5999,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
31911,
486,
33411,
366,
14749,
46502,
590,
1,
796,
705,
9937,
1653,
6616,
1137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1074,
373,
262,
6125,
326,
550,
257,
4067,
286,
14909,
9276,
11652,
351,
257,
4776,
286,
10083,
12,
5999,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
31911,
486,
33411,
366,
14749,
46502,
590,
1,
796,
705,
9937,
1653,
6616,
1137... |
What Catalog came out on August 20, 1965? | SELECT "Catalog" FROM table_64151 WHERE "Date" = 'august 20, 1965' | [
2061,
44515,
1625,
503,
319,
2932,
1160,
11,
17672,
30,
46506,
366,
49015,
1,
16034,
3084,
62,
2414,
24309,
33411,
366,
10430,
1,
796,
705,
7493,
436,
1160,
11,
17672,
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,
44515,
1625,
503,
319,
2932,
1160,
11,
17672,
30,
46506,
366,
49015,
1,
16034,
3084,
62,
2414,
24309,
33411,
366,
10430,
1,
796,
705,
7493,
436,
1160,
11,
17672,
6
] |
What's the team number with John Wall (9) in high assists and a w 97 83 (ot) score? | SELECT COUNT("Team") FROM table_29821 WHERE "High assists" = 'John Wall (9)' AND "Score" = 'W 97–83 (OT)' | [
2061,
338,
262,
1074,
1271,
351,
1757,
5007,
357,
24,
8,
287,
1029,
13648,
290,
257,
266,
10111,
9698,
357,
313,
8,
4776,
30,
46506,
327,
28270,
7203,
15592,
4943,
16034,
3084,
62,
27728,
2481,
33411,
366,
11922,
13648,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
1074,
1271,
351,
1757,
5007,
357,
24,
8,
287,
1029,
13648,
290,
257,
266,
10111,
9698,
357,
313,
8,
4776,
30,
46506,
327,
28270,
7203,
15592,
4943,
16034,
3084,
62,
27728,
2481,
33411,
366,
11922,
13648,
1,
796,
705,
... |
What is Fastest Lap, when Round is 5, and when Winning Driver is James Winslow? | SELECT fastest_lap FROM table_name_68 WHERE round = "5" AND winning_driver = "james winslow" | [
2061,
318,
12549,
395,
26944,
11,
618,
10485,
318,
642,
11,
290,
618,
40983,
12434,
318,
3700,
24423,
9319,
30,
46506,
14162,
62,
37796,
16034,
3084,
62,
3672,
62,
3104,
33411,
2835,
796,
366,
20,
1,
5357,
5442,
62,
26230,
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
] | [
2061,
318,
12549,
395,
26944,
11,
618,
10485,
318,
642,
11,
290,
618,
40983,
12434,
318,
3700,
24423,
9319,
30,
46506,
14162,
62,
37796,
16034,
3084,
62,
3672,
62,
3104,
33411,
2835,
796,
366,
20,
1,
5357,
5442,
62,
26230,
796,
366,
... |
what is drug type of drug name voriconazole? | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Voriconazole" | [
10919,
318,
2563,
2099,
286,
2563,
1438,
410,
273,
4749,
1031,
2305,
30,
46506,
34092,
13,
30349,
62,
4906,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
53,
273,
4749,
1031,
2305,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2099,
286,
2563,
1438,
410,
273,
4749,
1031,
2305,
30,
46506,
34092,
13,
30349,
62,
4906,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
53,
273,
4749,
1031,
2305,
1
] |
provide me with the top four diagnoses that had the highest three year mortality rate. | SELECT t4.diagnosisname FROM (SELECT t3.diagnosisname, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.diagnosisname, 100 - SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t2.diagnosistime) > 3 * 365 THEN 1 ELSE 0 END) * 10... | [
15234,
485,
502,
351,
262,
1353,
1440,
40567,
326,
550,
262,
4511,
1115,
614,
12430,
2494,
13,
46506,
256,
19,
13,
47356,
5958,
3672,
16034,
357,
46506,
256,
18,
13,
47356,
5958,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
502,
351,
262,
1353,
1440,
40567,
326,
550,
262,
4511,
1115,
614,
12430,
2494,
13,
46506,
256,
19,
13,
47356,
5958,
3672,
16034,
357,
46506,
256,
18,
13,
47356,
5958,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
... |
What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131? | SELECT COUNT(pl_gp) FROM table_name_16 WHERE reg_gp < 5 AND team__league_ = "seattle thunderbirds" AND pick__number < 131 | [
2061,
318,
262,
2472,
1271,
286,
13119,
1830,
2826,
416,
262,
7312,
9850,
32002,
1074,
810,
262,
1271,
286,
3218,
1830,
2826,
318,
1342,
621,
642,
290,
2298,
1271,
318,
1342,
621,
23134,
30,
46506,
327,
28270,
7,
489,
62,
31197,
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... | [
2061,
318,
262,
2472,
1271,
286,
13119,
1830,
2826,
416,
262,
7312,
9850,
32002,
1074,
810,
262,
1271,
286,
3218,
1830,
2826,
318,
1342,
621,
642,
290,
2298,
1271,
318,
1342,
621,
23134,
30,
46506,
327,
28270,
7,
489,
62,
31197,
8,
... |
What is the date on which a race was run at Halle-Saale-Schleife circuit? | SELECT "Date" FROM table_218 WHERE "Circuit" = 'Halle-Saale-Schleife' | [
2061,
318,
262,
3128,
319,
543,
257,
3234,
373,
1057,
379,
367,
6765,
12,
33890,
1000,
12,
14874,
293,
901,
10349,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
28727,
33411,
366,
31560,
5013,
1,
796,
705,
39,
6765,
12,
33890,
1000,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
319,
543,
257,
3234,
373,
1057,
379,
367,
6765,
12,
33890,
1000,
12,
14874,
293,
901,
10349,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
28727,
33411,
366,
31560,
5013,
1,
796,
705,
39,
6765,
12,
33890,
1000,
12... |
When salt of this sea is the english title who is the director? | SELECT director FROM table_26555737_1 WHERE english_title = "Salt of this Sea" | [
2215,
8268,
286,
428,
5417,
318,
262,
46932,
3670,
508,
318,
262,
3437,
30,
46506,
3437,
16034,
3084,
62,
2075,
2816,
3553,
2718,
62,
16,
33411,
46932,
62,
7839,
796,
366,
43061,
286,
428,
6896,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
8268,
286,
428,
5417,
318,
262,
46932,
3670,
508,
318,
262,
3437,
30,
46506,
3437,
16034,
3084,
62,
2075,
2816,
3553,
2718,
62,
16,
33411,
46932,
62,
7839,
796,
366,
43061,
286,
428,
6896,
1
] |
Posts com tag xamarin ou mobile que contem Windows no Body. | SELECT * FROM Posts WHERE PostTypeId = 1 AND CreationDate >= '01/01/2018' AND (Tags LIKE '%mobile%' OR Tags LIKE '%xamarin%') AND Body LIKE '%Windows%Phone%' | [
21496,
401,
7621,
2124,
321,
17714,
267,
84,
5175,
8358,
7887,
3964,
645,
12290,
13,
46506,
1635,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
21582,
10430,
18189,
705,
486,
14,
486,
14,
7908,
6,
5357,
357,
36142,
34178,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
21496,
401,
7621,
2124,
321,
17714,
267,
84,
5175,
8358,
7887,
3964,
645,
12290,
13,
46506,
1635,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
21582,
10430,
18189,
705,
486,
14,
486,
14,
7908,
6,
5357,
357,
36142,
34178,
705,
... |
Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order). | SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name | [
17563,
262,
1438,
290,
2756,
286,
477,
3186,
351,
257,
2756,
4025,
621,
393,
4961,
284,
720,
15259,
11,
290,
3297,
717,
416,
2756,
357,
259,
31491,
1502,
828,
290,
788,
416,
1438,
357,
259,
41988,
1502,
737,
46506,
1438,
11,
2756,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
17563,
262,
1438,
290,
2756,
286,
477,
3186,
351,
257,
2756,
4025,
621,
393,
4961,
284,
720,
15259,
11,
290,
3297,
717,
416,
2756,
357,
259,
31491,
1502,
828,
290,
788,
416,
1438,
357,
259,
41988,
1502,
737,
46506,
1438,
11,
2756,
1... |
when the last time patient 18677 received a microbiology test in this month? | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 18677) AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY microbiologyevent... | [
12518,
262,
938,
640,
5827,
1248,
40179,
2722,
257,
24559,
1435,
1332,
287,
428,
1227,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
938,
640,
5827,
1248,
40179,
2722,
257,
24559,
1435,
1332,
287,
428,
1227,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
... |
When was the percentage of trains arriving within 5 minutes of scheduled time 89.6%? | SELECT period FROM table_171748_3 WHERE _percentage_trains_arriving_within_5_mins_of_scheduled_time_moving_annual_average__maa_ = "89.6%" | [
2215,
373,
262,
5873,
286,
13404,
14820,
1626,
642,
2431,
286,
7530,
640,
9919,
13,
21,
4,
30,
46506,
2278,
16034,
3084,
62,
1558,
1558,
2780,
62,
18,
33411,
4808,
25067,
496,
62,
2213,
1299,
62,
283,
380,
1075,
62,
33479,
62,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2215,
373,
262,
5873,
286,
13404,
14820,
1626,
642,
2431,
286,
7530,
640,
9919,
13,
21,
4,
30,
46506,
2278,
16034,
3084,
62,
1558,
1558,
2780,
62,
18,
33411,
4808,
25067,
496,
62,
2213,
1299,
62,
283,
380,
1075,
62,
33479,
62,
20,
... |
Name the district for spencer bachus | SELECT "District" FROM table_27291 WHERE "Incumbent" = 'Spencer Bachus' | [
5376,
262,
4783,
329,
599,
12137,
275,
9523,
46506,
366,
44857,
1,
16034,
3084,
62,
1983,
33551,
33411,
366,
25517,
2178,
298,
1,
796,
705,
50,
3617,
2189,
347,
9523,
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,
4783,
329,
599,
12137,
275,
9523,
46506,
366,
44857,
1,
16034,
3084,
62,
1983,
33551,
33411,
366,
25517,
2178,
298,
1,
796,
705,
50,
3617,
2189,
347,
9523,
6
] |
What is the Nationality of the Player with more than 8 Goals and Apps of 52? | SELECT nationality FROM table_name_5 WHERE goals > 8 AND apps = 52 | [
2061,
318,
262,
2351,
414,
286,
262,
7853,
351,
517,
621,
807,
28510,
290,
27710,
286,
6740,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
20,
33411,
4661,
1875,
807,
5357,
6725,
796,
6740
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
7853,
351,
517,
621,
807,
28510,
290,
27710,
286,
6740,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
20,
33411,
4661,
1875,
807,
5357,
6725,
796,
6740
] |
tell me the total amount of urine that patient 002-74856 has on 09/03/2105. | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-74856')) AND intakeoutput.celllabel = 'urine... | [
33331,
502,
262,
2472,
2033,
286,
18922,
326,
5827,
3571,
17,
12,
48246,
3980,
468,
319,
7769,
14,
3070,
14,
17,
13348,
13,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
2033,
286,
18922,
326,
5827,
3571,
17,
12,
48246,
3980,
468,
319,
7769,
14,
3070,
14,
17,
13348,
13,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,... |
do you have any flights from CHICAGO to INDIANAPOLIS | 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 = 'CHICAGO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'INDIAN... | [
4598,
345,
423,
597,
13956,
422,
5870,
2149,
4760,
46,
284,
24413,
16868,
2969,
3535,
1797,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4598,
345,
423,
597,
13956,
422,
5870,
2149,
4760,
46,
284,
24413,
16868,
2969,
3535,
1797,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... |
What is the total average for 1990-1995, and goals less than 90? | SELECT COUNT(average) FROM table_name_40 WHERE career = "1990-1995" AND goals < 90 | [
2061,
318,
262,
2472,
2811,
329,
6303,
12,
21908,
11,
290,
4661,
1342,
621,
4101,
30,
46506,
327,
28270,
7,
23913,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
3451,
796,
366,
19891,
12,
21908,
1,
5357,
4661,
1279,
4101
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
329,
6303,
12,
21908,
11,
290,
4661,
1342,
621,
4101,
30,
46506,
327,
28270,
7,
23913,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
3451,
796,
366,
19891,
12,
21908,
1,
5357,
4661,
1279,
4101
] |
Name the team for toshihiro kaneishi | SELECT "Team" FROM table_31863 WHERE "Driver" = 'toshihiro kaneishi' | [
5376,
262,
1074,
329,
284,
1477,
4449,
7058,
479,
1531,
21644,
46506,
366,
15592,
1,
16034,
3084,
62,
36042,
5066,
33411,
366,
32103,
1,
796,
705,
83,
3768,
4449,
7058,
479,
1531,
21644,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1074,
329,
284,
1477,
4449,
7058,
479,
1531,
21644,
46506,
366,
15592,
1,
16034,
3084,
62,
36042,
5066,
33411,
366,
32103,
1,
796,
705,
83,
3768,
4449,
7058,
479,
1531,
21644,
6
] |
What is the grid when the laps were 24? | SELECT COUNT("Grid") FROM table_52646 WHERE "Laps" = '24' | [
2061,
318,
262,
10706,
618,
262,
24590,
547,
1987,
30,
46506,
327,
28270,
7203,
41339,
4943,
16034,
3084,
62,
48531,
3510,
33411,
366,
43,
1686,
1,
796,
705,
1731,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
10706,
618,
262,
24590,
547,
1987,
30,
46506,
327,
28270,
7203,
41339,
4943,
16034,
3084,
62,
48531,
3510,
33411,
366,
43,
1686,
1,
796,
705,
1731,
6
] |
what was the length of stay of patient 72107 during the first intensive care unit stay? | SELECT STRFTIME('%j', icustays.outtime) - STRFTIME('%j', icustays.intime) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 72107) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1 | [
10919,
373,
262,
4129,
286,
2652,
286,
5827,
7724,
15982,
1141,
262,
717,
18590,
1337,
4326,
2652,
30,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
436,
592,
13,
448,
2435,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
1415... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4129,
286,
2652,
286,
5827,
7724,
15982,
1141,
262,
717,
18590,
1337,
4326,
2652,
30,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
436,
592,
13,
448,
2435,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
1415... |
Show the date valid from and the date valid to for the card with card number '4560596484842'. | SELECT date_valid_from, date_valid_to FROM customers_cards WHERE card_number = "4560596484842" | [
15307,
262,
3128,
4938,
422,
290,
262,
3128,
4938,
284,
329,
262,
2657,
351,
2657,
1271,
705,
2231,
1899,
3270,
34287,
2780,
3682,
4458,
46506,
3128,
62,
12102,
62,
6738,
11,
3128,
62,
12102,
62,
1462,
16034,
4297,
62,
27761,
33411,
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
] | [
15307,
262,
3128,
4938,
422,
290,
262,
3128,
4938,
284,
329,
262,
2657,
351,
2657,
1271,
705,
2231,
1899,
3270,
34287,
2780,
3682,
4458,
46506,
3128,
62,
12102,
62,
6738,
11,
3128,
62,
12102,
62,
1462,
16034,
4297,
62,
27761,
33411,
2... |
Which team did the Boston Beaneaters host at the South End Grounds? | SELECT opponent FROM table_name_36 WHERE venue = "south end grounds" | [
13828,
1074,
750,
262,
6182,
1355,
1531,
8605,
2583,
379,
262,
2520,
5268,
44201,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2623,
33411,
14359,
796,
366,
35782,
886,
9384,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1074,
750,
262,
6182,
1355,
1531,
8605,
2583,
379,
262,
2520,
5268,
44201,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2623,
33411,
14359,
796,
366,
35782,
886,
9384,
1
] |
since 5 years ago, what are the top three most frequent diagnoses patients were given in the same hospital encounter after receiving exc/dest hrt lesion open? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_i... | [
20777,
642,
812,
2084,
11,
644,
389,
262,
1353,
1115,
749,
10792,
40567,
3871,
547,
1813,
287,
262,
976,
4436,
8791,
706,
6464,
2859,
14,
16520,
289,
17034,
10287,
295,
1280,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20777,
642,
812,
2084,
11,
644,
389,
262,
1353,
1115,
749,
10792,
40567,
3871,
547,
1813,
287,
262,
976,
4436,
8791,
706,
6464,
2859,
14,
16520,
289,
17034,
10287,
295,
1280,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
... |
tell me about flights from TORONTO to SALT LAKE CITY leaving TORONTO between 1730 and 1900 | 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 ((flight.departure_time <= 1900 AND flight.departure_time >= 1730) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SALT LAKE CITY' AND... | [
33331,
502,
546,
13956,
422,
40691,
1340,
10468,
284,
311,
31429,
9131,
7336,
27993,
4305,
40691,
1340,
10468,
1022,
1596,
1270,
290,
21489,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
1549... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
546,
13956,
422,
40691,
1340,
10468,
284,
311,
31429,
9131,
7336,
27993,
4305,
40691,
1340,
10468,
1022,
1596,
1270,
290,
21489,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
1549... |
how many hours have elapsed since the first time that patient 55360 stayed on this hospital visit in careunit ccu? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 55360 AND admissions.dischtime IS NULL) AND transfers.careunit = 'ccu' ORDER BY transfers.intime LIMIT 1 | [
4919,
867,
2250,
423,
42118,
1201,
262,
717,
640,
326,
5827,
642,
4310,
1899,
9658,
319,
428,
4436,
3187,
287,
1337,
20850,
269,
27399,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
2250,
423,
42118,
1201,
262,
717,
640,
326,
5827,
642,
4310,
1899,
9658,
319,
428,
4436,
3187,
287,
1337,
20850,
269,
27399,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
... |
What title has a Label of warp records / paper bag records? | SELECT title FROM table_name_39 WHERE label = "warp records / paper bag records" | [
2061,
3670,
468,
257,
36052,
286,
25825,
4406,
1220,
3348,
6131,
4406,
30,
46506,
3670,
16034,
3084,
62,
3672,
62,
2670,
33411,
6167,
796,
366,
86,
5117,
4406,
1220,
3348,
6131,
4406,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3670,
468,
257,
36052,
286,
25825,
4406,
1220,
3348,
6131,
4406,
30,
46506,
3670,
16034,
3084,
62,
3672,
62,
2670,
33411,
6167,
796,
366,
86,
5117,
4406,
1220,
3348,
6131,
4406,
1
] |
When someone was first elected in 1898 what was the result? | SELECT result FROM table_name_53 WHERE first_elected = "1898" | [
2215,
2130,
373,
717,
7018,
287,
46244,
644,
373,
262,
1255,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
4310,
33411,
717,
62,
28604,
796,
366,
1507,
4089,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
2130,
373,
717,
7018,
287,
46244,
644,
373,
262,
1255,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
4310,
33411,
717,
62,
28604,
796,
366,
1507,
4089,
1
] |
What is 2001, when 1996 is '0 / 2'? | SELECT 2001 FROM table_name_1 WHERE 1996 = "0 / 2" | [
2061,
318,
5878,
11,
618,
8235,
318,
705,
15,
1220,
362,
30960,
46506,
5878,
16034,
3084,
62,
3672,
62,
16,
33411,
8235,
796,
366,
15,
1220,
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
] | [
2061,
318,
5878,
11,
618,
8235,
318,
705,
15,
1220,
362,
30960,
46506,
5878,
16034,
3084,
62,
3672,
62,
16,
33411,
8235,
796,
366,
15,
1220,
362,
1
] |
What is the lowest no. in series? | SELECT MIN("No. in series") FROM table_1758 | [
2061,
318,
262,
9016,
645,
13,
287,
2168,
30,
46506,
20625,
7203,
2949,
13,
287,
2168,
4943,
16034,
3084,
62,
1558,
3365
] | [
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,
645,
13,
287,
2168,
30,
46506,
20625,
7203,
2949,
13,
287,
2168,
4943,
16034,
3084,
62,
1558,
3365
] |
What is the Name with an Average that is 16.4? | SELECT name FROM table_name_10 WHERE average = 16.4 | [
2061,
318,
262,
6530,
351,
281,
13475,
326,
318,
1467,
13,
19,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
940,
33411,
2811,
796,
1467,
13,
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
] | [
2061,
318,
262,
6530,
351,
281,
13475,
326,
318,
1467,
13,
19,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
940,
33411,
2811,
796,
1467,
13,
19
] |
Which 2006 has a 2007 of A? | SELECT "2006" FROM table_33984 WHERE "2007" = 'a' | [
13828,
4793,
468,
257,
4343,
286,
317,
30,
46506,
366,
13330,
1,
16034,
3084,
62,
2091,
4089,
19,
33411,
366,
12726,
1,
796,
705,
64,
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,
4793,
468,
257,
4343,
286,
317,
30,
46506,
366,
13330,
1,
16034,
3084,
62,
2091,
4089,
19,
33411,
366,
12726,
1,
796,
705,
64,
6
] |
Who is seat no 1 when the mayor was john j. seguier | SELECT seat_no_1 FROM table_2231241_1 WHERE mayor = "John J. Seguier" | [
8241,
318,
5852,
645,
352,
618,
262,
9591,
373,
45610,
474,
13,
384,
5162,
959,
46506,
5852,
62,
3919,
62,
16,
16034,
3084,
62,
22047,
1065,
3901,
62,
16,
33411,
9591,
796,
366,
7554,
449,
13,
1001,
5162,
959,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5852,
645,
352,
618,
262,
9591,
373,
45610,
474,
13,
384,
5162,
959,
46506,
5852,
62,
3919,
62,
16,
16034,
3084,
62,
22047,
1065,
3901,
62,
16,
33411,
9591,
796,
366,
7554,
449,
13,
1001,
5162,
959,
1
] |
Who is the democratic incumbent that was re-elected? | SELECT "Incumbent" FROM table_37164 WHERE "Status" = 're-elected' AND "Party" = 'democratic' | [
8241,
318,
262,
10518,
23526,
326,
373,
302,
12,
28604,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
2718,
23237,
33411,
366,
19580,
1,
796,
705,
260,
12,
28604,
6,
5357,
366,
33553,
1,
796,
705,
41232,
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
] | [
8241,
318,
262,
10518,
23526,
326,
373,
302,
12,
28604,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
2718,
23237,
33411,
366,
19580,
1,
796,
705,
260,
12,
28604,
6,
5357,
366,
33553,
1,
796,
705,
41232,
6
] |
how many patients whose admission year is less than 2174 and drug name is allopurinol? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2174" AND prescriptions.drug = "Allopurinol" | [
4919,
867,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
22985,
290,
2563,
1438,
318,
477,
404,
333,
259,
349,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
13938,
614,
318,
1342,
621,
362,
22985,
290,
2563,
1438,
318,
477,
404,
333,
259,
349,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,... |
What is the fewest points that has more than 29 goals? | SELECT MIN(points) FROM table_name_42 WHERE goal_difference > 29 | [
2061,
318,
262,
1178,
395,
2173,
326,
468,
517,
621,
2808,
4661,
30,
46506,
20625,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
3061,
62,
26069,
1945,
1875,
2808
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1178,
395,
2173,
326,
468,
517,
621,
2808,
4661,
30,
46506,
20625,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
3061,
62,
26069,
1945,
1875,
2808
] |
List the number of the name of products in ascending order of price. | SELECT Product_Name, COUNT(Product_Name) FROM Products GROUP BY Product_Name ORDER BY Product_Price | [
8053,
262,
1271,
286,
262,
1438,
286,
3186,
287,
41988,
1502,
286,
2756,
13,
46506,
8721,
62,
5376,
11,
327,
28270,
7,
15667,
62,
5376,
8,
16034,
18675,
44441,
11050,
8721,
62,
5376,
38678,
11050,
8721,
62,
18124
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1271,
286,
262,
1438,
286,
3186,
287,
41988,
1502,
286,
2756,
13,
46506,
8721,
62,
5376,
11,
327,
28270,
7,
15667,
62,
5376,
8,
16034,
18675,
44441,
11050,
8721,
62,
5376,
38678,
11050,
8721,
62,
18124
] |
how many patients with septicemia nos were diagnosed within the same month since 2104 after the diagnosis of obesity nos? | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'septicemia nos') A... | [
4919,
867,
3871,
351,
384,
17459,
22859,
43630,
547,
14641,
1626,
262,
976,
1227,
1201,
362,
13464,
706,
262,
13669,
286,
13825,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
351,
384,
17459,
22859,
43630,
547,
14641,
1626,
262,
976,
1227,
1201,
362,
13464,
706,
262,
13669,
286,
13825,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46506,... |
what is the most # that aired on september 29, 2008? | SELECT MAX("#") FROM table_16554 WHERE "Air Date" = 'September 29, 2008' | [
10919,
318,
262,
749,
1303,
326,
18530,
319,
384,
457,
1491,
2808,
11,
3648,
30,
46506,
25882,
7203,
2,
4943,
16034,
3084,
62,
1433,
44218,
33411,
366,
16170,
7536,
1,
796,
705,
17543,
2808,
11,
3648,
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
] | [
10919,
318,
262,
749,
1303,
326,
18530,
319,
384,
457,
1491,
2808,
11,
3648,
30,
46506,
25882,
7203,
2,
4943,
16034,
3084,
62,
1433,
44218,
33411,
366,
16170,
7536,
1,
796,
705,
17543,
2808,
11,
3648,
6
] |
How many different Leagues are associated with Billy Meredith Category:Articles with hCards? | SELECT COUNT("League") FROM table_19733 WHERE "Name" = 'Billy Meredith Category:Articles with hCards' | [
2437,
867,
1180,
1004,
6120,
389,
3917,
351,
15890,
40378,
21743,
25,
8001,
2983,
351,
289,
34,
1371,
30,
46506,
327,
28270,
7203,
24623,
4943,
16034,
3084,
62,
24991,
2091,
33411,
366,
5376,
1,
796,
705,
49640,
40378,
21743,
25,
8001,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1004,
6120,
389,
3917,
351,
15890,
40378,
21743,
25,
8001,
2983,
351,
289,
34,
1371,
30,
46506,
327,
28270,
7203,
24623,
4943,
16034,
3084,
62,
24991,
2091,
33411,
366,
5376,
1,
796,
705,
49640,
40378,
21743,
25,
8001,
... |
for patients who were diagnosed with human immuno virus dis until 3 years ago, what were the five most common diagnoses that followed in the same month? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, 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... | [
1640,
3871,
508,
547,
14641,
351,
1692,
16217,
78,
9471,
595,
1566,
513,
812,
2084,
11,
644,
547,
262,
1936,
749,
2219,
40567,
326,
3940,
287,
262,
976,
1227,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
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... | [
1640,
3871,
508,
547,
14641,
351,
1692,
16217,
78,
9471,
595,
1566,
513,
812,
2084,
11,
644,
547,
262,
1936,
749,
2219,
40567,
326,
3940,
287,
262,
976,
1227,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,... |
what has been patient 027-120551's allergies? | SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-120551')) | [
10919,
468,
587,
5827,
657,
1983,
12,
1065,
2713,
4349,
338,
36665,
30,
46506,
36197,
13,
439,
26079,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
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... | [
10919,
468,
587,
5827,
657,
1983,
12,
1065,
2713,
4349,
338,
36665,
30,
46506,
36197,
13,
439,
26079,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411... |
What is the attendance total when Southend Manor is the away team and there are less than 93 ties? | SELECT COUNT("Attendance") FROM table_61853 WHERE "Away team" = 'southend manor' AND "Tie no" < '93' | [
2061,
318,
262,
14858,
2472,
618,
311,
448,
15631,
33555,
318,
262,
1497,
1074,
290,
612,
389,
1342,
621,
10261,
8470,
30,
46506,
327,
28270,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
47448,
4310,
33411,
366,
32,
1014,
1074,
1,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
14858,
2472,
618,
311,
448,
15631,
33555,
318,
262,
1497,
1074,
290,
612,
389,
1342,
621,
10261,
8470,
30,
46506,
327,
28270,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
47448,
4310,
33411,
366,
32,
1014,
1074,
1,
796... |
When 4th, great lakes is the regular season what is the league? | SELECT league FROM table_1939235_1 WHERE regular_season = "4th, Great Lakes" | [
2215,
604,
400,
11,
1049,
24768,
318,
262,
3218,
1622,
644,
318,
262,
4652,
30,
46506,
4652,
16034,
3084,
62,
1129,
2670,
22370,
62,
16,
33411,
3218,
62,
6230,
796,
366,
19,
400,
11,
3878,
24153,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
604,
400,
11,
1049,
24768,
318,
262,
3218,
1622,
644,
318,
262,
4652,
30,
46506,
4652,
16034,
3084,
62,
1129,
2670,
22370,
62,
16,
33411,
3218,
62,
6230,
796,
366,
19,
400,
11,
3878,
24153,
1
] |
What are the ids and durations of the trips with the top 3 durations? | SELECT id, duration FROM trip ORDER BY duration DESC LIMIT 3 | [
2061,
389,
262,
220,
2340,
290,
288,
20074,
286,
262,
13229,
351,
262,
1353,
513,
288,
20074,
30,
46506,
4686,
11,
9478,
16034,
5296,
38678,
11050,
9478,
22196,
34,
27564,
2043,
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
] | [
2061,
389,
262,
220,
2340,
290,
288,
20074,
286,
262,
13229,
351,
262,
1353,
513,
288,
20074,
30,
46506,
4686,
11,
9478,
16034,
5296,
38678,
11050,
9478,
22196,
34,
27564,
2043,
513
] |
tell me the top four drugs that are most frequently prescribed for patients in the 60 or above? | SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >= 60) GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 <= 4 | [
33331,
502,
262,
1353,
1440,
5010,
326,
389,
749,
6777,
14798,
329,
3871,
287,
262,
3126,
393,
2029,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
1440,
5010,
326,
389,
749,
6777,
14798,
329,
3871,
287,
262,
3126,
393,
2029,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
110... |
What were the highest points before the year 1974? | SELECT MAX("Points") FROM table_68607 WHERE "Year" < '1974' | [
2061,
547,
262,
4511,
2173,
878,
262,
614,
16489,
30,
46506,
25882,
7203,
40710,
4943,
16034,
3084,
62,
3104,
31980,
33411,
366,
17688,
1,
1279,
705,
40828,
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,
547,
262,
4511,
2173,
878,
262,
614,
16489,
30,
46506,
25882,
7203,
40710,
4943,
16034,
3084,
62,
3104,
31980,
33411,
366,
17688,
1,
1279,
705,
40828,
6
] |
What was the record after the bout against Nikki Eplion, which resulted in a win in round 3? | SELECT "Record" FROM table_38999 WHERE "Result" = 'win' AND "Rd, Time" = '3' AND "Opponent" = 'nikki eplion' | [
2061,
373,
262,
1700,
706,
262,
18222,
1028,
34108,
412,
489,
295,
11,
543,
8724,
287,
257,
1592,
287,
2835,
513,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
2548,
17032,
33411,
366,
23004,
1,
796,
705,
5404,
6,
5357,
366,
49,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1700,
706,
262,
18222,
1028,
34108,
412,
489,
295,
11,
543,
8724,
287,
257,
1592,
287,
2835,
513,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
2548,
17032,
33411,
366,
23004,
1,
796,
705,
5404,
6,
5357,
366,
49,
67,
... |
how many patients that died were born before 2107? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.dob_year < "2107" | [
4919,
867,
3871,
326,
3724,
547,
4642,
878,
362,
15982,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15,
1,
5357,
16728,
13,
67,
672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
326,
3724,
547,
4642,
878,
362,
15982,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15,
1,
5357,
16728,
13,
67,
672,
... |
Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10? | SELECT MIN("Top-5") FROM table_35982 WHERE "Cuts made" = '10' AND "Events" > '10' | [
13828,
5849,
12,
20,
318,
262,
9016,
530,
326,
468,
327,
5500,
925,
286,
838,
11,
290,
18715,
4025,
621,
838,
30,
46506,
20625,
7203,
9126,
12,
20,
4943,
16034,
3084,
62,
2327,
4089,
17,
33411,
366,
34,
5500,
925,
1,
796,
705,
940... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5849,
12,
20,
318,
262,
9016,
530,
326,
468,
327,
5500,
925,
286,
838,
11,
290,
18715,
4025,
621,
838,
30,
46506,
20625,
7203,
9126,
12,
20,
4943,
16034,
3084,
62,
2327,
4089,
17,
33411,
366,
34,
5500,
925,
1,
796,
705,
940... |
What is GDP (PPP) Per Capita 2012 EU27 = 100, when GDP 2012 Millions Of Euro is 309,900? | SELECT "GDP (PPP) per capita 2012 EU27 = 100" FROM table_43202 WHERE "GDP 2012 millions of euro" = '309,900' | [
2061,
318,
12396,
357,
10246,
47,
8,
2448,
4476,
5350,
2321,
4576,
1983,
796,
1802,
11,
618,
12396,
2321,
39830,
3226,
1898,
318,
40286,
11,
12865,
30,
46506,
366,
38,
6322,
357,
10246,
47,
8,
583,
21344,
2321,
4576,
1983,
796,
1802,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12396,
357,
10246,
47,
8,
2448,
4476,
5350,
2321,
4576,
1983,
796,
1802,
11,
618,
12396,
2321,
39830,
3226,
1898,
318,
40286,
11,
12865,
30,
46506,
366,
38,
6322,
357,
10246,
47,
8,
583,
21344,
2321,
4576,
1983,
796,
1802,
... |
what is the radio with the most mhz ? | SELECT "branding" FROM table_204_164 ORDER BY "frequency" DESC LIMIT 1 | [
10919,
318,
262,
5243,
351,
262,
749,
285,
32179,
5633,
46506,
366,
17938,
278,
1,
16034,
3084,
62,
18638,
62,
23237,
38678,
11050,
366,
35324,
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,
1
] | [
10919,
318,
262,
5243,
351,
262,
749,
285,
32179,
5633,
46506,
366,
17938,
278,
1,
16034,
3084,
62,
18638,
62,
23237,
38678,
11050,
366,
35324,
1,
22196,
34,
27564,
2043,
352
] |
What is the lowest number played of the club with more than 15 wins and less than 42 goals against? | SELECT MIN("Played") FROM table_62142 WHERE "Wins" > '15' AND "Goals against" < '42' | [
2061,
318,
262,
9016,
1271,
2826,
286,
262,
3430,
351,
517,
621,
1315,
7864,
290,
1342,
621,
5433,
4661,
1028,
30,
46506,
20625,
7203,
11002,
276,
4943,
16034,
3084,
62,
5237,
23726,
33411,
366,
54,
1040,
1,
1875,
705,
1314,
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
] | [
2061,
318,
262,
9016,
1271,
2826,
286,
262,
3430,
351,
517,
621,
1315,
7864,
290,
1342,
621,
5433,
4661,
1028,
30,
46506,
20625,
7203,
11002,
276,
4943,
16034,
3084,
62,
5237,
23726,
33411,
366,
54,
1040,
1,
1875,
705,
1314,
6,
5357,
... |
What were the competitions when the away team was fk kozara gradiska? | SELECT competition FROM table_29728596_2 WHERE away_team = "FK Kozara Gradiska" | [
2061,
547,
262,
24174,
618,
262,
1497,
1074,
373,
277,
74,
479,
8590,
3301,
3915,
1984,
64,
30,
46506,
5449,
16034,
3084,
62,
26561,
2078,
45734,
62,
17,
33411,
1497,
62,
15097,
796,
366,
26236,
40772,
3301,
17701,
1984,
64,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
547,
262,
24174,
618,
262,
1497,
1074,
373,
277,
74,
479,
8590,
3301,
3915,
1984,
64,
30,
46506,
5449,
16034,
3084,
62,
26561,
2078,
45734,
62,
17,
33411,
1497,
62,
15097,
796,
366,
26236,
40772,
3301,
17701,
1984,
64,
1
] |
Name the team for november 9 | SELECT team FROM table_15872814_3 WHERE date = "November 9" | [
5376,
262,
1074,
329,
645,
303,
1916,
860,
46506,
1074,
16034,
3084,
62,
1314,
5774,
2078,
1415,
62,
18,
33411,
3128,
796,
366,
21159,
860,
1
] | [
1,
1,
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,
1074,
329,
645,
303,
1916,
860,
46506,
1074,
16034,
3084,
62,
1314,
5774,
2078,
1415,
62,
18,
33411,
3128,
796,
366,
21159,
860,
1
] |
Name the race name for rnd being 11 | SELECT "Race Name" FROM table_25221 WHERE "Rnd" = '11' | [
5376,
262,
3234,
1438,
329,
374,
358,
852,
1367,
46506,
366,
35157,
6530,
1,
16034,
3084,
62,
1495,
26115,
33411,
366,
49,
358,
1,
796,
705,
1157,
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
] | [
5376,
262,
3234,
1438,
329,
374,
358,
852,
1367,
46506,
366,
35157,
6530,
1,
16034,
3084,
62,
1495,
26115,
33411,
366,
49,
358,
1,
796,
705,
1157,
6
] |
What are the market city/market(s) for Rapid City Alternative format? | SELECT target_city__market FROM table_134987_3 WHERE city_of_license = "Rapid City" AND format = "Alternative" | [
2061,
389,
262,
1910,
1748,
14,
10728,
7,
82,
8,
329,
26430,
2254,
27182,
5794,
30,
46506,
2496,
62,
19205,
834,
10728,
16034,
3084,
62,
1485,
2920,
5774,
62,
18,
33411,
1748,
62,
1659,
62,
43085,
796,
366,
35230,
312,
2254,
1,
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
] | [
2061,
389,
262,
1910,
1748,
14,
10728,
7,
82,
8,
329,
26430,
2254,
27182,
5794,
30,
46506,
2496,
62,
19205,
834,
10728,
16034,
3084,
62,
1485,
2920,
5774,
62,
18,
33411,
1748,
62,
1659,
62,
43085,
796,
366,
35230,
312,
2254,
1,
5357... |
is the level of arterial bp [diastolic] in patient 14467 last measured on the current icu visit greater than the value second to last measured on the current icu visit? | SELECT (SELECT chartevents.valuenum 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 = 14467) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_i... | [
271,
262,
1241,
286,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
287,
5827,
20224,
3134,
938,
8630,
319,
262,
1459,
14158,
84,
3187,
3744,
621,
262,
1988,
1218,
284,
938,
8630,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
357,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
262,
1241,
286,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
287,
5827,
20224,
3134,
938,
8630,
319,
262,
1459,
14158,
84,
3187,
3744,
621,
262,
1988,
1218,
284,
938,
8630,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
357,
46... |
Who was the home team for the game played at Victoria Park? | SELECT home_team FROM table_name_87 WHERE venue = "victoria park" | [
8241,
373,
262,
1363,
1074,
329,
262,
983,
2826,
379,
12313,
3250,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
5774,
33411,
14359,
796,
366,
32433,
7661,
3952,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
329,
262,
983,
2826,
379,
12313,
3250,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
5774,
33411,
14359,
796,
366,
32433,
7661,
3952,
1
] |
What is the description for the CIS-220 and how many credits does it have? | SELECT crs_credit, crs_description FROM course WHERE crs_code = 'CIS-220' | [
2061,
318,
262,
6764,
329,
262,
36159,
12,
17572,
290,
703,
867,
10824,
857,
340,
423,
30,
46506,
1067,
82,
62,
43082,
11,
1067,
82,
62,
11213,
16034,
1781,
33411,
1067,
82,
62,
8189,
796,
705,
34,
1797,
12,
17572,
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
] | [
2061,
318,
262,
6764,
329,
262,
36159,
12,
17572,
290,
703,
867,
10824,
857,
340,
423,
30,
46506,
1067,
82,
62,
43082,
11,
1067,
82,
62,
11213,
16034,
1781,
33411,
1067,
82,
62,
8189,
796,
705,
34,
1797,
12,
17572,
6
] |
Which Date has a Region of france? | SELECT date FROM table_name_90 WHERE region = "france" | [
13828,
7536,
468,
257,
17718,
286,
1216,
590,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3829,
33411,
3814,
796,
366,
69,
8132,
1
] | [
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,
7536,
468,
257,
17718,
286,
1216,
590,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3829,
33411,
3814,
796,
366,
69,
8132,
1
] |
Show all card type codes and the number of cards in each type Plot them as bar chart, rank from low to high by the x-axis. | SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code ORDER BY card_type_code | [
15307,
477,
2657,
2099,
12416,
290,
262,
1271,
286,
4116,
287,
1123,
2099,
28114,
606,
355,
2318,
8262,
11,
4279,
422,
1877,
284,
1029,
416,
262,
2124,
12,
22704,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
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
] | [
15307,
477,
2657,
2099,
12416,
290,
262,
1271,
286,
4116,
287,
1123,
2099,
28114,
606,
355,
2318,
8262,
11,
4279,
422,
1877,
284,
1029,
416,
262,
2124,
12,
22704,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
... |
what was the album released before blood and roses vol 2 ? | SELECT "album/single" FROM table_204_268 WHERE "year" < (SELECT "year" FROM table_204_268 WHERE "album/single" = 'blood and roses vol 2') ORDER BY "year" DESC LIMIT 1 | [
10919,
373,
262,
5062,
2716,
878,
2910,
290,
42152,
2322,
362,
5633,
46506,
366,
40916,
14,
29762,
1,
16034,
3084,
62,
18638,
62,
25022,
33411,
366,
1941,
1,
1279,
357,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
25022,
33411,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
5062,
2716,
878,
2910,
290,
42152,
2322,
362,
5633,
46506,
366,
40916,
14,
29762,
1,
16034,
3084,
62,
18638,
62,
25022,
33411,
366,
1941,
1,
1279,
357,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
25022,
33411,
36... |
What is the No 1 from the Maryland (2008) Region (year)? | SELECT no_1 FROM table_name_27 WHERE region__year_ = "maryland (2008)" | [
2061,
318,
262,
1400,
352,
422,
262,
10769,
357,
11528,
8,
17718,
357,
1941,
19427,
46506,
645,
62,
16,
16034,
3084,
62,
3672,
62,
1983,
33411,
3814,
834,
1941,
62,
796,
366,
6874,
1044,
357,
11528,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1400,
352,
422,
262,
10769,
357,
11528,
8,
17718,
357,
1941,
19427,
46506,
645,
62,
16,
16034,
3084,
62,
3672,
62,
1983,
33411,
3814,
834,
1941,
62,
796,
366,
6874,
1044,
357,
11528,
16725
] |
which judge was last appointed by president truman ? | SELECT "judge" FROM table_203_563 WHERE "appointed by" = 'truman' ORDER BY "#" DESC LIMIT 1 | [
4758,
5052,
373,
938,
9899,
416,
1893,
491,
3778,
5633,
46506,
366,
10456,
469,
1,
16034,
3084,
62,
22416,
62,
46572,
33411,
366,
32924,
416,
1,
796,
705,
2213,
3778,
6,
38678,
11050,
25113,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
5052,
373,
938,
9899,
416,
1893,
491,
3778,
5633,
46506,
366,
10456,
469,
1,
16034,
3084,
62,
22416,
62,
46572,
33411,
366,
32924,
416,
1,
796,
705,
2213,
3778,
6,
38678,
11050,
25113,
1,
22196,
34,
27564,
2043,
352
] |
Group and count the city attribute of the location table to visualize a bar chart, display from low to high by the y axis please. | SELECT CITY, COUNT(CITY) FROM locations GROUP BY CITY ORDER BY COUNT(CITY) | [
13247,
290,
954,
262,
1748,
11688,
286,
262,
4067,
3084,
284,
38350,
257,
2318,
8262,
11,
3359,
422,
1877,
284,
1029,
416,
262,
331,
16488,
3387,
13,
46506,
27993,
11,
327,
28270,
7,
34,
9050,
8,
16034,
7064,
44441,
11050,
27993,
3867... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13247,
290,
954,
262,
1748,
11688,
286,
262,
4067,
3084,
284,
38350,
257,
2318,
8262,
11,
3359,
422,
1877,
284,
1029,
416,
262,
331,
16488,
3387,
13,
46506,
27993,
11,
327,
28270,
7,
34,
9050,
8,
16034,
7064,
44441,
11050,
27993,
3867... |
what was the average value of patient 010-29887's bicarbonate? | SELECT AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-29887')) AND lab.labname = 'bicarbonate' | [
10919,
373,
262,
2811,
1988,
286,
5827,
5534,
15,
12,
1959,
46660,
338,
275,
291,
42084,
378,
30,
46506,
35224,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
1988,
286,
5827,
5534,
15,
12,
1959,
46660,
338,
275,
291,
42084,
378,
30,
46506,
35224,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
... |
count the number of patients whose marital status is divorced and drug route is ih? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.marital_status = "DIVORCED" AND prescriptions.route = "IH" | [
9127,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
25107,
290,
2563,
6339,
318,
1312,
71,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
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,
1... | [
9127,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
25107,
290,
2563,
6339,
318,
1312,
71,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
1... |
Which Round was Player Adam Cracknell Picked after 231 in a Draft year after 1988? | SELECT "Round" FROM table_55237 WHERE "Pick" > '231' AND "Draft" > '1988' AND "Player" = 'adam cracknell' | [
13828,
10485,
373,
7853,
7244,
46180,
10076,
350,
9484,
706,
34598,
287,
257,
13650,
614,
706,
12122,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
2816,
24693,
33411,
366,
31686,
1,
1875,
705,
25667,
6,
5357,
366,
37741,
1,
1875,
705,
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
] | [
13828,
10485,
373,
7853,
7244,
46180,
10076,
350,
9484,
706,
34598,
287,
257,
13650,
614,
706,
12122,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
2816,
24693,
33411,
366,
31686,
1,
1875,
705,
25667,
6,
5357,
366,
37741,
1,
1875,
705,
2... |
What nationality has a position of left wing, and a round greater than 4, with mattia baldi as the player? | SELECT nationality FROM table_name_75 WHERE position = "left wing" AND round > 4 AND player = "mattia baldi" | [
2061,
29835,
468,
257,
2292,
286,
1364,
8539,
11,
290,
257,
2835,
3744,
621,
604,
11,
351,
23963,
544,
28273,
72,
355,
262,
2137,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
2425,
33411,
2292,
796,
366,
9464,
8539,
1,
5357,
2835,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29835,
468,
257,
2292,
286,
1364,
8539,
11,
290,
257,
2835,
3744,
621,
604,
11,
351,
23963,
544,
28273,
72,
355,
262,
2137,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
2425,
33411,
2292,
796,
366,
9464,
8539,
1,
5357,
2835,
1... |
What is the team with 1st period at 12:37? | SELECT team FROM table_name_53 WHERE period = "1st" AND time = "12:37" | [
2061,
318,
262,
1074,
351,
352,
301,
2278,
379,
1105,
25,
2718,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
4310,
33411,
2278,
796,
366,
16,
301,
1,
5357,
640,
796,
366,
1065,
25,
2718,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
351,
352,
301,
2278,
379,
1105,
25,
2718,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
4310,
33411,
2278,
796,
366,
16,
301,
1,
5357,
640,
796,
366,
1065,
25,
2718,
1
] |
Compute the average salary of the players in the team called 'Boston Red Stockings'. | SELECT AVG(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' | [
7293,
1133,
262,
2811,
9588,
286,
262,
1938,
287,
262,
1074,
1444,
705,
31710,
2297,
10500,
654,
4458,
46506,
35224,
7,
51,
16,
13,
21680,
560,
8,
16034,
9588,
7054,
309,
16,
32357,
1268,
1074,
7054,
309,
17,
6177,
309,
16,
13,
1509... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7293,
1133,
262,
2811,
9588,
286,
262,
1938,
287,
262,
1074,
1444,
705,
31710,
2297,
10500,
654,
4458,
46506,
35224,
7,
51,
16,
13,
21680,
560,
8,
16034,
9588,
7054,
309,
16,
32357,
1268,
1074,
7054,
309,
17,
6177,
309,
16,
13,
1509... |
when was the first time patient 2425 had a lab test, until 35 months ago? | SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2425) AND DATETIME(labevents.charttime) <= DATETIME(CURRENT_TIME(), '-35 month') ORDER BY labevents.charttime LIMIT 1 | [
12518,
373,
262,
717,
640,
5827,
1987,
1495,
550,
257,
2248,
1332,
11,
1566,
3439,
1933,
2084,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
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... | [
12518,
373,
262,
717,
640,
5827,
1987,
1495,
550,
257,
2248,
1332,
11,
1566,
3439,
1933,
2084,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
... |
DALLAS to SAN FRANCISCO leaving after 1600 in the afternoon 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, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.departure_time > 1600 AND flight.to_airport = AIRPORT_SERVICE_1... | [
35,
7036,
1921,
284,
37376,
8782,
20940,
1797,
8220,
4305,
706,
26143,
287,
262,
6672,
3387,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35,
7036,
1921,
284,
37376,
8782,
20940,
1797,
8220,
4305,
706,
26143,
287,
262,
6672,
3387,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
1... |
Show id from each meter 400, and sort y-axis in ascending order. | SELECT meter_400, ID FROM swimmer ORDER BY ID | [
15307,
4686,
422,
1123,
16430,
7337,
11,
290,
3297,
331,
12,
22704,
287,
41988,
1502,
13,
46506,
16430,
62,
7029,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522
] | [
1,
1,
1,
1,
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,
4686,
422,
1123,
16430,
7337,
11,
290,
3297,
331,
12,
22704,
287,
41988,
1502,
13,
46506,
16430,
62,
7029,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522
] |
requiring vasopressor support despite adequate fluid resuscitation | SELECT * FROM table_train_65 WHERE receiving_vasopressor = 1 | [
8897,
3428,
34439,
404,
44292,
1104,
3805,
12872,
11711,
48636,
3780,
46506,
1635,
16034,
3084,
62,
27432,
62,
2996,
33411,
6464,
62,
11017,
404,
44292,
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,
1
] | [
8897,
3428,
34439,
404,
44292,
1104,
3805,
12872,
11711,
48636,
3780,
46506,
1635,
16034,
3084,
62,
27432,
62,
2996,
33411,
6464,
62,
11017,
404,
44292,
796,
352
] |
what is maximum age of patients whose marital status is married and discharge location is home? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.discharge_location = "HOME" | [
10919,
318,
5415,
2479,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
17655,
4067,
318,
1363,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
2479,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
17655,
4067,
318,
1363,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
16... |
What is the T8 Place Player? | SELECT "Player" FROM table_76938 WHERE "Place" = 't8' | [
2061,
318,
262,
309,
23,
8474,
7853,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
22,
3388,
2548,
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
] | [
2061,
318,
262,
309,
23,
8474,
7853,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
22,
3388,
2548,
33411,
366,
27271,
1,
796,
705,
83,
23,
6
] |
who is the only person that received a nobel peace prize ? | SELECT "laureate" FROM table_203_437 WHERE "category" = 'nobel peace prize' | [
8727,
318,
262,
691,
1048,
326,
2722,
257,
645,
6667,
4167,
11596,
5633,
46506,
366,
5031,
495,
378,
1,
16034,
3084,
62,
22416,
62,
43284,
33411,
366,
22872,
1,
796,
705,
34952,
417,
4167,
11596,
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
] | [
8727,
318,
262,
691,
1048,
326,
2722,
257,
645,
6667,
4167,
11596,
5633,
46506,
366,
5031,
495,
378,
1,
16034,
3084,
62,
22416,
62,
43284,
33411,
366,
22872,
1,
796,
705,
34952,
417,
4167,
11596,
6
] |
What was the time/retired with laps less than 33 and a grid of 14? | SELECT "Time/Retired" FROM table_52568 WHERE "Laps" < '33' AND "Grid" = '14' | [
2061,
373,
262,
640,
14,
1186,
1202,
351,
24590,
1342,
621,
4747,
290,
257,
10706,
286,
1478,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
39088,
3104,
33411,
366,
43,
1686,
1,
1279,
705,
2091,
6,
5357,
366,
41339,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
14,
1186,
1202,
351,
24590,
1342,
621,
4747,
290,
257,
10706,
286,
1478,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
39088,
3104,
33411,
366,
43,
1686,
1,
1279,
705,
2091,
6,
5357,
366,
41339,
1,
... |
What was the score on April 8? | SELECT score FROM table_name_39 WHERE date = "april 8" | [
2061,
373,
262,
4776,
319,
3035,
807,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2670,
33411,
3128,
796,
366,
499,
22379,
807,
1
] | [
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,
3035,
807,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2670,
33411,
3128,
796,
366,
499,
22379,
807,
1
] |
List the 1st air date for the show where the writers are russel friend & garrett lerner. | SELECT "Original air date" FROM table_25556 WHERE "Written by" = 'Russel Friend & Garrett Lerner' | [
8053,
262,
352,
301,
1633,
3128,
329,
262,
905,
810,
262,
8786,
389,
374,
385,
741,
1545,
1222,
5482,
11489,
300,
263,
1008,
13,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1495,
37864,
33411,
366,
25354,
416,
1,
796,
705,
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
] | [
8053,
262,
352,
301,
1633,
3128,
329,
262,
905,
810,
262,
8786,
389,
374,
385,
741,
1545,
1222,
5482,
11489,
300,
263,
1008,
13,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1495,
37864,
33411,
366,
25354,
416,
1,
796,
705,
35... |
Old unanswered questions whose asker is still around. Unanswered questions where the asked has been active in the last 30 days, order with the oldest question first | SELECT Question.Id, Question.Id AS "post_link", Users.LastAccessDate, Question.AnswerCount FROM Posts AS Question JOIN Users ON Question.OwnerUserId = Users.Id WHERE Question.AcceptedAnswerId IS NULL AND NOT EXISTS(SELECT * FROM Posts AS Answer WHERE Answer.ParentId = Question.Id AND Answer.Score > 0) AND Question.Post... | [
19620,
34001,
2683,
3025,
1265,
263,
318,
991,
1088,
13,
791,
31966,
2683,
810,
262,
1965,
468,
587,
4075,
287,
262,
938,
1542,
1528,
11,
1502,
351,
262,
13325,
1808,
717,
46506,
18233,
13,
7390,
11,
18233,
13,
7390,
7054,
366,
7353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19620,
34001,
2683,
3025,
1265,
263,
318,
991,
1088,
13,
791,
31966,
2683,
810,
262,
1965,
468,
587,
4075,
287,
262,
938,
1542,
1528,
11,
1502,
351,
262,
13325,
1808,
717,
46506,
18233,
13,
7390,
11,
18233,
13,
7390,
7054,
366,
7353,
... |
how many patients whose diagnoses short title is enterococcus group d and lab test name is bands? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Enterococcus group d" AND lab.label = "Bands" | [
4919,
867,
3871,
3025,
40567,
1790,
3670,
318,
3802,
34403,
9042,
1448,
288,
290,
2248,
1332,
1438,
318,
11760,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
40567,
1790,
3670,
318,
3802,
34403,
9042,
1448,
288,
290,
2248,
1332,
1438,
318,
11760,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,... |
Give me the comparison about ID over the meter_300 , and show by the y axis in descending. | SELECT meter_300, ID FROM swimmer ORDER BY ID DESC | [
23318,
502,
262,
7208,
546,
4522,
625,
262,
16430,
62,
6200,
837,
290,
905,
416,
262,
331,
16488,
287,
31491,
13,
46506,
16430,
62,
6200,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
262,
7208,
546,
4522,
625,
262,
16430,
62,
6200,
837,
290,
905,
416,
262,
331,
16488,
287,
31491,
13,
46506,
16430,
62,
6200,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522,
22196,
34
] |
serum bicarbonate concentration < 15 mmol / l | SELECT * FROM table_train_257 WHERE serum_bicarbonate < 15 | [
2655,
388,
275,
291,
42084,
378,
10368,
1279,
1315,
47340,
1220,
300,
46506,
1635,
16034,
3084,
62,
27432,
62,
28676,
33411,
20502,
62,
65,
291,
42084,
378,
1279,
1315
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2655,
388,
275,
291,
42084,
378,
10368,
1279,
1315,
47340,
1220,
300,
46506,
1635,
16034,
3084,
62,
27432,
62,
28676,
33411,
20502,
62,
65,
291,
42084,
378,
1279,
1315
] |
how mnay greek designation in tampa | SELECT COUNT(greek_designation) FROM table_18159601_1 WHERE city = "Tampa" | [
4919,
285,
77,
323,
308,
10316,
22566,
287,
256,
13299,
46506,
327,
28270,
7,
70,
10316,
62,
26124,
341,
8,
16034,
3084,
62,
1507,
1314,
4846,
486,
62,
16,
33411,
1748,
796,
366,
51,
13299,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
285,
77,
323,
308,
10316,
22566,
287,
256,
13299,
46506,
327,
28270,
7,
70,
10316,
62,
26124,
341,
8,
16034,
3084,
62,
1507,
1314,
4846,
486,
62,
16,
33411,
1748,
796,
366,
51,
13299,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.