NATURAL_LANG
stringlengths
12
244
SQL
stringlengths
18
336
SCHEMA
stringlengths
27
355
input_ids
list
attention_mask
list
labels
list
List the project details of the projects launched by the organisation
SELECT project_details FROM Projects WHERE organisation_id IN (SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY COUNT(*) DESC LIMIT 1)
CREATE TABLE Projects (project_details VARCHAR, organisation_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2786, 7, 41, 23574, 834, 221, 5756, 7, 584, 4280, 28027, 6, 5102, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 516, 1030, 13, 8, 1195, 3759, 57, 8, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 516, 834, 221, 5756, 7, 21680, 2786, 7, 549, 17444, 427, 5102, 834, 23, 26, 3388, 41, 23143, 14196, 5102, 834, 23, 26, 21680, 2786, 7, 350, 4630, 6880, 272, 476, 5102, 834, 23, 26, 4674, 11300, 272, 476, 2847, 171...
List the research staff details, and order in ascending order.
SELECT staff_details FROM Research_Staff ORDER BY staff_details
CREATE TABLE Research_Staff (staff_details VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2200, 834, 134, 17, 4127, 41, 26416, 834, 221, 5756, 7, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 585, 871, 1030, 6, 11, 455, 16, 25200, 53, 455, 5, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 871, 834, 221, 5756, 7, 21680, 2200, 834, 134, 17, 4127, 4674, 11300, 272, 476, 871, 834, 221, 5756, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many tasks are there in total?
SELECT COUNT(*) FROM Tasks
CREATE TABLE Tasks (Id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 16107, 7, 41, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 4145, 33, 132, 16, 792, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 16107, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many tasks does each project have? List the task count and the project detail.
SELECT COUNT(*), T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id
CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Tasks (project_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2786, 7, 41, 23574, 834, 221, 5756, 7, 584, 4280, 28027, 6, 516, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 16107, 7, 41, 23574, 834, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 201, 332, 5411, 23574, 834, 221, 5756, 7, 21680, 2786, 7, 6157, 332, 536, 3, 15355, 3162, 16107, 7, 6157, 332, 357, 9191, 332, 5411, 23574, 834, 23, 26, 3274, 332, 4416, 23574, 834, 23, 26, ...
What are the staff roles of the staff who
SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18'
CREATE TABLE Project_Staff (role_code VARCHAR, date_from VARCHAR, date_to VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2786, 834, 134, 17, 4127, 41, 3491, 15, 834, 4978, 584, 4280, 28027, 6, 833, 834, 7152, 584, 4280, 28027, 6, 833, 834, 235, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1075, 834, 4978, 21680, 2786, 834, 134, 17, 4127, 549, 17444, 427, 833, 834, 7152, 2490, 3, 31, 23948, 18083, 4481, 627, 10, 5176, 10, 1755, 31, 3430, 833, 834, 235, 3, 2, 3, 31, 11505, 18, 4928, 10106, 3, 1206, ...
What are the descriptions of all the project outcomes?
SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code
CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Project_outcomes (outcome_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2200, 834, 670, 287, 15, 7, 41, 670, 287, 15, 834, 221, 11830, 584, 4280, 28027, 6, 6138, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 2786, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 670, 287, 15, 834, 221, 11830, 21680, 2200, 834, 670, 287, 15, 7, 6157, 332, 536, 3, 15355, 3162, 2786, 834, 670, 287, 15, 7, 6157, 332, 357, 9191, 332, 5411, 670, 287, 15, 834, 4978, 3274, 332, 4416, ...
Which role is most common for the staff?
SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE Project_Staff (role_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2786, 834, 134, 17, 4127, 41, 3491, 15, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 4073, 1075, 19, 167, 1017, 21, 8, 871, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1075, 834, 4978, 21680, 2786, 834, 134, 17, 4127, 350, 4630, 6880, 272, 476, 1075, 834, 4978, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -10...
How many friends does Dan have?
SELECT COUNT(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan'
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 15504, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 61, 3, 32102, 32106, 32107,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 382, 4416, 15504, 61, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 549, 17444, 427, 332, 5411, 4350, 3274, 3, 31, 308, 152, ...
How many females does this network has?
SELECT COUNT(*) FROM Person WHERE gender = 'female'
CREATE TABLE Person (gender VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 122, 3868, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 3955, 7, 405, 48, 1229, 65, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 5780, 549, 17444, 427, 7285, 3274, 3, 31, 89, 15, 13513, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the average age for all person?
SELECT AVG(age) FROM Person
CREATE TABLE Person (age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 545, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 1348, 1246, 21, 66, 568, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 545, 61, 21680, 5780, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
How many different cities are they from?
SELECT COUNT(DISTINCT city) FROM Person
CREATE TABLE Person (city VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 6726, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 315, 3119, 33, 79, 45, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 690, 61, 21680, 5780, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many type of jobs do they have?
SELECT COUNT(DISTINCT job) FROM Person
CREATE TABLE Person (job VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 16899, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 686, 13, 2476, 103, 79, 43, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 613, 61, 21680, 5780, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who is the oldest person?
SELECT name FROM Person WHERE age = (SELECT MAX(age) FROM person)
CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE person (name VARCHAR, age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 568, 41, 4350, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 5780, 549, 17444, 427, 1246, 3274, 41, 23143, 14196, 4800, 4, 599, 545, 61, 21680, 568, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Who is the oldest person whose job is student?
SELECT name FROM Person WHERE job = 'student' AND age = (SELECT MAX(age) FROM person WHERE job = 'student')
CREATE TABLE person (name VARCHAR, job VARCHAR, age INTEGER); CREATE TABLE Person (name VARCHAR, job VARCHAR, age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 568, 41, 4350, 584, 4280, 28027, 6, 613, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 564, 21680, 5780, 549, 17444, 427, 613, 3274, 3, 31, 8637, 295, 31, 3430, 1246, 3274, 41, 23143, 14196, 4800, 4, 599, 545, 61, 21680, 568, 549, 17444, 427, 613, 3274, 3, 31, 8637, 295, 31, 61, 1, -100, -100, -100,...
Who is the youngest male?
SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT MIN(age) FROM person WHERE gender = 'male')
CREATE TABLE Person (name VARCHAR, gender VARCHAR, age INTEGER); CREATE TABLE person (name VARCHAR, gender VARCHAR, age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 7285, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 568, 41, 4350, 584, 4280, 28027, 6, 7285...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 564, 21680, 5780, 549, 17444, 427, 7285, 3274, 3, 31, 13513, 31, 3430, 1246, 3274, 41, 23143, 14196, 3, 17684, 599, 545, 61, 21680, 568, 549, 17444, 427, 7285, 3274, 3, 31, 13513, 31, 61, 1, -100, -100, -100, -100, ...
How old is the doctor named Zach?
SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach'
CREATE TABLE Person (age VARCHAR, job VARCHAR, name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 545, 584, 4280, 28027, 6, 613, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 625, 19, 8, 2472, 2650, 22045, 58, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1246, 21680, 5780, 549, 17444, 427, 613, 3274, 3, 31, 26, 32, 5317, 31, 3430, 564, 3274, 3, 31, 956, 1836, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Who is the person whose age is below 30?
SELECT name FROM Person WHERE age < 30
CREATE TABLE Person (name VARCHAR, age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2645, 19, 8, 568, 3, 2544, 1246, 19, 666, 604, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 5780, 549, 17444, 427, 1246, 3, 2, 604, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many people whose age is greater 30 and job is engineer?
SELECT COUNT(*) FROM Person WHERE age > 30 AND job = 'engineer'
CREATE TABLE Person (age VARCHAR, job VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 545, 584, 4280, 28027, 6, 613, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 151, 3, 2544, 1246, 19, 2123, 604, 11, 613, 19, 9739, 58, 1, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 5780, 549, 17444, 427, 1246, 2490, 604, 3430, 613, 3274, 3, 31, 20165, 49, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the average age for each gender?
SELECT AVG(age), gender FROM Person GROUP BY gender
CREATE TABLE Person (gender VARCHAR, age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 122, 3868, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 1348, 1246, 21, 284, 7285, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 545, 201, 7285, 21680, 5780, 350, 4630, 6880, 272, 476, 7285, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is average age for different job title?
SELECT AVG(age), job FROM Person GROUP BY job
CREATE TABLE Person (job VARCHAR, age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 16899, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 1348, 1246, 21, 315, 613, 2233, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 545, 201, 613, 21680, 5780, 350, 4630, 6880, 272, 476, 613, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is average age of male for different job title?
SELECT AVG(age), job FROM Person WHERE gender = 'male' GROUP BY job
CREATE TABLE Person (job VARCHAR, age INTEGER, gender VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 16899, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 6, 7285, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 1348, 1246, 13, 5069, 21, 315, 613, 2233, 58, 1, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 545, 201, 613, 21680, 5780, 549, 17444, 427, 7285, 3274, 3, 31, 13513, 31, 350, 4630, 6880, 272, 476, 613, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is minimum age for different job title?
SELECT MIN(age), job FROM Person GROUP BY job
CREATE TABLE Person (job VARCHAR, age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 16899, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 2559, 1246, 21, 315, 613, 2233, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 545, 201, 613, 21680, 5780, 350, 4630, 6880, 272, 476, 613, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the number of people who is under 40 for each gender.
SELECT COUNT(*), gender FROM Person WHERE age < 40 GROUP BY gender
CREATE TABLE Person (gender VARCHAR, age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 122, 3868, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 381, 13, 151, 113, 19, 365, 1283, 21, 284, 7285, 5, 1, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 201, 7285, 21680, 5780, 549, 17444, 427, 1246, 3, 2, 1283, 350, 4630, 6880, 272, 476, 7285, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find the name of people whose age is greater than any engineer sorted by their age.
SELECT name FROM Person WHERE age > (SELECT MIN(age) FROM person WHERE job = 'engineer') ORDER BY age
CREATE TABLE Person (name VARCHAR, age INTEGER, job VARCHAR); CREATE TABLE person (name VARCHAR, age INTEGER, job VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 6, 613, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 568, 41, 4350, 584, 4280, 28027, 6, 1246,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 564, 21680, 5780, 549, 17444, 427, 1246, 2490, 41, 23143, 14196, 3, 17684, 599, 545, 61, 21680, 568, 549, 17444, 427, 613, 3274, 3, 31, 20165, 49, 31, 61, 4674, 11300, 272, 476, 1246, 1, -100, -100, -100, -100, -100...
Find the number of people whose age is greater than all engineers.
SELECT COUNT(*) FROM Person WHERE age > (SELECT MAX(age) FROM person WHERE job = 'engineer')
CREATE TABLE Person (age INTEGER, job VARCHAR); CREATE TABLE person (age INTEGER, job VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 545, 3, 21342, 17966, 6, 613, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 568, 41, 545, 3, 21342, 17966, 6, 613, 584, 4280, 28027, 61, 3, 321...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 5780, 549, 17444, 427, 1246, 2490, 41, 23143, 14196, 4800, 4, 599, 545, 61, 21680, 568, 549, 17444, 427, 613, 3274, 3, 31, 20165, 49, 31, 61, 1, -100, -100, -100, -100, -100, -100,...
list the name, job title of all people ordered by their names.
SELECT name, job FROM Person ORDER BY name
CREATE TABLE Person (name VARCHAR, job VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 613, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 570, 8, 564, 6, 613, 2233, 13, 66, 151, 5563, 57, 70, 3056, 5, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 613, 21680, 5780, 4674, 11300, 272, 476, 564, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the names of all person sorted in the descending order using age.
SELECT name FROM Person ORDER BY age DESC
CREATE TABLE Person (name VARCHAR, age VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 1246, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 3056, 13, 66, 568, 3, 14504, 16, 8, 3, 30960, 455, 338, 1246, 5, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 5780, 4674, 11300, 272, 476, 1246, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the name and age of all males in order of their age.
SELECT name FROM Person WHERE gender = 'male' ORDER BY age
CREATE TABLE Person (name VARCHAR, gender VARCHAR, age VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 7285, 584, 4280, 28027, 6, 1246, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 11, 1246, 13, 66, 5069, 7, 16, 455, 13, 70, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 5780, 549, 17444, 427, 7285, 3274, 3, 31, 13513, 31, 4674, 11300, 272, 476, 1246, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the name and age of the person who is a friend of both Dan and Alice.
SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'
CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 1246, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 4350, 6, 332, 5411, 545, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 549, 17444, 427, 332, 4416, 15504, 3274, 3, 31, 308, 152, 3...
Find the name and age of the person who is a friend of Dan or Alice.
SELECT DISTINCT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'
CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 1246, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 332, 5411, 4350, 6, 332, 5411, 545, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 549, 17444, 427, 332, 4416, 15504, 327...
Find the name of the person who has friends with age above 40 and under age 30?
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)
CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 4350, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 549, 17444, 427, 332, 4416, 15504, 3388, 41, 23143, 14196, 564, 21680, 5780, 549, ...
Find the name of the person who has friends with age above 40 but not under age 30?
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)
CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 4350, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 549, 17444, 427, 332, 4416, 15504, 3388, 41, 23143, 14196, 564, 21680, 5780, 549, ...
Find the name of the person who has no student friends.
SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student'
CREATE TABLE Person (name VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE person (name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 613, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 564, 21680, 568, 262, 4, 30416, 3, 23143, 14196, 332, 4416, 4350, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 15504, 549, 17444, 427, 332, 5411, 16...
Find the person who has exactly one friend.
SELECT name FROM PersonFriend GROUP BY name HAVING COUNT(*) = 1
CREATE TABLE PersonFriend (name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 568, 113, 65, 1776, 80, 1565, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 5780, 17701, 350, 4630, 6880, 272, 476, 564, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who are the friends of Bob?
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob'
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 15504, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 61, 3, 32102, 32106, 32107,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 332, 4416, 15504, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 549, 17444, 427, 332, 5411, 4350, 3274, 3, 31, 279, 32, 115, 31, 1, -100, -10...
Find the name of persons who are friends with Bob.
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 61, 3, 32102, 32106, 32107,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 332, 5411, 4350, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 549, 17444, 427, 332, 4416, 15504, 3274, 3, 31, 279, 32, 115, 31, 1, -100, -10...
Find the names of females who are friends with Zach
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female'
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR, gender VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 7285, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 332, 5411, 4350, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 549, 17444, 427, 332, 4416, 15504, 3274, 3, 31, 956, 1836, 31, 3430, 332, 5411, ...
Find the female friends of Alice.
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female'
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, gender VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 15504, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 7285, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 332, 4416, 15504, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 15504, 549, 17444, 427, 332, 4416, 4350, 3274, 3, 31, 188, 2176, 15, 31, 3430, 332, ...
Find the male friend of Alice whose job is a doctor?
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor'
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, job VARCHAR, gender VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 15504, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 613, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 15504, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 15504, 549, 17444, 427, 332, 4416, 4350, 3274, 3, 31, 188, 2176, 15, 31, 3430, 332, ...
Who has a friend that is from new york city?
SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city'
CREATE TABLE Person (name VARCHAR, city VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 690, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 332, 4416, 4350, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 15504, 549, 17444, 427, 332, 5411, 6726, 3274, 3, 31, 5534, 25453, 690, 31, 1, -100, ...
Who has friends that are younger than the average age?
SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT AVG(age) FROM person)
CREATE TABLE person (age INTEGER); CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 568, 41, 545, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, 6, 1246, 3, 21342, 17966, 61, 3, 32102, 32106, 32101, 205, 438...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 332, 4416, 4350, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 15504, 549, 17444, 427, 332, 5411, 545, 3, 2, 41, 23143, 14196,...
Who has friends that are older than the average age? Print their friends and their ages as well
SELECT DISTINCT T2.name, T2.friend, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM person)
CREATE TABLE person (age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 568, 41, 545, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, 61, 3, 32102, 32106, 32101, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 332, 4416, 4350, 6, 332, 4416, 15504, 6, 332, 5411, 545, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 15504, 549, 17444, 427,...
Who is the friend of Zach with longest year relationship?
SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, YEAR INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 15504, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 6, 30431, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2645, 19, 8, 1565, 13, 22045, 28, 14783, 215, 1675, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1565, 21680, 5780, 17701, 549, 17444, 427, 564, 3274, 3, 31, 956, 1836, 31, 3430, 30431, 3274, 41, 23143, 14196, 4800, 4, 599, 476, 19356, 61, 21680, 5780, 17701, 549, 17444, 427, 564, 3274, 3, 31, 956, 1836, 31, 61...
What is the age of the friend of Zach with longest year relationship?
SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, year VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, name VARCHAR); CREATE TABLE Person (age VARCHAR, name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 15504, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 476, 19356, 3, 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...
[ 3, 23143, 14196, 332, 5411, 545, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 15504, 549, 17444, 427, 332, 4416, 4350, 3274, 3, 31, 956, 1836, 31, 3430, 332, 4416, ...
Find the name of persons who are friends with Alice for the shortest years.
SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT MIN(YEAR) FROM PersonFriend WHERE friend = 'Alice')
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, YEAR INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, 6, 30431, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 13, 7609, 113, 33, 803, 28, 13390, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 5780, 17701, 549, 17444, 427, 1565, 3274, 3, 31, 188, 2176, 15, 31, 3430, 30431, 3274, 41, 23143, 14196, 3, 17684, 599, 476, 19356, 61, 21680, 5780, 17701, 549, 17444, 427, 1565, 3274, 3, 31, 188, 2176, ...
Find the name, age, and job title of persons who are friends with Alice for the longest years.
SELECT T1.name, T1.age, T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE friend = 'Alice')
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, year VARCHAR); CREATE TABLE Person (name VARCHAR, age VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, friend VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 4350, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 4350, 6, 332, 5411, 545, 6, 332, 5411, 16899, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 549, 17444, 427, 332, 4416, 15504, 3274,...
Who is the person that has no friend?
SELECT name FROM person EXCEPT SELECT name FROM PersonFriend
CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE person (name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 568, 41, 4350, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 32106, 2645, 19, 8, 568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 568, 262, 4, 30416, 3, 23143, 14196, 564, 21680, 5780, 17701, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which person whose friends have the oldest average age?
SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, 545, 3, 21342, 17966, 6, 564, 584, 4280, 28027, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 332, 4416, 4350, 6, 71, 17217, 599, 382, 5411, 545, 61, 21680, 5780, 6157, 332, 536, 3, 15355, 3162, 5780, 17701, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 15504, 350, 4630, 6880, 272, 476, 332, 4416, ...
What is the total number of people who has no friend living in the city of Austin.
SELECT COUNT(DISTINCT name) FROM PersonFriend WHERE NOT friend IN (SELECT name FROM person WHERE city = 'Austin')
CREATE TABLE person (name VARCHAR, friend VARCHAR, city VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, city VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 568, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, 6, 690, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 564, 61, 21680, 5780, 17701, 549, 17444, 427, 4486, 1565, 3388, 41, 23143, 14196, 564, 21680, 568, 549, 17444, 427, 690, 3274, 3, 31, 14934, 17, 77, 31, 61, 1, -100, -100, -100, ...
Find Alice's friends of friends.
SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name <> 'Alice'
CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 4350, 584, 4280, 28027, 6, 1565, 584, 4280, 28027, 61, 3, 32102, 32106,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 332, 7984, 4350, 21680, 5780, 17701, 6157, 332, 536, 3, 15355, 3162, 5780, 6157, 332, 357, 9191, 332, 5411, 4350, 3274, 332, 4416, 4350, 3, 15355, 3162, 5780, 17701, 6157, 332, 519, 9191, 332, 5...
How many members are there?
SELECT COUNT(*) FROM member
CREATE TABLE member (Id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 724, 33, 132, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 1144, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
List the names of members in ascending alphabetical order.
SELECT Name FROM member ORDER BY Name
CREATE TABLE member (Name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 23954, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 3056, 13, 724, 16, 25200, 53, 20688, 1950, 455, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5570, 21680, 1144, 4674, 11300, 272, 476, 5570, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the names and countries of members?
SELECT Name, Country FROM member
CREATE TABLE member (Name VARCHAR, Country VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 23954, 584, 4280, 28027, 6, 6993, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 3056, 11, 1440, 13, 724, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5570, 6, 6993, 21680, 1144, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Show the names of members whose country is "United States" or "Canada".
SELECT Name FROM member WHERE Country = "United States" OR Country = "Canada"
CREATE TABLE member (Name VARCHAR, Country VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 23954, 584, 4280, 28027, 6, 6993, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 3111, 8, 3056, 13, 724, 3, 2544, 684, 19, 96, 5110, 23, 1054, 1323, 121, 42, 96, 2881...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5570, 21680, 1144, 549, 17444, 427, 6993, 3274, 96, 5110, 23, 1054, 1323, 121, 4674, 6993, 3274, 96, 28811, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the different countries and the number of members from each.
SELECT Country, COUNT(*) FROM member GROUP BY Country
CREATE TABLE member (Country VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 10628, 651, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 3111, 8, 315, 1440, 11, 8, 381, 13, 724, 45, 284, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6993, 6, 2847, 17161, 599, 1935, 61, 21680, 1144, 350, 4630, 6880, 272, 476, 6993, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the most common country across members.
SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE member (Country VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 10628, 651, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 3111, 8, 167, 1017, 684, 640, 724, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6993, 21680, 1144, 350, 4630, 6880, 272, 476, 6993, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which countries have more than two members?
SELECT Country FROM member GROUP BY Country HAVING COUNT(*) > 2
CREATE TABLE member (Country VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 10628, 651, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 4073, 1440, 43, 72, 145, 192, 724, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6993, 21680, 1144, 350, 4630, 6880, 272, 476, 6993, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the leader names and locations of colleges.
SELECT Leader_Name, College_Location FROM college
CREATE TABLE college (Leader_Name VARCHAR, College_Location VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1900, 41, 2796, 9, 588, 834, 23954, 584, 4280, 28027, 6, 1888, 834, 434, 32, 75, 257, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 3111, 8, 2488, 3056, 11, 3248, 13, 12936, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 10310, 834, 23954, 6, 1888, 834, 434, 32, 75, 257, 21680, 1900, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the names of members and names of colleges they go to.
SELECT T2.Name, T1.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID
CREATE TABLE member (Name VARCHAR, College_ID VARCHAR); CREATE TABLE college (Name VARCHAR, College_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 23954, 584, 4280, 28027, 6, 1888, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1900, 41, 23954, 584, 4280, 28027, 6, 1888, 834, 4309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 6, 332, 5411, 23954, 21680, 1900, 6157, 332, 536, 3, 15355, 3162, 1144, 6157, 332, 357, 9191, 332, 5411, 9939, 7883, 834, 4309, 3274, 332, 4416, 9939, 7883, 834, 4309, 1, -100, -100, -100, -100, -100...
Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.
SELECT T2.Name, T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name
CREATE TABLE member (Name VARCHAR, College_ID VARCHAR); CREATE TABLE college (College_Location VARCHAR, College_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 23954, 584, 4280, 28027, 6, 1888, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1900, 41, 9939, 7883, 834, 434, 32, 75, 257, 584, 4280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 6, 332, 5411, 9939, 7883, 834, 434, 32, 75, 257, 21680, 1900, 6157, 332, 536, 3, 15355, 3162, 1144, 6157, 332, 357, 9191, 332, 5411, 9939, 7883, 834, 4309, 3274, 332, 4416, 9939, 7883, 834, 4309, 4...
Show the distinct leader names of colleges associated with members from country "Canada".
SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = "Canada"
CREATE TABLE college (Leader_Name VARCHAR, College_ID VARCHAR); CREATE TABLE member (College_ID VARCHAR, Country VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1900, 41, 2796, 9, 588, 834, 23954, 584, 4280, 28027, 6, 1888, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1144, 41, 9939, 7883, 834, 4309, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 332, 5411, 2796, 9, 588, 834, 23954, 21680, 1900, 6157, 332, 536, 3, 15355, 3162, 1144, 6157, 332, 357, 9191, 332, 5411, 9939, 7883, 834, 4309, 3274, 332, 4416, 9939, 7883, 834, 4309, 549, 17444...
Show the names of members and the decoration themes they have.
SELECT T1.Name, T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID
CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Decoration_Theme VARCHAR, Member_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 23954, 584, 4280, 28027, 6, 8541, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1751, 41, 2962, 509, 2661, 834, 634, 526, 584, 4280, 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...
[ 3, 23143, 14196, 332, 5411, 23954, 6, 332, 4416, 2962, 509, 2661, 834, 634, 526, 21680, 1144, 6157, 332, 536, 3, 15355, 3162, 1751, 6157, 332, 357, 9191, 332, 5411, 329, 18247, 834, 4309, 3274, 332, 4416, 329, 18247, 834, 4309, 1, -...
Show the names of members that have a rank in round higher than 3.
SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3
CREATE TABLE round (Member_ID VARCHAR, Rank_in_Round INTEGER); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1751, 41, 329, 18247, 834, 4309, 584, 4280, 28027, 6, 3, 22557, 834, 77, 834, 448, 32, 1106, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1144, 41, 23954, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 23954, 21680, 1144, 6157, 332, 536, 3, 15355, 3162, 1751, 6157, 332, 357, 9191, 332, 5411, 329, 18247, 834, 4309, 3274, 332, 4416, 329, 18247, 834, 4309, 549, 17444, 427, 332, 4416, 22557, 834, 77, 834, 448...
Show the names of members in ascending order of their rank in rounds.
SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round
CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Member_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 23954, 584, 4280, 28027, 6, 8541, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1751, 41, 329, 18247, 834, 4309, 584, 4280, 28027, 61, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 332, 5411, 23954, 21680, 1144, 6157, 332, 536, 3, 15355, 3162, 1751, 6157, 332, 357, 9191, 332, 5411, 329, 18247, 834, 4309, 3274, 332, 4416, 329, 18247, 834, 4309, 4674, 11300, 272, 476, 3, 22557, 834, 77, 834, 448, ...
List the names of members who did not participate in any round.
SELECT Name FROM member WHERE NOT Member_ID IN (SELECT Member_ID FROM round)
CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Name VARCHAR, Member_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1144, 41, 23954, 584, 4280, 28027, 6, 8541, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1751, 41, 23954, 584, 4280, 28027, 6, 8541, 834, 4309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5570, 21680, 1144, 549, 17444, 427, 4486, 8541, 834, 4309, 3388, 41, 23143, 14196, 8541, 834, 4309, 21680, 1751, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Find the name and access counts of all documents, in alphabetic order of the document name.
SELECT document_name, access_count FROM documents ORDER BY document_name
CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 4350, 584, 4280, 28027, 6, 592, 834, 13362, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 11, 592, 12052, 13, 66, 2691, 6, 16, 20688, 447, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1708, 834, 4350, 6, 592, 834, 13362, 21680, 2691, 4674, 11300, 272, 476, 1708, 834, 4350, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the name of the document that has been accessed the greatest number of times, as well as the count of how many times it has been accessed?
SELECT document_name, access_count FROM documents ORDER BY access_count DESC LIMIT 1
CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 4350, 584, 4280, 28027, 6, 592, 834, 13362, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 13, 8, 1708, 24, 65, 118, 3, 11282, 8, 4016, 381,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 1708, 834, 4350, 6, 592, 834, 13362, 21680, 2691, 4674, 11300, 272, 476, 592, 834, 13362, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the types of documents with more than 4 documents.
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4
CREATE TABLE documents (document_type_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 6137, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 1308, 13, 2691, 28, 72, 145, 314, 2691, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1708, 834, 6137, 834, 4978, 21680, 2691, 350, 4630, 6880, 272, 476, 1708, 834, 6137, 834, 4978, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find the total access count of all documents in the most popular document type.
SELECT SUM(access_count) FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE documents (access_count INTEGER, document_type_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 20393, 834, 13362, 3, 21342, 17966, 6, 1708, 834, 6137, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 792, 592, 3476, 13, 66, 2691, 16, 8, 167, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 20393, 834, 13362, 61, 21680, 2691, 350, 4630, 6880, 272, 476, 1708, 834, 6137, 834, 4978, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -1...
What is the average access count of documents?
SELECT AVG(access_count) FROM documents
CREATE TABLE documents (access_count INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 20393, 834, 13362, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 1348, 592, 3476, 13, 2691, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 20393, 834, 13362, 61, 21680, 2691, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the structure of the document with the least number of accesses?
SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE document_structures (document_structure_description VARCHAR, document_structure_code VARCHAR); CREATE TABLE documents (document_structure_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1708, 834, 16180, 7, 41, 28244, 834, 16180, 834, 221, 11830, 584, 4280, 28027, 6, 1708, 834, 16180, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 4416, 28244, 834, 16180, 834, 221, 11830, 21680, 2691, 6157, 3, 17, 536, 3, 15355, 3162, 1708, 834, 16180, 7, 6157, 3, 17, 357, 9191, 3, 17, 5411, 28244, 834, 16180, 834, 4978, 3274, 3, 17, 4416, 28244, 834...
What is the type of the document named "David CV"?
SELECT document_type_code FROM documents WHERE document_name = "David CV"
CREATE TABLE documents (document_type_code VARCHAR, document_name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 6137, 834, 4978, 584, 4280, 28027, 6, 1708, 834, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 686, 13, 8, 1708, 2650, 96, 308, 9, 6961...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1708, 834, 6137, 834, 4978, 21680, 2691, 549, 17444, 427, 1708, 834, 4350, 3274, 96, 308, 9, 6961, 10430, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the list of documents that are both in the most three popular type and have the most three popular structure.
SELECT document_name FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) DESC LIMIT 3
CREATE TABLE documents (document_name VARCHAR, document_type_code VARCHAR, document_structure_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 4350, 584, 4280, 28027, 6, 1708, 834, 6137, 834, 4978, 584, 4280, 28027, 6, 1708, 834, 16180, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 1708, 834, 4350, 21680, 2691, 350, 4630, 6880, 272, 476, 1708, 834, 6137, 834, 4978, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 220, 3, 21342, 5249, 14196, 3, 23143, 14196, 1708, 834, ...
What document types do have more than 10000 total access number.
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING SUM(access_count) > 10000
CREATE TABLE documents (document_type_code VARCHAR, access_count INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 6137, 834, 4978, 584, 4280, 28027, 6, 592, 834, 13362, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 1708, 1308, 103, 43, 72, 145, 335, 2313, 792, 592,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1708, 834, 6137, 834, 4978, 21680, 2691, 350, 4630, 6880, 272, 476, 1708, 834, 6137, 834, 4978, 454, 6968, 2365, 180, 6122, 599, 20393, 834, 13362, 61, 2490, 335, 2313, 1, -100, -100, -100, -100, -100, -100, -100, -10...
What are all the section titles of the document named "David CV"?
SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = "David CV"
CREATE TABLE documents (document_code VARCHAR, document_name VARCHAR); CREATE TABLE document_sections (section_title VARCHAR, document_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 4978, 584, 4280, 28027, 6, 1708, 834, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1708, 834, 14309, 7, 41, 14309, 834, 21869, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 4416, 14309, 834, 21869, 21680, 2691, 6157, 3, 17, 536, 3, 15355, 3162, 1708, 834, 14309, 7, 6157, 3, 17, 357, 9191, 3, 17, 5411, 28244, 834, 4978, 3274, 3, 17, 4416, 28244, 834, 4978, 549, 17444, 427, 3, ...
Find all the name of documents without any sections.
SELECT document_name FROM documents WHERE NOT document_code IN (SELECT document_code FROM document_sections)
CREATE TABLE document_sections (document_name VARCHAR, document_code VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1708, 834, 14309, 7, 41, 28244, 834, 4350, 584, 4280, 28027, 6, 1708, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 4350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1708, 834, 4350, 21680, 2691, 549, 17444, 427, 4486, 1708, 834, 4978, 3388, 41, 23143, 14196, 1708, 834, 4978, 21680, 1708, 834, 14309, 7, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List all the username and passwords of users with the most popular role.
SELECT user_name, password FROM users GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE users (user_name VARCHAR, password VARCHAR, role_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1105, 41, 10041, 834, 4350, 584, 4280, 28027, 6, 4735, 584, 4280, 28027, 6, 1075, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 66, 8, 20304, 11, 4735, 7, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1139, 834, 4350, 6, 4735, 21680, 1105, 350, 4630, 6880, 272, 476, 1075, 834, 4978, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find the average access counts of documents with functional area "Acknowledgement".
SELECT AVG(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = "Acknowledgement"
CREATE TABLE document_functional_areas (document_code VARCHAR, functional_area_code VARCHAR); CREATE TABLE documents (access_count INTEGER, document_code VARCHAR); CREATE TABLE functional_areas (functional_area_code VARCHAR, functional_area_description VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1708, 834, 21601, 834, 498, 7, 41, 28244, 834, 4978, 584, 4280, 28027, 6, 5014, 834, 498, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 2691, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 17, 5411, 20393, 834, 13362, 61, 21680, 2691, 6157, 3, 17, 536, 3, 15355, 3162, 1708, 834, 21601, 834, 498, 7, 6157, 3, 17, 357, 9191, 3, 17, 5411, 28244, 834, 4978, 3274, 3, 17, 4416, 28244, 834, ...
Find names of the document without any images.
SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id
CREATE TABLE document_sections_images (section_id VARCHAR); CREATE TABLE documents (document_name VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR); CREATE TABLE document_sections (document_code VARCHAR, section_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1708, 834, 14309, 7, 834, 8221, 7, 41, 14309, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 4350, 584, 4280, 28027, 61, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1708, 834, 4350, 21680, 2691, 262, 4, 30416, 3, 23143, 14196, 3, 17, 5411, 28244, 834, 4350, 21680, 2691, 6157, 3, 17, 536, 3, 15355, 3162, 1708, 834, 14309, 7, 6157, 3, 17, 357, 9191, 3, 17, 5411, 28244, 834, 497...
What is the name of the document with the most number of sections?
SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code GROUP BY t1.document_code ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE document_sections (document_code VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1708, 834, 14309, 7, 41, 28244, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 4350, 584, 4280, 28027, 6, 1708, 834, 4978, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 5411, 28244, 834, 4350, 21680, 2691, 6157, 3, 17, 536, 3, 15355, 3162, 1708, 834, 14309, 7, 6157, 3, 17, 357, 9191, 3, 17, 5411, 28244, 834, 4978, 3274, 3, 17, 4416, 28244, 834, 4978, 350, 4630, 6880, 272, ...
List all the document names which contains "CV".
SELECT document_name FROM documents WHERE document_name LIKE "%CV%"
CREATE TABLE documents (document_name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 66, 8, 1708, 3056, 84, 2579, 96, 20410, 1280, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1708, 834, 4350, 21680, 2691, 549, 17444, 427, 1708, 834, 4350, 8729, 9914, 96, 1454, 20410, 1454, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
How many users are logged in?
SELECT COUNT(*) FROM users WHERE user_login = 1
CREATE TABLE users (user_login VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1105, 41, 10041, 834, 2152, 77, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 1105, 33, 3, 13880, 16, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 1105, 549, 17444, 427, 1139, 834, 2152, 77, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the description of the most popular role among the users that have logged in.
SELECT role_description FROM ROLES WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1)
CREATE TABLE users (role_description VARCHAR, role_code VARCHAR, user_login VARCHAR); CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR, user_login VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1105, 41, 3491, 15, 834, 221, 11830, 584, 4280, 28027, 6, 1075, 834, 4978, 584, 4280, 28027, 6, 1139, 834, 2152, 77, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1075, 834, 221, 11830, 21680, 10264, 12335, 549, 17444, 427, 1075, 834, 4978, 3274, 41, 23143, 14196, 1075, 834, 4978, 21680, 1105, 549, 17444, 427, 1139, 834, 2152, 77, 3274, 209, 350, 4630, 6880, 272, 476, 1075, 834, ...
Find the average access count of documents with the least popular structure.
SELECT AVG(access_count) FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) LIMIT 1
CREATE TABLE documents (access_count INTEGER, document_structure_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 20393, 834, 13362, 3, 21342, 17966, 6, 1708, 834, 16180, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 1348, 592, 3476, 13, 2691, 28, 8, 709, 1012,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 20393, 834, 13362, 61, 21680, 2691, 350, 4630, 6880, 272, 476, 1708, 834, 16180, 834, 4978, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -...
List all the image name and URLs in the order of their names.
SELECT image_name, image_url FROM images ORDER BY image_name
CREATE TABLE images (image_name VARCHAR, image_url VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1383, 41, 8221, 834, 4350, 584, 4280, 28027, 6, 1023, 834, 16137, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 66, 8, 1023, 564, 11, 8889, 7, 16, 8, 455, 13, 70, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1023, 834, 4350, 6, 1023, 834, 16137, 21680, 1383, 4674, 11300, 272, 476, 1023, 834, 4350, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Find the number of users in each role.
SELECT COUNT(*), role_code FROM users GROUP BY role_code
CREATE TABLE users (role_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1105, 41, 3491, 15, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 381, 13, 1105, 16, 284, 1075, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 201, 1075, 834, 4978, 21680, 1105, 350, 4630, 6880, 272, 476, 1075, 834, 4978, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What document types have more than 2 corresponding documents?
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 2
CREATE TABLE documents (document_type_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 2691, 41, 28244, 834, 6137, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 1708, 1308, 43, 72, 145, 204, 3, 9921, 2691, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1708, 834, 6137, 834, 4978, 21680, 2691, 350, 4630, 6880, 272, 476, 1708, 834, 6137, 834, 4978, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
How many companies are there?
SELECT COUNT(*) FROM Companies
CREATE TABLE Companies (Id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 11239, 41, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 688, 33, 132, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 11239, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List the names of companies in descending order of market value.
SELECT name FROM Companies ORDER BY Market_Value_billion DESC
CREATE TABLE Companies (name VARCHAR, Market_Value_billion VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 11239, 41, 4350, 584, 4280, 28027, 6, 3611, 834, 18392, 76, 15, 834, 115, 14916, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 3056, 13, 688, 16, 3, 30960, 455, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 11239, 4674, 11300, 272, 476, 3611, 834, 18392, 76, 15, 834, 115, 14916, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are the names of companies whose headquarters are not "USA"?
SELECT name FROM Companies WHERE Headquarters <> 'USA'
CREATE TABLE Companies (name VARCHAR, Headquarters VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 11239, 41, 4350, 584, 4280, 28027, 6, 31282, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 3056, 13, 688, 3, 2544, 13767, 33, 59, 96, 17663, 121, 58, 1, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 11239, 549, 17444, 427, 31282, 3, 2, 3155, 3, 31, 17663, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What are the name and assets of each company, sorted in ascending order of company name?
SELECT name, Assets_billion FROM Companies ORDER BY name
CREATE TABLE Companies (name VARCHAR, Assets_billion VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 11239, 41, 4350, 584, 4280, 28027, 6, 18202, 7, 834, 115, 14916, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 564, 11, 4089, 13, 284, 349, 6, 3, 14504, 16, 25200,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 18202, 7, 834, 115, 14916, 21680, 11239, 4674, 11300, 272, 476, 564, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the average profits of companies?
SELECT AVG(Profits_billion) FROM Companies
CREATE TABLE Companies (Profits_billion INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 11239, 41, 23057, 7085, 834, 115, 14916, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 1348, 9613, 13, 688, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 23057, 7085, 834, 115, 14916, 61, 21680, 11239, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What are the maximum and minimum sales of the companies whose industries are not "Banking".
SELECT MAX(Sales_billion), MIN(Sales_billion) FROM Companies WHERE Industry <> "Banking"
CREATE TABLE Companies (Sales_billion INTEGER, Industry VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 11239, 41, 134, 4529, 834, 115, 14916, 3, 21342, 17966, 6, 9036, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 2411, 11, 2559, 1085, 13, 8, 688, 3, 2544, 5238, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 134, 4529, 834, 115, 14916, 201, 3, 17684, 599, 134, 4529, 834, 115, 14916, 61, 21680, 11239, 549, 17444, 427, 9036, 3, 2, 3155, 96, 21347, 53, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many different industries are the companies in?
SELECT COUNT(DISTINCT Industry) FROM Companies
CREATE TABLE Companies (Industry VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 11239, 41, 1570, 8655, 8224, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 315, 5238, 33, 8, 688, 16, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 9036, 61, 21680, 11239, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List the names of buildings in descending order of building height.
SELECT name FROM buildings ORDER BY Height DESC
CREATE TABLE buildings (name VARCHAR, Height VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3950, 41, 4350, 584, 4280, 28027, 6, 24231, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 3056, 13, 3950, 16, 3, 30960, 455, 13, 740, 3902, 5, 1, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 3950, 4674, 11300, 272, 476, 24231, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the stories of the building with the largest height.
SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1
CREATE TABLE buildings (Stories VARCHAR, Height VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3950, 41, 134, 235, 2593, 584, 4280, 28027, 6, 24231, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 1937, 13, 8, 740, 28, 8, 2015, 3902, 5, 1, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 20406, 21680, 3950, 4674, 11300, 272, 476, 24231, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List the name of a building along with the name of a company whose office is in the building.
SELECT T3.name, T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id
CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR); CREATE TABLE Companies (name VARCHAR, id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3950, 41, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 2126, 834, 14836, 7, 41, 10905, 834, 23, 26, 584, 4280, 280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 4350, 6, 332, 4416, 4350, 21680, 2126, 834, 14836, 7, 6157, 332, 536, 3, 15355, 3162, 3950, 6157, 332, 357, 9191, 332, 5411, 10905, 834, 23, 26, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 11239, 6157, 332, ...
Show the names of the buildings that have more than one company offices.
SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1
CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3950, 41, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 11239, 41, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 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...
[ 3, 23143, 14196, 332, 4416, 4350, 21680, 2126, 834, 14836, 7, 6157, 332, 536, 3, 15355, 3162, 3950, 6157, 332, 357, 9191, 332, 5411, 10905, 834, 23, 26, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 11239, 6157, 332, 519, 9191, 332, 5411...
Show the name of the building that has the most company offices.
SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3950, 41, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 11239, 41, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 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...
[ 3, 23143, 14196, 332, 4416, 4350, 21680, 2126, 834, 14836, 7, 6157, 332, 536, 3, 15355, 3162, 3950, 6157, 332, 357, 9191, 332, 5411, 10905, 834, 23, 26, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 11239, 6157, 332, 519, 9191, 332, 5411...
Please show the names of the buildings whose status is "on-hold", in ascending order of stories.
SELECT name FROM buildings WHERE Status = "on-hold" ORDER BY Stories
CREATE TABLE buildings (name VARCHAR, Status VARCHAR, Stories VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3950, 41, 4350, 584, 4280, 28027, 6, 19318, 584, 4280, 28027, 6, 20406, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 863, 504, 8, 3056, 13, 8, 3950, 3, 2544, 2637, 19, 96, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 3950, 549, 17444, 427, 19318, 3274, 96, 106, 18, 6134, 121, 4674, 11300, 272, 476, 20406, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...