instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Who wrote the episodes that were directed by Peter O'Fallon? | SELECT written_by FROM table_28561455_1 WHERE directed_by = "Peter O'Fallon" | [
8241,
2630,
262,
8640,
326,
547,
7924,
416,
5613,
440,
6,
24750,
261,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
2078,
3980,
1415,
2816,
62,
16,
33411,
7924,
62,
1525,
796,
366,
19727,
440,
6,
24750,
261,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
2630,
262,
8640,
326,
547,
7924,
416,
5613,
440,
6,
24750,
261,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
2078,
3980,
1415,
2816,
62,
16,
33411,
7924,
62,
1525,
796,
366,
19727,
440,
6,
24750,
261,
1
] |
count the number of patients whose primary disease is chest pain and days of hospital stay is greater than 1? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CHEST PAIN" AND demographic.days_stay > "1" | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7721,
2356,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
352,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7721,
2356,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
352,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,... |
Tag Similarity by common occurance. | SELECT COUNT(t1.PostId) AS count_match, t1.TagId, tag1.TagName, tag1.Count, t2.TagId, tag2.TagName, tag2.Count FROM PostTags AS t1 INNER JOIN PostTags AS t2 ON t1.PostId = t2.PostId INNER JOIN Tags AS tag1 ON tag1.Id = t1.TagId INNER JOIN Tags AS tag2 ON tag2.Id = t2.TagId INNER JOIN Posts ON t1.PostId = Posts.Id WHERE... | [
24835,
11014,
414,
416,
2219,
3051,
590,
13,
46506,
327,
28270,
7,
83,
16,
13,
6307,
7390,
8,
7054,
954,
62,
15699,
11,
256,
16,
13,
24835,
7390,
11,
7621,
16,
13,
24835,
5376,
11,
7621,
16,
13,
12332,
11,
256,
17,
13,
24835,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
24835,
11014,
414,
416,
2219,
3051,
590,
13,
46506,
327,
28270,
7,
83,
16,
13,
6307,
7390,
8,
7054,
954,
62,
15699,
11,
256,
16,
13,
24835,
7390,
11,
7621,
16,
13,
24835,
5376,
11,
7621,
16,
13,
12332,
11,
256,
17,
13,
24835,
73... |
What is the average high temperature for each day of week Plot them as bar chart, and could you order in desc by the x-axis? | SELECT day_of_week, AVG(high_temperature) FROM weekly_weather GROUP BY day_of_week ORDER BY day_of_week DESC | [
2061,
318,
262,
2811,
1029,
5951,
329,
1123,
1110,
286,
1285,
28114,
606,
355,
2318,
8262,
11,
290,
714,
345,
1502,
287,
1715,
416,
262,
2124,
12,
22704,
30,
46506,
1110,
62,
1659,
62,
10464,
11,
35224,
7,
8929,
62,
11498,
21069,
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
] | [
2061,
318,
262,
2811,
1029,
5951,
329,
1123,
1110,
286,
1285,
28114,
606,
355,
2318,
8262,
11,
290,
714,
345,
1502,
287,
1715,
416,
262,
2124,
12,
22704,
30,
46506,
1110,
62,
1659,
62,
10464,
11,
35224,
7,
8929,
62,
11498,
21069,
8,... |
What was the Authority for Avalon School with a roll less than 358? | SELECT "Authority" FROM table_69165 WHERE "Area" = 'avalon' AND "Roll" < '358' AND "Name" = 'avalon school' | [
2061,
373,
262,
11416,
329,
39600,
3961,
351,
257,
4836,
1342,
621,
41761,
30,
46506,
366,
13838,
414,
1,
16034,
3084,
62,
3388,
20986,
33411,
366,
30547,
1,
796,
705,
9226,
261,
6,
5357,
366,
26869,
1,
1279,
705,
31128,
6,
5357,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
11416,
329,
39600,
3961,
351,
257,
4836,
1342,
621,
41761,
30,
46506,
366,
13838,
414,
1,
16034,
3084,
62,
3388,
20986,
33411,
366,
30547,
1,
796,
705,
9226,
261,
6,
5357,
366,
26869,
1,
1279,
705,
31128,
6,
5357,
36... |
Which finish has a Record of 74-68? | SELECT "Finish" FROM table_11370 WHERE "Record" = '74-68' | [
13828,
5461,
468,
257,
13266,
286,
8915,
12,
3104,
30,
46506,
366,
48658,
1,
16034,
3084,
62,
16616,
2154,
33411,
366,
23739,
1,
796,
705,
4524,
12,
3104,
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
] | [
13828,
5461,
468,
257,
13266,
286,
8915,
12,
3104,
30,
46506,
366,
48658,
1,
16034,
3084,
62,
16616,
2154,
33411,
366,
23739,
1,
796,
705,
4524,
12,
3104,
6
] |
Name the incumbent for robert monell (j) 63.6% tilly lynde 36.4% | SELECT incumbent FROM table_2668243_17 WHERE candidates = "Robert Monell (J) 63.6% Tilly Lynde 36.4%" | [
5376,
262,
23526,
329,
686,
4835,
285,
505,
297,
357,
73,
8,
8093,
13,
21,
4,
256,
6548,
22404,
358,
68,
4570,
13,
19,
4,
46506,
23526,
16034,
3084,
62,
2075,
3104,
26660,
62,
1558,
33411,
5871,
796,
366,
19156,
337,
505,
297,
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
] | [
5376,
262,
23526,
329,
686,
4835,
285,
505,
297,
357,
73,
8,
8093,
13,
21,
4,
256,
6548,
22404,
358,
68,
4570,
13,
19,
4,
46506,
23526,
16034,
3084,
62,
2075,
3104,
26660,
62,
1558,
33411,
5871,
796,
366,
19156,
337,
505,
297,
357... |
which Total has a Score points of 11? | SELECT total FROM table_name_13 WHERE score_points = "11" | [
4758,
7472,
468,
257,
15178,
2173,
286,
1367,
30,
46506,
2472,
16034,
3084,
62,
3672,
62,
1485,
33411,
4776,
62,
13033,
796,
366,
1157,
1
] | [
1,
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,
7472,
468,
257,
15178,
2173,
286,
1367,
30,
46506,
2472,
16034,
3084,
62,
3672,
62,
1485,
33411,
4776,
62,
13033,
796,
366,
1157,
1
] |
Which airport has an ICAO of RCKH? | SELECT "Airport" FROM table_32963 WHERE "ICAO" = 'rckh' | [
13828,
9003,
468,
281,
314,
8141,
46,
286,
13987,
42,
39,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
37967,
5066,
33411,
366,
25241,
46,
1,
796,
705,
81,
694,
71,
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
] | [
13828,
9003,
468,
281,
314,
8141,
46,
286,
13987,
42,
39,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
37967,
5066,
33411,
366,
25241,
46,
1,
796,
705,
81,
694,
71,
6
] |
What is the subjunctive present that is associated with a plural preterite of u, a singular preterite of ou, and a singular present of ? | SELECT "Subj. Pres." FROM table_42747 WHERE "Plur. Pret." = 'u' AND "Sing. Pret." = 'ou' AND "Sing. Pres." = 'û' | [
2061,
318,
262,
850,
29741,
14070,
1944,
326,
318,
3917,
351,
257,
22801,
662,
353,
578,
286,
334,
11,
257,
18032,
662,
353,
578,
286,
267,
84,
11,
290,
257,
18032,
1944,
286,
5633,
46506,
366,
7004,
73,
13,
1763,
526,
16034,
3084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
850,
29741,
14070,
1944,
326,
318,
3917,
351,
257,
22801,
662,
353,
578,
286,
334,
11,
257,
18032,
662,
353,
578,
286,
267,
84,
11,
290,
257,
18032,
1944,
286,
5633,
46506,
366,
7004,
73,
13,
1763,
526,
16034,
3084,
... |
provide the number of patients whose marital status is divorced and ethnicity is black/cape verdean? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.ethnicity = "BLACK/CAPE VERDEAN" | [
15234,
485,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
25107,
290,
26289,
318,
2042,
14,
36435,
3326,
2934,
272,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
25107,
290,
26289,
318,
2042,
14,
36435,
3326,
2934,
272,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
12... |
What is the Trophy with a Season with 2008 2009? | SELECT trophy FROM table_name_78 WHERE season = "2008–2009" | [
2061,
318,
262,
25640,
351,
257,
7369,
351,
3648,
3717,
30,
46506,
16383,
16034,
3084,
62,
3672,
62,
3695,
33411,
1622,
796,
366,
11528,
1906,
10531,
1
] | [
1,
1,
1,
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,
25640,
351,
257,
7369,
351,
3648,
3717,
30,
46506,
16383,
16034,
3084,
62,
3672,
62,
3695,
33411,
1622,
796,
366,
11528,
1906,
10531,
1
] |
what is the name when the displacement is 8,305 t? | SELECT "Name" FROM table_8466 WHERE "Displacement" = '8,305 t' | [
10919,
318,
262,
1438,
618,
262,
29358,
318,
807,
11,
22515,
256,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
5705,
2791,
33411,
366,
7279,
489,
5592,
1,
796,
705,
23,
11,
22515,
256,
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,
262,
1438,
618,
262,
29358,
318,
807,
11,
22515,
256,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
5705,
2791,
33411,
366,
7279,
489,
5592,
1,
796,
705,
23,
11,
22515,
256,
6
] |
What type of Bridge is in Stanley? | SELECT type FROM table_name_87 WHERE location = "stanley" | [
2061,
2099,
286,
10290,
318,
287,
14167,
30,
46506,
2099,
16034,
3084,
62,
3672,
62,
5774,
33411,
4067,
796,
366,
14192,
1636,
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,
2099,
286,
10290,
318,
287,
14167,
30,
46506,
2099,
16034,
3084,
62,
3672,
62,
5774,
33411,
4067,
796,
366,
14192,
1636,
1
] |
Tell me the pole winner of may 12 | SELECT pole_winner FROM table_name_91 WHERE date = "may 12" | [
24446,
502,
262,
16825,
8464,
286,
743,
1105,
46506,
16825,
62,
39791,
16034,
3084,
62,
3672,
62,
6420,
33411,
3128,
796,
366,
11261,
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
] | [
24446,
502,
262,
16825,
8464,
286,
743,
1105,
46506,
16825,
62,
39791,
16034,
3084,
62,
3672,
62,
6420,
33411,
3128,
796,
366,
11261,
1105,
1
] |
What is the smallest number of total medals for Georgia with 0 silver and 1 bronze? | SELECT MIN("Total") FROM table_39104 WHERE "Silver" > '0' AND "Nation" = 'georgia' AND "Bronze" < '1' | [
2061,
318,
262,
18197,
1271,
286,
2472,
28057,
329,
7859,
351,
657,
8465,
290,
352,
22101,
30,
46506,
20625,
7203,
14957,
4943,
16034,
3084,
62,
2670,
13464,
33411,
366,
26766,
1,
1875,
705,
15,
6,
5357,
366,
46108,
1,
796,
705,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
18197,
1271,
286,
2472,
28057,
329,
7859,
351,
657,
8465,
290,
352,
22101,
30,
46506,
20625,
7203,
14957,
4943,
16034,
3084,
62,
2670,
13464,
33411,
366,
26766,
1,
1875,
705,
15,
6,
5357,
366,
46108,
1,
796,
705,
469,
... |
What is the to par of player hunter mahan? | SELECT to_par FROM table_name_87 WHERE player = "hunter mahan" | [
2061,
318,
262,
284,
1582,
286,
2137,
19177,
285,
19210,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
5774,
33411,
2137,
796,
366,
37488,
285,
19210,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
284,
1582,
286,
2137,
19177,
285,
19210,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
5774,
33411,
2137,
796,
366,
37488,
285,
19210,
1
] |
Who is the Teams' Champion for the Season of 1989? | SELECT "Teams' Champion" FROM table_5294 WHERE "Season" = '1989' | [
8241,
318,
262,
24690,
6,
15869,
329,
262,
7369,
286,
11104,
30,
46506,
366,
6767,
4105,
6,
15869,
1,
16034,
3084,
62,
20,
27696,
33411,
366,
18960,
1,
796,
705,
25475,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
24690,
6,
15869,
329,
262,
7369,
286,
11104,
30,
46506,
366,
6767,
4105,
6,
15869,
1,
16034,
3084,
62,
20,
27696,
33411,
366,
18960,
1,
796,
705,
25475,
6
] |
how many female patients had the drug code amid200? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "AMID200" | [
4919,
867,
4048,
3871,
550,
262,
2563,
2438,
10371,
2167,
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,
34092,
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... | [
4919,
867,
4048,
3871,
550,
262,
2563,
2438,
10371,
2167,
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,
34092,
13... |
What score has january 15, 2005 as the date? | SELECT "Score" FROM table_14741 WHERE "Date" = 'january 15, 2005' | [
2061,
4776,
468,
42897,
2838,
1315,
11,
5075,
355,
262,
3128,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
20198,
3901,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
1315,
11,
5075,
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,
4776,
468,
42897,
2838,
1315,
11,
5075,
355,
262,
3128,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
20198,
3901,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
1315,
11,
5075,
6
] |
Find the first and last name of the author(s) who wrote the paper 'Nameless, Painless'. | SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Nameless , Painless" | [
16742,
262,
717,
290,
938,
1438,
286,
262,
1772,
7,
82,
8,
508,
2630,
262,
3348,
705,
45,
39942,
11,
15627,
1203,
4458,
46506,
256,
16,
13,
69,
3672,
11,
256,
16,
13,
75,
3672,
16034,
7035,
7054,
256,
16,
32357,
1268,
7035,
1056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
290,
938,
1438,
286,
262,
1772,
7,
82,
8,
508,
2630,
262,
3348,
705,
45,
39942,
11,
15627,
1203,
4458,
46506,
256,
16,
13,
69,
3672,
11,
256,
16,
13,
75,
3672,
16034,
7035,
7054,
256,
16,
32357,
1268,
7035,
1056,
... |
How many members are there? | SELECT COUNT(*) FROM member | [
2437,
867,
1866,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
2888
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1866,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
2888
] |
What's the English name of the month abbreviated as . .? | SELECT english_name FROM table_180802_2 WHERE abbr = "มิ.ย." | [
2061,
338,
262,
3594,
1438,
286,
262,
1227,
37640,
515,
355,
764,
764,
30,
46506,
46932,
62,
3672,
16034,
3084,
62,
15259,
30863,
62,
17,
33411,
450,
1671,
796,
366,
19567,
94,
19567,
112,
13,
19567,
95,
526
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3594,
1438,
286,
262,
1227,
37640,
515,
355,
764,
764,
30,
46506,
46932,
62,
3672,
16034,
3084,
62,
15259,
30863,
62,
17,
33411,
450,
1671,
796,
366,
19567,
94,
19567,
112,
13,
19567,
95,
526
] |
Give the proportion of what is the first name and GPA of every student that has a GPA lower than average? | SELECT STU_FNAME, SUM(STU_GPA) FROM STUDENT WHERE STU_GPA < (SELECT AVG(STU_GPA) FROM STUDENT) GROUP BY STU_FNAME | [
23318,
262,
9823,
286,
644,
318,
262,
717,
1438,
290,
45283,
286,
790,
3710,
326,
468,
257,
45283,
2793,
621,
2811,
30,
46506,
3563,
52,
62,
37,
20608,
11,
35683,
7,
2257,
52,
62,
38,
4537,
8,
16034,
49348,
3525,
33411,
3563,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
9823,
286,
644,
318,
262,
717,
1438,
290,
45283,
286,
790,
3710,
326,
468,
257,
45283,
2793,
621,
2811,
30,
46506,
3563,
52,
62,
37,
20608,
11,
35683,
7,
2257,
52,
62,
38,
4537,
8,
16034,
49348,
3525,
33411,
3563,
52,
... |
What 2007-08 had A.S. Gubbio 1910 Club? | SELECT 2007 AS _08_season FROM table_name_15 WHERE club = "a.s. gubbio 1910" | [
2061,
4343,
12,
2919,
550,
317,
13,
50,
13,
402,
33670,
952,
31953,
6289,
30,
46506,
4343,
7054,
4808,
2919,
62,
6230,
16034,
3084,
62,
3672,
62,
1314,
33411,
3430,
796,
366,
64,
13,
82,
13,
308,
33670,
952,
31953,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4343,
12,
2919,
550,
317,
13,
50,
13,
402,
33670,
952,
31953,
6289,
30,
46506,
4343,
7054,
4808,
2919,
62,
6230,
16034,
3084,
62,
3672,
62,
1314,
33411,
3430,
796,
366,
64,
13,
82,
13,
308,
33670,
952,
31953,
1
] |
Users with more than 10,000 reputation. | SELECT COUNT(Id) FROM Users WHERE Reputation >= 10000 | [
14490,
351,
517,
621,
838,
11,
830,
8507,
13,
46506,
327,
28270,
7,
7390,
8,
16034,
18987,
33411,
1432,
7094,
18189,
33028
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
14490,
351,
517,
621,
838,
11,
830,
8507,
13,
46506,
327,
28270,
7,
7390,
8,
16034,
18987,
33411,
1432,
7094,
18189,
33028
] |
Count the number of storms in which at least 1 person died. | SELECT COUNT(*) FROM storm WHERE number_deaths > 0 | [
12332,
262,
1271,
286,
20228,
287,
543,
379,
1551,
352,
1048,
3724,
13,
46506,
327,
28270,
7,
28104,
16034,
6388,
33411,
1271,
62,
22595,
82,
1875,
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
] | [
12332,
262,
1271,
286,
20228,
287,
543,
379,
1551,
352,
1048,
3724,
13,
46506,
327,
28270,
7,
28104,
16034,
6388,
33411,
1271,
62,
22595,
82,
1875,
657
] |
What is the First Issue date of Bamboo Blade? | SELECT first_issue FROM table_name_89 WHERE title = "bamboo blade" | [
2061,
318,
262,
3274,
18232,
3128,
286,
347,
27708,
11671,
30,
46506,
717,
62,
21949,
16034,
3084,
62,
3672,
62,
4531,
33411,
3670,
796,
366,
65,
27708,
11865,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3274,
18232,
3128,
286,
347,
27708,
11671,
30,
46506,
717,
62,
21949,
16034,
3084,
62,
3672,
62,
4531,
33411,
3670,
796,
366,
65,
27708,
11865,
1
] |
What is listed as the highest February with a Record of 34-14-4 and Game that's larger than 52? | SELECT MAX(february) FROM table_name_51 WHERE record = "34-14-4" AND game > 52 | [
2061,
318,
5610,
355,
262,
4511,
3945,
351,
257,
13266,
286,
4974,
12,
1415,
12,
19,
290,
3776,
326,
338,
4025,
621,
6740,
30,
46506,
25882,
7,
69,
1765,
3728,
8,
16034,
3084,
62,
3672,
62,
4349,
33411,
1700,
796,
366,
2682,
12,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
5610,
355,
262,
4511,
3945,
351,
257,
13266,
286,
4974,
12,
1415,
12,
19,
290,
3776,
326,
338,
4025,
621,
6740,
30,
46506,
25882,
7,
69,
1765,
3728,
8,
16034,
3084,
62,
3672,
62,
4349,
33411,
1700,
796,
366,
2682,
12,
1... |
when did the last month patient 19175 have been given a microbiology test for the first time? | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19175) AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY microbiologyevent... | [
12518,
750,
262,
938,
1227,
5827,
678,
17430,
423,
587,
1813,
257,
24559,
1435,
1332,
329,
262,
717,
640,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
750,
262,
938,
1227,
5827,
678,
17430,
423,
587,
1813,
257,
24559,
1435,
1332,
329,
262,
717,
640,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268... |
what is date of birth and primary disease of subject name mary davis? | SELECT demographic.dob, demographic.diagnosis FROM demographic WHERE demographic.name = "Mary Davis" | [
10919,
318,
3128,
286,
4082,
290,
4165,
4369,
286,
2426,
1438,
285,
560,
288,
23401,
30,
46506,
16728,
13,
67,
672,
11,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
24119,
7802,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
286,
4082,
290,
4165,
4369,
286,
2426,
1438,
285,
560,
288,
23401,
30,
46506,
16728,
13,
67,
672,
11,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
24119,
7802,
1
] |
Can you tell me the Result that has the Date of september 13, 1998? | SELECT result FROM table_name_28 WHERE date = "september 13, 1998" | [
6090,
345,
1560,
502,
262,
25414,
326,
468,
262,
7536,
286,
384,
457,
1491,
1511,
11,
7795,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2078,
33411,
3128,
796,
366,
325,
457,
1491,
1511,
11,
7795,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
1560,
502,
262,
25414,
326,
468,
262,
7536,
286,
384,
457,
1491,
1511,
11,
7795,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2078,
33411,
3128,
796,
366,
325,
457,
1491,
1511,
11,
7795,
1
] |
What average drawn has a played greater than 42? | SELECT AVG("Drawn") FROM table_48984 WHERE "Played" > '42' | [
2061,
2811,
7428,
468,
257,
2826,
3744,
621,
5433,
30,
46506,
35224,
7203,
35,
5791,
4943,
16034,
3084,
62,
2780,
4089,
19,
33411,
366,
11002,
276,
1,
1875,
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,
1,
1,
1
] | [
2061,
2811,
7428,
468,
257,
2826,
3744,
621,
5433,
30,
46506,
35224,
7203,
35,
5791,
4943,
16034,
3084,
62,
2780,
4089,
19,
33411,
366,
11002,
276,
1,
1875,
705,
3682,
6
] |
How many season did sportfreunde siegen win best supported club? | SELECT COUNT("Season") FROM table_481 WHERE "Best supported Club" = 'Sportfreunde Siegen' | [
2437,
867,
1622,
750,
6332,
19503,
917,
68,
264,
494,
5235,
1592,
1266,
4855,
3430,
30,
46506,
327,
28270,
7203,
18960,
4943,
16034,
3084,
62,
40271,
33411,
366,
13014,
4855,
6289,
1,
796,
705,
42576,
19503,
917,
68,
48931,
5235,
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
] | [
2437,
867,
1622,
750,
6332,
19503,
917,
68,
264,
494,
5235,
1592,
1266,
4855,
3430,
30,
46506,
327,
28270,
7203,
18960,
4943,
16034,
3084,
62,
40271,
33411,
366,
13014,
4855,
6289,
1,
796,
705,
42576,
19503,
917,
68,
48931,
5235,
6
] |
What is on at 8:00 when at 8:30 it is the bachelorette? | SELECT "8:00" FROM table_53928 WHERE "8:30" = 'the bachelorette' | [
2061,
318,
319,
379,
807,
25,
405,
618,
379,
807,
25,
1270,
340,
318,
262,
275,
9636,
9997,
660,
30,
46506,
366,
23,
25,
405,
1,
16034,
3084,
62,
20,
2670,
2078,
33411,
366,
23,
25,
1270,
1,
796,
705,
1169,
275,
9636,
9997,
660,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
319,
379,
807,
25,
405,
618,
379,
807,
25,
1270,
340,
318,
262,
275,
9636,
9997,
660,
30,
46506,
366,
23,
25,
405,
1,
16034,
3084,
62,
20,
2670,
2078,
33411,
366,
23,
25,
1270,
1,
796,
705,
1169,
275,
9636,
9997,
660,... |
What was the opponents score when Carlton played at home? | SELECT "Away team score" FROM table_11560 WHERE "Home team" = 'carlton' | [
2061,
373,
262,
7691,
4776,
618,
44348,
2826,
379,
1363,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
15363,
1899,
33411,
366,
16060,
1074,
1,
796,
705,
66,
7063,
1122,
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
] | [
2061,
373,
262,
7691,
4776,
618,
44348,
2826,
379,
1363,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
15363,
1899,
33411,
366,
16060,
1074,
1,
796,
705,
66,
7063,
1122,
6
] |
Bar graph to show the number of nationality from different nationality, list in descending by the Nationality. | SELECT Nationality, COUNT(Nationality) FROM journalist GROUP BY Nationality ORDER BY Nationality DESC | [
10374,
4823,
284,
905,
262,
1271,
286,
29835,
422,
1180,
29835,
11,
1351,
287,
31491,
416,
262,
2351,
414,
13,
46506,
2351,
414,
11,
327,
28270,
7,
16186,
414,
8,
16034,
10099,
44441,
11050,
2351,
414,
38678,
11050,
2351,
414,
22196,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
4823,
284,
905,
262,
1271,
286,
29835,
422,
1180,
29835,
11,
1351,
287,
31491,
416,
262,
2351,
414,
13,
46506,
2351,
414,
11,
327,
28270,
7,
16186,
414,
8,
16034,
10099,
44441,
11050,
2351,
414,
38678,
11050,
2351,
414,
22196,
... |
Show me mean rating by languages in a histogram, order by the mean rating in ascending please. | SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY AVG(rating) | [
15307,
502,
1612,
7955,
416,
8950,
287,
257,
1554,
21857,
11,
1502,
416,
262,
1612,
7955,
287,
41988,
3387,
13,
46506,
8950,
11,
35224,
7,
8821,
8,
16034,
3496,
44441,
11050,
8950,
38678,
11050,
35224,
7,
8821,
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
] | [
15307,
502,
1612,
7955,
416,
8950,
287,
257,
1554,
21857,
11,
1502,
416,
262,
1612,
7955,
287,
41988,
3387,
13,
46506,
8950,
11,
35224,
7,
8821,
8,
16034,
3496,
44441,
11050,
8950,
38678,
11050,
35224,
7,
8821,
8
] |
What venue was the 2000 AFC Asian Cup qualification held at? | SELECT "Venue" FROM table_61439 WHERE "Competition" = '2000 afc asian cup qualification' | [
2061,
14359,
373,
262,
4751,
27987,
7740,
5454,
28587,
2714,
379,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
46841,
2670,
33411,
366,
7293,
15620,
1,
796,
705,
11024,
6580,
66,
355,
666,
6508,
28587,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
14359,
373,
262,
4751,
27987,
7740,
5454,
28587,
2714,
379,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
46841,
2670,
33411,
366,
7293,
15620,
1,
796,
705,
11024,
6580,
66,
355,
666,
6508,
28587,
6
] |
What is 1st Leg, when Team #1 is 'San Lorenzo'? | SELECT "1st leg" FROM table_50165 WHERE "Team #1" = 'san lorenzo' | [
2061,
318,
352,
301,
3564,
11,
618,
4816,
1303,
16,
318,
705,
15017,
41721,
30960,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
33548,
2996,
33411,
366,
15592,
1303,
16,
1,
796,
705,
12807,
24044,
77,
10872,
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,
352,
301,
3564,
11,
618,
4816,
1303,
16,
318,
705,
15017,
41721,
30960,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
33548,
2996,
33411,
366,
15592,
1303,
16,
1,
796,
705,
12807,
24044,
77,
10872,
6
] |
uncontrolled blood pressure and / or blood pressure above 140 / 90 | SELECT * FROM table_train_117 WHERE uncontrolled_blood_pressure = 1 OR systolic_blood_pressure_sbp >= 140 OR diastolic_blood_pressure_dbp >= 90 | [
403,
14401,
2910,
3833,
290,
1220,
393,
2910,
3833,
2029,
12713,
1220,
4101,
46506,
1635,
16034,
3084,
62,
27432,
62,
17657,
33411,
47913,
62,
18041,
62,
36151,
796,
352,
6375,
827,
301,
4160,
62,
18041,
62,
36151,
62,
36299,
79,
18189,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
403,
14401,
2910,
3833,
290,
1220,
393,
2910,
3833,
2029,
12713,
1220,
4101,
46506,
1635,
16034,
3084,
62,
27432,
62,
17657,
33411,
47913,
62,
18041,
62,
36151,
796,
352,
6375,
827,
301,
4160,
62,
18041,
62,
36151,
62,
36299,
79,
18189,... |
For all employees who have the letters D or S in their first name, a line chart shows the change of commission_pct over hire_date | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
1627,
8262,
2523,
262,
1487,
286,
5810,
62,
79,
310,
625,
11078,
62,
4475,
46506,
36210,
2200,
62,
35,
6158,
11,
22240,
40373,
62,
47,
4177,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
1627,
8262,
2523,
262,
1487,
286,
5810,
62,
79,
310,
625,
11078,
62,
4475,
46506,
36210,
2200,
62,
35,
6158,
11,
22240,
40373,
62,
47,
4177,
16034,
... |
What are the names of all races held between 2009 and 2011, and count them by a bar chart, and order in descending by the X please. | SELECT name, COUNT(name) FROM races WHERE year BETWEEN 2009 AND 2011 GROUP BY name ORDER BY name DESC | [
2061,
389,
262,
3891,
286,
477,
9558,
2714,
1022,
3717,
290,
2813,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
1502,
287,
31491,
416,
262,
1395,
3387,
13,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
9558,
33411,
614,
38651... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
286,
477,
9558,
2714,
1022,
3717,
290,
2813,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
1502,
287,
31491,
416,
262,
1395,
3387,
13,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
9558,
33411,
614,
38651... |
Which Average has a Tally of 2-12, and a Total larger than 18? | SELECT AVG("Average") FROM table_13477 WHERE "Tally" = '2-12' AND "Total" > '18' | [
13828,
13475,
468,
257,
309,
453,
286,
362,
12,
1065,
11,
290,
257,
7472,
4025,
621,
1248,
30,
46506,
35224,
7203,
26287,
4943,
16034,
3084,
62,
1485,
32883,
33411,
366,
51,
453,
1,
796,
705,
17,
12,
1065,
6,
5357,
366,
14957,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13475,
468,
257,
309,
453,
286,
362,
12,
1065,
11,
290,
257,
7472,
4025,
621,
1248,
30,
46506,
35224,
7203,
26287,
4943,
16034,
3084,
62,
1485,
32883,
33411,
366,
51,
453,
1,
796,
705,
17,
12,
1065,
6,
5357,
366,
14957,
1,
... |
What are all the report for the Belgian Grand Prix? | SELECT "Report" FROM table_28531 WHERE "Grand Prix" = 'Belgian Grand Prix' | [
2061,
389,
477,
262,
989,
329,
262,
21402,
5675,
23832,
30,
46506,
366,
19100,
1,
16034,
3084,
62,
26279,
3132,
33411,
366,
23581,
23832,
1,
796,
705,
12193,
18299,
5675,
23832,
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,
389,
477,
262,
989,
329,
262,
21402,
5675,
23832,
30,
46506,
366,
19100,
1,
16034,
3084,
62,
26279,
3132,
33411,
366,
23581,
23832,
1,
796,
705,
12193,
18299,
5675,
23832,
6
] |
Find the ids of all the order items whose product id is 11. | SELECT order_item_id FROM order_items WHERE product_id = 11 | [
16742,
262,
220,
2340,
286,
477,
262,
1502,
3709,
3025,
1720,
4686,
318,
1367,
13,
46506,
1502,
62,
9186,
62,
312,
16034,
1502,
62,
23814,
33411,
1720,
62,
312,
796,
1367
] | [
1,
1,
1,
1,
1,
1,
1,
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,
220,
2340,
286,
477,
262,
1502,
3709,
3025,
1720,
4686,
318,
1367,
13,
46506,
1502,
62,
9186,
62,
312,
16034,
1502,
62,
23814,
33411,
1720,
62,
312,
796,
1367
] |
in april 13 who made the high rebounds | SELECT high_rebounds FROM table_30047613_12 WHERE date = "April 13" | [
259,
46593,
346,
1511,
508,
925,
262,
1029,
18841,
46506,
1029,
62,
34806,
3733,
16034,
3084,
62,
6200,
35435,
1485,
62,
1065,
33411,
3128,
796,
366,
16784,
1511,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
259,
46593,
346,
1511,
508,
925,
262,
1029,
18841,
46506,
1029,
62,
34806,
3733,
16034,
3084,
62,
6200,
35435,
1485,
62,
1065,
33411,
3128,
796,
366,
16784,
1511,
1
] |
papers by linda shapiro in 2016 | SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'linda shapiro' AND paper.year = 2016 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
40491,
416,
300,
22261,
427,
499,
7058,
287,
1584,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
75,
22261,
427,
499,
7058,
6,
5357,
3348,
13,
1941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
40491,
416,
300,
22261,
427,
499,
7058,
287,
1584,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
75,
22261,
427,
499,
7058,
6,
5357,
3348,
13,
1941,
... |
What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647? | SELECT COUNT("Evening Gown") FROM table_11829 WHERE "Preliminaries" < '8.647' AND "State" = 'district of columbia' | [
2061,
318,
262,
6180,
33323,
4776,
286,
262,
44047,
422,
262,
5665,
286,
9309,
351,
14541,
259,
3166,
4833,
621,
807,
13,
33981,
30,
46506,
327,
28270,
7203,
6104,
278,
402,
593,
4943,
16034,
3084,
62,
16817,
1959,
33411,
366,
47,
241... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6180,
33323,
4776,
286,
262,
44047,
422,
262,
5665,
286,
9309,
351,
14541,
259,
3166,
4833,
621,
807,
13,
33981,
30,
46506,
327,
28270,
7203,
6104,
278,
402,
593,
4943,
16034,
3084,
62,
16817,
1959,
33411,
366,
47,
241... |
What was their record on Wed. Dec. 5, when they played in Boston Garden? | SELECT record FROM table_name_11 WHERE location = "boston garden" AND date = "wed. dec. 5" | [
2061,
373,
511,
1700,
319,
3300,
13,
4280,
13,
642,
11,
618,
484,
2826,
287,
6182,
11652,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
1157,
33411,
4067,
796,
366,
65,
5744,
11376,
1,
5357,
3128,
796,
366,
19103,
13,
875,
13,
642,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
511,
1700,
319,
3300,
13,
4280,
13,
642,
11,
618,
484,
2826,
287,
6182,
11652,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
1157,
33411,
4067,
796,
366,
65,
5744,
11376,
1,
5357,
3128,
796,
366,
19103,
13,
875,
13,
642,
... |
what was the name of a drug that patient 69761 was prescribed within the same hospital visit after having received the nephrotomy procedure? | SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 69761 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_proce... | [
10919,
373,
262,
1438,
286,
257,
2563,
326,
5827,
8644,
4304,
16,
373,
14798,
1626,
262,
976,
4436,
3187,
706,
1719,
2722,
262,
497,
746,
10599,
9145,
8771,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
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... | [
10919,
373,
262,
1438,
286,
257,
2563,
326,
5827,
8644,
4304,
16,
373,
14798,
1626,
262,
976,
4436,
3187,
706,
1719,
2722,
262,
497,
746,
10599,
9145,
8771,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
... |
What are the countries for appelations with at most 3 wines? | SELECT T1.county FROM appellations AS T1 JOIN wine AS T2 ON T1.appelation = T2.appelation GROUP BY T2.appelation HAVING COUNT(*) <= 3 | [
2061,
389,
262,
2678,
329,
598,
417,
602,
351,
379,
749,
513,
30680,
30,
46506,
309,
16,
13,
9127,
88,
16034,
24781,
602,
7054,
309,
16,
32357,
1268,
8237,
7054,
309,
17,
6177,
309,
16,
13,
1324,
417,
341,
796,
309,
17,
13,
1324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2678,
329,
598,
417,
602,
351,
379,
749,
513,
30680,
30,
46506,
309,
16,
13,
9127,
88,
16034,
24781,
602,
7054,
309,
16,
32357,
1268,
8237,
7054,
309,
17,
6177,
309,
16,
13,
1324,
417,
341,
796,
309,
17,
13,
1324,
... |
what is the date of patient 65467's birth? | SELECT patients.dob FROM patients WHERE patients.subject_id = 65467 | [
10919,
318,
262,
3128,
286,
5827,
718,
4051,
3134,
338,
4082,
30,
46506,
3871,
13,
67,
672,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
718,
4051,
3134
] | [
1,
1,
1,
1,
1,
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,
3128,
286,
5827,
718,
4051,
3134,
338,
4082,
30,
46506,
3871,
13,
67,
672,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
718,
4051,
3134
] |
All my answers sort score , viewcount, creationDate. All my answers on the site | SELECT * FROM (SELECT q.Id AS aid, a.Id AS "post_link", CASE WHEN q.AcceptedAnswerId = a.Id THEN 'Accepted' END AS Accepted, a.Score FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId WHERE a.OwnerUserId = @UserId AND a.PostTypeId = 2) AS AA INNER JOIN (SELECT DISTINCT Question.Id AS bid, Question.CreationDate ... | [
3237,
616,
7429,
3297,
4776,
837,
1570,
9127,
11,
6282,
10430,
13,
1439,
616,
7429,
319,
262,
2524,
46506,
1635,
16034,
357,
46506,
10662,
13,
7390,
7054,
6133,
11,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
42001,
42099,
10662,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3237,
616,
7429,
3297,
4776,
837,
1570,
9127,
11,
6282,
10430,
13,
1439,
616,
7429,
319,
262,
2524,
46506,
1635,
16034,
357,
46506,
10662,
13,
7390,
7054,
6133,
11,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
42001,
42099,
10662,
... |
What is the lowest attendance on November 18? | SELECT MIN("Attendance") FROM table_53718 WHERE "Date" = 'november 18' | [
2061,
318,
262,
9016,
14858,
319,
3389,
1248,
30,
46506,
20625,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
46096,
1507,
33411,
366,
10430,
1,
796,
705,
77,
3239,
1248,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
14858,
319,
3389,
1248,
30,
46506,
20625,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
46096,
1507,
33411,
366,
10430,
1,
796,
705,
77,
3239,
1248,
6
] |
What is the episode number of the episode broadcast on 21 September 2001? | SELECT "Episode Number" FROM table_65351 WHERE "Broadcast Date" = '21 september 2001' | [
2061,
318,
262,
4471,
1271,
286,
262,
4471,
7025,
319,
2310,
2693,
5878,
30,
46506,
366,
23758,
7913,
1,
16034,
3084,
62,
2996,
35273,
33411,
366,
30507,
2701,
7536,
1,
796,
705,
2481,
384,
457,
1491,
5878,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4471,
1271,
286,
262,
4471,
7025,
319,
2310,
2693,
5878,
30,
46506,
366,
23758,
7913,
1,
16034,
3084,
62,
2996,
35273,
33411,
366,
30507,
2701,
7536,
1,
796,
705,
2481,
384,
457,
1491,
5878,
6
] |
what is the name of the drug that patient 006-133605 had been prescribed two or more times during this month? | SELECT t1.drugname FROM (SELECT medication.drugname, COUNT(medication.drugstarttime) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006... | [
10919,
318,
262,
1438,
286,
262,
2563,
326,
5827,
3571,
21,
12,
1485,
15277,
20,
550,
587,
14798,
734,
393,
517,
1661,
1141,
428,
1227,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
327,
28270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1438,
286,
262,
2563,
326,
5827,
3571,
21,
12,
1485,
15277,
20,
550,
587,
14798,
734,
393,
517,
1661,
1141,
428,
1227,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
327,
28270,
... |
Give me a histogram for how many members are in each party?, display by the Y from low to high. | SELECT Party_name, COUNT(*) FROM member AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID ORDER BY COUNT(*) | [
23318,
502,
257,
1554,
21857,
329,
703,
867,
1866,
389,
287,
1123,
2151,
21747,
3359,
416,
262,
575,
422,
1877,
284,
1029,
13,
46506,
3615,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
2888,
7054,
309,
16,
32357,
1268,
2151,
7054,
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... | [
23318,
502,
257,
1554,
21857,
329,
703,
867,
1866,
389,
287,
1123,
2151,
21747,
3359,
416,
262,
575,
422,
1877,
284,
1029,
13,
46506,
3615,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
2888,
7054,
309,
16,
32357,
1268,
2151,
7054,
309,
... |
What is the earliest year that kim hyun-soo won the gold? | SELECT MIN("Year") FROM table_5298 WHERE "Gold" = 'kim hyun-soo' | [
2061,
318,
262,
14555,
614,
326,
479,
320,
2537,
403,
12,
568,
78,
1839,
262,
3869,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
20,
27728,
33411,
366,
13306,
1,
796,
705,
74,
320,
2537,
403,
12,
568,
78,
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,
14555,
614,
326,
479,
320,
2537,
403,
12,
568,
78,
1839,
262,
3869,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
20,
27728,
33411,
366,
13306,
1,
796,
705,
74,
320,
2537,
403,
12,
568,
78,
6
] |
Engine 2.5 20v d has what engine code? | SELECT engine AS code FROM table_name_46 WHERE engine = "2.5 20v d" | [
13798,
362,
13,
20,
1160,
85,
288,
468,
644,
3113,
2438,
30,
46506,
3113,
7054,
2438,
16034,
3084,
62,
3672,
62,
3510,
33411,
3113,
796,
366,
17,
13,
20,
1160,
85,
288,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13798,
362,
13,
20,
1160,
85,
288,
468,
644,
3113,
2438,
30,
46506,
3113,
7054,
2438,
16034,
3084,
62,
3672,
62,
3510,
33411,
3113,
796,
366,
17,
13,
20,
1160,
85,
288,
1
] |
What is the end of the term for Kadima that started on 18 January 2006? | SELECT term_end FROM table_name_6 WHERE party = "kadima" AND term_start = "18 january 2006" | [
2061,
318,
262,
886,
286,
262,
3381,
329,
31996,
8083,
326,
2067,
319,
1248,
3269,
4793,
30,
46506,
3381,
62,
437,
16034,
3084,
62,
3672,
62,
21,
33411,
2151,
796,
366,
74,
324,
8083,
1,
5357,
3381,
62,
9688,
796,
366,
1507,
42897,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
886,
286,
262,
3381,
329,
31996,
8083,
326,
2067,
319,
1248,
3269,
4793,
30,
46506,
3381,
62,
437,
16034,
3084,
62,
3672,
62,
21,
33411,
2151,
796,
366,
74,
324,
8083,
1,
5357,
3381,
62,
9688,
796,
366,
1507,
42897,
... |
how many patients whose year of death is less than or equal to 2165 and lab test name is albumin? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2165.0" AND lab.label = "Albumin" | [
4919,
867,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
20986,
290,
2248,
1332,
1438,
318,
5062,
259,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
20986,
290,
2248,
1332,
1438,
318,
5062,
259,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
Which Home is on january 11? | SELECT "Home" FROM table_8374 WHERE "Date" = 'january 11' | [
13828,
5995,
318,
319,
42897,
2838,
1367,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
23,
31020,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
1367,
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
] | [
13828,
5995,
318,
319,
42897,
2838,
1367,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
23,
31020,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
1367,
6
] |
What is Works Number, when Type is RS-11, and when Number is 61? | SELECT works_number FROM table_name_7 WHERE type = "rs-11" AND number = "61" | [
2061,
318,
10933,
7913,
11,
618,
5994,
318,
19340,
12,
1157,
11,
290,
618,
7913,
318,
8454,
30,
46506,
2499,
62,
17618,
16034,
3084,
62,
3672,
62,
22,
33411,
2099,
796,
366,
3808,
12,
1157,
1,
5357,
1271,
796,
366,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
10933,
7913,
11,
618,
5994,
318,
19340,
12,
1157,
11,
290,
618,
7913,
318,
8454,
30,
46506,
2499,
62,
17618,
16034,
3084,
62,
3672,
62,
22,
33411,
2099,
796,
366,
3808,
12,
1157,
1,
5357,
1271,
796,
366,
5333,
1
] |
What did the away team score at corio oval? | SELECT away_team AS score FROM table_name_58 WHERE venue = "corio oval" | [
2061,
750,
262,
1497,
1074,
4776,
379,
1162,
952,
41186,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
3365,
33411,
14359,
796,
366,
10215,
952,
41186,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
750,
262,
1497,
1074,
4776,
379,
1162,
952,
41186,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
3365,
33411,
14359,
796,
366,
10215,
952,
41186,
1
] |
How many wins did Andrew Ranger have? | SELECT COUNT(wins) FROM table_23239946_3 WHERE driver = "Andrew Ranger" | [
2437,
867,
7864,
750,
6858,
21888,
423,
30,
46506,
327,
28270,
7,
86,
1040,
8,
16034,
3084,
62,
1954,
1954,
2079,
3510,
62,
18,
33411,
4639,
796,
366,
20508,
21888,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
7864,
750,
6858,
21888,
423,
30,
46506,
327,
28270,
7,
86,
1040,
8,
16034,
3084,
62,
1954,
1954,
2079,
3510,
62,
18,
33411,
4639,
796,
366,
20508,
21888,
1
] |
How many patients with the diagnoses of single liveborn were born in hospital and delivered with cesarean section and were categorized under a chemistry lab test? | 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 = "Single lb in-hosp w cs" AND lab."CATEGORY" = "Chemistry" | [
2437,
867,
3871,
351,
262,
40567,
286,
2060,
2107,
6286,
547,
4642,
287,
4436,
290,
6793,
351,
269,
274,
533,
272,
2665,
290,
547,
37661,
739,
257,
16585,
2248,
1332,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3871,
351,
262,
40567,
286,
2060,
2107,
6286,
547,
4642,
287,
4436,
290,
6793,
351,
269,
274,
533,
272,
2665,
290,
547,
37661,
739,
257,
16585,
2248,
1332,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
... |
What are the ids and names of all start stations that were the beginning of at least 200 trips? | SELECT start_station_id, start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*) >= 200 | [
2061,
389,
262,
220,
2340,
290,
3891,
286,
477,
923,
8985,
326,
547,
262,
3726,
286,
379,
1551,
939,
13229,
30,
46506,
923,
62,
17529,
62,
312,
11,
923,
62,
17529,
62,
3672,
16034,
5296,
44441,
11050,
923,
62,
17529,
62,
3672,
367,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
286,
477,
923,
8985,
326,
547,
262,
3726,
286,
379,
1551,
939,
13229,
30,
46506,
923,
62,
17529,
62,
312,
11,
923,
62,
17529,
62,
3672,
16034,
5296,
44441,
11050,
923,
62,
17529,
62,
3672,
367,
... |
Show all product names and the number of customers having an order on each product. | SELECT T2.product_name, COUNT(*) FROM order_items AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id JOIN orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name | [
15307,
477,
1720,
3891,
290,
262,
1271,
286,
4297,
1719,
281,
1502,
319,
1123,
1720,
13,
46506,
309,
17,
13,
11167,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
1502,
62,
23814,
7054,
309,
16,
32357,
1268,
3186,
7054,
309,
17,
6177,
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... | [
15307,
477,
1720,
3891,
290,
262,
1271,
286,
4297,
1719,
281,
1502,
319,
1123,
1720,
13,
46506,
309,
17,
13,
11167,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
1502,
62,
23814,
7054,
309,
16,
32357,
1268,
3186,
7054,
309,
17,
6177,
3... |
What tournament is in Arizona? | SELECT "Tournament" FROM table_57217 WHERE "Location" = 'arizona' | [
2061,
7756,
318,
287,
7943,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
3553,
24591,
33411,
366,
14749,
1,
796,
705,
283,
528,
4450,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
7756,
318,
287,
7943,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
3553,
24591,
33411,
366,
14749,
1,
796,
705,
283,
528,
4450,
6
] |
has patient 016-9636 since 08/2105 excreted any output (ml)-urethral catheter straight-tip 16 fr. | SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-9636')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput... | [
10134,
5827,
5534,
21,
12,
4846,
2623,
1201,
8487,
14,
17,
13348,
2859,
1186,
276,
597,
5072,
357,
4029,
13219,
495,
400,
1373,
3797,
43332,
3892,
12,
22504,
1467,
1216,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
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... | [
10134,
5827,
5534,
21,
12,
4846,
2623,
1201,
8487,
14,
17,
13348,
2859,
1186,
276,
597,
5072,
357,
4029,
13219,
495,
400,
1373,
3797,
43332,
3892,
12,
22504,
1467,
1216,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
10337,
22915,
... |
what is the pick when the college is arkansas and the overall is more than 316? | SELECT MAX("Pick") FROM table_46489 WHERE "College" = 'arkansas' AND "Overall" > '316' | [
10919,
318,
262,
2298,
618,
262,
4152,
318,
610,
74,
6618,
290,
262,
4045,
318,
517,
621,
34131,
30,
46506,
25882,
7203,
31686,
4943,
16034,
3084,
62,
44578,
4531,
33411,
366,
38951,
1,
796,
705,
668,
6618,
6,
5357,
366,
16350,
1,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2298,
618,
262,
4152,
318,
610,
74,
6618,
290,
262,
4045,
318,
517,
621,
34131,
30,
46506,
25882,
7203,
31686,
4943,
16034,
3084,
62,
44578,
4531,
33411,
366,
38951,
1,
796,
705,
668,
6618,
6,
5357,
366,
16350,
1,
1... |
What party has the district Georgia 7? | SELECT "Party" FROM table_12486 WHERE "District" = 'georgia 7' | [
2061,
2151,
468,
262,
4783,
7859,
767,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
1065,
34251,
33411,
366,
44857,
1,
796,
705,
469,
2398,
544,
767,
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,
2151,
468,
262,
4783,
7859,
767,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
1065,
34251,
33411,
366,
44857,
1,
796,
705,
469,
2398,
544,
767,
6
] |
What is the sum of Rank, when Province is G l n, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366? | SELECT SUM(rank) FROM table_name_51 WHERE province = "gīlān" AND date_of_official_foundation_of_municipality > 1922 AND 2006 > 557366 | [
2061,
318,
262,
2160,
286,
10916,
11,
618,
22783,
318,
402,
300,
299,
11,
618,
7536,
286,
15934,
5693,
286,
27338,
1483,
318,
706,
36094,
11,
290,
618,
4793,
318,
3744,
621,
642,
3553,
32459,
30,
46506,
35683,
7,
43027,
8,
16034,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2160,
286,
10916,
11,
618,
22783,
318,
402,
300,
299,
11,
618,
7536,
286,
15934,
5693,
286,
27338,
1483,
318,
706,
36094,
11,
290,
618,
4793,
318,
3744,
621,
642,
3553,
32459,
30,
46506,
35683,
7,
43027,
8,
16034,
30... |
Name the cfl team for robert beveridge | SELECT cfl_team FROM table_28059992_2 WHERE player = "Robert Beveridge" | [
5376,
262,
269,
2704,
1074,
329,
686,
4835,
307,
332,
3130,
46506,
269,
2704,
62,
15097,
16034,
3084,
62,
21033,
43452,
5892,
62,
17,
33411,
2137,
796,
366,
19156,
22185,
3130,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
2704,
1074,
329,
686,
4835,
307,
332,
3130,
46506,
269,
2704,
62,
15097,
16034,
3084,
62,
21033,
43452,
5892,
62,
17,
33411,
2137,
796,
366,
19156,
22185,
3130,
1
] |
On what Date was the Attendance 73,405? | SELECT date FROM table_name_32 WHERE attendance = "73,405" | [
2202,
644,
7536,
373,
262,
46502,
590,
8854,
11,
26598,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2624,
33411,
14858,
796,
366,
4790,
11,
26598,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
7536,
373,
262,
46502,
590,
8854,
11,
26598,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2624,
33411,
14858,
796,
366,
4790,
11,
26598,
1
] |
List the number of the names of technicians in ascending order of age. | SELECT Name, COUNT(Name) FROM technician GROUP BY Name ORDER BY Age | [
8053,
262,
1271,
286,
262,
3891,
286,
33519,
287,
41988,
1502,
286,
2479,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
33024,
44441,
11050,
6530,
38678,
11050,
7129
] | [
1,
1,
1,
1,
1,
1,
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,
3891,
286,
33519,
287,
41988,
1502,
286,
2479,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
33024,
44441,
11050,
6530,
38678,
11050,
7129
] |
When did the Titans play the Houston Texans at LP Field before Week 13? | SELECT "Date" FROM table_7071 WHERE "Week" < '13' AND "Game site" = 'lp field' AND "Opponent" = 'houston texans' | [
2215,
750,
262,
18711,
711,
262,
6995,
21012,
379,
18470,
7663,
878,
6119,
1511,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2154,
4869,
33411,
366,
20916,
1,
1279,
705,
1485,
6,
5357,
366,
8777,
2524,
1,
796,
705,
34431,
2214,
6,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
750,
262,
18711,
711,
262,
6995,
21012,
379,
18470,
7663,
878,
6119,
1511,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2154,
4869,
33411,
366,
20916,
1,
1279,
705,
1485,
6,
5357,
366,
8777,
2524,
1,
796,
705,
34431,
2214,
6,
53... |
Which average lane has 54.95 as a time? | SELECT AVG("Lane") FROM table_15705 WHERE "Time" = '54.95' | [
13828,
2811,
11193,
468,
7175,
13,
3865,
355,
257,
640,
30,
46506,
35224,
7203,
43,
1531,
4943,
16034,
3084,
62,
1314,
34801,
33411,
366,
7575,
1,
796,
705,
4051,
13,
3865,
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
] | [
13828,
2811,
11193,
468,
7175,
13,
3865,
355,
257,
640,
30,
46506,
35224,
7203,
43,
1531,
4943,
16034,
3084,
62,
1314,
34801,
33411,
366,
7575,
1,
796,
705,
4051,
13,
3865,
6
] |
Show total number of id from each nationality | SELECT Nationality, SUM(ID) FROM swimmer GROUP BY Nationality | [
15307,
2472,
1271,
286,
4686,
422,
1123,
29835,
46506,
2351,
414,
11,
35683,
7,
2389,
8,
16034,
9422,
647,
44441,
11050,
2351,
414
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
2472,
1271,
286,
4686,
422,
1123,
29835,
46506,
2351,
414,
11,
35683,
7,
2389,
8,
16034,
9422,
647,
44441,
11050,
2351,
414
] |
What was the highest attendance? | SELECT MAX("Attendance") FROM table_19709 | [
2061,
373,
262,
4511,
14858,
30,
46506,
25882,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
30986,
24
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4511,
14858,
30,
46506,
25882,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
30986,
24
] |
What is the lowest silver that has a bronze greater than 1, a gold less than 2, and a total less than 2? | SELECT MIN("Silver") FROM table_41445 WHERE "Bronze" > '1' AND "Gold" < '2' AND "Total" < '2' | [
2061,
318,
262,
9016,
8465,
326,
468,
257,
22101,
3744,
621,
352,
11,
257,
3869,
1342,
621,
362,
11,
290,
257,
2472,
1342,
621,
362,
30,
46506,
20625,
7203,
26766,
4943,
16034,
3084,
62,
37309,
2231,
33411,
366,
18760,
2736,
1,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
8465,
326,
468,
257,
22101,
3744,
621,
352,
11,
257,
3869,
1342,
621,
362,
11,
290,
257,
2472,
1342,
621,
362,
30,
46506,
20625,
7203,
26766,
4943,
16034,
3084,
62,
37309,
2231,
33411,
366,
18760,
2736,
1,
1875,
... |
Just give me a histogram that X is the details of the organization and the Y-axis is the number of things they own. | SELECT organization_details, COUNT(organization_details) FROM Things AS T1 JOIN Organizations AS T2 ON T1.organization_id = T2.organization_id GROUP BY organization_details | [
5703,
1577,
502,
257,
1554,
21857,
326,
1395,
318,
262,
3307,
286,
262,
4009,
290,
262,
575,
12,
22704,
318,
262,
1271,
286,
1243,
484,
898,
13,
46506,
4009,
62,
36604,
11,
327,
28270,
7,
9971,
1634,
62,
36604,
8,
16034,
11597,
7054... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5703,
1577,
502,
257,
1554,
21857,
326,
1395,
318,
262,
3307,
286,
262,
4009,
290,
262,
575,
12,
22704,
318,
262,
1271,
286,
1243,
484,
898,
13,
46506,
4009,
62,
36604,
11,
327,
28270,
7,
9971,
1634,
62,
36604,
8,
16034,
11597,
7054... |
Who is the player from La Costa Canyon High School? | SELECT player FROM table_name_79 WHERE school = "la costa canyon high school" | [
8241,
318,
262,
2137,
422,
4689,
18133,
22099,
3334,
3961,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
3720,
33411,
1524,
796,
366,
5031,
1575,
64,
42775,
1029,
1524,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
2137,
422,
4689,
18133,
22099,
3334,
3961,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
3720,
33411,
1524,
796,
366,
5031,
1575,
64,
42775,
1029,
1524,
1
] |
Which Winning constructor has a Winning driver of felice nazzaro? | SELECT winning_constructor FROM table_name_52 WHERE winning_driver = "felice nazzaro" | [
13828,
40983,
23772,
468,
257,
40983,
4639,
286,
10756,
501,
299,
8101,
12022,
30,
46506,
5442,
62,
41571,
273,
16034,
3084,
62,
3672,
62,
4309,
33411,
5442,
62,
26230,
796,
366,
69,
417,
501,
299,
8101,
12022,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40983,
23772,
468,
257,
40983,
4639,
286,
10756,
501,
299,
8101,
12022,
30,
46506,
5442,
62,
41571,
273,
16034,
3084,
62,
3672,
62,
4309,
33411,
5442,
62,
26230,
796,
366,
69,
417,
501,
299,
8101,
12022,
1
] |
how many days have passed since patient 12775 received po intake for the first time in the on the current intensive care unit visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12775) AND icustays.outtime IS NULL) ... | [
4919,
867,
1528,
423,
3804,
1201,
5827,
18112,
2425,
2722,
745,
10337,
329,
262,
717,
640,
287,
262,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
423,
3804,
1201,
5827,
18112,
2425,
2722,
745,
10337,
329,
262,
717,
640,
287,
262,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28... |
what is the percent for other when the margin of error is 3%? | SELECT other FROM table_name_35 WHERE margin_of_error = "± 3%" | [
10919,
318,
262,
1411,
329,
584,
618,
262,
10330,
286,
4049,
318,
513,
4,
30,
46506,
584,
16034,
3084,
62,
3672,
62,
2327,
33411,
10330,
62,
1659,
62,
18224,
796,
366,
22519,
513,
39658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1411,
329,
584,
618,
262,
10330,
286,
4049,
318,
513,
4,
30,
46506,
584,
16034,
3084,
62,
3672,
62,
2327,
33411,
10330,
62,
1659,
62,
18224,
796,
366,
22519,
513,
39658
] |
Tell me the team 1 for team 2 being civitavecchiese (latium a) | SELECT team_1 FROM table_name_8 WHERE team_2 = "civitavecchiese (latium a)" | [
24446,
502,
262,
1074,
352,
329,
1074,
362,
852,
36317,
270,
1015,
66,
354,
444,
68,
357,
15460,
1505,
257,
8,
46506,
1074,
62,
16,
16034,
3084,
62,
3672,
62,
23,
33411,
1074,
62,
17,
796,
366,
66,
452,
270,
1015,
66,
354,
444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
1074,
352,
329,
1074,
362,
852,
36317,
270,
1015,
66,
354,
444,
68,
357,
15460,
1505,
257,
8,
46506,
1074,
62,
16,
16034,
3084,
62,
3672,
62,
23,
33411,
1074,
62,
17,
796,
366,
66,
452,
270,
1015,
66,
354,
444,
... |
what were the four most frequent diagnoses that patients received within the same month after receiving a insert gastric tube nec since 2103? | 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 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissi... | [
10919,
547,
262,
1440,
749,
10792,
40567,
326,
3871,
2722,
1626,
262,
976,
1227,
706,
6464,
257,
7550,
21956,
1173,
12403,
27576,
1201,
362,
15197,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1440,
749,
10792,
40567,
326,
3871,
2722,
1626,
262,
976,
1227,
706,
6464,
257,
7550,
21956,
1173,
12403,
27576,
1201,
362,
15197,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291... |
what's the incumbent with district being massachusetts 2 | SELECT "Incumbent" FROM table_18290 WHERE "District" = 'Massachusetts 2' | [
10919,
338,
262,
23526,
351,
4783,
852,
2347,
9770,
362,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
1507,
24369,
33411,
366,
44857,
1,
796,
705,
20273,
9770,
362,
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
] | [
10919,
338,
262,
23526,
351,
4783,
852,
2347,
9770,
362,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
1507,
24369,
33411,
366,
44857,
1,
796,
705,
20273,
9770,
362,
6
] |
List the snatch score and clean jerk score of body builders in ascending order of snatch score. | SELECT Snatch, Clean_Jerk FROM body_builder ORDER BY Snatch | [
8053,
262,
43388,
4776,
290,
3424,
29757,
4776,
286,
1767,
31606,
287,
41988,
1502,
286,
43388,
4776,
13,
46506,
5489,
963,
11,
5985,
62,
41,
9587,
16034,
1767,
62,
38272,
38678,
11050,
5489,
963
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
43388,
4776,
290,
3424,
29757,
4776,
286,
1767,
31606,
287,
41988,
1502,
286,
43388,
4776,
13,
46506,
5489,
963,
11,
5985,
62,
41,
9587,
16034,
1767,
62,
38272,
38678,
11050,
5489,
963
] |
Who had the high rebounds when the team played Sacramento? | SELECT "High rebounds" FROM table_21602 WHERE "Team" = 'Sacramento' | [
8241,
550,
262,
1029,
18841,
618,
262,
1074,
2826,
19375,
30,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
20666,
2999,
33411,
366,
15592,
1,
796,
705,
38318,
15141,
78,
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
] | [
8241,
550,
262,
1029,
18841,
618,
262,
1074,
2826,
19375,
30,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
20666,
2999,
33411,
366,
15592,
1,
796,
705,
38318,
15141,
78,
6
] |
What is the sum of Total Passengers when the annual change is 9.7% and the rank is less than 6? | SELECT SUM(total_passengers) FROM table_name_9 WHERE annual_change = "9.7%" AND rank < 6 | [
2061,
318,
262,
2160,
286,
7472,
6251,
9302,
618,
262,
5079,
1487,
318,
860,
13,
22,
4,
290,
262,
4279,
318,
1342,
621,
718,
30,
46506,
35683,
7,
23350,
62,
6603,
9302,
8,
16034,
3084,
62,
3672,
62,
24,
33411,
5079,
62,
3803,
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
] | [
2061,
318,
262,
2160,
286,
7472,
6251,
9302,
618,
262,
5079,
1487,
318,
860,
13,
22,
4,
290,
262,
4279,
318,
1342,
621,
718,
30,
46506,
35683,
7,
23350,
62,
6603,
9302,
8,
16034,
3084,
62,
3672,
62,
24,
33411,
5079,
62,
3803,
796,... |
known severe hepatic dysfunction | SELECT * FROM table_test_28 WHERE hepatic_disease = 1 | [
4002,
6049,
47585,
1512,
19327,
46506,
1635,
16034,
3084,
62,
9288,
62,
2078,
33411,
47585,
1512,
62,
67,
786,
589,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4002,
6049,
47585,
1512,
19327,
46506,
1635,
16034,
3084,
62,
9288,
62,
2078,
33411,
47585,
1512,
62,
67,
786,
589,
796,
352
] |
I want the lowest points for tries of 39 and goals more than 0 | SELECT MIN("Points") FROM table_11879 WHERE "Tries" = '39' AND "Goals" > '0' | [
40,
765,
262,
9016,
2173,
329,
8404,
286,
5014,
290,
4661,
517,
621,
657,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
16817,
3720,
33411,
366,
51,
1678,
1,
796,
705,
2670,
6,
5357,
366,
5247,
874,
1,
1875,
705,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
262,
9016,
2173,
329,
8404,
286,
5014,
290,
4661,
517,
621,
657,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
16817,
3720,
33411,
366,
51,
1678,
1,
796,
705,
2670,
6,
5357,
366,
5247,
874,
1,
1875,
705,
15,
6
] |
Tell me the wkts for econ of 4.23 | SELECT wkts FROM table_name_13 WHERE econ = "4.23" | [
24446,
502,
262,
266,
74,
912,
329,
304,
1102,
286,
604,
13,
1954,
46506,
266,
74,
912,
16034,
3084,
62,
3672,
62,
1485,
33411,
304,
1102,
796,
366,
19,
13,
1954,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
266,
74,
912,
329,
304,
1102,
286,
604,
13,
1954,
46506,
266,
74,
912,
16034,
3084,
62,
3672,
62,
1485,
33411,
304,
1102,
796,
366,
19,
13,
1954,
1
] |
Show the average age of drivers from the same home city using a bar graph, and sort total number from high to low order. | SELECT Home_city, AVG(Age) FROM driver GROUP BY Home_city ORDER BY AVG(Age) DESC | [
15307,
262,
2811,
2479,
286,
6643,
422,
262,
976,
1363,
1748,
1262,
257,
2318,
4823,
11,
290,
3297,
2472,
1271,
422,
1029,
284,
1877,
1502,
13,
46506,
5995,
62,
19205,
11,
35224,
7,
23396,
8,
16034,
4639,
44441,
11050,
5995,
62,
19205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
2811,
2479,
286,
6643,
422,
262,
976,
1363,
1748,
1262,
257,
2318,
4823,
11,
290,
3297,
2472,
1271,
422,
1029,
284,
1877,
1502,
13,
46506,
5995,
62,
19205,
11,
35224,
7,
23396,
8,
16034,
4639,
44441,
11050,
5995,
62,
19205... |
what is the admission type and death status of subject id 17595? | SELECT demographic.admission_type, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "17595" | [
10919,
318,
262,
13938,
2099,
290,
1918,
3722,
286,
2426,
4686,
1596,
35124,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1558,
35124,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13938,
2099,
290,
1918,
3722,
286,
2426,
4686,
1596,
35124,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1558,
35124,
1
] |
what is the result for 11 august 2010? | SELECT "Result" FROM table_53768 WHERE "Date" = '11 august 2010' | [
10919,
318,
262,
1255,
329,
1367,
16339,
436,
3050,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
46096,
3104,
33411,
366,
10430,
1,
796,
705,
1157,
16339,
436,
3050,
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
] | [
10919,
318,
262,
1255,
329,
1367,
16339,
436,
3050,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
46096,
3104,
33411,
366,
10430,
1,
796,
705,
1157,
16339,
436,
3050,
6
] |
Return the ids of all products that were ordered more than three times or supplied more than 80000. | SELECT product_id FROM order_items GROUP BY product_id HAVING COUNT(*) > 3 UNION SELECT product_id FROM product_suppliers GROUP BY product_id HAVING SUM(total_amount_purchased) > 80000 | [
13615,
262,
220,
2340,
286,
477,
3186,
326,
547,
6149,
517,
621,
1115,
1661,
393,
14275,
517,
621,
807,
2388,
13,
46506,
1720,
62,
312,
16034,
1502,
62,
23814,
44441,
11050,
1720,
62,
312,
367,
10116,
2751,
327,
28270,
7,
28104,
1875,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13615,
262,
220,
2340,
286,
477,
3186,
326,
547,
6149,
517,
621,
1115,
1661,
393,
14275,
517,
621,
807,
2388,
13,
46506,
1720,
62,
312,
16034,
1502,
62,
23814,
44441,
11050,
1720,
62,
312,
367,
10116,
2751,
327,
28270,
7,
28104,
1875,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.