instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Which class has more than 15 people in the class? | SELECT "Class" FROM table_51105 WHERE "Number in class" > '15' | [
13828,
1398,
468,
517,
621,
1315,
661,
287,
262,
1398,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
4349,
13348,
33411,
366,
15057,
287,
1398,
1,
1875,
705,
1314,
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
] | [
13828,
1398,
468,
517,
621,
1315,
661,
287,
262,
1398,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
4349,
13348,
33411,
366,
15057,
287,
1398,
1,
1875,
705,
1314,
6
] |
What name has pembroke as the built by hm dockyard, and may 1825 as the laid down? | SELECT "Name" FROM table_7080 WHERE "Built by HM Dockyard" = 'pembroke' AND "Laid down" = 'may 1825' | [
2061,
1438,
468,
279,
368,
7957,
365,
355,
262,
3170,
416,
289,
76,
23423,
9413,
11,
290,
743,
1248,
1495,
355,
262,
8104,
866,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
2154,
1795,
33411,
366,
39582,
416,
25904,
36444,
9413,
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,
1,
1
] | [
2061,
1438,
468,
279,
368,
7957,
365,
355,
262,
3170,
416,
289,
76,
23423,
9413,
11,
290,
743,
1248,
1495,
355,
262,
8104,
866,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
2154,
1795,
33411,
366,
39582,
416,
25904,
36444,
9413,
1,
796... |
Where is the lacrosse school located? | SELECT location FROM table_name_98 WHERE school = "lacrosse" | [
8496,
318,
262,
31123,
39314,
1524,
5140,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
4089,
33411,
1524,
796,
366,
75,
330,
39314,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
318,
262,
31123,
39314,
1524,
5140,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
4089,
33411,
1524,
796,
366,
75,
330,
39314,
1
] |
What's on at 7:30 before the 9:00 showing of the Tudors? | SELECT "7:30" FROM table_71851 WHERE "9:00" = 'the tudors' | [
2061,
338,
319,
379,
767,
25,
1270,
878,
262,
860,
25,
405,
4478,
286,
262,
48256,
669,
30,
46506,
366,
22,
25,
1270,
1,
16034,
3084,
62,
45720,
4349,
33411,
366,
24,
25,
405,
1,
796,
705,
1169,
256,
463,
669,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
319,
379,
767,
25,
1270,
878,
262,
860,
25,
405,
4478,
286,
262,
48256,
669,
30,
46506,
366,
22,
25,
1270,
1,
16034,
3084,
62,
45720,
4349,
33411,
366,
24,
25,
405,
1,
796,
705,
1169,
256,
463,
669,
6
] |
Give me a pie to show the number of premises type from different premises type. | SELECT premises_type, COUNT(premises_type) FROM Premises GROUP BY premises_type | [
23318,
502,
257,
2508,
284,
905,
262,
1271,
286,
17095,
2099,
422,
1180,
17095,
2099,
13,
46506,
17095,
62,
4906,
11,
327,
28270,
7,
31605,
2696,
62,
4906,
8,
16034,
6929,
2696,
44441,
11050,
17095,
62,
4906
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
257,
2508,
284,
905,
262,
1271,
286,
17095,
2099,
422,
1180,
17095,
2099,
13,
46506,
17095,
62,
4906,
11,
327,
28270,
7,
31605,
2696,
62,
4906,
8,
16034,
6929,
2696,
44441,
11050,
17095,
62,
4906
] |
How many silver medals does Belarus (blr) along with 4 gold and 4 bronze? | SELECT SUM(silver) FROM table_name_92 WHERE gold = 4 AND nation = "belarus (blr)" AND bronze > 4 | [
2437,
867,
8465,
28057,
857,
33368,
357,
2436,
81,
8,
1863,
351,
604,
3869,
290,
604,
22101,
30,
46506,
35683,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
3869,
796,
604,
5357,
3277,
796,
366,
6667,
20272,
357,
2436,
81,
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
] | [
2437,
867,
8465,
28057,
857,
33368,
357,
2436,
81,
8,
1863,
351,
604,
3869,
290,
604,
22101,
30,
46506,
35683,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
3869,
796,
604,
5357,
3277,
796,
366,
6667,
20272,
357,
2436,
81,
16... |
how many seasons other than 1999 was their a spring series movement ? | SELECT COUNT("season") FROM table_204_42 WHERE "season" <> 1999 AND "movements" = 'spring series' | [
4919,
867,
7028,
584,
621,
7358,
373,
511,
257,
6076,
2168,
3356,
5633,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
18638,
62,
3682,
33411,
366,
6230,
1,
1279,
29,
7358,
5357,
366,
21084,
902,
1,
796,
705,
16469,
2168,
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
] | [
4919,
867,
7028,
584,
621,
7358,
373,
511,
257,
6076,
2168,
3356,
5633,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
18638,
62,
3682,
33411,
366,
6230,
1,
1279,
29,
7358,
5357,
366,
21084,
902,
1,
796,
705,
16469,
2168,
6
] |
Name the csa 4/16/09 for opinionway being 4/17/09 of 12% | SELECT csa_4_16_09 FROM table_name_17 WHERE opinionway_4_17_09 = "12%" | [
5376,
262,
269,
11400,
604,
14,
1433,
14,
2931,
329,
4459,
1014,
852,
604,
14,
1558,
14,
2931,
286,
1105,
4,
46506,
269,
11400,
62,
19,
62,
1433,
62,
2931,
16034,
3084,
62,
3672,
62,
1558,
33411,
4459,
1014,
62,
19,
62,
1558,
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
] | [
5376,
262,
269,
11400,
604,
14,
1433,
14,
2931,
329,
4459,
1014,
852,
604,
14,
1558,
14,
2931,
286,
1105,
4,
46506,
269,
11400,
62,
19,
62,
1433,
62,
2931,
16034,
3084,
62,
3672,
62,
1558,
33411,
4459,
1014,
62,
19,
62,
1558,
62,
... |
Anonymous feedback votes over time. | SELECT COUNT(*) FROM PostFeedback | [
20660,
7538,
5690,
625,
640,
13,
46506,
327,
28270,
7,
28104,
16034,
2947,
18332,
1891
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20660,
7538,
5690,
625,
640,
13,
46506,
327,
28270,
7,
28104,
16034,
2947,
18332,
1891
] |
Find the number of medications prescribed for each brand Plot them as bar chart, and I want to rank by the X-axis in desc please. | SELECT Name, COUNT(*) FROM Medication AS T1 JOIN Prescribes AS T2 ON T1.Code = T2.Medication GROUP BY T1.Brand ORDER BY Name DESC | [
16742,
262,
1271,
286,
17638,
14798,
329,
1123,
4508,
28114,
606,
355,
2318,
8262,
11,
290,
314,
765,
284,
4279,
416,
262,
1395,
12,
22704,
287,
1715,
3387,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
2019,
3299,
7054,
309,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
1271,
286,
17638,
14798,
329,
1123,
4508,
28114,
606,
355,
2318,
8262,
11,
290,
314,
765,
284,
4279,
416,
262,
1395,
12,
22704,
287,
1715,
3387,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
2019,
3299,
7054,
309,
16,
... |
who is the the pole position with rnd being 16 | SELECT "Pole position" FROM table_19465 WHERE "Rnd" = '16' | [
8727,
318,
262,
262,
16825,
2292,
351,
374,
358,
852,
1467,
46506,
366,
47,
2305,
2292,
1,
16034,
3084,
62,
22913,
2996,
33411,
366,
49,
358,
1,
796,
705,
1433,
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
] | [
8727,
318,
262,
262,
16825,
2292,
351,
374,
358,
852,
1467,
46506,
366,
47,
2305,
2292,
1,
16034,
3084,
62,
22913,
2996,
33411,
366,
49,
358,
1,
796,
705,
1433,
6
] |
How many white russian patients have the drug type additive? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND prescriptions.drug_type = "ADDITIVE" | [
2437,
867,
2330,
374,
31562,
3871,
423,
262,
2563,
2099,
38298,
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,
18108,
76,
62,
312,
796,
340... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2330,
374,
31562,
3871,
423,
262,
2563,
2099,
38298,
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,
18108,
76,
62,
312,
796,
340... |
Who is the person with the defining characteristic of the shortest band member? | SELECT "Real Name" FROM table_53027 WHERE "Defining characteristics" = 'shortest band member' | [
8241,
318,
262,
1048,
351,
262,
16215,
16704,
286,
262,
35581,
4097,
2888,
30,
46506,
366,
15633,
6530,
1,
16034,
3084,
62,
38612,
1983,
33411,
366,
7469,
3191,
9695,
1,
796,
705,
19509,
395,
4097,
2888,
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
] | [
8241,
318,
262,
1048,
351,
262,
16215,
16704,
286,
262,
35581,
4097,
2888,
30,
46506,
366,
15633,
6530,
1,
16034,
3084,
62,
38612,
1983,
33411,
366,
7469,
3191,
9695,
1,
796,
705,
19509,
395,
4097,
2888,
6
] |
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the founder , and group by attribute founder by a bar chart, display by the names in asc. | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
2438,
625,
262,
9119,
837,
290,
1448,
416,
11688,
9119,
416,
257,
2318,
8262,
11,
3359,
416,
262,
3891,
287,
10570,
13,
465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2438,
625,
262,
9119,
837,
290,
1448,
416,
11688,
9119,
416,
257,
2318,
8262,
11,
3359,
416,
262,
3891,
287,
10570,
13,
465... |
How many million U.S. viewers watched the epiode with a production code of 1arc12? | SELECT us_viewers__million_ FROM table_25668962_1 WHERE production_code = "1ARC12" | [
2437,
867,
1510,
471,
13,
50,
13,
10209,
7342,
262,
2462,
72,
1098,
351,
257,
3227,
2438,
286,
352,
5605,
1065,
30,
46506,
514,
62,
1177,
364,
834,
14100,
62,
16034,
3084,
62,
1495,
2791,
4531,
5237,
62,
16,
33411,
3227,
62,
8189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1510,
471,
13,
50,
13,
10209,
7342,
262,
2462,
72,
1098,
351,
257,
3227,
2438,
286,
352,
5605,
1065,
30,
46506,
514,
62,
1177,
364,
834,
14100,
62,
16034,
3084,
62,
1495,
2791,
4531,
5237,
62,
16,
33411,
3227,
62,
8189,
... |
A stacked bar chart shows the total number of ships with different nationalities and split by ship type, I want to sort Y-axis in desc order. | SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Type, Nationality ORDER BY COUNT(Nationality) DESC | [
32,
24167,
2318,
8262,
2523,
262,
2472,
1271,
286,
7937,
351,
1180,
2260,
871,
290,
6626,
416,
4074,
2099,
11,
314,
765,
284,
3297,
575,
12,
22704,
287,
1715,
1502,
13,
46506,
2351,
414,
11,
327,
28270,
7,
16186,
414,
8,
16034,
4074... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
24167,
2318,
8262,
2523,
262,
2472,
1271,
286,
7937,
351,
1180,
2260,
871,
290,
6626,
416,
4074,
2099,
11,
314,
765,
284,
3297,
575,
12,
22704,
287,
1715,
1502,
13,
46506,
2351,
414,
11,
327,
28270,
7,
16186,
414,
8,
16034,
4074... |
What is the game number when the record is 30-22? | SELECT AVG("Game") FROM table_47035 WHERE "Record" = '30-22' | [
2061,
318,
262,
983,
1271,
618,
262,
1700,
318,
1542,
12,
1828,
30,
46506,
35224,
7203,
8777,
4943,
16034,
3084,
62,
27790,
2327,
33411,
366,
23739,
1,
796,
705,
1270,
12,
1828,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
983,
1271,
618,
262,
1700,
318,
1542,
12,
1828,
30,
46506,
35224,
7203,
8777,
4943,
16034,
3084,
62,
27790,
2327,
33411,
366,
23739,
1,
796,
705,
1270,
12,
1828,
6
] |
Which lane is Goksu Bicer in? | SELECT lane FROM table_name_37 WHERE swimmer = "goksu bicer" | [
13828,
11193,
318,
402,
482,
2385,
347,
16647,
287,
30,
46506,
11193,
16034,
3084,
62,
3672,
62,
2718,
33411,
9422,
647,
796,
366,
70,
482,
2385,
275,
16647,
1
] | [
1,
1,
1,
1,
1,
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,
11193,
318,
402,
482,
2385,
347,
16647,
287,
30,
46506,
11193,
16034,
3084,
62,
3672,
62,
2718,
33411,
9422,
647,
796,
366,
70,
482,
2385,
275,
16647,
1
] |
What is the highest round on 5 april? | SELECT MAX("Round") FROM table_57167 WHERE "Date" = '5 april' | [
2061,
318,
262,
4511,
2835,
319,
642,
46593,
346,
30,
46506,
25882,
7203,
22685,
4943,
16034,
3084,
62,
3553,
21940,
33411,
366,
10430,
1,
796,
705,
20,
46593,
346,
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,
4511,
2835,
319,
642,
46593,
346,
30,
46506,
25882,
7203,
22685,
4943,
16034,
3084,
62,
3553,
21940,
33411,
366,
10430,
1,
796,
705,
20,
46593,
346,
6
] |
What party was the winner in the district Maryland 6? | SELECT "Party" FROM table_18145 WHERE "District" = 'Maryland 6' | [
2061,
2151,
373,
262,
8464,
287,
262,
4783,
10769,
718,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
1507,
18781,
33411,
366,
44857,
1,
796,
705,
24119,
1044,
718,
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,
2151,
373,
262,
8464,
287,
262,
4783,
10769,
718,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
1507,
18781,
33411,
366,
44857,
1,
796,
705,
24119,
1044,
718,
6
] |
Name the number of three pointers for 67 | SELECT COUNT("Three Pointers") FROM table_25700 WHERE "Points" = '67' | [
5376,
262,
1271,
286,
1115,
32007,
329,
8275,
46506,
327,
28270,
7203,
12510,
7695,
20193,
4943,
16034,
3084,
62,
1495,
9879,
33411,
366,
40710,
1,
796,
705,
3134,
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
] | [
5376,
262,
1271,
286,
1115,
32007,
329,
8275,
46506,
327,
28270,
7203,
12510,
7695,
20193,
4943,
16034,
3084,
62,
1495,
9879,
33411,
366,
40710,
1,
796,
705,
3134,
6
] |
What was the highest place result in 2010 with a Clean and Jerk weight of 224kg? | SELECT MAX(place) FROM table_name_92 WHERE year = 2010 AND clean_and_jerk = "224kg" | [
2061,
373,
262,
4511,
1295,
1255,
287,
3050,
351,
257,
5985,
290,
4230,
74,
3463,
286,
26063,
10025,
30,
46506,
25882,
7,
5372,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
614,
796,
3050,
5357,
3424,
62,
392,
62,
73,
9587,
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
] | [
2061,
373,
262,
4511,
1295,
1255,
287,
3050,
351,
257,
5985,
290,
4230,
74,
3463,
286,
26063,
10025,
30,
46506,
25882,
7,
5372,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
614,
796,
3050,
5357,
3424,
62,
392,
62,
73,
9587,
796,
366,
... |
Name the broadcast date of 6.9 million viewers | SELECT "Broadcast date" FROM table_24176 WHERE "Viewers (in millions)" = '6.9' | [
5376,
262,
7025,
3128,
286,
718,
13,
24,
1510,
10209,
46506,
366,
30507,
2701,
3128,
1,
16034,
3084,
62,
1731,
24096,
33411,
366,
7680,
364,
357,
259,
5242,
16725,
796,
705,
21,
13,
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,
1,
1,
1,
1,
1
] | [
5376,
262,
7025,
3128,
286,
718,
13,
24,
1510,
10209,
46506,
366,
30507,
2701,
3128,
1,
16034,
3084,
62,
1731,
24096,
33411,
366,
7680,
364,
357,
259,
5242,
16725,
796,
705,
21,
13,
24,
6
] |
how many artists scored at least 40 points ? | SELECT COUNT("artist") FROM table_203_803 WHERE "points" >= 40 | [
4919,
867,
7912,
7781,
379,
1551,
2319,
2173,
5633,
46506,
327,
28270,
7203,
49016,
4943,
16034,
3084,
62,
22416,
62,
43564,
33411,
366,
13033,
1,
18189,
2319
] | [
1,
1,
1,
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,
7912,
7781,
379,
1551,
2319,
2173,
5633,
46506,
327,
28270,
7203,
49016,
4943,
16034,
3084,
62,
22416,
62,
43564,
33411,
366,
13033,
1,
18189,
2319
] |
What's the venue for the home team that scored 9.14 (68)? | SELECT "Venue" FROM table_78410 WHERE "Home team score" = '9.14 (68)' | [
2061,
338,
262,
14359,
329,
262,
1363,
1074,
326,
7781,
860,
13,
1415,
357,
3104,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3695,
33289,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
24,
13,
1415,
357,
3104,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
14359,
329,
262,
1363,
1074,
326,
7781,
860,
13,
1415,
357,
3104,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3695,
33289,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
24,
13,
1415,
357,
3104,
33047
] |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the amount of name , and group by attribute name, and show in desc by the names. | SELECT T1.Name, COUNT(T1.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2033,
286,
1438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
905,
287,
1715,
416,
262,
3891,
13,
46506,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2033,
286,
1438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
905,
287,
1715,
416,
262,
3891,
13,
46506,
309... |
Which Outcome has a Score of 6 4, 2 6, 6 3? | SELECT "Outcome" FROM table_36787 WHERE "Score" = '6–4, 2–6, 6–3' | [
13828,
3806,
2958,
468,
257,
15178,
286,
718,
604,
11,
362,
718,
11,
718,
513,
30,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
2623,
41019,
33411,
366,
26595,
1,
796,
705,
21,
1906,
19,
11,
362,
1906,
21,
11,
718,
1906,
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,
1,
1,
1,
1,
1,
1
] | [
13828,
3806,
2958,
468,
257,
15178,
286,
718,
604,
11,
362,
718,
11,
718,
513,
30,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
2623,
41019,
33411,
366,
26595,
1,
796,
705,
21,
1906,
19,
11,
362,
1906,
21,
11,
718,
1906,
18,
6
] |
Which engineer has visited the most times? Show the engineer id, first name and last name. | SELECT T1.engineer_id, T1.first_name, T1.last_name FROM maintenance_engineers AS T1 JOIN engineer_visits AS T2 GROUP BY T1.engineer_id ORDER BY COUNT(*) DESC LIMIT 1 | [
13828,
11949,
468,
8672,
262,
749,
1661,
30,
5438,
262,
11949,
4686,
11,
717,
1438,
290,
938,
1438,
13,
46506,
309,
16,
13,
18392,
263,
62,
312,
11,
309,
16,
13,
11085,
62,
3672,
11,
309,
16,
13,
12957,
62,
3672,
16034,
9262,
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... | [
13828,
11949,
468,
8672,
262,
749,
1661,
30,
5438,
262,
11949,
4686,
11,
717,
1438,
290,
938,
1438,
13,
46506,
309,
16,
13,
18392,
263,
62,
312,
11,
309,
16,
13,
11085,
62,
3672,
11,
309,
16,
13,
12957,
62,
3672,
16034,
9262,
62,
... |
score <= 4 or lower on the hachinski ischemic scale | SELECT * FROM table_train_134 WHERE rosen_modified_hachinski_ischemic_score <= 4 | [
26675,
19841,
604,
393,
2793,
319,
262,
289,
620,
21141,
318,
2395,
9383,
5046,
46506,
1635,
16034,
3084,
62,
27432,
62,
19880,
33411,
686,
6248,
62,
41771,
62,
71,
620,
21141,
62,
2304,
4411,
291,
62,
26675,
19841,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26675,
19841,
604,
393,
2793,
319,
262,
289,
620,
21141,
318,
2395,
9383,
5046,
46506,
1635,
16034,
3084,
62,
27432,
62,
19880,
33411,
686,
6248,
62,
41771,
62,
71,
620,
21141,
62,
2304,
4411,
291,
62,
26675,
19841,
604
] |
In 2005-06 what was the disaster? | SELECT disaster FROM table_11649123_1 WHERE year = "2005-06" | [
818,
5075,
12,
3312,
644,
373,
262,
9336,
30,
46506,
9336,
16034,
3084,
62,
1157,
33300,
10163,
62,
16,
33411,
614,
796,
366,
14315,
12,
3312,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
5075,
12,
3312,
644,
373,
262,
9336,
30,
46506,
9336,
16034,
3084,
62,
1157,
33300,
10163,
62,
16,
33411,
614,
796,
366,
14315,
12,
3312,
1
] |
What date was the Piston's record at 23-47? | SELECT "Date" FROM table_25370 WHERE "Record" = '23-47' | [
2061,
3128,
373,
262,
18667,
261,
338,
1700,
379,
2242,
12,
2857,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1495,
20167,
33411,
366,
23739,
1,
796,
705,
1954,
12,
2857,
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
] | [
2061,
3128,
373,
262,
18667,
261,
338,
1700,
379,
2242,
12,
2857,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1495,
20167,
33411,
366,
23739,
1,
796,
705,
1954,
12,
2857,
6
] |
What is the total number of Tonnage, when Date is '25 June 1943'? | SELECT COUNT("Tonnage") FROM table_8213 WHERE "Date" = '25 june 1943' | [
2061,
318,
262,
2472,
1271,
286,
16859,
77,
496,
11,
618,
7536,
318,
705,
1495,
2795,
21577,
30960,
46506,
327,
28270,
7203,
35416,
77,
496,
4943,
16034,
3084,
62,
6469,
1485,
33411,
366,
10430,
1,
796,
705,
1495,
474,
1726,
21577,
6
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
16859,
77,
496,
11,
618,
7536,
318,
705,
1495,
2795,
21577,
30960,
46506,
327,
28270,
7203,
35416,
77,
496,
4943,
16034,
3084,
62,
6469,
1485,
33411,
366,
10430,
1,
796,
705,
1495,
474,
1726,
21577,
6
... |
What was the score where Olga Lugina played in the Tournament of poitiers , france itf $25,000? | SELECT score_in_the_final FROM table_name_84 WHERE partner = "olga lugina" AND tournament = "poitiers , france itf $25,000" | [
2061,
373,
262,
4776,
810,
6544,
4908,
31541,
1437,
2826,
287,
262,
9595,
286,
745,
270,
3183,
837,
1216,
590,
340,
69,
720,
1495,
11,
830,
30,
46506,
4776,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
5705,
33411,
5212,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
810,
6544,
4908,
31541,
1437,
2826,
287,
262,
9595,
286,
745,
270,
3183,
837,
1216,
590,
340,
69,
720,
1495,
11,
830,
30,
46506,
4776,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
5705,
33411,
5212,... |
What is the original team of the celebrity who had the result 08 fired in week 10 (2008-03-06) | SELECT "Original Team" FROM table_489 WHERE "Result" = '08 Fired in week 10 (2008-03-06)' | [
2061,
318,
262,
2656,
1074,
286,
262,
16527,
508,
550,
262,
1255,
8487,
6294,
287,
1285,
838,
357,
11528,
12,
3070,
12,
3312,
8,
46506,
366,
20556,
4816,
1,
16034,
3084,
62,
35890,
33411,
366,
23004,
1,
796,
705,
2919,
46223,
287,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2656,
1074,
286,
262,
16527,
508,
550,
262,
1255,
8487,
6294,
287,
1285,
838,
357,
11528,
12,
3070,
12,
3312,
8,
46506,
366,
20556,
4816,
1,
16034,
3084,
62,
35890,
33411,
366,
23004,
1,
796,
705,
2919,
46223,
287,
1... |
What date was the score of 6 3 6 4? | SELECT date FROM table_name_53 WHERE score = "6–3 6–4" | [
2061,
3128,
373,
262,
4776,
286,
718,
513,
718,
604,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
4310,
33411,
4776,
796,
366,
21,
1906,
18,
718,
1906,
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
] | [
2061,
3128,
373,
262,
4776,
286,
718,
513,
718,
604,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
4310,
33411,
4776,
796,
366,
21,
1906,
18,
718,
1906,
19,
1
] |
Give me the comparison about meter_100 over the meter_300 , and could you order by the bar from high to low? | SELECT meter_300, meter_100 FROM swimmer ORDER BY meter_300 DESC | [
23318,
502,
262,
7208,
546,
16430,
62,
3064,
625,
262,
16430,
62,
6200,
837,
290,
714,
345,
1502,
416,
262,
2318,
422,
1029,
284,
1877,
30,
46506,
16430,
62,
6200,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
16430,
62,
6200,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16430,
62,
3064,
625,
262,
16430,
62,
6200,
837,
290,
714,
345,
1502,
416,
262,
2318,
422,
1029,
284,
1877,
30,
46506,
16430,
62,
6200,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
16430,
62,
6200,
... |
For all employees who have the letters D or S in their first name, a line chart shows the change of employee_id over hire_date, and could you sort by the X in ascending? | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
1627,
8262,
2523,
262,
1487,
286,
6538,
62,
312,
625,
11078,
62,
4475,
11,
290,
714,
345,
3297,
416,
262,
1395,
287,
41988,
30,
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,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
1627,
8262,
2523,
262,
1487,
286,
6538,
62,
312,
625,
11078,
62,
4475,
11,
290,
714,
345,
3297,
416,
262,
1395,
287,
41988,
30,
46506,
36210,
2200,
... |
Name the howard baker for ronald reagan of 72% | SELECT "Howard Baker" FROM table_39292 WHERE "Ronald Reagan" = '72%' | [
5376,
262,
703,
446,
46412,
329,
374,
261,
1940,
302,
7329,
286,
7724,
4,
46506,
366,
32434,
14372,
1,
16034,
3084,
62,
2670,
32759,
33411,
366,
23672,
1940,
12823,
1,
796,
705,
4761,
4,
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
] | [
5376,
262,
703,
446,
46412,
329,
374,
261,
1940,
302,
7329,
286,
7724,
4,
46506,
366,
32434,
14372,
1,
16034,
3084,
62,
2670,
32759,
33411,
366,
23672,
1940,
12823,
1,
796,
705,
4761,
4,
6
] |
what was henrick malberg 's first film ? | SELECT "original title" FROM table_204_91 ORDER BY "year" LIMIT 1 | [
10919,
373,
30963,
5557,
6428,
3900,
705,
82,
717,
2646,
5633,
46506,
366,
14986,
3670,
1,
16034,
3084,
62,
18638,
62,
6420,
38678,
11050,
366,
1941,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
30963,
5557,
6428,
3900,
705,
82,
717,
2646,
5633,
46506,
366,
14986,
3670,
1,
16034,
3084,
62,
18638,
62,
6420,
38678,
11050,
366,
1941,
1,
27564,
2043,
352
] |
i would like information for flights from BALTIMORE to DALLAS on early tuesday morning | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND date_day.day_number = 22 AND date_day.month_number = 3 AND d... | [
72,
561,
588,
1321,
329,
13956,
422,
347,
31429,
3955,
6965,
284,
360,
7036,
1921,
319,
1903,
256,
3322,
3329,
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,
1321,
329,
13956,
422,
347,
31429,
3955,
6965,
284,
360,
7036,
1921,
319,
1903,
256,
3322,
3329,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
1... |
what is patient 025-66662's gender? | SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '025-66662' | [
10919,
318,
5827,
657,
1495,
12,
19060,
17,
338,
5279,
30,
46506,
360,
8808,
1268,
4177,
5827,
13,
8388,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
36629,
12,
19060,
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
] | [
10919,
318,
5827,
657,
1495,
12,
19060,
17,
338,
5279,
30,
46506,
360,
8808,
1268,
4177,
5827,
13,
8388,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
36629,
12,
19060,
17,
6
] |
Which assist/pass is in Ferreiras? | SELECT "Assist/pass" FROM table_65212 WHERE "Location" = 'ferreiras' | [
13828,
3342,
14,
6603,
318,
287,
12880,
260,
343,
292,
30,
46506,
366,
8021,
396,
14,
6603,
1,
16034,
3084,
62,
2996,
21777,
33411,
366,
14749,
1,
796,
705,
2232,
260,
343,
292,
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
] | [
13828,
3342,
14,
6603,
318,
287,
12880,
260,
343,
292,
30,
46506,
366,
8021,
396,
14,
6603,
1,
16034,
3084,
62,
2996,
21777,
33411,
366,
14749,
1,
796,
705,
2232,
260,
343,
292,
6
] |
what is the total number of competitions on this chart ? | SELECT COUNT("competition") FROM table_204_395 | [
10919,
318,
262,
2472,
1271,
286,
24174,
319,
428,
8262,
5633,
46506,
327,
28270,
7203,
5589,
15620,
4943,
16034,
3084,
62,
18638,
62,
31010
] | [
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,
2472,
1271,
286,
24174,
319,
428,
8262,
5633,
46506,
327,
28270,
7203,
5589,
15620,
4943,
16034,
3084,
62,
18638,
62,
31010
] |
What was the smallest crowd for the Richmond home team? | SELECT MIN(crowd) FROM table_name_56 WHERE home_team = "richmond" | [
2061,
373,
262,
18197,
4315,
329,
262,
16940,
1363,
1074,
30,
46506,
20625,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
3980,
33411,
1363,
62,
15097,
796,
366,
7527,
6327,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
18197,
4315,
329,
262,
16940,
1363,
1074,
30,
46506,
20625,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
3980,
33411,
1363,
62,
15097,
796,
366,
7527,
6327,
1
] |
what is the number of patients whose drug name is metformin (glucophage)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "MetFORMIN (Glucophage)" | [
10919,
318,
262,
1271,
286,
3871,
3025,
2563,
1438,
318,
1138,
687,
259,
357,
4743,
1229,
2522,
496,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
2563,
1438,
318,
1138,
687,
259,
357,
4743,
1229,
2522,
496,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
... |
Which event has Toa Naketoatama as an opponent? | SELECT "Event" FROM table_59528 WHERE "Opponent" = 'toa naketoatama' | [
13828,
1785,
468,
1675,
64,
22255,
316,
15073,
1689,
355,
281,
6125,
30,
46506,
366,
9237,
1,
16034,
3084,
62,
35124,
2078,
33411,
366,
27524,
3471,
1,
796,
705,
1462,
64,
299,
461,
316,
15073,
1689,
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
] | [
13828,
1785,
468,
1675,
64,
22255,
316,
15073,
1689,
355,
281,
6125,
30,
46506,
366,
9237,
1,
16034,
3084,
62,
35124,
2078,
33411,
366,
27524,
3471,
1,
796,
705,
1462,
64,
299,
461,
316,
15073,
1689,
6
] |
give me the number of patients whose marital status is single and diagnoses short title is abn involun movement nec? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "SINGLE" AND diagnoses.short_title = "Abn involun movement NEC" | [
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
40567,
1790,
3670,
318,
450,
77,
1876,
403,
3356,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
323... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
40567,
1790,
3670,
318,
450,
77,
1876,
403,
3356,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
323... |
how many patients with diagnosis icd9 code as 70721 were admtted before the year 2156? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2156" AND diagnoses.icd9_code = "70721" | [
4919,
867,
3871,
351,
13669,
14158,
67,
24,
2438,
355,
767,
2998,
2481,
547,
6178,
28734,
878,
262,
614,
362,
21599,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13669,
14158,
67,
24,
2438,
355,
767,
2998,
2481,
547,
6178,
28734,
878,
262,
614,
362,
21599,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... |
which two schools each had twelve total finals ? | SELECT "school" FROM table_203_362 WHERE "total finals" = 12 | [
4758,
734,
4266,
1123,
550,
14104,
2472,
18576,
5633,
46506,
366,
14347,
1,
16034,
3084,
62,
22416,
62,
35667,
33411,
366,
23350,
18576,
1,
796,
1105
] | [
1,
1,
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,
734,
4266,
1123,
550,
14104,
2472,
18576,
5633,
46506,
366,
14347,
1,
16034,
3084,
62,
22416,
62,
35667,
33411,
366,
23350,
18576,
1,
796,
1105
] |
pregnant, or parturient or breast _ feeding female; | SELECT * FROM table_dev_61 WHERE pregnancy_or_lactation = 1 | [
79,
2301,
22057,
11,
393,
636,
333,
1153,
393,
9296,
4808,
13017,
4048,
26,
46506,
1635,
16034,
3084,
62,
7959,
62,
5333,
33411,
10241,
62,
273,
62,
75,
529,
341,
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,
1,
1,
1,
1,
1
] | [
79,
2301,
22057,
11,
393,
636,
333,
1153,
393,
9296,
4808,
13017,
4048,
26,
46506,
1635,
16034,
3084,
62,
7959,
62,
5333,
33411,
10241,
62,
273,
62,
75,
529,
341,
796,
352
] |
Return the lot details of lots that belong to investors with details 'l', and count them by a bar chart, and I want to rank by the bar in descending. | SELECT lot_details, COUNT(lot_details) FROM Investors AS T1 JOIN Lots AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = "l" GROUP BY lot_details ORDER BY lot_details DESC | [
13615,
262,
1256,
3307,
286,
6041,
326,
5594,
284,
7713,
351,
3307,
705,
75,
3256,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
4279,
416,
262,
2318,
287,
31491,
13,
46506,
1256,
62,
36604,
11,
327,
28270,
7,
26487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13615,
262,
1256,
3307,
286,
6041,
326,
5594,
284,
7713,
351,
3307,
705,
75,
3256,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
4279,
416,
262,
2318,
287,
31491,
13,
46506,
1256,
62,
36604,
11,
327,
28270,
7,
26487,
... |
how many days has it been since the first time patient 006-105495 got a urinary creatinine lab test on their current hospital visit. | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-105495' AND patient.hosp... | [
4919,
867,
1528,
468,
340,
587,
1201,
262,
717,
640,
5827,
3571,
21,
12,
13348,
33781,
1392,
257,
38628,
1827,
259,
500,
2248,
1332,
319,
511,
1459,
4436,
3187,
13,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
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,
1528,
468,
340,
587,
1201,
262,
717,
640,
5827,
3571,
21,
12,
13348,
33781,
1392,
257,
38628,
1827,
259,
500,
2248,
1332,
319,
511,
1459,
4436,
3187,
13,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
... |
Top 100 'tensorflow-probability' users, ordered by upvotes.. | SELECT ROW_NUMBER() OVER (ORDER BY UpVotes DESC) AS "#", UserId AS "user_link", UpVotes, siteUrl FROM (SELECT u.Id AS userId, (SELECT DisplayName FROM Users AS udn WITH (nolock) WHERE udn.Id = u.Id) AS UserName, (SELECT WebsiteUrl FROM Users AS udn WITH (nolock) WHERE udn.Id = u.Id) AS siteUrl, COUNT(*) AS UpVotes FROM... | [
9126,
1802,
705,
83,
22854,
11125,
12,
1676,
65,
1799,
6,
2985,
11,
6149,
416,
510,
29307,
492,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
3205,
53,
6421,
22196,
34,
8,
7054,
25113,
1600,
11787,
7390,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
1802,
705,
83,
22854,
11125,
12,
1676,
65,
1799,
6,
2985,
11,
6149,
416,
510,
29307,
492,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
3205,
53,
6421,
22196,
34,
8,
7054,
25113,
1600,
11787,
7390,
70... |
When the average away attendance is 1.889 in the Superettan, what's the average home attendance? | SELECT "Average Attendance Home" FROM table_22178 WHERE "Division / Section" = 'Superettan' AND "Average Attendance Away" = '1.889' | [
2215,
262,
2811,
1497,
14858,
318,
352,
13,
39121,
287,
262,
1778,
431,
11489,
272,
11,
644,
338,
262,
2811,
1363,
14858,
30,
46506,
366,
26287,
46502,
590,
5995,
1,
16034,
3084,
62,
1828,
23188,
33411,
366,
24095,
1166,
1220,
7275,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2811,
1497,
14858,
318,
352,
13,
39121,
287,
262,
1778,
431,
11489,
272,
11,
644,
338,
262,
2811,
1363,
14858,
30,
46506,
366,
26287,
46502,
590,
5995,
1,
16034,
3084,
62,
1828,
23188,
33411,
366,
24095,
1166,
1220,
7275,
1... |
did patient 81871 get diagnosed with popliteal synovial cyst in 2105? | SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'popliteal synovial cyst') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 81871) AND STRFTIME('%y', dia... | [
20839,
5827,
807,
1507,
4869,
651,
14641,
351,
1461,
36890,
282,
6171,
709,
498,
3075,
301,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
40567,
62,
291,
67,
33411,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
807,
1507,
4869,
651,
14641,
351,
1461,
36890,
282,
6171,
709,
498,
3075,
301,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
40567,
62,
291,
67,
33411,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189... |
Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989? | SELECT surname FROM table_name_64 WHERE throws = "r" AND position = "p" AND dob = "26 april 1989" | [
13828,
311,
700,
480,
468,
536,
8516,
286,
374,
11,
290,
257,
23158,
286,
279,
11,
290,
257,
8410,
33,
286,
2608,
46593,
346,
11104,
30,
46506,
40358,
16034,
3084,
62,
3672,
62,
2414,
33411,
12542,
796,
366,
81,
1,
5357,
2292,
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
] | [
13828,
311,
700,
480,
468,
536,
8516,
286,
374,
11,
290,
257,
23158,
286,
279,
11,
290,
257,
8410,
33,
286,
2608,
46593,
346,
11104,
30,
46506,
40358,
16034,
3084,
62,
3672,
62,
2414,
33411,
12542,
796,
366,
81,
1,
5357,
2292,
796,
... |
What was the score for the away team when geelong was the home team? | SELECT "Away team score" FROM table_33601 WHERE "Home team" = 'geelong' | [
2061,
373,
262,
4776,
329,
262,
1497,
1074,
618,
4903,
21537,
373,
262,
1363,
1074,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
29211,
486,
33411,
366,
16060,
1074,
1,
796,
705,
469,
21537,
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,
373,
262,
4776,
329,
262,
1497,
1074,
618,
4903,
21537,
373,
262,
1363,
1074,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
29211,
486,
33411,
366,
16060,
1074,
1,
796,
705,
469,
21537,
6
] |
what are the three most frequently ordered laboratory tests until 2100 for patients with age 60 or above? | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age >= 60) AND STRFTIME('%y', lab.labresulttime) <= '2100' GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 3 | [
10919,
389,
262,
1115,
749,
6777,
6149,
14010,
5254,
1566,
38123,
329,
3871,
351,
2479,
3126,
393,
2029,
30,
46506,
256,
16,
13,
23912,
3672,
16034,
357,
46506,
2248,
13,
23912,
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,
1... | [
10919,
389,
262,
1115,
749,
6777,
6149,
14010,
5254,
1566,
38123,
329,
3871,
351,
2479,
3126,
393,
2029,
30,
46506,
256,
16,
13,
23912,
3672,
16034,
357,
46506,
2248,
13,
23912,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
1... |
Highest Reputation by Country - NGQ. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE LOWER('%##CountryName##%') AND Reputation > '##Reputation##' ORDER BY Reputation DESC | [
36124,
3634,
1432,
7094,
416,
12946,
532,
39058,
48,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
11,
13397... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
36124,
3634,
1432,
7094,
416,
12946,
532,
39058,
48,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
11,
13397... |
What is the 1991 when 1990 is ATP Masters Series? | SELECT 1991 FROM table_name_53 WHERE 1990 = "atp masters series" | [
2061,
318,
262,
10249,
618,
6303,
318,
39046,
15812,
7171,
30,
46506,
10249,
16034,
3084,
62,
3672,
62,
4310,
33411,
6303,
796,
366,
265,
79,
18159,
2168,
1
] | [
1,
1,
1,
1,
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,
10249,
618,
6303,
318,
39046,
15812,
7171,
30,
46506,
10249,
16034,
3084,
62,
3672,
62,
4310,
33411,
6303,
796,
366,
265,
79,
18159,
2168,
1
] |
Which country had a place of t1, as well as a score of 72-68-70-73=283? | SELECT country FROM table_name_38 WHERE place = "t1" AND score = 72 - 68 - 70 - 73 = 283 | [
13828,
1499,
550,
257,
1295,
286,
256,
16,
11,
355,
880,
355,
257,
4776,
286,
7724,
12,
3104,
12,
2154,
12,
4790,
28,
30290,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2548,
33411,
1295,
796,
366,
83,
16,
1,
5357,
4776,
796,
7724... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
550,
257,
1295,
286,
256,
16,
11,
355,
880,
355,
257,
4776,
286,
7724,
12,
3104,
12,
2154,
12,
4790,
28,
30290,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2548,
33411,
1295,
796,
366,
83,
16,
1,
5357,
4776,
796,
7724... |
since 6 years ago, how many times patient 80119 had visited the hospital? | SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 80119 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-6 year') | [
20777,
718,
812,
2084,
11,
703,
867,
1661,
5827,
807,
486,
1129,
550,
8672,
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,
807,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
718,
812,
2084,
11,
703,
867,
1661,
5827,
807,
486,
1129,
550,
8672,
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,
807,
486,
... |
whats the first height of patient 008-40862 in 12/this year? | SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '008-40862') AND NOT patient.admissionheight IS NULL AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-... | [
1929,
1381,
262,
717,
6001,
286,
5827,
3571,
23,
12,
1821,
4521,
17,
287,
1105,
14,
5661,
614,
30,
46506,
5827,
13,
324,
3411,
17015,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
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... | [
1929,
1381,
262,
717,
6001,
286,
5827,
3571,
23,
12,
1821,
4521,
17,
287,
1105,
14,
5661,
614,
30,
46506,
5827,
13,
324,
3411,
17015,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13... |
What is the rate limit when the desired rate (p) is 162? | SELECT "Rate limit (p)" FROM table_27545 WHERE "Desired rate (p)" = '162' | [
2061,
318,
262,
2494,
4179,
618,
262,
10348,
2494,
357,
79,
8,
318,
25090,
30,
46506,
366,
32184,
4179,
357,
79,
16725,
16034,
3084,
62,
23195,
2231,
33411,
366,
5960,
1202,
2494,
357,
79,
16725,
796,
705,
25061,
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,
2494,
4179,
618,
262,
10348,
2494,
357,
79,
8,
318,
25090,
30,
46506,
366,
32184,
4179,
357,
79,
16725,
16034,
3084,
62,
23195,
2231,
33411,
366,
5960,
1202,
2494,
357,
79,
16725,
796,
705,
25061,
6
] |
What was the overall pick for the player who was a guard and had a round less than 9? | SELECT AVG(overall) FROM table_name_4 WHERE position = "guard" AND round < 9 | [
2061,
373,
262,
4045,
2298,
329,
262,
2137,
508,
373,
257,
4860,
290,
550,
257,
2835,
1342,
621,
860,
30,
46506,
35224,
7,
2502,
439,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
2292,
796,
366,
14864,
1,
5357,
2835,
1279,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4045,
2298,
329,
262,
2137,
508,
373,
257,
4860,
290,
550,
257,
2835,
1342,
621,
860,
30,
46506,
35224,
7,
2502,
439,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
2292,
796,
366,
14864,
1,
5357,
2835,
1279,
860
] |
How many innings for the player with an average of 22.61? | SELECT innings FROM table_28846752_12 WHERE average = "22.61" | [
2437,
867,
16267,
329,
262,
2137,
351,
281,
2811,
286,
2534,
13,
5333,
30,
46506,
16267,
16034,
3084,
62,
25270,
3510,
43665,
62,
1065,
33411,
2811,
796,
366,
1828,
13,
5333,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
16267,
329,
262,
2137,
351,
281,
2811,
286,
2534,
13,
5333,
30,
46506,
16267,
16034,
3084,
62,
25270,
3510,
43665,
62,
1065,
33411,
2811,
796,
366,
1828,
13,
5333,
1
] |
i'm interested in round trip flights from BOSTON to WASHINGTON | 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, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND NOT fare.round_trip_cost IS NULL AND flight_fare.fare_... | [
72,
1101,
4609,
287,
2835,
5296,
13956,
422,
347,
10892,
1340,
284,
370,
19436,
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,
15271,
7054,
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... | [
72,
1101,
4609,
287,
2835,
5296,
13956,
422,
347,
10892,
1340,
284,
370,
19436,
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,
15271,
7054,
3... |
What country has a fire store of 1991 and a hard discounter of 397? | SELECT "Country" FROM table_48912 WHERE "First store" = '1991' AND "Hard Discounters" = '397' | [
2061,
1499,
468,
257,
2046,
3650,
286,
10249,
290,
257,
1327,
1221,
6828,
286,
5014,
22,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
35890,
1065,
33411,
366,
5962,
3650,
1,
796,
705,
24529,
6,
5357,
366,
17309,
8444,
15044,
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
] | [
2061,
1499,
468,
257,
2046,
3650,
286,
10249,
290,
257,
1327,
1221,
6828,
286,
5014,
22,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
35890,
1065,
33411,
366,
5962,
3650,
1,
796,
705,
24529,
6,
5357,
366,
17309,
8444,
15044,
1,
796,
7... |
When less than 37 points are scored, what's the lowest Pct % found? | SELECT MIN("Pct %") FROM table_56623 WHERE "Points" < '37' | [
2215,
1342,
621,
5214,
2173,
389,
7781,
11,
644,
338,
262,
9016,
350,
310,
4064,
1043,
30,
46506,
20625,
7203,
47,
310,
4064,
4943,
16034,
3084,
62,
20,
2791,
1954,
33411,
366,
40710,
1,
1279,
705,
2718,
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
] | [
2215,
1342,
621,
5214,
2173,
389,
7781,
11,
644,
338,
262,
9016,
350,
310,
4064,
1043,
30,
46506,
20625,
7203,
47,
310,
4064,
4943,
16034,
3084,
62,
20,
2791,
1954,
33411,
366,
40710,
1,
1279,
705,
2718,
6
] |
how many times did his jump surpass 7.70 m ? | SELECT COUNT(*) FROM table_204_706 WHERE "notes" > 7.70 | [
4919,
867,
1661,
750,
465,
4391,
17341,
767,
13,
2154,
285,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
35402,
33411,
366,
17815,
1,
1875,
767,
13,
2154
] | [
1,
1,
1,
1,
1,
1,
1,
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,
465,
4391,
17341,
767,
13,
2154,
285,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
35402,
33411,
366,
17815,
1,
1875,
767,
13,
2154
] |
How many Points have a Score of 3 0? | SELECT COUNT("Points") FROM table_39283 WHERE "Score" = '3–0' | [
2437,
867,
11045,
423,
257,
15178,
286,
513,
657,
30,
46506,
327,
28270,
7203,
40710,
4943,
16034,
3084,
62,
2670,
30290,
33411,
366,
26595,
1,
796,
705,
18,
1906,
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
] | [
2437,
867,
11045,
423,
257,
15178,
286,
513,
657,
30,
46506,
327,
28270,
7203,
40710,
4943,
16034,
3084,
62,
2670,
30290,
33411,
366,
26595,
1,
796,
705,
18,
1906,
15,
6
] |
show me all US flights from ATLANTA to DENVER for the day after tomorrow | 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 = 'DENVER' AND date_day.day_number = 20 AND date_day.month_number = 1 AND d... | [
12860,
502,
477,
1294,
13956,
422,
5161,
25697,
5603,
284,
37692,
5959,
329,
262,
1110,
706,
9439,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
477,
1294,
13956,
422,
5161,
25697,
5603,
284,
37692,
5959,
329,
262,
1110,
706,
9439,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
... |
What are the years employed shown for mathematics & prefect master? | SELECT "Employed" FROM table_66670 WHERE "Position held" = 'mathematics & prefect master' | [
2061,
389,
262,
812,
9322,
3402,
329,
19473,
1222,
662,
2309,
4958,
30,
46506,
366,
29733,
276,
1,
16034,
3084,
62,
27310,
2154,
33411,
366,
26545,
2714,
1,
796,
705,
6759,
10024,
873,
1222,
662,
2309,
4958,
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,
389,
262,
812,
9322,
3402,
329,
19473,
1222,
662,
2309,
4958,
30,
46506,
366,
29733,
276,
1,
16034,
3084,
62,
27310,
2154,
33411,
366,
26545,
2714,
1,
796,
705,
6759,
10024,
873,
1222,
662,
2309,
4958,
6
] |
Name the team classification for thomas de gendt | SELECT team_classification FROM table_29077342_19 WHERE winner = "Thomas De Gendt" | [
5376,
262,
1074,
17923,
329,
294,
16911,
390,
308,
437,
83,
46506,
1074,
62,
4871,
2649,
16034,
3084,
62,
1959,
2998,
22,
31575,
62,
1129,
33411,
8464,
796,
366,
22405,
1024,
402,
437,
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
] | [
5376,
262,
1074,
17923,
329,
294,
16911,
390,
308,
437,
83,
46506,
1074,
62,
4871,
2649,
16034,
3084,
62,
1959,
2998,
22,
31575,
62,
1129,
33411,
8464,
796,
366,
22405,
1024,
402,
437,
83,
1
] |
WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W | SELECT "City of license" FROM table_36371 WHERE "FCC info" = 'fcc' AND "ERP W" = '10,000 horizontal 3,000 vertical' | [
12418,
488,
2254,
286,
5964,
468,
257,
15915,
7508,
286,
277,
535,
11,
290,
838,
11,
830,
16021,
513,
11,
830,
11723,
13793,
47,
370,
46506,
366,
14941,
286,
5964,
1,
16034,
3084,
62,
2623,
38056,
33411,
366,
37,
4093,
7508,
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,
1,
1,
1,
1,
1... | [
12418,
488,
2254,
286,
5964,
468,
257,
15915,
7508,
286,
277,
535,
11,
290,
838,
11,
830,
16021,
513,
11,
830,
11723,
13793,
47,
370,
46506,
366,
14941,
286,
5964,
1,
16034,
3084,
62,
2623,
38056,
33411,
366,
37,
4093,
7508,
1,
796,... |
What was the highest weight in kg for F Position, Jersey #12? | SELECT MAX(weight__kg_) FROM table_name_41 WHERE position = "f" AND jersey__number = 12 | [
2061,
373,
262,
4511,
3463,
287,
14211,
329,
376,
23158,
11,
8221,
1303,
1065,
30,
46506,
25882,
7,
6551,
834,
10025,
62,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
2292,
796,
366,
69,
1,
5357,
22383,
834,
17618,
796,
1105
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4511,
3463,
287,
14211,
329,
376,
23158,
11,
8221,
1303,
1065,
30,
46506,
25882,
7,
6551,
834,
10025,
62,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
2292,
796,
366,
69,
1,
5357,
22383,
834,
17618,
796,
1105
] |
When Annette Le took HEBREW 568 , who taught it ? | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN student_record ON student_record.offering_id = offering_instructor.offering_id INNER JOIN student ON student.student_id = student_record.student_id INNER JOIN course_... | [
2215,
1052,
48115,
1004,
1718,
11179,
40438,
54,
642,
3104,
837,
508,
7817,
340,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
21187,
3268,
21479,
32357,
1268,
6011,
62,
259,
7249,
273,
6177,
6011,
62,
259,
7249,
273,
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... | [
2215,
1052,
48115,
1004,
1718,
11179,
40438,
54,
642,
3104,
837,
508,
7817,
340,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
21187,
3268,
21479,
32357,
1268,
6011,
62,
259,
7249,
273,
6177,
6011,
62,
259,
7249,
273,
13,
... |
how many patients whose gender is m and drug code is lipid250i? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "M" AND prescriptions.formulary_drug_cd = "LIPID250I" | [
4919,
867,
3871,
3025,
5279,
318,
285,
290,
2563,
2438,
318,
34073,
9031,
72,
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,
18108,
76,
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... | [
4919,
867,
3871,
3025,
5279,
318,
285,
290,
2563,
2438,
318,
34073,
9031,
72,
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,
18108,
76,
62,... |
how many countries earned no bronze medals ? | SELECT COUNT("nation") FROM table_204_725 WHERE "bronze" = 0 | [
4919,
867,
2678,
7366,
645,
22101,
28057,
5633,
46506,
327,
28270,
7203,
25729,
4943,
16034,
3084,
62,
18638,
62,
45151,
33411,
366,
65,
1313,
2736,
1,
796,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
2678,
7366,
645,
22101,
28057,
5633,
46506,
327,
28270,
7203,
25729,
4943,
16034,
3084,
62,
18638,
62,
45151,
33411,
366,
65,
1313,
2736,
1,
796,
657
] |
What's the compression ratio of the model with L35 RPO and 5 applications? | SELECT "Compression Ratio" FROM table_73166 WHERE "RPO" = 'L35' AND "Applications" = '5' | [
2061,
338,
262,
19794,
8064,
286,
262,
2746,
351,
406,
2327,
371,
16402,
290,
642,
5479,
30,
46506,
366,
7293,
2234,
33956,
1,
16034,
3084,
62,
4790,
23055,
33411,
366,
49,
16402,
1,
796,
705,
43,
2327,
6,
5357,
366,
41995,
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
] | [
2061,
338,
262,
19794,
8064,
286,
262,
2746,
351,
406,
2327,
371,
16402,
290,
642,
5479,
30,
46506,
366,
7293,
2234,
33956,
1,
16034,
3084,
62,
4790,
23055,
33411,
366,
49,
16402,
1,
796,
705,
43,
2327,
6,
5357,
366,
41995,
1,
796,
... |
Which Against has a Position larger than 8, and Points larger than 9? | SELECT against FROM table_name_67 WHERE position > 8 AND points > 9 | [
13828,
12914,
468,
257,
23158,
4025,
621,
807,
11,
290,
11045,
4025,
621,
860,
30,
46506,
1028,
16034,
3084,
62,
3672,
62,
3134,
33411,
2292,
1875,
807,
5357,
2173,
1875,
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,
1,
1,
1,
1
] | [
13828,
12914,
468,
257,
23158,
4025,
621,
807,
11,
290,
11045,
4025,
621,
860,
30,
46506,
1028,
16034,
3084,
62,
3672,
62,
3134,
33411,
2292,
1875,
807,
5357,
2173,
1875,
860
] |
What's the longitude named zipaltonal fluctus in 1997 with a diameter smaller than 490? | SELECT "Longitude" FROM table_45466 WHERE "Year named" = '1997' AND "Diameter (km)" < '490' AND "Name" = 'zipaltonal fluctus' | [
2061,
338,
262,
890,
3984,
3706,
1976,
8521,
1122,
282,
19180,
385,
287,
8309,
351,
257,
14753,
4833,
621,
45601,
30,
46506,
366,
14617,
3984,
1,
16034,
3084,
62,
34229,
2791,
33411,
366,
17688,
3706,
1,
796,
705,
21498,
6,
5357,
366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
338,
262,
890,
3984,
3706,
1976,
8521,
1122,
282,
19180,
385,
287,
8309,
351,
257,
14753,
4833,
621,
45601,
30,
46506,
366,
14617,
3984,
1,
16034,
3084,
62,
34229,
2791,
33411,
366,
17688,
3706,
1,
796,
705,
21498,
6,
5357,
366,... |
is systemicdiastolic of patient 028-56914 second measured on the last icu visit greater than the first value measured on the last icu visit? | SELECT (SELECT vitalperiodic.systemicdiastolic FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-56914') AND NOT patient.unitdischarge... | [
271,
21971,
10989,
459,
4160,
286,
5827,
657,
2078,
12,
20,
3388,
1415,
1218,
8630,
319,
262,
938,
14158,
84,
3187,
3744,
621,
262,
717,
1988,
8630,
319,
262,
938,
14158,
84,
3187,
30,
46506,
357,
46506,
9204,
41007,
291,
13,
10057,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21971,
10989,
459,
4160,
286,
5827,
657,
2078,
12,
20,
3388,
1415,
1218,
8630,
319,
262,
938,
14158,
84,
3187,
3744,
621,
262,
717,
1988,
8630,
319,
262,
938,
14158,
84,
3187,
30,
46506,
357,
46506,
9204,
41007,
291,
13,
10057,
... |
what is insurance of subject name paul edwards? | SELECT demographic.insurance FROM demographic WHERE demographic.name = "Paul Edwards" | [
10919,
318,
5096,
286,
2426,
1438,
279,
2518,
1225,
2017,
30,
46506,
16728,
13,
1040,
3874,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
12041,
17381,
1
] | [
1,
1,
1,
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,
5096,
286,
2426,
1438,
279,
2518,
1225,
2017,
30,
46506,
16728,
13,
1040,
3874,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
12041,
17381,
1
] |
Which engine is used by Team Lemans with Hiroaki Ishiura driving? | SELECT "Engine" FROM table_48914 WHERE "Team" = 'team lemans' AND "Driver" = 'hiroaki ishiura' | [
13828,
3113,
318,
973,
416,
4816,
20607,
504,
351,
25940,
8182,
1148,
5303,
5330,
5059,
30,
46506,
366,
13798,
1,
16034,
3084,
62,
35890,
1415,
33411,
366,
15592,
1,
796,
705,
15097,
443,
16221,
6,
5357,
366,
32103,
1,
796,
705,
49907... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3113,
318,
973,
416,
4816,
20607,
504,
351,
25940,
8182,
1148,
5303,
5330,
5059,
30,
46506,
366,
13798,
1,
16034,
3084,
62,
35890,
1415,
33411,
366,
15592,
1,
796,
705,
15097,
443,
16221,
6,
5357,
366,
32103,
1,
796,
705,
49907... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of hire_date and the sum of salary bin hire_date by time in a bar chart. | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
287,
257,
2318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
287,
257,
2318,
... |
With 42 as the match what are the runs? | SELECT "Runs" FROM table_48476 WHERE "Match" = '42' | [
3152,
5433,
355,
262,
2872,
644,
389,
262,
4539,
30,
46506,
366,
10987,
82,
1,
16034,
3084,
62,
2780,
35435,
33411,
366,
23850,
1,
796,
705,
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,
1
] | [
3152,
5433,
355,
262,
2872,
644,
389,
262,
4539,
30,
46506,
366,
10987,
82,
1,
16034,
3084,
62,
2780,
35435,
33411,
366,
23850,
1,
796,
705,
3682,
6
] |
What was the venue when the runner up was Tennis Borussia Berlin, and the score was 4 2 *? | SELECT venue FROM table_name_65 WHERE runners_up = "tennis borussia berlin" AND score = "4 – 2 *" | [
2061,
373,
262,
14359,
618,
262,
17490,
510,
373,
37213,
12182,
31269,
11307,
11,
290,
262,
4776,
373,
604,
362,
1635,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2996,
33411,
19323,
62,
929,
796,
366,
1452,
21361,
275,
273,
31269,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14359,
618,
262,
17490,
510,
373,
37213,
12182,
31269,
11307,
11,
290,
262,
4776,
373,
604,
362,
1635,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2996,
33411,
19323,
62,
929,
796,
366,
1452,
21361,
275,
273,
31269,
1... |
What was the time for the man who scored 1 point? | SELECT time FROM table_name_89 WHERE points = 1 | [
2061,
373,
262,
640,
329,
262,
582,
508,
7781,
352,
966,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
4531,
33411,
2173,
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
] | [
2061,
373,
262,
640,
329,
262,
582,
508,
7781,
352,
966,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
4531,
33411,
2173,
796,
352
] |
get me the number of patients on sc route of drug administration who were diagnosed with hip joint replacement. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Joint replaced hip" AND prescriptions.route = "SC" | [
1136,
502,
262,
1271,
286,
3871,
319,
629,
6339,
286,
2563,
3662,
508,
547,
14641,
351,
10359,
6466,
9014,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1136,
502,
262,
1271,
286,
3871,
319,
629,
6339,
286,
2563,
3662,
508,
547,
14641,
351,
10359,
6466,
9014,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
61... |
what was the organism name found in 05/this year in patient 031-1337's last sputum, expectorated microbiology test? | SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-1337')) AND microlab.culturesite = 'sputum, expectorated' AND DATETIM... | [
10919,
373,
262,
26433,
1438,
1043,
287,
8870,
14,
5661,
614,
287,
5827,
657,
3132,
12,
1485,
2718,
338,
938,
599,
315,
388,
11,
1607,
273,
515,
24559,
1435,
1332,
30,
46506,
4580,
23912,
13,
9971,
1042,
16034,
4580,
23912,
33411,
458... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
26433,
1438,
1043,
287,
8870,
14,
5661,
614,
287,
5827,
657,
3132,
12,
1485,
2718,
338,
938,
599,
315,
388,
11,
1607,
273,
515,
24559,
1435,
1332,
30,
46506,
4580,
23912,
13,
9971,
1042,
16034,
4580,
23912,
33411,
458... |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the sum of revenue , and group by attribute name, could you list bars from high to low order please? | SELECT T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2160,
286,
6426,
837,
290,
1448,
416,
11688,
1438,
11,
714,
345,
1351,
9210,
422,
1029,
284,
1877,
1502,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2160,
286,
6426,
837,
290,
1448,
416,
11688,
1438,
11,
714,
345,
1351,
9210,
422,
1029,
284,
1877,
1502,
... |
When 3.29% was the average per candidate, what was the number of average votes per candidate? | SELECT MIN("Average votes per candidate") FROM table_30773 WHERE "Average % of vote per candidate" = '3.29' | [
2215,
513,
13,
1959,
4,
373,
262,
2811,
583,
4540,
11,
644,
373,
262,
1271,
286,
2811,
5690,
583,
4540,
30,
46506,
20625,
7203,
26287,
5690,
583,
4540,
4943,
16034,
3084,
62,
1270,
46871,
33411,
366,
26287,
4064,
286,
3015,
583,
4540,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
513,
13,
1959,
4,
373,
262,
2811,
583,
4540,
11,
644,
373,
262,
1271,
286,
2811,
5690,
583,
4540,
30,
46506,
20625,
7203,
26287,
5690,
583,
4540,
4943,
16034,
3084,
62,
1270,
46871,
33411,
366,
26287,
4064,
286,
3015,
583,
4540,... |
For those employees who did not have any job in the past, give me the comparison about the amount of hire_date over the hire_date bin hire_date by weekday by a bar chart. | SELECT HIRE_DATE, COUNT(HIRE_DATE) 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,
2033,
286,
11078,
62,
4475,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
416,
257,
2318,
8262,
13,
46506,
36210,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2033,
286,
11078,
62,
4475,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
416,
257,
2318,
8262,
13,
46506,
36210,
22... |
Which Partner has Opponents in the final of john bromwich frank sedgman? | SELECT "Partner" FROM table_76940 WHERE "Opponents in the final" = 'john bromwich frank sedgman' | [
13828,
35532,
468,
9385,
3906,
287,
262,
2457,
286,
45610,
275,
398,
11451,
14346,
10081,
70,
805,
30,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
22,
3388,
1821,
33411,
366,
27524,
3906,
287,
262,
2457,
1,
796,
705,
30686,
275,
398,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
35532,
468,
9385,
3906,
287,
262,
2457,
286,
45610,
275,
398,
11451,
14346,
10081,
70,
805,
30,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
22,
3388,
1821,
33411,
366,
27524,
3906,
287,
262,
2457,
1,
796,
705,
30686,
275,
398,
... |
Which Bronze has a Gold of 2, and a Nation of slovakia, and a Total larger than 2? | SELECT MAX("Bronze") FROM table_79515 WHERE "Gold" = '2' AND "Nation" = 'slovakia' AND "Total" > '2' | [
13828,
19461,
468,
257,
3561,
286,
362,
11,
290,
257,
8741,
286,
1017,
709,
21897,
11,
290,
257,
7472,
4025,
621,
362,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
41544,
1314,
33411,
366,
13306,
1,
796,
705,
17,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
362,
11,
290,
257,
8741,
286,
1017,
709,
21897,
11,
290,
257,
7472,
4025,
621,
362,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
41544,
1314,
33411,
366,
13306,
1,
796,
705,
17,
6,
5... |
Show me about the correlation between Credits and Instructor in a scatter chart. | SELECT Credits, Instructor FROM Course ORDER BY Credits | [
15307,
502,
546,
262,
16096,
1022,
29501,
290,
47839,
287,
257,
41058,
8262,
13,
46506,
29501,
11,
47839,
16034,
20537,
38678,
11050,
29501
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
546,
262,
16096,
1022,
29501,
290,
47839,
287,
257,
41058,
8262,
13,
46506,
29501,
11,
47839,
16034,
20537,
38678,
11050,
29501
] |
What kind of car has the NASCAR Camping World Truck Series record? | SELECT car_make FROM table_name_7 WHERE record = "nascar camping world truck series" | [
2061,
1611,
286,
1097,
468,
262,
30774,
5425,
278,
2159,
24892,
7171,
1700,
30,
46506,
1097,
62,
15883,
16034,
3084,
62,
3672,
62,
22,
33411,
1700,
796,
366,
77,
37740,
22498,
995,
7779,
2168,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1611,
286,
1097,
468,
262,
30774,
5425,
278,
2159,
24892,
7171,
1700,
30,
46506,
1097,
62,
15883,
16034,
3084,
62,
3672,
62,
22,
33411,
1700,
796,
366,
77,
37740,
22498,
995,
7779,
2168,
1
] |
Which Date had an Outcome of runner-up, and a Surface of carpet? | SELECT date FROM table_name_85 WHERE outcome = "runner-up" AND surface = "carpet" | [
13828,
7536,
550,
281,
3806,
2958,
286,
17490,
12,
929,
11,
290,
257,
20321,
286,
20710,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5332,
33411,
8055,
796,
366,
16737,
12,
929,
1,
5357,
4417,
796,
366,
66,
5117,
316,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
281,
3806,
2958,
286,
17490,
12,
929,
11,
290,
257,
20321,
286,
20710,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5332,
33411,
8055,
796,
366,
16737,
12,
929,
1,
5357,
4417,
796,
366,
66,
5117,
316,
1
] |
When the try bonus is 9 and the lost 4, what is the drawn? | SELECT "Drawn" FROM table_41687 WHERE "Try Bonus" = '9' AND "Lost" = '4' | [
2215,
262,
1949,
7202,
318,
860,
290,
262,
2626,
604,
11,
644,
318,
262,
7428,
30,
46506,
366,
35,
5791,
1,
16034,
3084,
62,
35218,
5774,
33411,
366,
23433,
18770,
1,
796,
705,
24,
6,
5357,
366,
31042,
1,
796,
705,
19,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
1949,
7202,
318,
860,
290,
262,
2626,
604,
11,
644,
318,
262,
7428,
30,
46506,
366,
35,
5791,
1,
16034,
3084,
62,
35218,
5774,
33411,
366,
23433,
18770,
1,
796,
705,
24,
6,
5357,
366,
31042,
1,
796,
705,
19,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.