instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What is the minimum year born for strasbourg? | SELECT MIN(year_born) FROM table_12962773_13 WHERE current_club = "Strasbourg" | [
2061,
318,
262,
5288,
614,
4642,
329,
965,
292,
24256,
30,
46506,
20625,
7,
1941,
62,
6286,
8,
16034,
3084,
62,
1065,
4846,
1983,
4790,
62,
1485,
33411,
1459,
62,
18664,
796,
366,
1273,
8847,
24256,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
4642,
329,
965,
292,
24256,
30,
46506,
20625,
7,
1941,
62,
6286,
8,
16034,
3084,
62,
1065,
4846,
1983,
4790,
62,
1485,
33411,
1459,
62,
18664,
796,
366,
1273,
8847,
24256,
1
] |
thank you i also need to travel next wednesday evening from DALLAS to SAN FRANCISCO | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((flight.departure_time BETWEEN 1800 AND 2200) AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_... | [
40716,
345,
1312,
635,
761,
284,
3067,
1306,
29445,
3462,
6180,
422,
360,
7036,
1921,
284,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
40716,
345,
1312,
635,
761,
284,
3067,
1306,
29445,
3462,
6180,
422,
360,
7036,
1921,
284,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
... |
How many points were awarded to the Ford DFZ 3.5 V8? | SELECT SUM(points) FROM table_name_86 WHERE engine_s_ = "ford dfz 3.5 v8" | [
2437,
867,
2173,
547,
11343,
284,
262,
8092,
36323,
57,
513,
13,
20,
569,
23,
30,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
4521,
33411,
3113,
62,
82,
62,
796,
366,
3841,
47764,
89,
513,
13,
20,
410,
23,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
11343,
284,
262,
8092,
36323,
57,
513,
13,
20,
569,
23,
30,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
4521,
33411,
3113,
62,
82,
62,
796,
366,
3841,
47764,
89,
513,
13,
20,
410,
23,
1
] |
For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade. | SELECT grade, COUNT(DISTINCT classroom), COUNT(*) FROM list GROUP BY grade | [
1890,
1123,
9559,
11,
989,
262,
9559,
11,
262,
1271,
286,
32579,
287,
543,
340,
318,
7817,
290,
262,
2472,
1271,
286,
2444,
287,
262,
9559,
13,
46506,
9559,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
15806,
828,
327,
28270,
7,
28104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
1123,
9559,
11,
989,
262,
9559,
11,
262,
1271,
286,
32579,
287,
543,
340,
318,
7817,
290,
262,
2472,
1271,
286,
2444,
287,
262,
9559,
13,
46506,
9559,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
15806,
828,
327,
28270,
7,
28104,
... |
what is the average 60 to 64 when 50 to 54 is less than 2,054, 35 to 39 is more than 1,704, 30 to 34 is less than 1,381 and oblast\age is evenkia? | SELECT AVG("60 to 64") FROM table_46411 WHERE "50 to 54" < '2,054' AND "35 to 39" > '1,704' AND "30 to 34" < '1,381' AND "Oblast\\Age" = 'evenkia' | [
10919,
318,
262,
2811,
3126,
284,
5598,
618,
2026,
284,
7175,
318,
1342,
621,
362,
11,
2713,
19,
11,
3439,
284,
5014,
318,
517,
621,
352,
11,
32869,
11,
1542,
284,
4974,
318,
1342,
621,
352,
11,
36626,
290,
909,
12957,
59,
496,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
3126,
284,
5598,
618,
2026,
284,
7175,
318,
1342,
621,
362,
11,
2713,
19,
11,
3439,
284,
5014,
318,
517,
621,
352,
11,
32869,
11,
1542,
284,
4974,
318,
1342,
621,
352,
11,
36626,
290,
909,
12957,
59,
496,
31... |
What source showed Brian Moran at 19%? | SELECT source FROM table_21535453_1 WHERE brian_moran = "19%" | [
2061,
2723,
3751,
8403,
42705,
379,
678,
4,
30,
46506,
2723,
16034,
3084,
62,
23349,
2327,
36625,
62,
16,
33411,
275,
4484,
62,
4491,
272,
796,
366,
1129,
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
] | [
2061,
2723,
3751,
8403,
42705,
379,
678,
4,
30,
46506,
2723,
16034,
3084,
62,
23349,
2327,
36625,
62,
16,
33411,
275,
4484,
62,
4491,
272,
796,
366,
1129,
39658
] |
Find the name and capacity of products with price greater than 700 (in USD). | SELECT catalog_entry_name, capacity FROM catalog_contents WHERE price_in_dollars > 700 | [
16742,
262,
1438,
290,
5339,
286,
3186,
351,
2756,
3744,
621,
13037,
357,
259,
11403,
737,
46506,
18388,
62,
13000,
62,
3672,
11,
5339,
16034,
18388,
62,
3642,
658,
33411,
2756,
62,
259,
62,
67,
692,
945,
1875,
13037
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
290,
5339,
286,
3186,
351,
2756,
3744,
621,
13037,
357,
259,
11403,
737,
46506,
18388,
62,
13000,
62,
3672,
11,
5339,
16034,
18388,
62,
3642,
658,
33411,
2756,
62,
259,
62,
67,
692,
945,
1875,
13037
] |
What was Jim Colbert's score? | SELECT score FROM table_name_72 WHERE player = "jim colbert" | [
2061,
373,
5395,
31368,
338,
4776,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4761,
33411,
2137,
796,
366,
73,
320,
951,
4835,
1
] | [
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,
5395,
31368,
338,
4776,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4761,
33411,
2137,
796,
366,
73,
320,
951,
4835,
1
] |
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of hire_date and the sum of department_id bin hire_date by time. | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
6158,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
6158,
... |
What event has a 0:49 time? | SELECT "Event" FROM table_44577 WHERE "Time" = '0:49' | [
2061,
1785,
468,
257,
657,
25,
2920,
640,
30,
46506,
366,
9237,
1,
16034,
3084,
62,
43489,
3324,
33411,
366,
7575,
1,
796,
705,
15,
25,
2920,
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,
1785,
468,
257,
657,
25,
2920,
640,
30,
46506,
366,
9237,
1,
16034,
3084,
62,
43489,
3324,
33411,
366,
7575,
1,
796,
705,
15,
25,
2920,
6
] |
Name the total number of tests won by australia for series 10 | SELECT COUNT("Tests won by Australia") FROM table_27755 WHERE "Series" = '10' | [
5376,
262,
2472,
1271,
286,
5254,
1839,
416,
38132,
1373,
544,
329,
2168,
838,
46506,
327,
28270,
7203,
51,
3558,
1839,
416,
4505,
4943,
16034,
3084,
62,
1983,
38172,
33411,
366,
27996,
1,
796,
705,
940,
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
] | [
5376,
262,
2472,
1271,
286,
5254,
1839,
416,
38132,
1373,
544,
329,
2168,
838,
46506,
327,
28270,
7203,
51,
3558,
1839,
416,
4505,
4943,
16034,
3084,
62,
1983,
38172,
33411,
366,
27996,
1,
796,
705,
940,
6
] |
How many times are provided for the boat with LOA of 20.49? | SELECT COUNT("Elapsed Time d:hh:mm:ss") FROM table_27821 WHERE "LOA (Metres)" = '20.49' | [
2437,
867,
1661,
389,
2810,
329,
262,
8848,
351,
17579,
32,
286,
1160,
13,
2920,
30,
46506,
327,
28270,
7203,
9527,
28361,
3862,
288,
25,
12337,
25,
3020,
25,
824,
4943,
16034,
3084,
62,
25870,
2481,
33411,
366,
21982,
32,
357,
9171,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
389,
2810,
329,
262,
8848,
351,
17579,
32,
286,
1160,
13,
2920,
30,
46506,
327,
28270,
7203,
9527,
28361,
3862,
288,
25,
12337,
25,
3020,
25,
824,
4943,
16034,
3084,
62,
25870,
2481,
33411,
366,
21982,
32,
357,
9171,
... |
What is the denomination for the stamp issued 8 January 2009? | SELECT denomination FROM table_name_34 WHERE date_of_issue = "8 january 2009" | [
2061,
318,
262,
47491,
329,
262,
17977,
4884,
807,
3269,
3717,
30,
46506,
47491,
16034,
3084,
62,
3672,
62,
2682,
33411,
3128,
62,
1659,
62,
21949,
796,
366,
23,
42897,
2838,
3717,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
47491,
329,
262,
17977,
4884,
807,
3269,
3717,
30,
46506,
47491,
16034,
3084,
62,
3672,
62,
2682,
33411,
3128,
62,
1659,
62,
21949,
796,
366,
23,
42897,
2838,
3717,
1
] |
What is the average longitude of stations that never had bike availability more than 10? | SELECT AVG(long) FROM station WHERE NOT id IN (SELECT station_id FROM status GROUP BY station_id HAVING MAX(bikes_available) > 10) | [
2061,
318,
262,
2811,
890,
3984,
286,
8985,
326,
1239,
550,
7161,
11500,
517,
621,
838,
30,
46506,
35224,
7,
6511,
8,
16034,
4429,
33411,
5626,
4686,
3268,
357,
46506,
4429,
62,
312,
16034,
3722,
44441,
11050,
4429,
62,
312,
367,
1011... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
890,
3984,
286,
8985,
326,
1239,
550,
7161,
11500,
517,
621,
838,
30,
46506,
35224,
7,
6511,
8,
16034,
4429,
33411,
5626,
4686,
3268,
357,
46506,
4429,
62,
312,
16034,
3722,
44441,
11050,
4429,
62,
312,
367,
1011... |
For those records from the products and each product's manufacturer, find name and code , and group by attribute name, and visualize them by a bar chart, and I want to order in asc by the x axis. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
287,
10570,
416,
262,
2124,
16488,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
287,
10570,
416,
262,
2124,
16488,
1... |
Which Season has an Agg of 4 1, and an Opponent of rapid wien? | SELECT season FROM table_name_18 WHERE agg = "4–1" AND opponent = "rapid wien" | [
13828,
7369,
468,
281,
19015,
286,
604,
352,
11,
290,
281,
9385,
3471,
286,
5801,
266,
2013,
30,
46506,
1622,
16034,
3084,
62,
3672,
62,
1507,
33411,
4194,
796,
366,
19,
1906,
16,
1,
5357,
6125,
796,
366,
2416,
312,
266,
2013,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7369,
468,
281,
19015,
286,
604,
352,
11,
290,
281,
9385,
3471,
286,
5801,
266,
2013,
30,
46506,
1622,
16034,
3084,
62,
3672,
62,
1507,
33411,
4194,
796,
366,
19,
1906,
16,
1,
5357,
6125,
796,
366,
2416,
312,
266,
2013,
1
] |
Which Home team has a Venue of mcg? | SELECT home_team FROM table_name_32 WHERE venue = "mcg" | [
13828,
5995,
1074,
468,
257,
9932,
518,
286,
36650,
70,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2624,
33411,
14359,
796,
366,
23209,
70,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5995,
1074,
468,
257,
9932,
518,
286,
36650,
70,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2624,
33411,
14359,
796,
366,
23209,
70,
1
] |
In Tie #19, what was the name of the away team? | SELECT away_team FROM table_name_27 WHERE tie_no = "19" | [
818,
36286,
1303,
1129,
11,
644,
373,
262,
1438,
286,
262,
1497,
1074,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
1983,
33411,
9839,
62,
3919,
796,
366,
1129,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
36286,
1303,
1129,
11,
644,
373,
262,
1438,
286,
262,
1497,
1074,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
1983,
33411,
9839,
62,
3919,
796,
366,
1129,
1
] |
what were the hospital hospital admission times of patient 273 during the last year? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 273 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | [
10919,
547,
262,
4436,
4436,
13938,
1661,
286,
5827,
38549,
1141,
262,
938,
614,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
38549,
5357,
360,
1404,
2767,
12789,
7,
324,
8481,
13,
324,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
4436,
4436,
13938,
1661,
286,
5827,
38549,
1141,
262,
938,
614,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
38549,
5357,
360,
1404,
2767,
12789,
7,
324,
8481,
13,
324,
2... |
what is the tallest building in columbus ? | SELECT "name" FROM table_203_837 ORDER BY "height\nft / m" DESC LIMIT 1 | [
10919,
318,
262,
38760,
2615,
287,
951,
2178,
385,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
23,
2718,
38678,
11050,
366,
17015,
59,
77,
701,
1220,
285,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
38760,
2615,
287,
951,
2178,
385,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
23,
2718,
38678,
11050,
366,
17015,
59,
77,
701,
1220,
285,
1,
22196,
34,
27564,
2043,
352
] |
Visualize a bar chart about the distribution of ACC_Road and the sum of School_ID , and group by attribute ACC_Road. | SELECT ACC_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
29197,
290,
262,
2160,
286,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
13,
46506,
15859,
62,
29197,
11,
35683,
7,
26130,
62,
2389,
8,
16034,
9669,
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
] | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
29197,
290,
262,
2160,
286,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
13,
46506,
15859,
62,
29197,
11,
35683,
7,
26130,
62,
2389,
8,
16034,
9669,
62,
... |
Users by country with tags. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, tuser.Score FROM Users JOIN (SELECT Answers.OwnerUserId AS UserId, SUM(Answers.Score) AS Score FROM Tags JOIN PostTags ON Tags.Id = PostTags.TagId JOIN Posts ON Posts.Id = PostTags.PostId JOIN Posts AS Answers ON Answers.ParentId... | [
14490,
416,
1499,
351,
15940,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
11,
256,
7220,
13,
26595,
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... | [
14490,
416,
1499,
351,
15940,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
11,
256,
7220,
13,
26595,
16034,... |
Find the location of the club 'Pen and Paper Gaming'. | SELECT clublocation FROM club WHERE clubname = "Pen and Paper Gaming" | [
16742,
262,
4067,
286,
262,
3430,
705,
25553,
290,
14962,
14426,
4458,
46506,
3430,
24886,
16034,
3430,
33411,
3430,
3672,
796,
366,
25553,
290,
14962,
14426,
1
] | [
1,
1,
1,
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,
4067,
286,
262,
3430,
705,
25553,
290,
14962,
14426,
4458,
46506,
3430,
24886,
16034,
3430,
33411,
3430,
3672,
796,
366,
25553,
290,
14962,
14426,
1
] |
count the number of patients whose death status is 1 and age is less than 70? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.age < "70" | [
9127,
262,
1271,
286,
3871,
3025,
1918,
3722,
318,
352,
290,
2479,
318,
1342,
621,
4317,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1918,
3722,
318,
352,
290,
2479,
318,
1342,
621,
4317,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
... |
What was Ernie Els's score? | SELECT score FROM table_name_86 WHERE player = "ernie els" | [
2061,
373,
5256,
11952,
2574,
82,
338,
4776,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4521,
33411,
2137,
796,
366,
1142,
494,
1288,
82,
1
] | [
1,
1,
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,
5256,
11952,
2574,
82,
338,
4776,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4521,
33411,
2137,
796,
366,
1142,
494,
1288,
82,
1
] |
what was the first time patient 031-16123 got the wound, decubitus microbiology test since 08/2104? | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-16123')) AND microlab.culturesite = 'wound, decubitus' AND ST... | [
10919,
373,
262,
717,
640,
5827,
657,
3132,
12,
1433,
10163,
1392,
262,
11699,
11,
875,
549,
17506,
24559,
1435,
1332,
1201,
8487,
14,
17,
13464,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
717,
640,
5827,
657,
3132,
12,
1433,
10163,
1392,
262,
11699,
11,
875,
549,
17506,
24559,
1435,
1332,
1201,
8487,
14,
17,
13464,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
2... |
What distinct accelerator names are compatible with the browswers that have market share higher than 15? | SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.market_share > 15 | [
2061,
7310,
44219,
3891,
389,
11670,
351,
262,
4772,
37848,
326,
423,
1910,
2648,
2440,
621,
1315,
30,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
3672,
16034,
3992,
62,
16366,
62,
330,
7015,
1352,
7054,
309,
16,
32357,
1268,
44219,
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... | [
2061,
7310,
44219,
3891,
389,
11670,
351,
262,
4772,
37848,
326,
423,
1910,
2648,
2440,
621,
1315,
30,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
3672,
16034,
3992,
62,
16366,
62,
330,
7015,
1352,
7054,
309,
16,
32357,
1268,
44219,
62... |
Who was the artist for Spoofed title Genteel Ben in an issue later than 74? | SELECT artist FROM table_name_42 WHERE issue > 74 AND spoofed_title = "genteel ben" | [
8241,
373,
262,
6802,
329,
1338,
37711,
276,
3670,
402,
21872,
417,
3932,
287,
281,
2071,
1568,
621,
8915,
30,
46506,
6802,
16034,
3084,
62,
3672,
62,
3682,
33411,
2071,
1875,
8915,
5357,
42078,
276,
62,
7839,
796,
366,
6783,
68,
417,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
6802,
329,
1338,
37711,
276,
3670,
402,
21872,
417,
3932,
287,
281,
2071,
1568,
621,
8915,
30,
46506,
6802,
16034,
3084,
62,
3672,
62,
3682,
33411,
2071,
1875,
8915,
5357,
42078,
276,
62,
7839,
796,
366,
6783,
68,
417,... |
Tell me the bp comp 2 for % wt comp 1 of 76 | SELECT bp_comp_2__˚c_ FROM table_name_32 WHERE _percentage_wt_comp_1 = 76 | [
24446,
502,
262,
275,
79,
552,
362,
329,
4064,
266,
83,
552,
352,
286,
8684,
46506,
275,
79,
62,
5589,
62,
17,
834,
135,
248,
66,
62,
16034,
3084,
62,
3672,
62,
2624,
33411,
4808,
25067,
496,
62,
46569,
62,
5589,
62,
16,
796,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
275,
79,
552,
362,
329,
4064,
266,
83,
552,
352,
286,
8684,
46506,
275,
79,
62,
5589,
62,
17,
834,
135,
248,
66,
62,
16034,
3084,
62,
3672,
62,
2624,
33411,
4808,
25067,
496,
62,
46569,
62,
5589,
62,
16,
796,
86... |
Who wrote the episode with series number 45? | SELECT "Written by" FROM table_23501 WHERE "No. in series" = '45' | [
8241,
2630,
262,
4471,
351,
2168,
1271,
4153,
30,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
22370,
486,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
2231,
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
] | [
8241,
2630,
262,
4471,
351,
2168,
1271,
4153,
30,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
22370,
486,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
2231,
6
] |
Which week has a record of 5 2? | SELECT week FROM table_name_57 WHERE record = "5–2" | [
13828,
1285,
468,
257,
1700,
286,
642,
362,
30,
46506,
1285,
16034,
3084,
62,
3672,
62,
3553,
33411,
1700,
796,
366,
20,
1906,
17,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1285,
468,
257,
1700,
286,
642,
362,
30,
46506,
1285,
16034,
3084,
62,
3672,
62,
3553,
33411,
1700,
796,
366,
20,
1906,
17,
1
] |
How many Kent State University's are there? | SELECT COUNT("Location") FROM table_3543 WHERE "Institution" = 'Kent State University' | [
2437,
867,
8758,
1812,
2059,
338,
389,
612,
30,
46506,
327,
28270,
7203,
14749,
4943,
16034,
3084,
62,
2327,
3559,
33411,
366,
6310,
2738,
1,
796,
705,
42265,
1812,
2059,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
8758,
1812,
2059,
338,
389,
612,
30,
46506,
327,
28270,
7203,
14749,
4943,
16034,
3084,
62,
2327,
3559,
33411,
366,
6310,
2738,
1,
796,
705,
42265,
1812,
2059,
6
] |
TOP 1000 users from Bhubaneswar & Cuttack, India. Lists the top 1000 users (ranked by reputation) that are located in Bangalore, Karnataka, India according to their profile information.
Thanks to http://data.stackexchange.com/stackoverflow/query/60933/top-50-users-from-india
Edited by GNKeshava | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE LOWER(Location) LIKE '%Bhubaneswar%' OR UPPER(Location) LIKE '%Bhubaneswar%' OR Location LIKE '%Bhubaneswar%' OR LOWER(Location) LIKE '%Bhubaneshwar%' OR UPPER(Location) LIKE '%Bhubaneshwar%' O... | [
35222,
8576,
2985,
422,
16581,
549,
7305,
5767,
1222,
9712,
83,
441,
11,
3794,
13,
44968,
262,
1353,
8576,
2985,
357,
28282,
416,
8507,
8,
326,
389,
5140,
287,
46216,
11,
31625,
48088,
11,
3794,
1864,
284,
511,
7034,
1321,
13,
201,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35222,
8576,
2985,
422,
16581,
549,
7305,
5767,
1222,
9712,
83,
441,
11,
3794,
13,
44968,
262,
1353,
8576,
2985,
357,
28282,
416,
8507,
8,
326,
389,
5140,
287,
46216,
11,
31625,
48088,
11,
3794,
1864,
284,
511,
7034,
1321,
13,
201,
... |
since 04/26/2105, what was first arterial bp [systolic] for patient 31854? | SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31854)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial ... | [
20777,
8702,
14,
2075,
14,
17,
13348,
11,
644,
373,
717,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
329,
5827,
39320,
4051,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20777,
8702,
14,
2075,
14,
17,
13348,
11,
644,
373,
717,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
329,
5827,
39320,
4051,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
... |
What was the position of the player who was picked in round 22? | SELECT position FROM table_name_49 WHERE round = 22 | [
2061,
373,
262,
2292,
286,
262,
2137,
508,
373,
6497,
287,
2835,
2534,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2920,
33411,
2835,
796,
2534
] | [
1,
1,
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,
2292,
286,
262,
2137,
508,
373,
6497,
287,
2835,
2534,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2920,
33411,
2835,
796,
2534
] |
tell me the first value of rdw in a lab test of patient 005-77687 in 11/this year? | SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-77687')) AND lab.labname = 'rdw' AND DATETIME(lab.labresulttime, 'start of year') =... | [
33331,
502,
262,
717,
1988,
286,
374,
67,
86,
287,
257,
2248,
1332,
286,
5827,
3571,
20,
12,
3324,
39925,
287,
1367,
14,
5661,
614,
30,
46506,
2248,
13,
23912,
20274,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
717,
1988,
286,
374,
67,
86,
287,
257,
2248,
1332,
286,
5827,
3571,
20,
12,
3324,
39925,
287,
1367,
14,
5661,
614,
30,
46506,
2248,
13,
23912,
20274,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
... |
How many one-question users are there?. | SELECT * FROM Users WHERE Reputation = 1 | [
2437,
867,
530,
12,
25652,
2985,
389,
612,
30,
13,
46506,
1635,
16034,
18987,
33411,
1432,
7094,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
530,
12,
25652,
2985,
389,
612,
30,
13,
46506,
1635,
16034,
18987,
33411,
1432,
7094,
796,
352
] |
hypertension: defined as uncontrolled bp > 150 / 90 | SELECT * FROM table_train_114 WHERE hypertension = 1 OR systolic_blood_pressure_sbp >= 150 OR diastolic_blood_pressure_dbp >= 90 | [
12114,
11766,
3004,
25,
5447,
355,
47913,
275,
79,
1875,
6640,
1220,
4101,
46506,
1635,
16034,
3084,
62,
27432,
62,
16562,
33411,
37454,
796,
352,
6375,
827,
301,
4160,
62,
18041,
62,
36151,
62,
36299,
79,
18189,
6640,
6375,
2566,
459,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12114,
11766,
3004,
25,
5447,
355,
47913,
275,
79,
1875,
6640,
1220,
4101,
46506,
1635,
16034,
3084,
62,
27432,
62,
16562,
33411,
37454,
796,
352,
6375,
827,
301,
4160,
62,
18041,
62,
36151,
62,
36299,
79,
18189,
6640,
6375,
2566,
459,
... |
established user edited answer containing link. | SELECT Id AS "post_link", LastEditorDisplayName, CreationDate, LastEditDate FROM Posts WHERE PostTypeId = 2 AND Body LIKE '%https://%' AND LastEditorUserId IN (SELECT Id FROM Users WHERE Reputation > 500) ORDER BY LastEditDate DESC LIMIT 30 | [
27718,
2836,
13012,
3280,
7268,
2792,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
4586,
17171,
23114,
5376,
11,
21582,
10430,
11,
4586,
18378,
10430,
16034,
12043,
33411,
2947,
6030,
7390,
796,
362,
5357,
12290,
34178,
705,
4,
5450,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
27718,
2836,
13012,
3280,
7268,
2792,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
4586,
17171,
23114,
5376,
11,
21582,
10430,
11,
4586,
18378,
10430,
16034,
12043,
33411,
2947,
6030,
7390,
796,
362,
5357,
12290,
34178,
705,
4,
5450,... |
what is the number of patients whose year of birth is less than 2123 and lab test name is immunoglobulin a? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2123" AND lab.label = "Immunoglobulin A" | [
10919,
318,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
10163,
290,
2248,
1332,
1438,
318,
16217,
28678,
672,
11599,
257,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
10163,
290,
2248,
1332,
1438,
318,
16217,
28678,
672,
11599,
257,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,... |
Who are the hosts for the 2004 event? | SELECT hosts FROM table_name_2 WHERE year = "2004" | [
8241,
389,
262,
11453,
329,
262,
5472,
1785,
30,
46506,
11453,
16034,
3084,
62,
3672,
62,
17,
33411,
614,
796,
366,
15724,
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,
389,
262,
11453,
329,
262,
5472,
1785,
30,
46506,
11453,
16034,
3084,
62,
3672,
62,
17,
33411,
614,
796,
366,
15724,
1
] |
The man who received 87,676 votes in Queens won what percentage of the total for the election? | SELECT _percentage FROM table_1108394_47 WHERE queens = "87,676" | [
464,
582,
508,
2722,
10083,
11,
42548,
5690,
287,
14045,
1839,
644,
5873,
286,
262,
2472,
329,
262,
3071,
30,
46506,
4808,
25067,
496,
16034,
3084,
62,
11442,
23,
34626,
62,
2857,
33411,
38771,
796,
366,
5774,
11,
42548,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
582,
508,
2722,
10083,
11,
42548,
5690,
287,
14045,
1839,
644,
5873,
286,
262,
2472,
329,
262,
3071,
30,
46506,
4808,
25067,
496,
16034,
3084,
62,
11442,
23,
34626,
62,
2857,
33411,
38771,
796,
366,
5774,
11,
42548,
1
] |
Which Year has a Competition of commonwealth youth games? | SELECT AVG(year) FROM table_name_94 WHERE competition = "commonwealth youth games" | [
13828,
6280,
468,
257,
27348,
286,
2219,
14298,
6205,
1830,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5824,
33411,
5449,
796,
366,
11321,
14298,
6205,
1830,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
6280,
468,
257,
27348,
286,
2219,
14298,
6205,
1830,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5824,
33411,
5449,
796,
366,
11321,
14298,
6205,
1830,
1
] |
What is the team 2 for the match with a team 1 of Panathinaikos? | SELECT team_2 FROM table_name_34 WHERE team_1 = "panathinaikos" | [
2061,
318,
262,
1074,
362,
329,
262,
2872,
351,
257,
1074,
352,
286,
5961,
776,
1437,
1134,
418,
30,
46506,
1074,
62,
17,
16034,
3084,
62,
3672,
62,
2682,
33411,
1074,
62,
16,
796,
366,
6839,
776,
1437,
1134,
418,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1074,
362,
329,
262,
2872,
351,
257,
1074,
352,
286,
5961,
776,
1437,
1134,
418,
30,
46506,
1074,
62,
17,
16034,
3084,
62,
3672,
62,
2682,
33411,
1074,
62,
16,
796,
366,
6839,
776,
1437,
1134,
418,
1
] |
A bar chart shows the distribution of Sex and the sum of Height , and group by attribute Sex. | SELECT Sex, SUM(Height) FROM people GROUP BY Sex | [
32,
2318,
8262,
2523,
262,
6082,
286,
14419,
290,
262,
2160,
286,
27280,
837,
290,
1448,
416,
11688,
14419,
13,
46506,
14419,
11,
35683,
7,
23106,
8,
16034,
661,
44441,
11050,
14419
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
2523,
262,
6082,
286,
14419,
290,
262,
2160,
286,
27280,
837,
290,
1448,
416,
11688,
14419,
13,
46506,
14419,
11,
35683,
7,
23106,
8,
16034,
661,
44441,
11050,
14419
] |
What points have 1 for drawn, and 16 as a try bonus? | SELECT "Points for" FROM table_37173 WHERE "Drawn" = '1' AND "Try bonus" = '16' | [
2061,
2173,
423,
352,
329,
7428,
11,
290,
1467,
355,
257,
1949,
7202,
30,
46506,
366,
40710,
329,
1,
16034,
3084,
62,
2718,
25399,
33411,
366,
35,
5791,
1,
796,
705,
16,
6,
5357,
366,
23433,
7202,
1,
796,
705,
1433,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2173,
423,
352,
329,
7428,
11,
290,
1467,
355,
257,
1949,
7202,
30,
46506,
366,
40710,
329,
1,
16034,
3084,
62,
2718,
25399,
33411,
366,
35,
5791,
1,
796,
705,
16,
6,
5357,
366,
23433,
7202,
1,
796,
705,
1433,
6
] |
What numbered episode was directed by greg colton and written by patrick meighan? | SELECT no__episode__number_ FROM table_28210383_1 WHERE directed_by = "Greg Colton" AND written_by = "Patrick Meighan" | [
2061,
25840,
4471,
373,
7924,
416,
308,
2301,
951,
1122,
290,
3194,
416,
1458,
5557,
502,
394,
272,
30,
46506,
645,
834,
38668,
834,
17618,
62,
16034,
3084,
62,
2078,
21536,
34741,
62,
16,
33411,
7924,
62,
1525,
796,
366,
25025,
1623,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25840,
4471,
373,
7924,
416,
308,
2301,
951,
1122,
290,
3194,
416,
1458,
5557,
502,
394,
272,
30,
46506,
645,
834,
38668,
834,
17618,
62,
16034,
3084,
62,
2078,
21536,
34741,
62,
16,
33411,
7924,
62,
1525,
796,
366,
25025,
1623,... |
give the number of patients whose diagnosis short title is ac/chr syst/dia hrt fail and lab test status is abnormal. | 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 = "Ac/chr syst/dia hrt fail" AND lab.flag = "abnormal" | [
26535,
262,
1271,
286,
3871,
3025,
13669,
1790,
3670,
318,
936,
14,
354,
81,
827,
301,
14,
67,
544,
289,
17034,
2038,
290,
2248,
1332,
3722,
318,
18801,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
262,
1271,
286,
3871,
3025,
13669,
1790,
3670,
318,
936,
14,
354,
81,
827,
301,
14,
67,
544,
289,
17034,
2038,
290,
2248,
1332,
3722,
318,
18801,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... |
find the icu stay id of jerry deberry. | SELECT prescriptions.icustay_id FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Jerry Deberry" | [
19796,
262,
14158,
84,
2652,
4686,
286,
474,
6996,
390,
8396,
13,
46506,
34092,
13,
291,
436,
323,
62,
312,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
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
] | [
19796,
262,
14158,
84,
2652,
4686,
286,
474,
6996,
390,
8396,
13,
46506,
34092,
13,
291,
436,
323,
62,
312,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,... |
i need a flight from DENVER to PITTSBURGH on 7 7 that leaves in the afternoon | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((flight.departure_time BETWEEN 1200 AND 1800) AND date_day.day_number = 7 AND date_day.month_number = 7 AND date_day.year = 1991 AND days.day_n... | [
72,
761,
257,
5474,
422,
37692,
5959,
284,
49040,
4694,
38926,
17511,
319,
767,
767,
326,
5667,
287,
262,
6672,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
72,
761,
257,
5474,
422,
37692,
5959,
284,
49040,
4694,
38926,
17511,
319,
767,
767,
326,
5667,
287,
262,
6672,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
... |
Number of participants with a score 8.895 in preliminary | SELECT COUNT(interview) FROM table_17088705_2 WHERE preliminary = "8.895" | [
15057,
286,
6809,
351,
257,
4776,
807,
13,
23,
3865,
287,
15223,
46506,
327,
28270,
7,
3849,
1177,
8,
16034,
3084,
62,
1558,
46556,
34801,
62,
17,
33411,
15223,
796,
366,
23,
13,
23,
3865,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15057,
286,
6809,
351,
257,
4776,
807,
13,
23,
3865,
287,
15223,
46506,
327,
28270,
7,
3849,
1177,
8,
16034,
3084,
62,
1558,
46556,
34801,
62,
17,
33411,
15223,
796,
366,
23,
13,
23,
3865,
1
] |
Who is the away team that played home team of Perth Wildcats? | SELECT "Away team" FROM table_44788 WHERE "Home team" = 'perth wildcats' | [
8241,
318,
262,
1497,
1074,
326,
2826,
1363,
1074,
286,
29913,
46011,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
34825,
3459,
33411,
366,
16060,
1074,
1,
796,
705,
525,
400,
4295,
24619,
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
] | [
8241,
318,
262,
1497,
1074,
326,
2826,
1363,
1074,
286,
29913,
46011,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
34825,
3459,
33411,
366,
16060,
1074,
1,
796,
705,
525,
400,
4295,
24619,
6
] |
is the level of arterial bp [systolic] in patient 4401 last measured on the current icu visit less than the value first measured on the current icu visit? | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4401) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_it... | [
271,
262,
1241,
286,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
287,
5827,
5846,
486,
938,
8630,
319,
262,
1459,
14158,
84,
3187,
1342,
621,
262,
1988,
717,
8630,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
357,
46506,
8262,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
262,
1241,
286,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
287,
5827,
5846,
486,
938,
8630,
319,
262,
1459,
14158,
84,
3187,
1342,
621,
262,
1988,
717,
8630,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
357,
46506,
8262,
315... |
show me flights from SAN FRANCISCO to DENVER after 1600 | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.departure_time > 1600 AND flight.to_airport = AIRPORT_SERVICE_1.airpor... | [
12860,
502,
13956,
422,
37376,
8782,
20940,
1797,
8220,
284,
37692,
5959,
706,
26143,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
13956,
422,
37376,
8782,
20940,
1797,
8220,
284,
37692,
5959,
706,
26143,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
705... |
acute increase in qsofa score of 2 points or more. 1 point each is assigned for: 1 ) systolic blood pressure below 100 , 2 ) respiratory rate greater than 22 , and 3 ) mental status not at baseline. | SELECT * FROM table_train_58 WHERE (CASE WHEN systolic_blood_pressure_sbp < 100 THEN 1 ELSE 0 END + CASE WHEN respiratory_rate > 22 THEN 1 ELSE 0 END + CASE WHEN mental_status = 0 THEN 1 ELSE 0 END) >= 2 | [
330,
1133,
2620,
287,
10662,
568,
13331,
4776,
286,
362,
2173,
393,
517,
13,
352,
966,
1123,
318,
8686,
329,
25,
352,
1267,
827,
301,
4160,
2910,
3833,
2174,
1802,
837,
362,
1267,
22949,
2494,
3744,
621,
2534,
837,
290,
513,
1267,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
330,
1133,
2620,
287,
10662,
568,
13331,
4776,
286,
362,
2173,
393,
517,
13,
352,
966,
1123,
318,
8686,
329,
25,
352,
1267,
827,
301,
4160,
2910,
3833,
2174,
1802,
837,
362,
1267,
22949,
2494,
3744,
621,
2534,
837,
290,
513,
1267,
5... |
i would like to book a flight for 8 27 with US from BALTIMORE to OAKLAND what flights do you have available | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND date_day.day_number = 27 AND date_day.month_number = 8 AND ... | [
72,
561,
588,
284,
1492,
257,
5474,
329,
807,
2681,
351,
1294,
422,
347,
31429,
3955,
6965,
284,
440,
10206,
28182,
644,
13956,
466,
345,
423,
1695,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
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... | [
72,
561,
588,
284,
1492,
257,
5474,
329,
807,
2681,
351,
1294,
422,
347,
31429,
3955,
6965,
284,
440,
10206,
28182,
644,
13956,
466,
345,
423,
1695,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,... |
What team was the visitor on 3/2? | SELECT "Visitor" FROM table_57782 WHERE "Date" = '3/2' | [
2061,
1074,
373,
262,
21493,
319,
513,
14,
17,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
49447,
6469,
33411,
366,
10430,
1,
796,
705,
18,
14,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1074,
373,
262,
21493,
319,
513,
14,
17,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
49447,
6469,
33411,
366,
10430,
1,
796,
705,
18,
14,
17,
6
] |
What is the average laps that had a time/retired of +5 laps? | SELECT AVG("Laps") FROM table_52761 WHERE "Time/Retired" = '+5 laps' | [
2061,
318,
262,
2811,
24590,
326,
550,
257,
640,
14,
1186,
1202,
286,
1343,
20,
24590,
30,
46506,
35224,
7203,
43,
1686,
4943,
16034,
3084,
62,
20,
1983,
5333,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
10,
20,
24590,
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,
2811,
24590,
326,
550,
257,
640,
14,
1186,
1202,
286,
1343,
20,
24590,
30,
46506,
35224,
7203,
43,
1686,
4943,
16034,
3084,
62,
20,
1983,
5333,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
10,
20,
24590,
6
] |
what are the four most commonly given lab tests last year for patients who were previously diagnosed with hx of kidney malignancy in the same hospital visit? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id W... | [
10919,
389,
262,
1440,
749,
8811,
1813,
2248,
5254,
938,
614,
329,
3871,
508,
547,
4271,
14641,
351,
289,
87,
286,
21919,
6428,
570,
3883,
287,
262,
976,
4436,
3187,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1440,
749,
8811,
1813,
2248,
5254,
938,
614,
329,
3871,
508,
547,
4271,
14641,
351,
289,
87,
286,
21919,
6428,
570,
3883,
287,
262,
976,
4436,
3187,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
... |
Which Cover model has a Centerfold model of scarlett keegan? | SELECT "Cover model" FROM table_40539 WHERE "Centerfold model" = 'scarlett keegan' | [
13828,
17546,
2746,
468,
257,
3337,
11379,
2746,
286,
10153,
15503,
885,
68,
1030,
30,
46506,
366,
27245,
2746,
1,
16034,
3084,
62,
26598,
2670,
33411,
366,
23656,
11379,
2746,
1,
796,
705,
13034,
15503,
885,
68,
1030,
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
] | [
13828,
17546,
2746,
468,
257,
3337,
11379,
2746,
286,
10153,
15503,
885,
68,
1030,
30,
46506,
366,
27245,
2746,
1,
16034,
3084,
62,
26598,
2670,
33411,
366,
23656,
11379,
2746,
1,
796,
705,
13034,
15503,
885,
68,
1030,
6
] |
What are the ids and details for all organizations that have grants of more than 6000 dollars Show bar chart, and could you order in descending by the total number? | SELECT T2.organisation_details, T1.organisation_id FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_details ORDER BY T1.organisation_id DESC | [
2061,
389,
262,
220,
2340,
290,
3307,
329,
477,
5745,
326,
423,
11455,
286,
517,
621,
39064,
5054,
5438,
2318,
8262,
11,
290,
714,
345,
1502,
287,
31491,
416,
262,
2472,
1271,
30,
46506,
309,
17,
13,
9971,
5612,
62,
36604,
11,
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... | [
2061,
389,
262,
220,
2340,
290,
3307,
329,
477,
5745,
326,
423,
11455,
286,
517,
621,
39064,
5054,
5438,
2318,
8262,
11,
290,
714,
345,
1502,
287,
31491,
416,
262,
2472,
1271,
30,
46506,
309,
17,
13,
9971,
5612,
62,
36604,
11,
309,
... |
What is the score when high points were Andre Miller (31)? | SELECT "Score" FROM table_25888 WHERE "High points" = 'Andre Miller (31)' | [
2061,
318,
262,
4776,
618,
1029,
2173,
547,
10948,
7920,
357,
3132,
19427,
46506,
366,
26595,
1,
16034,
3084,
62,
1495,
28011,
33411,
366,
11922,
2173,
1,
796,
705,
31258,
7920,
357,
3132,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4776,
618,
1029,
2173,
547,
10948,
7920,
357,
3132,
19427,
46506,
366,
26595,
1,
16034,
3084,
62,
1495,
28011,
33411,
366,
11922,
2173,
1,
796,
705,
31258,
7920,
357,
3132,
33047
] |
List the name and count of each product in all orders with a pie chart. | SELECT T3.product_name, SUM(COUNT(*)) FROM Orders AS T1 JOIN Order_Items AS T2 JOIN Products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_name | [
8053,
262,
1438,
290,
954,
286,
1123,
1720,
287,
477,
6266,
351,
257,
2508,
8262,
13,
46506,
309,
18,
13,
11167,
62,
3672,
11,
35683,
7,
34,
28270,
46491,
4008,
16034,
30689,
7054,
309,
16,
32357,
1268,
8284,
62,
23022,
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,
1... | [
8053,
262,
1438,
290,
954,
286,
1123,
1720,
287,
477,
6266,
351,
257,
2508,
8262,
13,
46506,
309,
18,
13,
11167,
62,
3672,
11,
35683,
7,
34,
28270,
46491,
4008,
16034,
30689,
7054,
309,
16,
32357,
1268,
8284,
62,
23022,
7054,
309,
1... |
count the number of patients whose discharge location is short term hospital and procedure short title is attach pedicle graft nec. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND procedures.short_title = "Attach pedicle graft NEC" | [
9127,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1790,
3381,
4436,
290,
8771,
1790,
3670,
318,
10199,
7190,
1548,
38455,
27576,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17655,
4067,
318,
1790,
3381,
4436,
290,
8771,
1790,
3670,
318,
10199,
7190,
1548,
38455,
27576,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... |
What is the result for world group, consolation round? | SELECT "Result" FROM table_54591 WHERE "Competition" = 'world group, consolation round' | [
2061,
318,
262,
1255,
329,
995,
1448,
11,
45194,
2835,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
45326,
6420,
33411,
366,
7293,
15620,
1,
796,
705,
6894,
1448,
11,
45194,
2835,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1255,
329,
995,
1448,
11,
45194,
2835,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
45326,
6420,
33411,
366,
7293,
15620,
1,
796,
705,
6894,
1448,
11,
45194,
2835,
6
] |
What are the dates of transactions with at least 100 share count or amount bigger than 100, and count them by a bar chart | SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions WHERE share_count >= 100 OR amount_of_transaction >= 100 | [
2061,
389,
262,
9667,
286,
8945,
351,
379,
1551,
1802,
2648,
954,
393,
2033,
5749,
621,
1802,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
3128,
62,
1659,
62,
7645,
2673,
11,
327,
28270,
7,
4475,
62,
1659,
62,
7645,
2673,
8,
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
] | [
2061,
389,
262,
9667,
286,
8945,
351,
379,
1551,
1802,
2648,
954,
393,
2033,
5749,
621,
1802,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
3128,
62,
1659,
62,
7645,
2673,
11,
327,
28270,
7,
4475,
62,
1659,
62,
7645,
2673,
8,
16... |
What is the first election year listed? | SELECT MIN(first_elected) FROM table_1341472_20 | [
2061,
318,
262,
717,
3071,
614,
5610,
30,
46506,
20625,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
19880,
1415,
4761,
62,
1238
] | [
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,
717,
3071,
614,
5610,
30,
46506,
20625,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
19880,
1415,
4761,
62,
1238
] |
Find the number of rooms with price higher than 120 for different decor. Show bar chart. | SELECT decor, COUNT(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor | [
16742,
262,
1271,
286,
9519,
351,
2756,
2440,
621,
7982,
329,
1180,
11705,
13,
5438,
2318,
8262,
13,
46506,
11705,
11,
327,
28270,
7,
28104,
16034,
42043,
33411,
2779,
18124,
1875,
7982,
44441,
11050,
11705
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1271,
286,
9519,
351,
2756,
2440,
621,
7982,
329,
1180,
11705,
13,
5438,
2318,
8262,
13,
46506,
11705,
11,
327,
28270,
7,
28104,
16034,
42043,
33411,
2779,
18124,
1875,
7982,
44441,
11050,
11705
] |
How many copoes per particle are created in the segment that forms inner shell of the core? | SELECT "Copies per particle" FROM table_924 WHERE "Location" = 'Forms inner shell of the core' | [
2437,
867,
2243,
3028,
583,
18758,
389,
2727,
287,
262,
10618,
326,
5107,
8434,
7582,
286,
262,
4755,
30,
46506,
366,
13379,
444,
583,
18758,
1,
16034,
3084,
62,
24,
1731,
33411,
366,
14749,
1,
796,
705,
8479,
82,
8434,
7582,
286,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2243,
3028,
583,
18758,
389,
2727,
287,
262,
10618,
326,
5107,
8434,
7582,
286,
262,
4755,
30,
46506,
366,
13379,
444,
583,
18758,
1,
16034,
3084,
62,
24,
1731,
33411,
366,
14749,
1,
796,
705,
8479,
82,
8434,
7582,
286,
2... |
Who directed the episode written by patrick meighan? | SELECT "Directed by" FROM table_24898 WHERE "Written by" = 'Patrick Meighan' | [
8241,
7924,
262,
4471,
3194,
416,
1458,
5557,
502,
394,
272,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
23045,
4089,
33411,
366,
25354,
416,
1,
796,
705,
32718,
2185,
394,
272,
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
] | [
8241,
7924,
262,
4471,
3194,
416,
1458,
5557,
502,
394,
272,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
23045,
4089,
33411,
366,
25354,
416,
1,
796,
705,
32718,
2185,
394,
272,
6
] |
what other types of brakes are listed on this chart besides vacuum ? | SELECT DISTINCT ("brakes") FROM table_204_131 WHERE "brakes" <> 'vacuum' | [
10919,
584,
3858,
286,
23746,
389,
5610,
319,
428,
8262,
13769,
17076,
5633,
46506,
360,
8808,
1268,
4177,
5855,
16057,
5209,
4943,
16034,
3084,
62,
18638,
62,
22042,
33411,
366,
16057,
5209,
1,
1279,
29,
705,
85,
330,
13814,
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
] | [
10919,
584,
3858,
286,
23746,
389,
5610,
319,
428,
8262,
13769,
17076,
5633,
46506,
360,
8808,
1268,
4177,
5855,
16057,
5209,
4943,
16034,
3084,
62,
18638,
62,
22042,
33411,
366,
16057,
5209,
1,
1279,
29,
705,
85,
330,
13814,
6
] |
Which week was the 1995-10-01 game on? | SELECT MAX(week) FROM table_name_71 WHERE date = "1995-10-01" | [
13828,
1285,
373,
262,
8735,
12,
940,
12,
486,
983,
319,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
4869,
33411,
3128,
796,
366,
21908,
12,
940,
12,
486,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1285,
373,
262,
8735,
12,
940,
12,
486,
983,
319,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
4869,
33411,
3128,
796,
366,
21908,
12,
940,
12,
486,
1
] |
What is the highest number of rebounds of the game with a 6-14 record? | SELECT high_rebounds FROM table_name_53 WHERE record = "6-14" | [
2061,
318,
262,
4511,
1271,
286,
18841,
286,
262,
983,
351,
257,
718,
12,
1415,
1700,
30,
46506,
1029,
62,
34806,
3733,
16034,
3084,
62,
3672,
62,
4310,
33411,
1700,
796,
366,
21,
12,
1415,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
1271,
286,
18841,
286,
262,
983,
351,
257,
718,
12,
1415,
1700,
30,
46506,
1029,
62,
34806,
3733,
16034,
3084,
62,
3672,
62,
4310,
33411,
1700,
796,
366,
21,
12,
1415,
1
] |
What is the general classification with a 13 stage? | SELECT "General classification" FROM table_35465 WHERE "Stage" = '13' | [
2061,
318,
262,
2276,
17923,
351,
257,
1511,
3800,
30,
46506,
366,
12218,
17923,
1,
16034,
3084,
62,
32182,
2996,
33411,
366,
29391,
1,
796,
705,
1485,
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,
318,
262,
2276,
17923,
351,
257,
1511,
3800,
30,
46506,
366,
12218,
17923,
1,
16034,
3084,
62,
32182,
2996,
33411,
366,
29391,
1,
796,
705,
1485,
6
] |
WHAT IS THE DRAW FOR PERFORMER ANDREA CUBRIC? | SELECT draw FROM table_name_76 WHERE performer = "andrea cubric" | [
32971,
3180,
3336,
360,
20530,
7473,
19878,
21389,
1137,
5357,
2200,
32,
327,
10526,
41132,
30,
46506,
3197,
16034,
3084,
62,
3672,
62,
4304,
33411,
26960,
796,
366,
392,
21468,
13617,
1173,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3180,
3336,
360,
20530,
7473,
19878,
21389,
1137,
5357,
2200,
32,
327,
10526,
41132,
30,
46506,
3197,
16034,
3084,
62,
3672,
62,
4304,
33411,
26960,
796,
366,
392,
21468,
13617,
1173,
1
] |
did patient 65838 have the results of the microbiological tests in 2105? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65838) AND STRFTIME('%y', microbiologyevents.charttime) = '2105' | [
20839,
5827,
718,
3365,
2548,
423,
262,
2482,
286,
262,
24559,
2770,
5254,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
2534... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20839,
5827,
718,
3365,
2548,
423,
262,
2482,
286,
262,
24559,
2770,
5254,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
2534... |
What is the christian amount where work participation rate is the composition? | SELECT christians FROM table_14598_5 WHERE composition = "Work Participation Rate" | [
2061,
318,
262,
33826,
666,
2033,
810,
670,
10270,
2494,
318,
262,
11742,
30,
46506,
33826,
1547,
16034,
3084,
62,
1415,
41292,
62,
20,
33411,
11742,
796,
366,
12468,
34408,
14806,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
33826,
666,
2033,
810,
670,
10270,
2494,
318,
262,
11742,
30,
46506,
33826,
1547,
16034,
3084,
62,
1415,
41292,
62,
20,
33411,
11742,
796,
366,
12468,
34408,
14806,
1
] |
Which institutions primary conference is merged into the university of Massachusetts boston? | SELECT "Institution" FROM table_3497 WHERE "Primary Conference" = 'Merged into the University of Massachusetts Boston' | [
13828,
6712,
4165,
4495,
318,
23791,
656,
262,
6403,
286,
10140,
275,
5744,
30,
46506,
366,
6310,
2738,
1,
16034,
3084,
62,
2682,
5607,
33411,
366,
35170,
8785,
1,
796,
705,
13102,
2004,
656,
262,
2059,
286,
10140,
6182,
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
] | [
13828,
6712,
4165,
4495,
318,
23791,
656,
262,
6403,
286,
10140,
275,
5744,
30,
46506,
366,
6310,
2738,
1,
16034,
3084,
62,
2682,
5607,
33411,
366,
35170,
8785,
1,
796,
705,
13102,
2004,
656,
262,
2059,
286,
10140,
6182,
6
] |
how many times was the cardiac angiography done? | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'cardiac angiography' | [
4919,
867,
1661,
373,
262,
26077,
3550,
72,
4867,
1760,
30,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
9517,
9607,
3550,
72,
4867,
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
] | [
4919,
867,
1661,
373,
262,
26077,
3550,
72,
4867,
1760,
30,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
9517,
9607,
3550,
72,
4867,
6
] |
What is the average fastest lap speed for races held after 2004, for each race, ordered by year? | SELECT AVG(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year | [
2061,
318,
262,
2811,
14162,
14779,
2866,
329,
9558,
2714,
706,
5472,
11,
329,
1123,
3234,
11,
6149,
416,
614,
30,
46506,
35224,
7,
51,
17,
13,
7217,
395,
75,
1686,
39492,
828,
309,
16,
13,
3672,
11,
309,
16,
13,
1941,
16034,
9558... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14162,
14779,
2866,
329,
9558,
2714,
706,
5472,
11,
329,
1123,
3234,
11,
6149,
416,
614,
30,
46506,
35224,
7,
51,
17,
13,
7217,
395,
75,
1686,
39492,
828,
309,
16,
13,
3672,
11,
309,
16,
13,
1941,
16034,
9558... |
Where did god & guns peak on the Billboard? | SELECT billboard_peak FROM table_name_52 WHERE title = "god & guns" | [
8496,
750,
5770,
1222,
6541,
9103,
319,
262,
36229,
30,
46506,
41448,
62,
36729,
16034,
3084,
62,
3672,
62,
4309,
33411,
3670,
796,
366,
25344,
1222,
6541,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
750,
5770,
1222,
6541,
9103,
319,
262,
36229,
30,
46506,
41448,
62,
36729,
16034,
3084,
62,
3672,
62,
4309,
33411,
3670,
796,
366,
25344,
1222,
6541,
1
] |
What is the round of the game at venue H and opponent of Derby County? | SELECT "Round" FROM table_77269 WHERE "Venue" = 'h' AND "Opponent" = 'derby county' | [
2061,
318,
262,
2835,
286,
262,
983,
379,
14359,
367,
290,
6125,
286,
22962,
3418,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
3324,
26276,
33411,
366,
37522,
518,
1,
796,
705,
71,
6,
5357,
366,
27524,
3471,
1,
796,
705,
1082,
1525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2835,
286,
262,
983,
379,
14359,
367,
290,
6125,
286,
22962,
3418,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
3324,
26276,
33411,
366,
37522,
518,
1,
796,
705,
71,
6,
5357,
366,
27524,
3471,
1,
796,
705,
1082,
1525,
... |
Name the player that is 1.85 m | SELECT player FROM table_23670057_6 WHERE height__m_ = "1.85" | [
5376,
262,
2137,
326,
318,
352,
13,
5332,
285,
46506,
2137,
16034,
3084,
62,
1954,
3134,
405,
3553,
62,
21,
33411,
6001,
834,
76,
62,
796,
366,
16,
13,
5332,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
2137,
326,
318,
352,
13,
5332,
285,
46506,
2137,
16034,
3084,
62,
1954,
3134,
405,
3553,
62,
21,
33411,
6001,
834,
76,
62,
796,
366,
16,
13,
5332,
1
] |
Which place has more area (km 2) than 34.42? | SELECT place FROM table_name_99 WHERE area__km_2__ > 34.42 | [
13828,
1295,
468,
517,
1989,
357,
13276,
362,
8,
621,
4974,
13,
3682,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2079,
33411,
1989,
834,
13276,
62,
17,
834,
1875,
4974,
13,
3682
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1295,
468,
517,
1989,
357,
13276,
362,
8,
621,
4974,
13,
3682,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2079,
33411,
1989,
834,
13276,
62,
17,
834,
1875,
4974,
13,
3682
] |
When did the staff member named Janessa Sawayn join the company? | SELECT date_joined_staff FROM staff WHERE first_name = "Janessa" AND last_name = "Sawayn" | [
2215,
750,
262,
3085,
2888,
3706,
2365,
21411,
311,
8272,
77,
4654,
262,
1664,
30,
46506,
3128,
62,
46416,
62,
28120,
16034,
3085,
33411,
717,
62,
3672,
796,
366,
12128,
21411,
1,
5357,
938,
62,
3672,
796,
366,
50,
8272,
77,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3085,
2888,
3706,
2365,
21411,
311,
8272,
77,
4654,
262,
1664,
30,
46506,
3128,
62,
46416,
62,
28120,
16034,
3085,
33411,
717,
62,
3672,
796,
366,
12128,
21411,
1,
5357,
938,
62,
3672,
796,
366,
50,
8272,
77,
1
] |
Top 100 Users from India (based on Reputation). Note - The list can't be perfect as many users don't specify their location. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IN' ORDER BY Reputation DESC LIMIT 100 | [
9126,
1802,
18987,
422,
3794,
357,
3106,
319,
1432,
7094,
737,
5740,
532,
383,
1351,
460,
470,
307,
2818,
355,
867,
2985,
836,
470,
11986,
511,
4067,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
1802,
18987,
422,
3794,
357,
3106,
319,
1432,
7094,
737,
5740,
532,
383,
1351,
460,
470,
307,
2818,
355,
867,
2985,
836,
470,
11986,
511,
4067,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
... |
Which episode was the last written by chris hawkshaw this season? | SELECT MAX("No. in season") FROM table_64453 WHERE "Written by" = 'chris hawkshaw' | [
13828,
4471,
373,
262,
938,
3194,
416,
442,
2442,
23185,
591,
26615,
428,
1622,
30,
46506,
25882,
7203,
2949,
13,
287,
1622,
4943,
16034,
3084,
62,
2414,
36625,
33411,
366,
25354,
416,
1,
796,
705,
354,
2442,
23185,
591,
26615,
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
] | [
13828,
4471,
373,
262,
938,
3194,
416,
442,
2442,
23185,
591,
26615,
428,
1622,
30,
46506,
25882,
7203,
2949,
13,
287,
1622,
4943,
16034,
3084,
62,
2414,
36625,
33411,
366,
25354,
416,
1,
796,
705,
354,
2442,
23185,
591,
26615,
6
] |
Which Total has a Nation of united states, and a Bronze larger than 3? | SELECT MAX(total) FROM table_name_4 WHERE nation = "united states" AND bronze > 3 | [
13828,
7472,
468,
257,
8741,
286,
16503,
2585,
11,
290,
257,
19461,
4025,
621,
513,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
3277,
796,
366,
41187,
2585,
1,
5357,
22101,
1875,
513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7472,
468,
257,
8741,
286,
16503,
2585,
11,
290,
257,
19461,
4025,
621,
513,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
3277,
796,
366,
41187,
2585,
1,
5357,
22101,
1875,
513
] |
what is the total amount of input that patient 19096 on 07/06/this year has received? | SELECT SUM(inputevents_cv.amount) 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 = 19096)) AND DATETIME(inputevents_cv.charttime, 'start of year') = DATETIME(CURRENT_TIME(),... | [
10919,
318,
262,
2472,
2033,
286,
5128,
326,
5827,
41507,
21,
319,
8753,
14,
3312,
14,
5661,
614,
468,
2722,
30,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
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... | [
10919,
318,
262,
2472,
2033,
286,
5128,
326,
5827,
41507,
21,
319,
8753,
14,
3312,
14,
5661,
614,
468,
2722,
30,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
28... |
What is the date for the Nebula Label, and a nebdjx029 catalog? | SELECT date FROM table_name_93 WHERE label = "nebula" AND catalog = "nebdjx029" | [
2061,
318,
262,
3128,
329,
262,
46915,
36052,
11,
290,
257,
497,
17457,
73,
87,
48891,
18388,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
6052,
33411,
6167,
796,
366,
710,
65,
4712,
1,
5357,
18388,
796,
366,
710,
17457,
73,
87,
4889... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
329,
262,
46915,
36052,
11,
290,
257,
497,
17457,
73,
87,
48891,
18388,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
6052,
33411,
6167,
796,
366,
710,
65,
4712,
1,
5357,
18388,
796,
366,
710,
17457,
73,
87,
4889... |
was there any record of the microbiology test for the nasopharynx of patient 031-16123 until 2104? | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-16123')) AND microlab.culturesite = 'nasopharynx' AND STRFTIME('%y', microlab.... | [
9776,
612,
597,
1700,
286,
262,
24559,
1435,
1332,
329,
262,
25221,
2522,
38621,
87,
286,
5827,
657,
3132,
12,
1433,
10163,
1566,
362,
13464,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
317... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9776,
612,
597,
1700,
286,
262,
24559,
1435,
1332,
329,
262,
25221,
2522,
38621,
87,
286,
5827,
657,
3132,
12,
1433,
10163,
1566,
362,
13464,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
317... |
Who is week 3 if week 1 is Amanda Batt? | SELECT "Week 3" FROM table_61295 WHERE "Week 1" = 'amanda batt' | [
8241,
318,
1285,
513,
611,
1285,
352,
318,
23040,
12350,
30,
46506,
366,
20916,
513,
1,
16034,
3084,
62,
43610,
3865,
33411,
366,
20916,
352,
1,
796,
705,
321,
5282,
6274,
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,
1285,
513,
611,
1285,
352,
318,
23040,
12350,
30,
46506,
366,
20916,
513,
1,
16034,
3084,
62,
43610,
3865,
33411,
366,
20916,
352,
1,
796,
705,
321,
5282,
6274,
6
] |
Which Opponents have a Year of 1998 99, and a Team of aston villa? | SELECT "Opponents" FROM table_34558 WHERE "Year" = '1998–99' AND "Team" = 'aston villa' | [
13828,
9385,
3906,
423,
257,
6280,
286,
7795,
7388,
11,
290,
257,
4816,
286,
16128,
4489,
64,
30,
46506,
366,
27524,
3906,
1,
16034,
3084,
62,
27712,
3365,
33411,
366,
17688,
1,
796,
705,
21113,
1906,
2079,
6,
5357,
366,
15592,
1,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
9385,
3906,
423,
257,
6280,
286,
7795,
7388,
11,
290,
257,
4816,
286,
16128,
4489,
64,
30,
46506,
366,
27524,
3906,
1,
16034,
3084,
62,
27712,
3365,
33411,
366,
17688,
1,
796,
705,
21113,
1906,
2079,
6,
5357,
366,
15592,
1,
7... |
What was the sum of laps in 1954? | SELECT SUM("Laps") FROM table_14818 WHERE "Year" = '1954' | [
2061,
373,
262,
2160,
286,
24590,
287,
24718,
30,
46506,
35683,
7203,
43,
1686,
4943,
16034,
3084,
62,
18294,
1507,
33411,
366,
17688,
1,
796,
705,
1129,
4051,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2160,
286,
24590,
287,
24718,
30,
46506,
35683,
7203,
43,
1686,
4943,
16034,
3084,
62,
18294,
1507,
33411,
366,
17688,
1,
796,
705,
1129,
4051,
6
] |
Users with the most amount of Questions and no Accepted Solutions. | SELECT U.DisplayName, U.Reputation, COUNT(DISTINCT Q.Id) AS Questions, COUNT(A.Id) AS AnswersReceived FROM Users AS U JOIN Posts AS Q ON U.Id = Q.OwnerUserId JOIN PostTypes AS QT ON Q.PostTypeId = QT.Id JOIN Posts AS A ON Q.Id = A.ParentId JOIN PostTypes AS AT ON A.PostTypeId = AT.Id WHERE QT.Name = 'Question' AND AT.N... | [
14490,
351,
262,
749,
2033,
286,
20396,
290,
645,
21699,
276,
23555,
13,
46506,
471,
13,
23114,
5376,
11,
471,
13,
6207,
7094,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
1195,
13,
7390,
8,
7054,
20396,
11,
327,
28270,
7,
32,
13,
739... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
749,
2033,
286,
20396,
290,
645,
21699,
276,
23555,
13,
46506,
471,
13,
23114,
5376,
11,
471,
13,
6207,
7094,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
1195,
13,
7390,
8,
7054,
20396,
11,
327,
28270,
7,
32,
13,
739... |
Which Males have a percentage of 0.42? | SELECT males FROM table_name_76 WHERE percentage___percentage_ = "0.42" | [
13828,
43404,
423,
257,
5873,
286,
657,
13,
3682,
30,
46506,
10835,
16034,
3084,
62,
3672,
62,
4304,
33411,
5873,
17569,
25067,
496,
62,
796,
366,
15,
13,
3682,
1
] | [
1,
1,
1,
1,
1,
1,
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,
43404,
423,
257,
5873,
286,
657,
13,
3682,
30,
46506,
10835,
16034,
3084,
62,
3672,
62,
4304,
33411,
5873,
17569,
25067,
496,
62,
796,
366,
15,
13,
3682,
1
] |
What was the team Unics Kazan's 1st leg score? | SELECT "1st leg" FROM table_48964 WHERE "Team #1" = 'unics kazan' | [
2061,
373,
262,
1074,
791,
873,
16385,
272,
338,
352,
301,
1232,
4776,
30,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
35890,
2414,
33411,
366,
15592,
1303,
16,
1,
796,
705,
403,
873,
479,
1031,
272,
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,
373,
262,
1074,
791,
873,
16385,
272,
338,
352,
301,
1232,
4776,
30,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
35890,
2414,
33411,
366,
15592,
1303,
16,
1,
796,
705,
403,
873,
479,
1031,
272,
6
] |
tell me the yearly maximum amount of enteral flushes in patient 030-52395's body until 949 days ago? | SELECT MAX(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-52395')) AND intakeoutput.celllabel = 'enter... | [
33331,
502,
262,
24169,
5415,
2033,
286,
920,
1691,
781,
17237,
287,
5827,
657,
1270,
12,
49803,
3865,
338,
1767,
1566,
860,
2920,
1528,
2084,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
2291... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
24169,
5415,
2033,
286,
920,
1691,
781,
17237,
287,
5827,
657,
1270,
12,
49803,
3865,
338,
1767,
1566,
860,
2920,
1528,
2084,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
2291... |
Which Accolade had a publication of Under the Radar? | SELECT "Accolade" FROM table_41997 WHERE "Publication" = 'under the radar' | [
13828,
6366,
349,
671,
550,
257,
9207,
286,
4698,
262,
38426,
30,
46506,
366,
17320,
349,
671,
1,
16034,
3084,
62,
19,
21498,
33411,
366,
15202,
341,
1,
796,
705,
4625,
262,
13428,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
6366,
349,
671,
550,
257,
9207,
286,
4698,
262,
38426,
30,
46506,
366,
17320,
349,
671,
1,
16034,
3084,
62,
19,
21498,
33411,
366,
15202,
341,
1,
796,
705,
4625,
262,
13428,
6
] |
How many places have yamaha as the machine, and 89.85mph as the speed? | SELECT SUM(place) FROM table_name_30 WHERE machine = "yamaha" AND speed = "89.85mph" | [
2437,
867,
4113,
423,
331,
321,
12236,
355,
262,
4572,
11,
290,
9919,
13,
5332,
23335,
355,
262,
2866,
30,
46506,
35683,
7,
5372,
8,
16034,
3084,
62,
3672,
62,
1270,
33411,
4572,
796,
366,
88,
321,
12236,
1,
5357,
2866,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
4113,
423,
331,
321,
12236,
355,
262,
4572,
11,
290,
9919,
13,
5332,
23335,
355,
262,
2866,
30,
46506,
35683,
7,
5372,
8,
16034,
3084,
62,
3672,
62,
1270,
33411,
4572,
796,
366,
88,
321,
12236,
1,
5357,
2866,
796,
366,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.