instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Which suits have no material or non-material, either opponent, and are positional? | SELECT "Suits" FROM table_33186 WHERE "Material or Non-material" = 'no' AND "Opponents" = 'either' AND "Positional or Automatic" = 'positional' | [
13828,
14803,
423,
645,
2587,
393,
1729,
12,
33665,
11,
2035,
6125,
11,
290,
389,
45203,
30,
46506,
366,
5606,
896,
1,
16034,
3084,
62,
2091,
25096,
33411,
366,
17518,
393,
8504,
12,
33665,
1,
796,
705,
3919,
6,
5357,
366,
27524,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14803,
423,
645,
2587,
393,
1729,
12,
33665,
11,
2035,
6125,
11,
290,
389,
45203,
30,
46506,
366,
5606,
896,
1,
16034,
3084,
62,
2091,
25096,
33411,
366,
17518,
393,
8504,
12,
33665,
1,
796,
705,
3919,
6,
5357,
366,
27524,
39... |
What is the year of introduction for the Electro-Diesel locomotive? | SELECT "Introduced" FROM table_57525 WHERE "Type" = 'electro-diesel locomotive' | [
2061,
318,
262,
614,
286,
9793,
329,
262,
38781,
12,
35,
29893,
33334,
19138,
30,
46506,
366,
37143,
1,
16034,
3084,
62,
36189,
1495,
33411,
366,
6030,
1,
796,
705,
9509,
305,
12,
25990,
417,
33334,
19138,
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,
614,
286,
9793,
329,
262,
38781,
12,
35,
29893,
33334,
19138,
30,
46506,
366,
37143,
1,
16034,
3084,
62,
36189,
1495,
33411,
366,
6030,
1,
796,
705,
9509,
305,
12,
25990,
417,
33334,
19138,
6
] |
Name the film title for andr t chin category:articles with hcards | SELECT film_title_used_in_nomination FROM table_18987377_1 WHERE director = "André Téchiné Category:Articles with hCards" | [
5376,
262,
2646,
3670,
329,
290,
81,
256,
22531,
6536,
25,
26845,
351,
289,
27761,
46506,
2646,
62,
7839,
62,
1484,
62,
259,
62,
26601,
1883,
16034,
3084,
62,
1507,
44183,
26514,
62,
16,
33411,
3437,
796,
366,
1870,
29350,
309,
2634,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2646,
3670,
329,
290,
81,
256,
22531,
6536,
25,
26845,
351,
289,
27761,
46506,
2646,
62,
7839,
62,
1484,
62,
259,
62,
26601,
1883,
16034,
3084,
62,
1507,
44183,
26514,
62,
16,
33411,
3437,
796,
366,
1870,
29350,
309,
2634,
... |
Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working. | SELECT nationality FROM journalist WHERE years_working > 10 INTERSECT SELECT nationality FROM journalist WHERE years_working < 3 | [
15307,
262,
7027,
326,
423,
1111,
9046,
351,
517,
621,
838,
812,
286,
1762,
290,
9046,
351,
1342,
621,
513,
812,
286,
1762,
13,
46506,
29835,
16034,
10099,
33411,
812,
62,
16090,
1875,
838,
17828,
4877,
9782,
33493,
29835,
16034,
10099,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7027,
326,
423,
1111,
9046,
351,
517,
621,
838,
812,
286,
1762,
290,
9046,
351,
1342,
621,
513,
812,
286,
1762,
13,
46506,
29835,
16034,
10099,
33411,
812,
62,
16090,
1875,
838,
17828,
4877,
9782,
33493,
29835,
16034,
10099,... |
what is ohad shamir 's most cited paper ? | SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM author, cite, paper, writes WHERE author.authorname = 'ohad shamir' AND paper.paperid = cite.citedpaperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY cite.citedpaperid ORDER BY COUNT(cite.citedpaperid) DESC | [
10919,
318,
11752,
324,
23565,
343,
705,
82,
749,
9181,
3348,
5633,
46506,
360,
8808,
1268,
4177,
21729,
13,
66,
863,
20189,
312,
11,
327,
28270,
7,
66,
578,
13,
66,
863,
20189,
312,
8,
16034,
1772,
11,
21729,
11,
3348,
11,
6797,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11752,
324,
23565,
343,
705,
82,
749,
9181,
3348,
5633,
46506,
360,
8808,
1268,
4177,
21729,
13,
66,
863,
20189,
312,
11,
327,
28270,
7,
66,
578,
13,
66,
863,
20189,
312,
8,
16034,
1772,
11,
21729,
11,
3348,
11,
6797,
... |
what is days of hospital stay and primary disease of subject name claude chipman? | SELECT demographic.days_stay, demographic.diagnosis FROM demographic WHERE demographic.name = "Claude Chipman" | [
10919,
318,
1528,
286,
4436,
2652,
290,
4165,
4369,
286,
2426,
1438,
26435,
2507,
11594,
805,
30,
46506,
16728,
13,
12545,
62,
31712,
11,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
47404,
2507,
17869,
805,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
286,
4436,
2652,
290,
4165,
4369,
286,
2426,
1438,
26435,
2507,
11594,
805,
30,
46506,
16728,
13,
12545,
62,
31712,
11,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
47404,
2507,
17869,
805,
1... |
what is the soap opera when the actor is dave duffy? | SELECT soap_opera FROM table_name_11 WHERE actor = "dave duffy" | [
10919,
318,
262,
19533,
27296,
618,
262,
8674,
318,
288,
1015,
288,
15352,
30,
46506,
19533,
62,
3575,
64,
16034,
3084,
62,
3672,
62,
1157,
33411,
8674,
796,
366,
67,
1015,
288,
15352,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19533,
27296,
618,
262,
8674,
318,
288,
1015,
288,
15352,
30,
46506,
19533,
62,
3575,
64,
16034,
3084,
62,
3672,
62,
1157,
33411,
8674,
796,
366,
67,
1015,
288,
15352,
1
] |
Which Effic is the average one that has an Avg/G larger than 3.7, and a GP-GS of 13, and a Cmp-Att-Int of 318-521-15? | SELECT AVG("Effic") FROM table_36930 WHERE "Avg/G" > '3.7' AND "GP-GS" = '13' AND "Cmp-Att-Int" = '318-521-15' | [
13828,
412,
2108,
318,
262,
2811,
530,
326,
468,
281,
33455,
14,
38,
4025,
621,
513,
13,
22,
11,
290,
257,
14714,
12,
14313,
286,
1511,
11,
290,
257,
327,
3149,
12,
8086,
12,
5317,
286,
39320,
12,
20,
2481,
12,
1314,
30,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
412,
2108,
318,
262,
2811,
530,
326,
468,
281,
33455,
14,
38,
4025,
621,
513,
13,
22,
11,
290,
257,
14714,
12,
14313,
286,
1511,
11,
290,
257,
327,
3149,
12,
8086,
12,
5317,
286,
39320,
12,
20,
2481,
12,
1314,
30,
46506,
... |
What is the rank that has 1 bronze and 1 silver? | SELECT COUNT(rank) FROM table_name_63 WHERE bronze = 1 AND silver > 1 | [
2061,
318,
262,
4279,
326,
468,
352,
22101,
290,
352,
8465,
30,
46506,
327,
28270,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
5066,
33411,
22101,
796,
352,
5357,
8465,
1875,
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
] | [
2061,
318,
262,
4279,
326,
468,
352,
22101,
290,
352,
8465,
30,
46506,
327,
28270,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
5066,
33411,
22101,
796,
352,
5357,
8465,
1875,
352
] |
What is the sum of crowd(s) when north melbourne is away? | SELECT SUM(crowd) FROM table_name_92 WHERE away_team = "north melbourne" | [
2061,
318,
262,
2160,
286,
4315,
7,
82,
8,
618,
5093,
7758,
12544,
318,
1497,
30,
46506,
35683,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
1497,
62,
15097,
796,
366,
43588,
7758,
12544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4315,
7,
82,
8,
618,
5093,
7758,
12544,
318,
1497,
30,
46506,
35683,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
1497,
62,
15097,
796,
366,
43588,
7758,
12544,
1
] |
show me all the flights between PHILADELPHIA and DENVER | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'D... | [
12860,
502,
477,
262,
13956,
1022,
9370,
4146,
2885,
3698,
11909,
3539,
290,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
13956,
1022,
9370,
4146,
2885,
3698,
11909,
3539,
290,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
... |
What is the last year that Howard A. Wassum was in the 5th district? | SELECT MAX("Year") FROM table_19160 WHERE "5th District" = 'Howard A. Wassum' | [
2061,
318,
262,
938,
614,
326,
8442,
317,
13,
32427,
388,
373,
287,
262,
642,
400,
4783,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
1129,
14198,
33411,
366,
20,
400,
5665,
1,
796,
705,
32434,
317,
13,
32427,
388,
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,
938,
614,
326,
8442,
317,
13,
32427,
388,
373,
287,
262,
642,
400,
4783,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
1129,
14198,
33411,
366,
20,
400,
5665,
1,
796,
705,
32434,
317,
13,
32427,
388,
6
] |
select * from Posts where id<5000. | SELECT * FROM Posts WHERE Id < 5000 | [
19738,
1635,
422,
12043,
810,
4686,
27,
27641,
13,
46506,
1635,
16034,
12043,
33411,
5121,
1279,
23336
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19738,
1635,
422,
12043,
810,
4686,
27,
27641,
13,
46506,
1635,
16034,
12043,
33411,
5121,
1279,
23336
] |
Who were the the opponents of the Wildcats for game 8 of the season? | SELECT "Opponent" FROM table_24103 WHERE "Game" = '8' | [
8241,
547,
262,
262,
7691,
286,
262,
46011,
329,
983,
807,
286,
262,
1622,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
1731,
15197,
33411,
366,
8777,
1,
796,
705,
23,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
547,
262,
262,
7691,
286,
262,
46011,
329,
983,
807,
286,
262,
1622,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
1731,
15197,
33411,
366,
8777,
1,
796,
705,
23,
6
] |
What year is the 2004 shake don't stir? | SELECT "Year" FROM table_76404 WHERE "2004" = 'shake don''t stir' | [
2061,
614,
318,
262,
5472,
13279,
836,
470,
11240,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
4304,
26429,
33411,
366,
15724,
1,
796,
705,
32431,
836,
7061,
83,
11240,
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,
614,
318,
262,
5472,
13279,
836,
470,
11240,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
4304,
26429,
33411,
366,
15724,
1,
796,
705,
32431,
836,
7061,
83,
11240,
6
] |
Which venue has a Goal of 4? | SELECT "Venue" FROM table_69093 WHERE "Goal" = '4' | [
13828,
14359,
468,
257,
25376,
286,
604,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3388,
2931,
18,
33411,
366,
49045,
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
] | [
13828,
14359,
468,
257,
25376,
286,
604,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3388,
2931,
18,
33411,
366,
49045,
1,
796,
705,
19,
6
] |
What is the lowest number of laps for kyle petty with under 118 points? | SELECT MIN("Laps") FROM table_74598 WHERE "Points" < '118' AND "Driver" = 'kyle petty' | [
2061,
318,
262,
9016,
1271,
286,
24590,
329,
479,
2349,
25229,
351,
739,
19035,
2173,
30,
46506,
20625,
7203,
43,
1686,
4943,
16034,
3084,
62,
50150,
4089,
33411,
366,
40710,
1,
1279,
705,
16817,
6,
5357,
366,
32103,
1,
796,
705,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
1271,
286,
24590,
329,
479,
2349,
25229,
351,
739,
19035,
2173,
30,
46506,
20625,
7203,
43,
1686,
4943,
16034,
3084,
62,
50150,
4089,
33411,
366,
40710,
1,
1279,
705,
16817,
6,
5357,
366,
32103,
1,
796,
705,
74,
... |
Find the total number of instructors for each department with a bar chart. | SELECT T1.dept_name, COUNT(DISTINCT T3.ID) FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name | [
16742,
262,
2472,
1271,
286,
33667,
329,
1123,
5011,
351,
257,
2318,
8262,
13,
46506,
309,
16,
13,
2934,
457,
62,
3672,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
18,
13,
2389,
8,
16034,
5011,
7054,
309,
16,
32357,
1268,
3710,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
33667,
329,
1123,
5011,
351,
257,
2318,
8262,
13,
46506,
309,
16,
13,
2934,
457,
62,
3672,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
18,
13,
2389,
8,
16034,
5011,
7054,
309,
16,
32357,
1268,
3710,
... |
what is the position of the player from florida? | SELECT position FROM table_name_63 WHERE college = "florida" | [
10919,
318,
262,
2292,
286,
262,
2137,
422,
781,
273,
3755,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
5066,
33411,
4152,
796,
366,
2704,
273,
3755,
1
] | [
1,
1,
1,
1,
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,
2292,
286,
262,
2137,
422,
781,
273,
3755,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
5066,
33411,
4152,
796,
366,
2704,
273,
3755,
1
] |
Which nation won no bronze medals and a 1 medal total? | SELECT "Nation" FROM table_49181 WHERE "Total" = '1' AND "Bronze" < '1' | [
13828,
3277,
1839,
645,
22101,
28057,
290,
257,
352,
18279,
2472,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
2920,
27057,
33411,
366,
14957,
1,
796,
705,
16,
6,
5357,
366,
18760,
2736,
1,
1279,
705,
16,
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
] | [
13828,
3277,
1839,
645,
22101,
28057,
290,
257,
352,
18279,
2472,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
2920,
27057,
33411,
366,
14957,
1,
796,
705,
16,
6,
5357,
366,
18760,
2736,
1,
1279,
705,
16,
6
] |
what are the top three most frequently diagnosed diagnoses among the patients in the 50s in 2104? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN... | [
10919,
389,
262,
1353,
1115,
749,
6777,
14641,
40567,
1871,
262,
3871,
287,
262,
2026,
82,
287,
362,
13464,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1353,
1115,
749,
6777,
14641,
40567,
1871,
262,
3871,
287,
262,
2026,
82,
287,
362,
13464,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,... |
How many votes does Carlos Ferrer Eai have? | SELECT "Total votes" FROM table_23294 WHERE "Artist" = 'Carlos Ferrer EAI' | [
2437,
867,
5690,
857,
17409,
12880,
11751,
412,
1872,
423,
30,
46506,
366,
14957,
5690,
1,
16034,
3084,
62,
1954,
27696,
33411,
366,
43020,
1,
796,
705,
26886,
418,
12880,
11751,
19814,
40,
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
] | [
2437,
867,
5690,
857,
17409,
12880,
11751,
412,
1872,
423,
30,
46506,
366,
14957,
5690,
1,
16034,
3084,
62,
1954,
27696,
33411,
366,
43020,
1,
796,
705,
26886,
418,
12880,
11751,
19814,
40,
6
] |
What issue was the Spoofed Title of the crockford files in? | SELECT "Issue" FROM table_42831 WHERE "Spoofed Title" = 'the crockford files' | [
2061,
2071,
373,
262,
1338,
37711,
276,
11851,
286,
262,
6763,
694,
3841,
3696,
287,
30,
46506,
366,
45147,
1,
16034,
3084,
62,
40173,
3132,
33411,
366,
4561,
37711,
276,
11851,
1,
796,
705,
1169,
6763,
694,
3841,
3696,
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
] | [
2061,
2071,
373,
262,
1338,
37711,
276,
11851,
286,
262,
6763,
694,
3841,
3696,
287,
30,
46506,
366,
45147,
1,
16034,
3084,
62,
40173,
3132,
33411,
366,
4561,
37711,
276,
11851,
1,
796,
705,
1169,
6763,
694,
3841,
3696,
6
] |
give me the number of patients whose ethnicity is black/cape verdean and days of hospital stay is greater than 8? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.days_stay > "8" | [
26535,
502,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
36435,
3326,
2934,
272,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
807,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
36435,
3326,
2934,
272,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
807,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
... |
What is the result for a year after 2003, when the nominee(s) is john wells? | SELECT result FROM table_name_64 WHERE year > 2003 AND nominee_s_ = "john wells" | [
2061,
318,
262,
1255,
329,
257,
614,
706,
5816,
11,
618,
262,
10429,
7,
82,
8,
318,
45610,
22571,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2414,
33411,
614,
1875,
5816,
5357,
10429,
62,
82,
62,
796,
366,
30686,
22571,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1255,
329,
257,
614,
706,
5816,
11,
618,
262,
10429,
7,
82,
8,
318,
45610,
22571,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2414,
33411,
614,
1875,
5816,
5357,
10429,
62,
82,
62,
796,
366,
30686,
22571,
1
] |
Is 413 being taught by anyone else other than Prof. Gladys Saborio ? | SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 413 AND NOT instructor.name LIKE '%Gladys Saborio%' AND offering_instructor.instructor_id = instructor.instructor_id AND off... | [
3792,
46618,
852,
7817,
416,
2687,
2073,
584,
621,
4415,
13,
28442,
893,
311,
4820,
952,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3792,
46618,
852,
7817,
416,
2687,
2073,
584,
621,
4415,
13,
28442,
893,
311,
4820,
952,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,... |
What was the score of the game on November 12? | SELECT "Score" FROM table_72133 WHERE "Date" = 'November 12' | [
2061,
373,
262,
4776,
286,
262,
983,
319,
3389,
1105,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
4761,
16945,
33411,
366,
10430,
1,
796,
705,
21159,
1105,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
286,
262,
983,
319,
3389,
1105,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
4761,
16945,
33411,
366,
10430,
1,
796,
705,
21159,
1105,
6
] |
how long has the barahona diocese been established ? | SELECT present_ref - "established" FROM table_204_10 WHERE "ecclesiastical jurisdictions" = 'barahona' | [
4919,
890,
468,
262,
2318,
993,
4450,
2566,
31292,
587,
4920,
5633,
46506,
1944,
62,
5420,
532,
366,
27718,
1,
16034,
3084,
62,
18638,
62,
940,
33411,
366,
68,
535,
46360,
25281,
1,
796,
705,
5657,
993,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
890,
468,
262,
2318,
993,
4450,
2566,
31292,
587,
4920,
5633,
46506,
1944,
62,
5420,
532,
366,
27718,
1,
16034,
3084,
62,
18638,
62,
940,
33411,
366,
68,
535,
46360,
25281,
1,
796,
705,
5657,
993,
4450,
6
] |
What seat does hold? | SELECT seat FROM table_11614581_3 WHERE name_in_russian = "Плоцкая губерния" | [
2061,
5852,
857,
1745,
30,
46506,
5852,
16034,
3084,
62,
18298,
1415,
48630,
62,
18,
33411,
1438,
62,
259,
62,
81,
31562,
796,
366,
140,
253,
30143,
15166,
141,
228,
31583,
16142,
40623,
12466,
111,
35072,
140,
109,
16843,
21169,
22177,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5852,
857,
1745,
30,
46506,
5852,
16034,
3084,
62,
18298,
1415,
48630,
62,
18,
33411,
1438,
62,
259,
62,
81,
31562,
796,
366,
140,
253,
30143,
15166,
141,
228,
31583,
16142,
40623,
12466,
111,
35072,
140,
109,
16843,
21169,
22177,... |
What is the minimum position when points are 32 and wins are greater than 13? | SELECT MIN(position) FROM table_name_2 WHERE points = 32 AND wins > 13 | [
2061,
318,
262,
5288,
2292,
618,
2173,
389,
3933,
290,
7864,
389,
3744,
621,
1511,
30,
46506,
20625,
7,
9150,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
2173,
796,
3933,
5357,
7864,
1875,
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,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5288,
2292,
618,
2173,
389,
3933,
290,
7864,
389,
3744,
621,
1511,
30,
46506,
20625,
7,
9150,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
2173,
796,
3933,
5357,
7864,
1875,
1511
] |
What is the least amount of lecturers in the accounting department with less than 5 full professors? | SELECT MIN(lecturers) FROM table_name_86 WHERE department = "accounting" AND full_professors < 5 | [
2061,
318,
262,
1551,
2033,
286,
11042,
17496,
287,
262,
14317,
5011,
351,
1342,
621,
642,
1336,
20339,
30,
46506,
20625,
7,
801,
17496,
8,
16034,
3084,
62,
3672,
62,
4521,
33411,
5011,
796,
366,
23317,
278,
1,
5357,
1336,
62,
5577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1551,
2033,
286,
11042,
17496,
287,
262,
14317,
5011,
351,
1342,
621,
642,
1336,
20339,
30,
46506,
20625,
7,
801,
17496,
8,
16034,
3084,
62,
3672,
62,
4521,
33411,
5011,
796,
366,
23317,
278,
1,
5357,
1336,
62,
5577,
... |
What was the to winnning team when the tu winning team was #16 2002? | SELECT to_winning_team FROM table_13657883_2 WHERE tu_winning_team = "#16 2002" | [
2061,
373,
262,
284,
1592,
77,
768,
1074,
618,
262,
12777,
5442,
1074,
373,
1303,
1433,
6244,
30,
46506,
284,
62,
14463,
62,
15097,
16034,
3084,
62,
1485,
37680,
49287,
62,
17,
33411,
12777,
62,
14463,
62,
15097,
796,
25113,
1433,
624... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
284,
1592,
77,
768,
1074,
618,
262,
12777,
5442,
1074,
373,
1303,
1433,
6244,
30,
46506,
284,
62,
14463,
62,
15097,
16034,
3084,
62,
1485,
37680,
49287,
62,
17,
33411,
12777,
62,
14463,
62,
15097,
796,
25113,
1433,
624... |
Among patients who had procedure icd9 code 45, how many of them had a death status of unspecified? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.icd9_code = "45" | [
14311,
3871,
508,
550,
8771,
14158,
67,
24,
2438,
4153,
11,
703,
867,
286,
606,
550,
257,
1918,
3722,
286,
29547,
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... | [
14311,
3871,
508,
550,
8771,
14158,
67,
24,
2438,
4153,
11,
703,
867,
286,
606,
550,
257,
1918,
3722,
286,
29547,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
Where is the nationality of Arg Esp moving to? | SELECT moving_to FROM table_name_15 WHERE nat = "arg esp" | [
8496,
318,
262,
29835,
286,
20559,
20386,
3867,
284,
30,
46506,
3867,
62,
1462,
16034,
3084,
62,
3672,
62,
1314,
33411,
34664,
796,
366,
853,
15024,
1
] | [
1,
1,
1,
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,
29835,
286,
20559,
20386,
3867,
284,
30,
46506,
3867,
62,
1462,
16034,
3084,
62,
3672,
62,
1314,
33411,
34664,
796,
366,
853,
15024,
1
] |
which 1967 episode of the inspector is the only one written by tony benedict ? | SELECT "title" FROM table_203_338 WHERE "story" = 'tony benedict' | [
4758,
15904,
4471,
286,
262,
24110,
318,
262,
691,
530,
3194,
416,
256,
1647,
1888,
276,
713,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
28460,
33411,
366,
13571,
1,
796,
705,
1122,
88,
1888,
276,
713,
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
] | [
4758,
15904,
4471,
286,
262,
24110,
318,
262,
691,
530,
3194,
416,
256,
1647,
1888,
276,
713,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
28460,
33411,
366,
13571,
1,
796,
705,
1122,
88,
1888,
276,
713,
6
] |
Manager of marty berghammer, and a Finish of 1st involved what lowest year? | SELECT MIN(year) FROM table_name_59 WHERE manager = "marty berghammer" AND finish = "1st" | [
13511,
286,
11277,
88,
18157,
456,
321,
647,
11,
290,
257,
32585,
286,
352,
301,
2950,
644,
9016,
614,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
4706,
796,
366,
13822,
88,
18157,
456,
321,
647,
1,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13511,
286,
11277,
88,
18157,
456,
321,
647,
11,
290,
257,
32585,
286,
352,
301,
2950,
644,
9016,
614,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
4706,
796,
366,
13822,
88,
18157,
456,
321,
647,
1,
5357,
... |
Which finish has a Record of 74-68? | SELECT finish FROM table_name_35 WHERE record = "74-68" | [
13828,
5461,
468,
257,
13266,
286,
8915,
12,
3104,
30,
46506,
5461,
16034,
3084,
62,
3672,
62,
2327,
33411,
1700,
796,
366,
4524,
12,
3104,
1
] | [
1,
1,
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,
5461,
16034,
3084,
62,
3672,
62,
2327,
33411,
1700,
796,
366,
4524,
12,
3104,
1
] |
What score won $36,090? | SELECT "Score" FROM table_44079 WHERE "Money ( $ )" = '36,090' | [
2061,
4776,
1839,
720,
2623,
11,
42534,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
25644,
3720,
33411,
366,
26788,
357,
720,
1267,
1,
796,
705,
2623,
11,
42534,
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,
4776,
1839,
720,
2623,
11,
42534,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
25644,
3720,
33411,
366,
26788,
357,
720,
1267,
1,
796,
705,
2623,
11,
42534,
6
] |
What is Result, when Date is 11 August 1992? | SELECT result FROM table_name_26 WHERE date = "11 august 1992" | [
2061,
318,
25414,
11,
618,
7536,
318,
1367,
2932,
9768,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2075,
33411,
3128,
796,
366,
1157,
16339,
436,
9768,
1
] | [
1,
1,
1,
1,
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,
25414,
11,
618,
7536,
318,
1367,
2932,
9768,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2075,
33411,
3128,
796,
366,
1157,
16339,
436,
9768,
1
] |
How far is the olbia to sassari route? | SELECT distance FROM table_name_99 WHERE course = "olbia to sassari" | [
2437,
1290,
318,
262,
267,
23160,
544,
284,
264,
562,
2743,
6339,
30,
46506,
5253,
16034,
3084,
62,
3672,
62,
2079,
33411,
1781,
796,
366,
349,
23339,
284,
264,
562,
2743,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1290,
318,
262,
267,
23160,
544,
284,
264,
562,
2743,
6339,
30,
46506,
5253,
16034,
3084,
62,
3672,
62,
2079,
33411,
1781,
796,
366,
349,
23339,
284,
264,
562,
2743,
1
] |
get the number of married patients who had insertion of drug-eluting coronary artery stent(s). | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.short_title = "Ins drug-elut coronry st" | [
1136,
262,
1271,
286,
6405,
3871,
508,
550,
36075,
286,
2563,
12,
417,
15129,
37151,
37646,
336,
298,
7,
82,
737,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1271,
286,
6405,
3871,
508,
550,
36075,
286,
2563,
12,
417,
15129,
37151,
37646,
336,
298,
7,
82,
737,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
... |
which qualifying driver has the largest gap ? | SELECT "driver" FROM table_202_222 ORDER BY "gap" DESC LIMIT 1 | [
4758,
18677,
4639,
468,
262,
4387,
7625,
5633,
46506,
366,
26230,
1,
16034,
3084,
62,
19004,
62,
23148,
38678,
11050,
366,
43554,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
18677,
4639,
468,
262,
4387,
7625,
5633,
46506,
366,
26230,
1,
16034,
3084,
62,
19004,
62,
23148,
38678,
11050,
366,
43554,
1,
22196,
34,
27564,
2043,
352
] |
Return a pie on what is the number of professors for different school? | SELECT SCHOOL_CODE, COUNT(*) FROM DEPARTMENT AS T1 JOIN PROFESSOR AS T2 ON T1.DEPT_CODE = T2.DEPT_CODE GROUP BY T1.SCHOOL_CODE | [
13615,
257,
2508,
319,
644,
318,
262,
1271,
286,
20339,
329,
1180,
1524,
30,
46506,
35883,
62,
34,
16820,
11,
327,
28270,
7,
28104,
16034,
5550,
30709,
10979,
7054,
309,
16,
32357,
1268,
4810,
19238,
7597,
1581,
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... | [
13615,
257,
2508,
319,
644,
318,
262,
1271,
286,
20339,
329,
1180,
1524,
30,
46506,
35883,
62,
34,
16820,
11,
327,
28270,
7,
28104,
16034,
5550,
30709,
10979,
7054,
309,
16,
32357,
1268,
4810,
19238,
7597,
1581,
7054,
309,
17,
6177,
3... |
What is the current venue for the Miami Masters tournament? | SELECT current_venue FROM table_14903081_1 WHERE tournament = "Miami Masters" | [
2061,
318,
262,
1459,
14359,
329,
262,
8437,
15812,
7756,
30,
46506,
1459,
62,
4080,
16034,
3084,
62,
1415,
3829,
1270,
6659,
62,
16,
33411,
7756,
796,
366,
41191,
15812,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1459,
14359,
329,
262,
8437,
15812,
7756,
30,
46506,
1459,
62,
4080,
16034,
3084,
62,
1415,
3829,
1270,
6659,
62,
16,
33411,
7756,
796,
366,
41191,
15812,
1
] |
Top 20 Bounty hunters per # of bounties and rep. | SELECT Posts.OwnerUserId AS "user_link", COUNT(*) AS "bounties_won", SUM(Votes.BountyAmount) AS "rep_gained" FROM Votes INNER JOIN Posts ON Votes.PostId = Posts.Id WHERE VoteTypeId = 9 GROUP BY Posts.OwnerUserId ORDER BY 2 DESC LIMIT 20 | [
9126,
1160,
38166,
21490,
583,
1303,
286,
49937,
444,
290,
1128,
13,
46506,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
28104,
7054,
366,
65,
608,
444,
62,
26502,
1600,
35683,
7,
53,
6421,
13,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
38166,
21490,
583,
1303,
286,
49937,
444,
290,
1128,
13,
46506,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
28104,
7054,
366,
65,
608,
444,
62,
26502,
1600,
35683,
7,
53,
6421,
13,
33,
... |
what is drug route of drug name lactated ringers? | SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Lactated Ringers" | [
10919,
318,
2563,
6339,
286,
2563,
1438,
26222,
515,
5858,
364,
30,
46506,
34092,
13,
38629,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
43,
529,
515,
12569,
364,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
2563,
6339,
286,
2563,
1438,
26222,
515,
5858,
364,
30,
46506,
34092,
13,
38629,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
43,
529,
515,
12569,
364,
1
] |
show me the airlines that fly between TORONTO and DENVER | SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'TORONTO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_n... | [
12860,
502,
262,
26225,
326,
6129,
1022,
40691,
1340,
10468,
290,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
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,
262,
26225,
326,
6129,
1022,
40691,
1340,
10468,
290,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,... |
number of distinct users, who used the word hadoop in one of their posts. | SELECT * FROM Posts WHERE UPPER(Posts.Body) LIKE UPPER('%hadoop%') OR Posts.Title LIKE ('%hadoop%') | [
17618,
286,
7310,
2985,
11,
508,
973,
262,
1573,
550,
11224,
287,
530,
286,
511,
6851,
13,
46506,
1635,
16034,
12043,
33411,
471,
10246,
1137,
7,
21496,
13,
25842,
8,
34178,
471,
10246,
1137,
10786,
4,
71,
4533,
404,
4,
11537,
6375,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
17618,
286,
7310,
2985,
11,
508,
973,
262,
1573,
550,
11224,
287,
530,
286,
511,
6851,
13,
46506,
1635,
16034,
12043,
33411,
471,
10246,
1137,
7,
21496,
13,
25842,
8,
34178,
471,
10246,
1137,
10786,
4,
71,
4533,
404,
4,
11537,
6375,
... |
what is admission type and diagnoses long title of subject id 74032? | SELECT demographic.admission_type, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "74032" | [
10919,
318,
13938,
2099,
290,
40567,
890,
3670,
286,
2426,
4686,
767,
1821,
2624,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
40567,
13,
6511,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
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
] | [
10919,
318,
13938,
2099,
290,
40567,
890,
3670,
286,
2426,
4686,
767,
1821,
2624,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
40567,
13,
6511,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
... |
The Fall Nationals has what sessions? | SELECT "Session" FROM table_48644 WHERE "Event" = 'fall nationals' | [
464,
7218,
26291,
468,
644,
10991,
30,
46506,
366,
36044,
1,
16034,
3084,
62,
2780,
29173,
33411,
366,
9237,
1,
796,
705,
7207,
22970,
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
] | [
464,
7218,
26291,
468,
644,
10991,
30,
46506,
366,
36044,
1,
16034,
3084,
62,
2780,
29173,
33411,
366,
9237,
1,
796,
705,
7207,
22970,
6
] |
Who is the Constructor for the Trac Racing Team? | SELECT "Constructor" FROM table_4681 WHERE "Team" = 'trac racing team' | [
8241,
318,
262,
28407,
273,
329,
262,
833,
330,
14954,
4816,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
38472,
16,
33411,
366,
15592,
1,
796,
705,
2213,
330,
11717,
1074,
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
] | [
8241,
318,
262,
28407,
273,
329,
262,
833,
330,
14954,
4816,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
38472,
16,
33411,
366,
15592,
1,
796,
705,
2213,
330,
11717,
1074,
6
] |
On what Date is Tie no 19? | SELECT "Date" FROM table_62334 WHERE "Tie no" = '19' | [
2202,
644,
7536,
318,
36286,
645,
678,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
46872,
2682,
33411,
366,
51,
494,
645,
1,
796,
705,
1129,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
7536,
318,
36286,
645,
678,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
46872,
2682,
33411,
366,
51,
494,
645,
1,
796,
705,
1129,
6
] |
had patient 022-6959 been prescribed 1000 ml flex cont : sodium chloride 0.9 % iv soln, versed or aspirin chew tab 81 mg in 12/2105? | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-6959')) AND medication.drugname IN ('1000 ml flex cont : sodium chlori... | [
18108,
5827,
657,
1828,
12,
3388,
3270,
587,
14798,
8576,
25962,
7059,
542,
1058,
21072,
44921,
657,
13,
24,
4064,
21628,
1540,
77,
11,
1646,
276,
393,
49550,
34722,
7400,
9773,
10527,
287,
1105,
14,
17,
13348,
30,
46506,
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... | [
18108,
5827,
657,
1828,
12,
3388,
3270,
587,
14798,
8576,
25962,
7059,
542,
1058,
21072,
44921,
657,
13,
24,
4064,
21628,
1540,
77,
11,
1646,
276,
393,
49550,
34722,
7400,
9773,
10527,
287,
1105,
14,
17,
13348,
30,
46506,
327,
28270,
... |
My Comments with fixed score. How many comments do I have for each score. | SELECT PostId, Text FROM Comments WHERE UserId = @UserId AND Score = @Score | [
3666,
19502,
351,
5969,
4776,
13,
1374,
867,
3651,
466,
314,
423,
329,
1123,
4776,
13,
46506,
2947,
7390,
11,
8255,
16034,
19502,
33411,
11787,
7390,
796,
2488,
12982,
7390,
5357,
15178,
796,
2488,
26595
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3666,
19502,
351,
5969,
4776,
13,
1374,
867,
3651,
466,
314,
423,
329,
1123,
4776,
13,
46506,
2947,
7390,
11,
8255,
16034,
19502,
33411,
11787,
7390,
796,
2488,
12982,
7390,
5357,
15178,
796,
2488,
26595
] |
Which Award has a Group of c sar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)? | SELECT award FROM table_name_39 WHERE group = "césar awards" AND result = "nominated" AND year > 2001 AND film = "8 women (8 femmes)" | [
13828,
11289,
468,
257,
4912,
286,
269,
29008,
13304,
11,
290,
257,
25414,
286,
19332,
11,
290,
257,
6280,
4025,
621,
5878,
11,
290,
257,
13741,
286,
807,
1466,
357,
23,
2796,
6880,
19427,
46506,
5764,
16034,
3084,
62,
3672,
62,
2670,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11289,
468,
257,
4912,
286,
269,
29008,
13304,
11,
290,
257,
25414,
286,
19332,
11,
290,
257,
6280,
4025,
621,
5878,
11,
290,
257,
13741,
286,
807,
1466,
357,
23,
2796,
6880,
19427,
46506,
5764,
16034,
3084,
62,
3672,
62,
2670,... |
What's the lowest round with the opponent John Howard that had a method of Decision (unanimous)? | SELECT MIN("Round") FROM table_32222 WHERE "Method" = 'decision (unanimous)' AND "Opponent" = 'john howard' | [
2061,
338,
262,
9016,
2835,
351,
262,
6125,
1757,
8442,
326,
550,
257,
2446,
286,
26423,
357,
403,
45873,
19427,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
37283,
1828,
33411,
366,
17410,
1,
796,
705,
12501,
1166,
357,
403,
45873... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
2835,
351,
262,
6125,
1757,
8442,
326,
550,
257,
2446,
286,
26423,
357,
403,
45873,
19427,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
37283,
1828,
33411,
366,
17410,
1,
796,
705,
12501,
1166,
357,
403,
45873... |
While the Hornets were visiting, what date was Deron Williams (29) the leading scorer? | SELECT date FROM table_name_94 WHERE leading_scorer = "deron williams (29)" AND visitor = "hornets" | [
3633,
262,
38602,
547,
10013,
11,
644,
3128,
373,
9626,
261,
6484,
357,
1959,
8,
262,
3756,
30664,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5824,
33411,
3756,
62,
1416,
11934,
796,
366,
1082,
261,
481,
1789,
82,
357,
1959,
16725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3633,
262,
38602,
547,
10013,
11,
644,
3128,
373,
9626,
261,
6484,
357,
1959,
8,
262,
3756,
30664,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5824,
33411,
3756,
62,
1416,
11934,
796,
366,
1082,
261,
481,
1789,
82,
357,
1959,
16725,
... |
Who is moving from Treviso with a loan return? | SELECT name FROM table_name_42 WHERE moving_from = "treviso" AND type = "loan return" | [
8241,
318,
3867,
422,
4700,
4703,
78,
351,
257,
8063,
1441,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3682,
33411,
3867,
62,
6738,
796,
366,
33945,
4703,
78,
1,
5357,
2099,
796,
366,
5439,
272,
1441,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3867,
422,
4700,
4703,
78,
351,
257,
8063,
1441,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3682,
33411,
3867,
62,
6738,
796,
366,
33945,
4703,
78,
1,
5357,
2099,
796,
366,
5439,
272,
1441,
1
] |
What is the lowest # in Atlanta, GA with the Georgia Bulldogs as an opponent? | SELECT MIN("#") FROM table_20212 WHERE "Location" = 'Atlanta, GA' AND "Opponent" = 'Georgia Bulldogs' | [
2061,
318,
262,
9016,
1303,
287,
9371,
11,
14545,
351,
262,
7859,
34969,
355,
281,
6125,
30,
46506,
20625,
7203,
2,
4943,
16034,
3084,
62,
19004,
1065,
33411,
366,
14749,
1,
796,
705,
43482,
11,
14545,
6,
5357,
366,
27524,
3471,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1303,
287,
9371,
11,
14545,
351,
262,
7859,
34969,
355,
281,
6125,
30,
46506,
20625,
7203,
2,
4943,
16034,
3084,
62,
19004,
1065,
33411,
366,
14749,
1,
796,
705,
43482,
11,
14545,
6,
5357,
366,
27524,
3471,
1,
... |
how many patients admitted before the year 2167 had an emergency admission type? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.admityear < "2167" | [
4919,
867,
3871,
6848,
878,
262,
614,
362,
21940,
550,
281,
6334,
13938,
2099,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6848,
878,
262,
614,
362,
21940,
550,
281,
6334,
13938,
2099,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
... |
Who used the Ford Cosworth DFV 3.0 v8 engine in rounds 3-12, with a G tire? | SELECT "Driver" FROM table_10603 WHERE "Engine" = 'ford cosworth dfv 3.0 v8' AND "Rounds" = '3-12' AND "Tyre" = 'g' | [
8241,
973,
262,
8092,
10437,
9268,
36323,
53,
513,
13,
15,
410,
23,
3113,
287,
9196,
513,
12,
1065,
11,
351,
257,
402,
15867,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
940,
35642,
33411,
366,
13798,
1,
796,
705,
3841,
8615,
9268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
973,
262,
8092,
10437,
9268,
36323,
53,
513,
13,
15,
410,
23,
3113,
287,
9196,
513,
12,
1065,
11,
351,
257,
402,
15867,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
940,
35642,
33411,
366,
13798,
1,
796,
705,
3841,
8615,
9268,
... |
What is the average attendance for the New York Jets? | SELECT AVG(attendance) FROM table_name_98 WHERE opponent = "new york jets" | [
2061,
318,
262,
2811,
14858,
329,
262,
968,
1971,
14728,
30,
46506,
35224,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
6125,
796,
366,
3605,
331,
967,
20792,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14858,
329,
262,
968,
1971,
14728,
30,
46506,
35224,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
6125,
796,
366,
3605,
331,
967,
20792,
1
] |
give me the top four of the most common output events? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 4) | [
26535,
502,
262,
1353,
1440,
286,
262,
749,
2219,
5072,
2995,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
312,
16034,
357,
46506,
38701,
1133,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
1440,
286,
262,
749,
2219,
5072,
2995,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
312,
16034,
357,
46506,
38701,
1133,... |
give the number of patients whose drug code is desi30o and lab test fluid is joint fluid. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "DESI30O" AND lab.fluid = "Joint Fluid" | [
26535,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
748,
72,
1270,
78,
290,
2248,
1332,
11711,
318,
6466,
11711,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
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... | [
26535,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
748,
72,
1270,
78,
290,
2248,
1332,
11711,
318,
6466,
11711,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
340... |
Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes', could you rank by the names from low to high please? | SELECT Name, SUM(Num_Employees) FROM department AS T1 JOIN management AS T2 ON T1.department_ID = T2.department_ID WHERE T2.temporary_acting = 'Yes' GROUP BY Name ORDER BY Name | [
15307,
262,
1438,
290,
1271,
286,
4409,
329,
262,
13346,
5257,
416,
6665,
3025,
8584,
7205,
1988,
318,
705,
5297,
3256,
714,
345,
4279,
416,
262,
3891,
422,
1877,
284,
1029,
3387,
30,
46506,
6530,
11,
35683,
7,
33111,
62,
29733,
2841,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
290,
1271,
286,
4409,
329,
262,
13346,
5257,
416,
6665,
3025,
8584,
7205,
1988,
318,
705,
5297,
3256,
714,
345,
4279,
416,
262,
3891,
422,
1877,
284,
1029,
3387,
30,
46506,
6530,
11,
35683,
7,
33111,
62,
29733,
2841,... |
Suggested Tag Synonyms with no Votes. | SELECT 'site://tags/' + TargetTagName + '/synonyms|' + SourceTagName AS Synonym, TargetTagName AS Original, OwnerUserId AS "user_link" FROM TagSynonyms WHERE Score = 0 AND ApprovalDate IS NULL ORDER BY 'user_link' DESC | [
43857,
276,
17467,
16065,
43612,
351,
645,
39584,
13,
46506,
705,
15654,
1378,
31499,
14,
6,
1343,
12744,
24835,
5376,
1343,
31051,
28869,
43612,
91,
6,
1343,
8090,
24835,
5376,
7054,
16065,
5177,
11,
12744,
24835,
5376,
7054,
13745,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
43857,
276,
17467,
16065,
43612,
351,
645,
39584,
13,
46506,
705,
15654,
1378,
31499,
14,
6,
1343,
12744,
24835,
5376,
1343,
31051,
28869,
43612,
91,
6,
1343,
8090,
24835,
5376,
7054,
16065,
5177,
11,
12744,
24835,
5376,
7054,
13745,
11,
... |
What is the school, when the Team is Senators? | SELECT school FROM table_name_56 WHERE team = "senators" | [
2061,
318,
262,
1524,
11,
618,
262,
4816,
318,
22195,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
3980,
33411,
1074,
796,
366,
6248,
2024,
1
] | [
1,
1,
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,
1524,
11,
618,
262,
4816,
318,
22195,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
3980,
33411,
1074,
796,
366,
6248,
2024,
1
] |
What day did Emerson Fittipaldi win the Spanish Grand Prix? | SELECT "Date" FROM table_77882 WHERE "Winning driver" = 'emerson fittipaldi' AND "Race" = 'spanish grand prix' | [
2061,
1110,
750,
41886,
376,
715,
541,
37566,
1592,
262,
7897,
5675,
23832,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3324,
42980,
33411,
366,
16643,
768,
4639,
1,
796,
705,
368,
882,
43500,
541,
37566,
6,
5357,
366,
35157,
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
] | [
2061,
1110,
750,
41886,
376,
715,
541,
37566,
1592,
262,
7897,
5675,
23832,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3324,
42980,
33411,
366,
16643,
768,
4639,
1,
796,
705,
368,
882,
43500,
541,
37566,
6,
5357,
366,
35157,
1,
796,
... |
who was the only judge appointed by mckinley ? | SELECT "judge" FROM table_203_563 WHERE "appointed by" = 'mckinley' | [
8727,
373,
262,
691,
5052,
9899,
416,
285,
694,
259,
1636,
5633,
46506,
366,
10456,
469,
1,
16034,
3084,
62,
22416,
62,
46572,
33411,
366,
32924,
416,
1,
796,
705,
76,
694,
259,
1636,
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
] | [
8727,
373,
262,
691,
5052,
9899,
416,
285,
694,
259,
1636,
5633,
46506,
366,
10456,
469,
1,
16034,
3084,
62,
22416,
62,
46572,
33411,
366,
32924,
416,
1,
796,
705,
76,
694,
259,
1636,
6
] |
How many points did Newport RFC get? | SELECT points FROM table_name_58 WHERE club = "newport rfc" | [
2437,
867,
2173,
750,
36538,
30978,
651,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
3365,
33411,
3430,
796,
366,
3605,
634,
374,
16072,
1
] | [
1,
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,
2173,
750,
36538,
30978,
651,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
3365,
33411,
3430,
796,
366,
3605,
634,
374,
16072,
1
] |
Draw a pie chart for what are the names and account balances of customers with the letter a in their names? | SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' | [
25302,
257,
2508,
8262,
329,
644,
389,
262,
3891,
290,
1848,
25223,
286,
4297,
351,
262,
3850,
257,
287,
511,
3891,
30,
46506,
9378,
62,
3672,
11,
697,
62,
6893,
16034,
6491,
33411,
9378,
62,
3672,
34178,
705,
4,
64,
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,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2508,
8262,
329,
644,
389,
262,
3891,
290,
1848,
25223,
286,
4297,
351,
262,
3850,
257,
287,
511,
3891,
30,
46506,
9378,
62,
3672,
11,
697,
62,
6893,
16034,
6491,
33411,
9378,
62,
3672,
34178,
705,
4,
64,
4,
6
] |
Where was the game played when the final score was 35-62? | SELECT stadium FROM table_name_71 WHERE final_score = "35-62" | [
8496,
373,
262,
983,
2826,
618,
262,
2457,
4776,
373,
3439,
12,
5237,
30,
46506,
10308,
16034,
3084,
62,
3672,
62,
4869,
33411,
2457,
62,
26675,
796,
366,
2327,
12,
5237,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
983,
2826,
618,
262,
2457,
4776,
373,
3439,
12,
5237,
30,
46506,
10308,
16034,
3084,
62,
3672,
62,
4869,
33411,
2457,
62,
26675,
796,
366,
2327,
12,
5237,
1
] |
What is the club the used aykut kocaman as the replacement? | SELECT club FROM table_name_22 WHERE replacement = "aykut kocaman" | [
2061,
318,
262,
3430,
262,
973,
38762,
74,
315,
479,
420,
10546,
355,
262,
9014,
30,
46506,
3430,
16034,
3084,
62,
3672,
62,
1828,
33411,
9014,
796,
366,
323,
74,
315,
479,
420,
10546,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3430,
262,
973,
38762,
74,
315,
479,
420,
10546,
355,
262,
9014,
30,
46506,
3430,
16034,
3084,
62,
3672,
62,
1828,
33411,
9014,
796,
366,
323,
74,
315,
479,
420,
10546,
1
] |
renal insufficiency ( creatinine clearance < 30 ml / mn. ) ; | SELECT * FROM table_dev_61 WHERE renal_disease = 1 OR creatinine_clearance_cl < 30 | [
918,
282,
1035,
1648,
19777,
357,
1827,
259,
500,
19745,
1279,
1542,
25962,
1220,
285,
77,
13,
1267,
2162,
46506,
1635,
16034,
3084,
62,
7959,
62,
5333,
33411,
44375,
62,
67,
786,
589,
796,
352,
6375,
1827,
259,
500,
62,
20063,
590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
918,
282,
1035,
1648,
19777,
357,
1827,
259,
500,
19745,
1279,
1542,
25962,
1220,
285,
77,
13,
1267,
2162,
46506,
1635,
16034,
3084,
62,
7959,
62,
5333,
33411,
44375,
62,
67,
786,
589,
796,
352,
6375,
1827,
259,
500,
62,
20063,
590,
... |
mention the drug type and route of the drug code onda4i. | SELECT prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = "ONDA4I" | [
434,
295,
262,
2563,
2099,
290,
6339,
286,
262,
2563,
2438,
319,
6814,
19,
72,
13,
46506,
34092,
13,
30349,
62,
4906,
11,
34092,
13,
38629,
16034,
34092,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
1340,
5631,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
434,
295,
262,
2563,
2099,
290,
6339,
286,
262,
2563,
2438,
319,
6814,
19,
72,
13,
46506,
34092,
13,
30349,
62,
4906,
11,
34092,
13,
38629,
16034,
34092,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
1340,
5631,
1... |
How many votes did Jeannemarie Devolites Davis get in 1995-Special? | SELECT "Votes" FROM table_62849 WHERE "Opponent" = 'jeannemarie devolites davis' AND "Year" = '1995-special' | [
2437,
867,
5690,
750,
3852,
1236,
368,
49173,
6245,
349,
2737,
7802,
651,
287,
8735,
12,
13409,
30,
46506,
366,
53,
6421,
1,
16034,
3084,
62,
48200,
2920,
33411,
366,
27524,
3471,
1,
796,
705,
18015,
1236,
368,
49173,
1614,
349,
2737,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5690,
750,
3852,
1236,
368,
49173,
6245,
349,
2737,
7802,
651,
287,
8735,
12,
13409,
30,
46506,
366,
53,
6421,
1,
16034,
3084,
62,
48200,
2920,
33411,
366,
27524,
3471,
1,
796,
705,
18015,
1236,
368,
49173,
1614,
349,
2737,... |
What is the average number of rounds for billy hicks who had an overall pick number bigger than 310? | SELECT AVG("Round") FROM table_77231 WHERE "Overall" > '310' AND "Name" = 'billy hicks' | [
2061,
318,
262,
2811,
1271,
286,
9196,
329,
2855,
88,
289,
3378,
508,
550,
281,
4045,
2298,
1271,
5749,
621,
28947,
30,
46506,
35224,
7203,
22685,
4943,
16034,
3084,
62,
3324,
25667,
33411,
366,
16350,
1,
1875,
705,
26717,
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,
318,
262,
2811,
1271,
286,
9196,
329,
2855,
88,
289,
3378,
508,
550,
281,
4045,
2298,
1271,
5749,
621,
28947,
30,
46506,
35224,
7203,
22685,
4943,
16034,
3084,
62,
3324,
25667,
33411,
366,
16350,
1,
1875,
705,
26717,
6,
5357,
36... |
What is the number of each allergie type? Return a bar chart. | SELECT AllergyType, COUNT(AllergyType) FROM Allergy_Type GROUP BY AllergyType | [
2061,
318,
262,
1271,
286,
1123,
30975,
494,
2099,
30,
8229,
257,
2318,
8262,
13,
46506,
1439,
26079,
6030,
11,
327,
28270,
7,
3237,
26079,
6030,
8,
16034,
1439,
26079,
62,
6030,
44441,
11050,
1439,
26079,
6030
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
1123,
30975,
494,
2099,
30,
8229,
257,
2318,
8262,
13,
46506,
1439,
26079,
6030,
11,
327,
28270,
7,
3237,
26079,
6030,
8,
16034,
1439,
26079,
62,
6030,
44441,
11050,
1439,
26079,
6030
] |
How many courses each teacher taught? Show me a stacked bar chart The x-axis is the instructor's first name and group by course code, and display y axis in ascending order please. | SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM GROUP BY CRS_CODE, EMP_FNAME ORDER BY COUNT(EMP_FNAME) | [
2437,
867,
10902,
1123,
4701,
7817,
30,
5438,
502,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
262,
21187,
338,
717,
1438,
290,
1448,
416,
1781,
2438,
11,
290,
3359,
331,
16488,
287,
41988,
1502,
3387,
13,
46506,
38144,
62,
37,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10902,
1123,
4701,
7817,
30,
5438,
502,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
262,
21187,
338,
717,
1438,
290,
1448,
416,
1781,
2438,
11,
290,
3359,
331,
16488,
287,
41988,
1502,
3387,
13,
46506,
38144,
62,
37,... |
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the average of employee_id , and group by attribute job_id, show by the names in asc. | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
905,
416,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
905,
416,
... |
WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV? | SELECT AVG("Year") FROM table_79090 WHERE "Bronze" = 'valentin novikov' | [
32971,
32914,
33930,
317,
11177,
1340,
21211,
3963,
26173,
3525,
1268,
8005,
12861,
42,
8874,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
3720,
42534,
33411,
366,
18760,
2736,
1,
796,
705,
2100,
31371,
645,
28930,
709,
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
] | [
32971,
32914,
33930,
317,
11177,
1340,
21211,
3963,
26173,
3525,
1268,
8005,
12861,
42,
8874,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
3720,
42534,
33411,
366,
18760,
2736,
1,
796,
705,
2100,
31371,
645,
28930,
709,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, find last_name and commission_pct , and visualize them by a bar chart, and sort y axis from high to low order. | SELECT LAST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1064,
938,
62,
3672,
290,
5810,
62,
79,
310,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
3297,
331,
16488,
422,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
938,
62,
3672,
290,
5810,
62,
79,
310,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
3297,
331,
16488,
422,
1... |
What is Release Date, when Title is Aladdin Time? | SELECT release_date FROM table_name_31 WHERE title = "aladdin time" | [
2061,
318,
13868,
7536,
11,
618,
11851,
318,
978,
46782,
3862,
30,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
3132,
33411,
3670,
796,
366,
282,
46782,
640,
1
] | [
1,
1,
1,
1,
1,
1,
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,
13868,
7536,
11,
618,
11851,
318,
978,
46782,
3862,
30,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
3132,
33411,
3670,
796,
366,
282,
46782,
640,
1
] |
what is the number of winning outcomes ? | SELECT COUNT(*) FROM table_204_724 WHERE "outcome" = 'winner' | [
10919,
318,
262,
1271,
286,
5442,
10906,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
22,
1731,
33411,
366,
448,
2958,
1,
796,
705,
39791,
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
] | [
10919,
318,
262,
1271,
286,
5442,
10906,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
22,
1731,
33411,
366,
448,
2958,
1,
796,
705,
39791,
6
] |
how long was the canadair sabre in service ? | SELECT "service\nperiod" - "service\nperiod" FROM table_204_161 WHERE "name" = 'canadair sabre' | [
4919,
890,
373,
262,
460,
324,
958,
17463,
260,
287,
2139,
5633,
46506,
366,
15271,
59,
77,
41007,
1,
532,
366,
15271,
59,
77,
41007,
1,
16034,
3084,
62,
18638,
62,
25948,
33411,
366,
3672,
1,
796,
705,
5171,
324,
958,
17463,
260,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
890,
373,
262,
460,
324,
958,
17463,
260,
287,
2139,
5633,
46506,
366,
15271,
59,
77,
41007,
1,
532,
366,
15271,
59,
77,
41007,
1,
16034,
3084,
62,
18638,
62,
25948,
33411,
366,
3672,
1,
796,
705,
5171,
324,
958,
17463,
260,
... |
what is diagnoses short title and drug type of subject id 74032? | SELECT diagnoses.short_title, prescriptions.drug_type FROM diagnoses INNER JOIN prescriptions ON diagnoses.hadm_id = prescriptions.hadm_id WHERE diagnoses.subject_id = "74032" | [
10919,
318,
40567,
1790,
3670,
290,
2563,
2099,
286,
2426,
4686,
767,
1821,
2624,
30,
46506,
40567,
13,
19509,
62,
7839,
11,
34092,
13,
30349,
62,
4906,
16034,
40567,
3268,
21479,
32357,
1268,
34092,
6177,
40567,
13,
18108,
76,
62,
312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
40567,
1790,
3670,
290,
2563,
2099,
286,
2426,
4686,
767,
1821,
2624,
30,
46506,
40567,
13,
19509,
62,
7839,
11,
34092,
13,
30349,
62,
4906,
16034,
40567,
3268,
21479,
32357,
1268,
34092,
6177,
40567,
13,
18108,
76,
62,
312,... |
What is the series No when the season 4 # is 18? | SELECT MIN AS № FROM table_28195898_1 WHERE _number = 18 | [
2061,
318,
262,
2168,
1400,
618,
262,
1622,
604,
1303,
318,
1248,
30,
46506,
20625,
7054,
2343,
226,
244,
16034,
3084,
62,
2078,
1129,
3365,
4089,
62,
16,
33411,
4808,
17618,
796,
1248
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2168,
1400,
618,
262,
1622,
604,
1303,
318,
1248,
30,
46506,
20625,
7054,
2343,
226,
244,
16034,
3084,
62,
2078,
1129,
3365,
4089,
62,
16,
33411,
4808,
17618,
796,
1248
] |
Name the least series number with production code of 717 and season number less than 17 | SELECT MIN(series__number) FROM table_name_41 WHERE production_code = 717 AND season__number < 17 | [
5376,
262,
1551,
2168,
1271,
351,
3227,
2438,
286,
767,
1558,
290,
1622,
1271,
1342,
621,
1596,
46506,
20625,
7,
25076,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
3227,
62,
8189,
796,
767,
1558,
5357,
1622,
834,
17618,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1551,
2168,
1271,
351,
3227,
2438,
286,
767,
1558,
290,
1622,
1271,
1342,
621,
1596,
46506,
20625,
7,
25076,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
3227,
62,
8189,
796,
767,
1558,
5357,
1622,
834,
17618,
127... |
What is the series score of the game on May 6? | SELECT series FROM table_name_55 WHERE date = "may 6" | [
2061,
318,
262,
2168,
4776,
286,
262,
983,
319,
1737,
718,
30,
46506,
2168,
16034,
3084,
62,
3672,
62,
2816,
33411,
3128,
796,
366,
11261,
718,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2168,
4776,
286,
262,
983,
319,
1737,
718,
30,
46506,
2168,
16034,
3084,
62,
3672,
62,
2816,
33411,
3128,
796,
366,
11261,
718,
1
] |
during their current hospital encounter what was the insurance name of patient 83062? | SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 83062 AND admissions.dischtime IS NULL | [
42122,
511,
1459,
4436,
8791,
644,
373,
262,
5096,
1438,
286,
5827,
807,
1270,
5237,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
807,
1270,
5237,
5357,
25349,
13,
6381,
354,
2435,
3180,
15697
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
42122,
511,
1459,
4436,
8791,
644,
373,
262,
5096,
1438,
286,
5827,
807,
1270,
5237,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
807,
1270,
5237,
5357,
25349,
13,
6381,
354,
2435,
3180,
15697
] |
What was the result for the game on October 5? | SELECT "Result" FROM table_61318 WHERE "Date" = 'october 5' | [
2061,
373,
262,
1255,
329,
262,
983,
319,
3267,
642,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
47512,
1507,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
642,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
329,
262,
983,
319,
3267,
642,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
47512,
1507,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
642,
6
] |
What is the Australian National Kennel Council Toy Dogs Group with papillon as the Kennel Club breed? | SELECT australian_national_kennel_council_toy_dogs_group FROM table_name_98 WHERE the_kennel_club__uk__toy_group = "papillon" | [
2061,
318,
262,
6638,
2351,
7158,
417,
4281,
10977,
21367,
4912,
351,
20461,
23027,
355,
262,
7158,
417,
6289,
15939,
30,
46506,
38132,
1373,
666,
62,
14648,
62,
74,
1697,
417,
62,
66,
977,
2856,
62,
83,
726,
62,
22242,
62,
8094,
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... | [
2061,
318,
262,
6638,
2351,
7158,
417,
4281,
10977,
21367,
4912,
351,
20461,
23027,
355,
262,
7158,
417,
6289,
15939,
30,
46506,
38132,
1373,
666,
62,
14648,
62,
74,
1697,
417,
62,
66,
977,
2856,
62,
83,
726,
62,
22242,
62,
8094,
16... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of manufacturer over the name , and group by attribute name by a bar chart, show in asc by the total number. | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Manufacturer | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
11554,
625,
262,
1438,
837,
290,
1448,
416,
11688,
1438,
416,
257,
2318,
8262,
11,
905,
287,
10570,
416,
262,
2472,
1271,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
11554,
625,
262,
1438,
837,
290,
1448,
416,
11688,
1438,
416,
257,
2318,
8262,
11,
905,
287,
10570,
416,
262,
2472,
1271,
1... |
What Player has a To par of +5 with a Score of 70-70-71-74=285? | SELECT "Player" FROM table_62408 WHERE "To par" = '+5' AND "Score" = '70-70-71-74=285' | [
2061,
7853,
468,
257,
1675,
1582,
286,
1343,
20,
351,
257,
15178,
286,
4317,
12,
2154,
12,
4869,
12,
4524,
28,
26279,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
21,
1731,
2919,
33411,
366,
2514,
1582,
1,
796,
705,
10,
20,
6,
5357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
7853,
468,
257,
1675,
1582,
286,
1343,
20,
351,
257,
15178,
286,
4317,
12,
2154,
12,
4869,
12,
4524,
28,
26279,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
21,
1731,
2919,
33411,
366,
2514,
1582,
1,
796,
705,
10,
20,
6,
5357,... |
anc < 500 / mm3 | SELECT * FROM table_train_61 WHERE anc < 500 | [
1192,
1279,
5323,
1220,
8085,
18,
46506,
1635,
16034,
3084,
62,
27432,
62,
5333,
33411,
281,
66,
1279,
5323
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1192,
1279,
5323,
1220,
8085,
18,
46506,
1635,
16034,
3084,
62,
27432,
62,
5333,
33411,
281,
66,
1279,
5323
] |
what was the maximum monthly number of patients who had abn find-stool contents this year? | SELECT MAX(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'abn find-stool contents') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TI... | [
10919,
373,
262,
5415,
9651,
1271,
286,
3871,
508,
550,
450,
77,
1064,
12,
301,
970,
10154,
428,
614,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
40567,
62,
291,
67,
13,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
5415,
9651,
1271,
286,
3871,
508,
550,
450,
77,
1064,
12,
301,
970,
10154,
428,
614,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
40567,
62,
291,
67,
13,
18... |
Show the names of editors of age either 24 or 25. | SELECT Name FROM editor WHERE Age = 24 OR Age = 25 | [
15307,
262,
3891,
286,
15719,
286,
2479,
2035,
1987,
393,
1679,
13,
46506,
6530,
16034,
5464,
33411,
7129,
796,
1987,
6375,
7129,
796,
1679
] | [
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,
3891,
286,
15719,
286,
2479,
2035,
1987,
393,
1679,
13,
46506,
6530,
16034,
5464,
33411,
7129,
796,
1987,
6375,
7129,
796,
1679
] |
Users with highest reputation and no gold badge. | WITH badges_cte AS (SELECT UserId AS uid, SUM(CASE WHEN Class = 1 THEN 1 ELSE 0 END) AS gold, SUM(CASE WHEN Class = 2 THEN 1 ELSE 0 END) AS silver, SUM(CASE WHEN Class = 3 THEN 1 ELSE 0 END) AS bronze, COUNT(Id) AS total FROM Badges GROUP BY UserId) SELECT u.Id AS "user_link", u.Reputation, b.gold, b.silver, b.bronze F... | [
14490,
351,
4511,
8507,
290,
645,
3869,
23009,
13,
54,
10554,
37583,
62,
310,
68,
7054,
357,
46506,
11787,
7390,
7054,
334,
312,
11,
35683,
7,
34,
11159,
42099,
5016,
796,
352,
42243,
352,
17852,
5188,
657,
23578,
8,
7054,
3869,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
351,
4511,
8507,
290,
645,
3869,
23009,
13,
54,
10554,
37583,
62,
310,
68,
7054,
357,
46506,
11787,
7390,
7054,
334,
312,
11,
35683,
7,
34,
11159,
42099,
5016,
796,
352,
42243,
352,
17852,
5188,
657,
23578,
8,
7054,
3869,
11,
... |
What is Poles, when Races is less than 16? | SELECT "Poles" FROM table_44454 WHERE "Races" < '16' | [
2061,
318,
45631,
11,
618,
45134,
318,
1342,
621,
1467,
30,
46506,
366,
47,
4316,
1,
16034,
3084,
62,
2598,
34229,
33411,
366,
49,
2114,
1,
1279,
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
] | [
2061,
318,
45631,
11,
618,
45134,
318,
1342,
621,
1467,
30,
46506,
366,
47,
4316,
1,
16034,
3084,
62,
2598,
34229,
33411,
366,
49,
2114,
1,
1279,
705,
1433,
6
] |
how many dates had an attendance of over 60,000 ? | SELECT COUNT("date") FROM table_203_598 WHERE "attendance" > 60000 | [
4919,
867,
9667,
550,
281,
14858,
286,
625,
3126,
11,
830,
5633,
46506,
327,
28270,
7203,
4475,
4943,
16034,
3084,
62,
22416,
62,
41292,
33411,
366,
1078,
437,
590,
1,
1875,
718,
2388
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9667,
550,
281,
14858,
286,
625,
3126,
11,
830,
5633,
46506,
327,
28270,
7203,
4475,
4943,
16034,
3084,
62,
22416,
62,
41292,
33411,
366,
1078,
437,
590,
1,
1875,
718,
2388
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.