[ { "question_text": "How many cars have a larger accelerate than the car with the largest horsepower?", "database_name": "car_1", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", "gold_answer": 39, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_000" }, { "question_text": "What is the number of cars with a greater accelerate than the one with the most horsepower?", "database_name": "car_1", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", "gold_answer": 39, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_001" }, { "question_text": "How many cars has over 6 cylinders?", "database_name": "car_1", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", "gold_answer": 108, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_002" }, { "question_text": "What is the number of carsw ith over 6 cylinders?", "database_name": "car_1", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", "gold_answer": 108, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_003" }, { "question_text": "What is the number of car models that are produced by each maker and what is the id and full name of each maker?", "database_name": "car_1", "gold_sql": "SELECT Count(*) , T2.FullName , T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id;", "gold_answer": [ [ 1, "American Motor Company", 1 ], [ 2, "Volkswagen", 2 ], [ 1, "BMW", 3 ], [ 5, "General Motors", 4 ], [ 3, "Ford Motor Company", 5 ], [ 4, "Chrysler", 6 ], [ 1, "Citroen", 7 ], [ 2, "Nissan Motors", 8 ], [ 1, "Fiat", 9 ], [ 1, "Honda", 11 ], [ 1, "Mazda", 12 ], [ 2, "Daimler Benz", 13 ], [ 1, "Opel", 14 ], [ 1, "Peugeaut", 15 ], [ 1, "Renault", 16 ], [ 1, "Saab", 17 ], [ 1, "Subaru", 18 ], [ 2, "Toyota", 19 ], [ 1, "Triumph", 20 ], [ 1, "Volvo", 21 ], [ 1, "Kia Motors", 22 ], [ 1, "Hyundai", 23 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_004" }, { "question_text": "What are the name of the countries where there is not a single car maker?", "database_name": "car_1", "gold_sql": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", "gold_answer": [ "australia", "brazil", "egypt", "mexico", "new zealand", "nigeria", "russia" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "countries" ], "split": "train", "question_id": "car_1_train_005" }, { "question_text": "What are the names of the countries with no car makers?", "database_name": "car_1", "gold_sql": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", "gold_answer": [ "australia", "brazil", "egypt", "mexico", "new zealand", "nigeria", "russia" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "countries" ], "split": "train", "question_id": "car_1_train_006" }, { "question_text": "Find the name of the makers that produced some cars in the year of 1970?", "database_name": "car_1", "gold_sql": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';", "gold_answer": [ "gm", "chrysler", "amc", "ford", "citroen", "toyota", "nissan", "volkswagen", "peugeaut", "saab", "bmw" ], "answer_type": "list", "difficulty": "hard", "tables_involved": [ "CARS_DATA", "CAR_MAKERS", "CAR_NAMES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_007" }, { "question_text": "What is the name of the different car makers who produced a car in 1970?", "database_name": "car_1", "gold_sql": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';", "gold_answer": [ "gm", "chrysler", "amc", "ford", "citroen", "toyota", "nissan", "volkswagen", "peugeaut", "saab", "bmw" ], "answer_type": "list", "difficulty": "hard", "tables_involved": [ "CARS_DATA", "CAR_MAKERS", "CAR_NAMES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_008" }, { "question_text": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?", "database_name": "car_1", "gold_sql": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';", "gold_answer": [ "plymouth", "amc", "citroen", "buick", "toyota", "datsun", "volkswagen", "peugeot", "audi", "saab", "bmw", "chevrolet", "pontiac", "opel", "fiat", "dodge", "mazda", "volvo", "renault", "honda", "subaru", "oldsmobile", "mercedes-benz", "triumph", "chrysler", "nissan" ], "answer_type": "list", "difficulty": "hard", "tables_involved": [ "CARS_DATA", "CAR_MAKERS", "CAR_NAMES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_009" }, { "question_text": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?", "database_name": "car_1", "gold_sql": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';", "gold_answer": [ "plymouth", "amc", "citroen", "buick", "toyota", "datsun", "volkswagen", "peugeot", "audi", "saab", "bmw", "chevrolet", "pontiac", "opel", "fiat", "dodge", "mazda", "volvo", "renault", "honda", "subaru", "oldsmobile", "mercedes-benz", "triumph", "chrysler", "nissan" ], "answer_type": "list", "difficulty": "hard", "tables_involved": [ "CARS_DATA", "CAR_MAKERS", "CAR_NAMES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_010" }, { "question_text": "What are the different models for the cards produced after 1980?", "database_name": "car_1", "gold_sql": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;", "gold_answer": [ "plymouth", "buick", "dodge", "chevrolet", "toyota", "honda", "subaru", "datsun", "mazda", "ford", "volkswagen", "renault", "peugeot", "saab", "volvo", "oldsmobile", "chrysler", "pontiac", "amc", "mercury", "nissan" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "CARS_DATA", "CAR_NAMES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_011" }, { "question_text": "Which distinct car models are the produced after 1980?", "database_name": "car_1", "gold_sql": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;", "gold_answer": [ "plymouth", "buick", "dodge", "chevrolet", "toyota", "honda", "subaru", "datsun", "mazda", "ford", "volkswagen", "renault", "peugeot", "saab", "volvo", "oldsmobile", "chrysler", "pontiac", "amc", "mercury", "nissan" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "CARS_DATA", "CAR_NAMES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_012" }, { "question_text": "What are the different models created by either the car maker General Motors or weighed more than 3500?", "database_name": "car_1", "gold_sql": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;", "gold_answer": [ "chevrolet", "buick", "ford", "plymouth", "pontiac", "amc", "dodge", "mercury", "oldsmobile", "chrysler", "mercedes-benz", "cadillac", "mercedes" ], "answer_type": "list", "difficulty": "hard", "tables_involved": [ "CARS_DATA", "CAR_MAKERS", "CAR_NAMES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_013" }, { "question_text": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", "database_name": "car_1", "gold_sql": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;", "gold_answer": [ "chevrolet", "buick", "ford", "plymouth", "pontiac", "amc", "dodge", "mercury", "oldsmobile", "chrysler", "mercedes-benz", "cadillac", "mercedes" ], "answer_type": "list", "difficulty": "hard", "tables_involved": [ "CARS_DATA", "CAR_MAKERS", "CAR_NAMES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_014" }, { "question_text": "What are all the makers and models?", "database_name": "car_1", "gold_sql": "SELECT Maker , Model FROM MODEL_LIST;", "gold_answer": [ [ 1, "amc" ], [ 2, "audi" ], [ 3, "bmw" ], [ 4, "buick" ], [ 4, "cadillac" ], [ 5, "capri" ], [ 4, "chevrolet" ], [ 6, "chrysler" ], [ 7, "citroen" ], [ 8, "datsun" ], [ 6, "dodge" ], [ 9, "fiat" ], [ 5, "ford" ], [ 10, "hi" ], [ 11, "honda" ], [ 12, "mazda" ], [ 13, "mercedes" ], [ 13, "mercedes-benz" ], [ 5, "mercury" ], [ 8, "nissan" ], [ 4, "oldsmobile" ], [ 14, "opel" ], [ 15, "peugeot" ], [ 6, "plymouth" ], [ 4, "pontiac" ], [ 16, "renault" ], [ 17, "saab" ], [ 18, "subaru" ], [ 19, "toyota" ], [ 20, "triumph" ], [ 2, "volkswagen" ], [ 21, "volvo" ], [ 22, "kia" ], [ 23, "hyundai" ], [ 6, "jeep" ], [ 19, "scion" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_015" }, { "question_text": "What are the makers and models?", "database_name": "car_1", "gold_sql": "SELECT Maker , Model FROM MODEL_LIST;", "gold_answer": [ [ 1, "amc" ], [ 2, "audi" ], [ 3, "bmw" ], [ 4, "buick" ], [ 4, "cadillac" ], [ 5, "capri" ], [ 4, "chevrolet" ], [ 6, "chrysler" ], [ 7, "citroen" ], [ 8, "datsun" ], [ 6, "dodge" ], [ 9, "fiat" ], [ 5, "ford" ], [ 10, "hi" ], [ 11, "honda" ], [ 12, "mazda" ], [ 13, "mercedes" ], [ 13, "mercedes-benz" ], [ 5, "mercury" ], [ 8, "nissan" ], [ 4, "oldsmobile" ], [ 14, "opel" ], [ 15, "peugeot" ], [ 6, "plymouth" ], [ 4, "pontiac" ], [ 16, "renault" ], [ 17, "saab" ], [ 18, "subaru" ], [ 19, "toyota" ], [ 20, "triumph" ], [ 2, "volkswagen" ], [ 21, "volvo" ], [ 22, "kia" ], [ 23, "hyundai" ], [ 6, "jeep" ], [ 19, "scion" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_016" }, { "question_text": "What model has the most different versions?", "database_name": "car_1", "gold_sql": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", "gold_answer": "ford", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_017" }, { "question_text": "Which model has the most version(make) of cars?", "database_name": "car_1", "gold_sql": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", "gold_answer": "ford", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_018" }, { "question_text": "How much does the car accelerate that makes amc hornet sportabout (sw)?", "database_name": "car_1", "gold_sql": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';", "gold_answer": 13.5, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_019" }, { "question_text": "What is the accelerate of the car make amc hornet sportabout (sw)?", "database_name": "car_1", "gold_sql": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';", "gold_answer": 13.5, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_020" }, { "question_text": "For each continent, list its id, name, and how many countries it has?", "database_name": "car_1", "gold_sql": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", "gold_answer": [ [ 1, "america", 3 ], [ 2, "europe", 6 ], [ 3, "asia", 2 ], [ 4, "africa", 2 ], [ 5, "australia", 2 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CONTINENTS", "COUNTRIES" ], "split": "train", "question_id": "car_1_train_021" }, { "question_text": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "database_name": "car_1", "gold_sql": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", "gold_answer": [ [ 1, "america", 3 ], [ 2, "europe", 6 ], [ 3, "asia", 2 ], [ 4, "africa", 2 ], [ 5, "australia", 2 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CONTINENTS", "COUNTRIES" ], "split": "train", "question_id": "car_1_train_022" }, { "question_text": "How many car makers are there in each continents? List the continent name and the count.", "database_name": "car_1", "gold_sql": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;", "gold_answer": [ [ "america", 4 ], [ "asia", 7 ], [ "europe", 11 ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "CONTINENTS", "COUNTRIES", "car_makers" ], "split": "train", "question_id": "car_1_train_023" }, { "question_text": "What is the name of each continent and how many car makers are there in each one?", "database_name": "car_1", "gold_sql": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;", "gold_answer": [ [ "america", 4 ], [ "asia", 7 ], [ "europe", 11 ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "CONTINENTS", "COUNTRIES", "car_makers" ], "split": "train", "question_id": "car_1_train_024" }, { "question_text": "What are the countries having at least one car maker? List name and id.", "database_name": "car_1", "gold_sql": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", "gold_answer": [ [ "usa", 1 ], [ "germany", 2 ], [ "france", 3 ], [ "japan", 4 ], [ "italy", 5 ], [ "sweden", 6 ], [ "uk", 7 ], [ "korea", 8 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "COUNTRIES" ], "split": "train", "question_id": "car_1_train_025" }, { "question_text": "What are the names and ids of all countries with at least one car maker?", "database_name": "car_1", "gold_sql": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", "gold_answer": [ [ "usa", 1 ], [ "germany", 2 ], [ "france", 3 ], [ "japan", 4 ], [ "italy", 5 ], [ "sweden", 6 ], [ "uk", 7 ], [ "korea", 8 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "COUNTRIES" ], "split": "train", "question_id": "car_1_train_026" }, { "question_text": "What are the names of all European countries with at least 3 manufacturers?", "database_name": "car_1", "gold_sql": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", "gold_answer": [ "france", "germany" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "CAR_MAKERS", "CONTINENTS", "COUNTRIES" ], "split": "train", "question_id": "car_1_train_027" }, { "question_text": "Which countries in europe have at least 3 car manufacturers?", "database_name": "car_1", "gold_sql": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", "gold_answer": [ "france", "germany" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "CAR_MAKERS", "CONTINENTS", "COUNTRIES" ], "split": "train", "question_id": "car_1_train_028" }, { "question_text": "How many models does each car maker produce? List maker full name, id and the number.", "database_name": "car_1", "gold_sql": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;", "gold_answer": [ [ "American Motor Company", 1, 1 ], [ "Volkswagen", 2, 2 ], [ "BMW", 3, 1 ], [ "General Motors", 4, 5 ], [ "Ford Motor Company", 5, 3 ], [ "Chrysler", 6, 4 ], [ "Citroen", 7, 1 ], [ "Nissan Motors", 8, 2 ], [ "Fiat", 9, 1 ], [ "Honda", 11, 1 ], [ "Mazda", 12, 1 ], [ "Daimler Benz", 13, 2 ], [ "Opel", 14, 1 ], [ "Peugeaut", 15, 1 ], [ "Renault", 16, 1 ], [ "Saab", 17, 1 ], [ "Subaru", 18, 1 ], [ "Toyota", 19, 2 ], [ "Triumph", 20, 1 ], [ "Volvo", 21, 1 ], [ "Kia Motors", 22, 1 ], [ "Hyundai", 23, 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_029" }, { "question_text": "What is the full name of each car maker, along with its id and how many models it produces?", "database_name": "car_1", "gold_sql": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;", "gold_answer": [ [ "American Motor Company", 1, 1 ], [ "Volkswagen", 2, 2 ], [ "BMW", 3, 1 ], [ "General Motors", 4, 5 ], [ "Ford Motor Company", 5, 3 ], [ "Chrysler", 6, 4 ], [ "Citroen", 7, 1 ], [ "Nissan Motors", 8, 2 ], [ "Fiat", 9, 1 ], [ "Honda", 11, 1 ], [ "Mazda", 12, 1 ], [ "Daimler Benz", 13, 2 ], [ "Opel", 14, 1 ], [ "Peugeaut", 15, 1 ], [ "Renault", 16, 1 ], [ "Saab", 17, 1 ], [ "Subaru", 18, 1 ], [ "Toyota", 19, 2 ], [ "Triumph", 20, 1 ], [ "Volvo", 21, 1 ], [ "Kia Motors", 22, 1 ], [ "Hyundai", 23, 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_030" }, { "question_text": "What are the names and ids of all makers with more than 3 models?", "database_name": "car_1", "gold_sql": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", "gold_answer": [ [ "General Motors", 4 ], [ "Chrysler", 6 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_031" }, { "question_text": "Which makers designed more than 3 car models? List full name and the id.", "database_name": "car_1", "gold_sql": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", "gold_answer": [ [ "General Motors", 4 ], [ "Chrysler", 6 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_032" }, { "question_text": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", "database_name": "car_1", "gold_sql": "SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) >= 2 INTERSECT SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING count(*) > 3;", "gold_answer": [ [ 2, "volkswagen" ], [ 4, "gm" ], [ 5, "ford" ], [ 6, "chrysler" ], [ 8, "nissan" ], [ 19, "toyota" ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "CAR_MAKERS", "CAR_NAMES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_033" }, { "question_text": "What is the model of the car with the smallest amount of horsepower?", "database_name": "car_1", "gold_sql": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;", "gold_answer": "amc", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_034" }, { "question_text": "Which model of the car has the minimum horsepower?", "database_name": "car_1", "gold_sql": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;", "gold_answer": "amc", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_035" }, { "question_text": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", "database_name": "car_1", "gold_sql": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1;", "gold_answer": "citroen", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_036" }, { "question_text": "For all of the 4 cylinder cars, which model has the most horsepower?", "database_name": "car_1", "gold_sql": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;", "gold_answer": "ford", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_037" }, { "question_text": "For the cars with 4 cylinders, which model has the largest horsepower?", "database_name": "car_1", "gold_sql": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;", "gold_answer": "ford", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_038" }, { "question_text": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "database_name": "car_1", "gold_sql": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat';", "gold_answer": [ [ 1, "usa" ], [ 2, "germany" ], [ 4, "japan" ], [ 5, "italy" ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "CAR_MAKERS", "Countries", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_039" }, { "question_text": "For a volvo model, how many cylinders does the version with least accelerate have?", "database_name": "car_1", "gold_sql": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", "gold_answer": 6, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_040" }, { "question_text": "For model volvo, how many cylinders does the car with the least accelerate have?", "database_name": "car_1", "gold_sql": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", "gold_answer": 6, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_041" }, { "question_text": "What is the horsepower of the car with the greatest accelerate?", "database_name": "car_1", "gold_sql": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", "gold_answer": "71", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_042" }, { "question_text": "What is the horsepower of the car with the largest accelerate?", "database_name": "car_1", "gold_sql": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", "gold_answer": "71", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_043" }, { "question_text": "Find the model of the car whose weight is below the average weight.", "database_name": "car_1", "gold_sql": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)", "gold_answer": [ "toyota", "plymouth", "amc", "ford", "datsun", "volkswagen", "peugeot", "audi", "saab", "bmw", "amc", "datsun", "chevrolet", "toyota", "ford", "volkswagen", "amc", "amc", "chevrolet", "mercury", "opel", "peugeot", "fiat", "toyota", "datsun", "volkswagen", "plymouth", "toyota", "dodge", "volkswagen", "chevrolet", "ford", "mazda", "volvo", "volkswagen", "peugeot", "renault", "ford", "datsun", "toyota", "dodge", "toyota", "amc", "plymouth", "volkswagen", "amc", "toyota", "chevrolet", "datsun", "mazda", "ford", "mercury", "fiat", "fiat", "opel", "audi", "volvo", "saab", "toyota", "ford", "amc", "datsun", "ford", "toyota", "chevrolet", "audi", "volkswagen", "opel", "toyota", "datsun", "dodge", "fiat", "fiat", "honda", "subaru", "fiat", "toyota", "ford", "amc", "pontiac", "toyota", "volkswagen", "datsun", "volkswagen", "audi", "peugeot", "volvo", "saab", "honda", "fiat", "opel", "capri", "dodge", "renault", "chevrolet", "chevrolet", "volkswagen", "honda", "volkswagen", "datsun", "toyota", "ford", "toyota", "honda", "buick", "renault", "plymouth", "datsun", "volkswagen", "pontiac", "toyota", "ford", "chevrolet", "dodge", "subaru", "volkswagen", "datsun", "bmw", "mazda", "volkswagen", "ford", "mazda", "datsun", "honda", "ford", "ford", "chevrolet", "toyota", "datsun", "dodge", "toyota", "plymouth", "oldsmobile", "datsun", "audi", "saab", "volkswagen", "honda", "ford", "volkswagen", "mazda", "dodge", "amc", "plymouth", "plymouth", "datsun", "fiat", "buick", "chevrolet", "oldsmobile", "pontiac", "volkswagen", "toyota", "chevrolet", "datsun", "chevrolet", "ford", "audi", "toyota", "mazda", "datsun", "toyota", "mazda", "dodge", "datsun", "volkswagen", "volkswagen", "audi", "honda", "renault", "subaru", " volkswagen", "datsun", "mazda", "triumph", "ford", "honda", "plymouth", "buick", "dodge", "chevrolet", "plymouth", "toyota", "plymouth", "honda", "subaru", "datsun", "toyota", "mazda", "plymouth", "ford", "ford", "volkswagen", "renault", "honda", "toyota", "datsun", "mazda", "saab", "toyota", "datsun", "chevrolet", "chevrolet", "chevrolet", "pontiac", "dodge", "pontiac", "ford", "volkswagen", "mazda", "mazda", "plymouth", "mercury", "nissan", "honda", "toyota", "honda", "honda", "datsun", "buick", "chrysler", "ford", "toyota", "dodge", "chevrolet", "ford", "volkswagen", "dodge", "ford", "chevrolet" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_044" }, { "question_text": "What is the model for the car with a weight smaller than the average?", "database_name": "car_1", "gold_sql": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)", "gold_answer": [ "toyota", "plymouth", "amc", "ford", "datsun", "volkswagen", "peugeot", "audi", "saab", "bmw", "amc", "datsun", "chevrolet", "toyota", "ford", "volkswagen", "amc", "amc", "chevrolet", "mercury", "opel", "peugeot", "fiat", "toyota", "datsun", "volkswagen", "plymouth", "toyota", "dodge", "volkswagen", "chevrolet", "ford", "mazda", "volvo", "volkswagen", "peugeot", "renault", "ford", "datsun", "toyota", "dodge", "toyota", "amc", "plymouth", "volkswagen", "amc", "toyota", "chevrolet", "datsun", "mazda", "ford", "mercury", "fiat", "fiat", "opel", "audi", "volvo", "saab", "toyota", "ford", "amc", "datsun", "ford", "toyota", "chevrolet", "audi", "volkswagen", "opel", "toyota", "datsun", "dodge", "fiat", "fiat", "honda", "subaru", "fiat", "toyota", "ford", "amc", "pontiac", "toyota", "volkswagen", "datsun", "volkswagen", "audi", "peugeot", "volvo", "saab", "honda", "fiat", "opel", "capri", "dodge", "renault", "chevrolet", "chevrolet", "volkswagen", "honda", "volkswagen", "datsun", "toyota", "ford", "toyota", "honda", "buick", "renault", "plymouth", "datsun", "volkswagen", "pontiac", "toyota", "ford", "chevrolet", "dodge", "subaru", "volkswagen", "datsun", "bmw", "mazda", "volkswagen", "ford", "mazda", "datsun", "honda", "ford", "ford", "chevrolet", "toyota", "datsun", "dodge", "toyota", "plymouth", "oldsmobile", "datsun", "audi", "saab", "volkswagen", "honda", "ford", "volkswagen", "mazda", "dodge", "amc", "plymouth", "plymouth", "datsun", "fiat", "buick", "chevrolet", "oldsmobile", "pontiac", "volkswagen", "toyota", "chevrolet", "datsun", "chevrolet", "ford", "audi", "toyota", "mazda", "datsun", "toyota", "mazda", "dodge", "datsun", "volkswagen", "volkswagen", "audi", "honda", "renault", "subaru", " volkswagen", "datsun", "mazda", "triumph", "ford", "honda", "plymouth", "buick", "dodge", "chevrolet", "plymouth", "toyota", "plymouth", "honda", "subaru", "datsun", "toyota", "mazda", "plymouth", "ford", "ford", "volkswagen", "renault", "honda", "toyota", "datsun", "mazda", "saab", "toyota", "datsun", "chevrolet", "chevrolet", "chevrolet", "pontiac", "dodge", "pontiac", "ford", "volkswagen", "mazda", "mazda", "plymouth", "mercury", "nissan", "honda", "toyota", "honda", "honda", "datsun", "buick", "chrysler", "ford", "toyota", "dodge", "chevrolet", "ford", "volkswagen", "dodge", "ford", "chevrolet" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_045" }, { "question_text": "What is the name of the country with the most car makers?", "database_name": "car_1", "gold_sql": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;", "gold_answer": "japan", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "COUNTRIES" ], "split": "train", "question_id": "car_1_train_046" }, { "question_text": "Which of the countries has the most car makers? List the country name.", "database_name": "car_1", "gold_sql": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;", "gold_answer": "japan", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "COUNTRIES" ], "split": "train", "question_id": "car_1_train_047" }, { "question_text": "Find the make and production time of the cars that were produced in the earliest year?", "database_name": "car_1", "gold_sql": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);", "gold_answer": [ [ "chevrolet chevelle malibu", 1970 ], [ "buick skylark 320", 1970 ], [ "plymouth satellite", 1970 ], [ "amc rebel sst", 1970 ], [ "ford torino", 1970 ], [ "ford galaxie 500", 1970 ], [ "chevrolet impala", 1970 ], [ "plymouth fury iii", 1970 ], [ "pontiac catalina", 1970 ], [ "amc ambassador dpl", 1970 ], [ "citroen ds-21 pallas", 1970 ], [ "chevrolet chevelle concours (sw)", 1970 ], [ "ford torino (sw)", 1970 ], [ "plymouth satellite (sw)", 1970 ], [ "amc rebel sst (sw)", 1970 ], [ "dodge challenger se", 1970 ], [ "plymouth cuda 340", 1970 ], [ "ford mustang boss 302", 1970 ], [ "chevrolet monte carlo", 1970 ], [ "buick estate wagon (sw)", 1970 ], [ "toyota corona mark ii", 1970 ], [ "plymouth duster", 1970 ], [ "amc hornet", 1970 ], [ "ford maverick", 1970 ], [ "datsun pl510", 1970 ], [ "volkswagen 1131 deluxe sedan", 1970 ], [ "peugeot 504", 1970 ], [ "audi 100 ls", 1970 ], [ "saab 99e", 1970 ], [ "bmw 2002", 1970 ], [ "amc gremlin", 1970 ], [ "ford f250", 1970 ], [ "chevy c20", 1970 ], [ "dodge d200", 1970 ], [ "hi 1200d", 1970 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_048" }, { "question_text": "What is the maker of the carr produced in the earliest year and what year was it?", "database_name": "car_1", "gold_sql": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);", "gold_answer": [ [ "chevrolet chevelle malibu", 1970 ], [ "buick skylark 320", 1970 ], [ "plymouth satellite", 1970 ], [ "amc rebel sst", 1970 ], [ "ford torino", 1970 ], [ "ford galaxie 500", 1970 ], [ "chevrolet impala", 1970 ], [ "plymouth fury iii", 1970 ], [ "pontiac catalina", 1970 ], [ "amc ambassador dpl", 1970 ], [ "citroen ds-21 pallas", 1970 ], [ "chevrolet chevelle concours (sw)", 1970 ], [ "ford torino (sw)", 1970 ], [ "plymouth satellite (sw)", 1970 ], [ "amc rebel sst (sw)", 1970 ], [ "dodge challenger se", 1970 ], [ "plymouth cuda 340", 1970 ], [ "ford mustang boss 302", 1970 ], [ "chevrolet monte carlo", 1970 ], [ "buick estate wagon (sw)", 1970 ], [ "toyota corona mark ii", 1970 ], [ "plymouth duster", 1970 ], [ "amc hornet", 1970 ], [ "ford maverick", 1970 ], [ "datsun pl510", 1970 ], [ "volkswagen 1131 deluxe sedan", 1970 ], [ "peugeot 504", 1970 ], [ "audi 100 ls", 1970 ], [ "saab 99e", 1970 ], [ "bmw 2002", 1970 ], [ "amc gremlin", 1970 ], [ "ford f250", 1970 ], [ "chevy c20", 1970 ], [ "dodge d200", 1970 ], [ "hi 1200d", 1970 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_049" }, { "question_text": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "database_name": "car_1", "gold_sql": "SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3;", "gold_answer": [ [ 79, "mazda rx2 coupe" ], [ 119, "mazda rx3" ], [ 251, "mazda rx-4" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_050" }, { "question_text": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", "database_name": "car_1", "gold_sql": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;", "gold_answer": [ [ "97", "mazda rx2 coupe" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_051" }, { "question_text": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "database_name": "car_1", "gold_sql": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;", "gold_answer": [ [ "97", "mazda rx2 coupe" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_052" }, { "question_text": "What is the average edispl for all volvos?", "database_name": "car_1", "gold_sql": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", "gold_answer": 133.5, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_053" }, { "question_text": "What is the average edispl of the cars of model volvo?", "database_name": "car_1", "gold_sql": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", "gold_answer": 133.5, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "CARS_DATA", "CAR_NAMES" ], "split": "train", "question_id": "car_1_train_054" }, { "question_text": "What is the average weight and year for each year?", "database_name": "car_1", "gold_sql": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", "gold_answer": [ [ 3441.3142857142857, 1970 ], [ 2960.344827586207, 1971 ], [ 3237.714285714286, 1972 ], [ 3419.025, 1973 ], [ 2877.925925925926, 1974 ], [ 3176.8, 1975 ], [ 3078.735294117647, 1976 ], [ 2997.3571428571427, 1977 ], [ 2861.8055555555557, 1978 ], [ 3055.344827586207, 1979 ], [ 2436.655172413793, 1980 ], [ 2532.1666666666665, 1981 ], [ 2453.548387096774, 1982 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_055" }, { "question_text": "What is the average weight of cars each year?", "database_name": "car_1", "gold_sql": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", "gold_answer": [ [ 3441.3142857142857, 1970 ], [ 2960.344827586207, 1971 ], [ 3237.714285714286, 1972 ], [ 3419.025, 1973 ], [ 2877.925925925926, 1974 ], [ 3176.8, 1975 ], [ 3078.735294117647, 1976 ], [ 2997.3571428571427, 1977 ], [ 2861.8055555555557, 1978 ], [ 3055.344827586207, 1979 ], [ 2436.655172413793, 1980 ], [ 2532.1666666666665, 1981 ], [ 2453.548387096774, 1982 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_056" }, { "question_text": "What is the average horsepower of the cars before 1980?", "database_name": "car_1", "gold_sql": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980;", "gold_answer": 111.13291139240506, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_057" }, { "question_text": "What is the average miles per gallon of all the cards with 4 cylinders?", "database_name": "car_1", "gold_sql": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", "gold_answer": 28.86231884057971, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_058" }, { "question_text": "What is the average miles per gallon(mpg) of the cars with 4 cylinders?", "database_name": "car_1", "gold_sql": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", "gold_answer": 28.86231884057971, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_059" }, { "question_text": "How many cars have more than 4 cylinders?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", "gold_answer": 195, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_060" }, { "question_text": "What is the number of cars with more than 4 cylinders?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", "gold_answer": 195, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_061" }, { "question_text": "In 1980, how many cars were made?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", "gold_answer": 29, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_062" }, { "question_text": "how many cars were produced in 1980?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", "gold_answer": 29, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_063" }, { "question_text": "What is the number of cars with a horsepower greater than 150?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", "gold_answer": 281, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_064" }, { "question_text": "What is the number of the cars with horsepower more than 150?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", "gold_answer": 281, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_065" }, { "question_text": "How many car makers are there in france?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", "gold_answer": 3, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "COUNTRIES" ], "split": "train", "question_id": "car_1_train_066" }, { "question_text": "What is the number of makers of care in France?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", "gold_answer": 3, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "COUNTRIES" ], "split": "train", "question_id": "car_1_train_067" }, { "question_text": "How many car models were produced by the maker with full name American Motor Company?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", "gold_answer": 1, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_068" }, { "question_text": "What is the number of car models created by the car maker American Motor Company?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", "gold_answer": 1, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CAR_MAKERS", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_069" }, { "question_text": "How many continents are there?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CONTINENTS;", "gold_answer": 5, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CONTINENTS" ], "split": "train", "question_id": "car_1_train_070" }, { "question_text": "What is the number of continents?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM CONTINENTS;", "gold_answer": 5, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "CONTINENTS" ], "split": "train", "question_id": "car_1_train_071" }, { "question_text": "How many countries are listed?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM COUNTRIES;", "gold_answer": 15, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "COUNTRIES" ], "split": "train", "question_id": "car_1_train_072" }, { "question_text": "How many countries exist?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM COUNTRIES;", "gold_answer": 15, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "COUNTRIES" ], "split": "train", "question_id": "car_1_train_073" }, { "question_text": "How many car models are produced in the usa?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';", "gold_answer": 13, "answer_type": "integer", "difficulty": "medium", "tables_involved": [ "CAR_MAKERS", "COUNTRIES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_074" }, { "question_text": "What is the count of the car models produced in the United States?", "database_name": "car_1", "gold_sql": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';", "gold_answer": 13, "answer_type": "integer", "difficulty": "medium", "tables_involved": [ "CAR_MAKERS", "COUNTRIES", "MODEL_LIST" ], "split": "train", "question_id": "car_1_train_075" }, { "question_text": "What is the maximum accelerate for all the different cylinders?", "database_name": "car_1", "gold_sql": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", "gold_answer": [ [ 13.5, 3 ], [ 24.8, 4 ], [ 20.1, 5 ], [ 21.0, 6 ], [ 22.2, 8 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_076" }, { "question_text": "What is the maximum accelerate for different number of cylinders?", "database_name": "car_1", "gold_sql": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", "gold_answer": [ [ 13.5, 3 ], [ 24.8, 4 ], [ 20.1, 5 ], [ 21.0, 6 ], [ 22.2, 8 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "CARS_DATA" ], "split": "train", "question_id": "car_1_train_077" }, { "question_text": "What is the average horsepower for all cars produced before 1980 ?", "database_name": "car_1", "gold_sql": "select avg(horsepower) from cars_data where year < 1980;", "gold_answer": 111.13291139240506, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "cars_data" ], "split": "train", "question_id": "car_1_train_078" }, { "question_text": "How many car models are produced by each maker ? Only list the count and the maker full name .", "database_name": "car_1", "gold_sql": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;", "gold_answer": [ [ 1, "American Motor Company" ], [ 2, "Volkswagen" ], [ 1, "BMW" ], [ 5, "General Motors" ], [ 3, "Ford Motor Company" ], [ 4, "Chrysler" ], [ 1, "Citroen" ], [ 2, "Nissan Motors" ], [ 1, "Fiat" ], [ 1, "Honda" ], [ 1, "Mazda" ], [ 2, "Daimler Benz" ], [ 1, "Opel" ], [ 1, "Peugeaut" ], [ 1, "Renault" ], [ 1, "Saab" ], [ 1, "Subaru" ], [ 2, "Toyota" ], [ 1, "Triumph" ], [ 1, "Volvo" ], [ 1, "Kia Motors" ], [ 1, "Hyundai" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "car_makers", "model_list" ], "split": "train", "question_id": "car_1_train_079" }, { "question_text": "How many countries has more than 2 car makers ?", "database_name": "car_1", "gold_sql": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "gold_answer": [ 4, 4, 3, 5 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "car_makers", "countries" ], "split": "train", "question_id": "car_1_train_080" }, { "question_text": "What is the number of countries with more than 2 car makers ?", "database_name": "car_1", "gold_sql": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "gold_answer": [ 4, 4, 3, 5 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "car_makers", "countries" ], "split": "train", "question_id": "car_1_train_081" }, { "question_text": "In which years cars were produced weighing no less than 3000 and no more than 4000 ?", "database_name": "car_1", "gold_sql": "select distinct year from cars_data where weight between 3000 and 4000;", "gold_answer": [ 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "cars_data" ], "split": "train", "question_id": "car_1_train_082" }, { "question_text": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?", "database_name": "car_1", "gold_sql": "select distinct year from cars_data where weight between 3000 and 4000;", "gold_answer": [ 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "cars_data" ], "split": "train", "question_id": "car_1_train_083" }, { "question_text": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?", "database_name": "car_1", "gold_sql": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", "gold_answer": "null", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "cars_data" ], "split": "train", "question_id": "car_1_train_084" }, { "question_text": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?", "database_name": "car_1", "gold_sql": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", "gold_answer": "null", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "cars_data" ], "split": "train", "question_id": "car_1_train_085" }, { "question_text": "What is the minimum weight of the car with 8 cylinders produced in 1974 ?", "database_name": "car_1", "gold_sql": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "gold_answer": 4141, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "cars_data" ], "split": "train", "question_id": "car_1_train_086" }, { "question_text": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?", "database_name": "car_1", "gold_sql": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "gold_answer": 4141, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "cars_data" ], "split": "train", "question_id": "car_1_train_087" }, { "question_text": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "database_name": "car_1", "gold_sql": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat';", "gold_answer": [ [ 1, "usa" ], [ 2, "germany" ], [ 4, "japan" ], [ 5, "italy" ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "car_makers", "countries", "model_list" ], "split": "train", "question_id": "car_1_train_088" }, { "question_text": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "database_name": "car_1", "gold_sql": "select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3;", "gold_answer": [ [ 2, "volkswagen" ], [ 4, "gm" ], [ 5, "ford" ], [ 6, "chrysler" ], [ 8, "nissan" ], [ 19, "toyota" ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "car_makers", "car_names", "model_list" ], "split": "train", "question_id": "car_1_train_089" }, { "question_text": "What is the car model with the highest mpg ?", "database_name": "car_1", "gold_sql": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.mpg desc limit 1;", "gold_answer": "citroen", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "car_names", "cars_data" ], "split": "train", "question_id": "car_1_train_090" }, { "question_text": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?", "database_name": "car_1", "gold_sql": "select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.horsepower > (select min(horsepower) from cars_data) and t1.cylinders < 4;", "gold_answer": [ [ 79, "mazda rx2 coupe" ], [ 119, "mazda rx3" ], [ 251, "mazda rx-4" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "car_names", "cars_data" ], "split": "train", "question_id": "car_1_train_091" }, { "question_text": "What are the different countries with singers above age 20?", "database_name": "concert_singer", "gold_sql": "SELECT DISTINCT country FROM singer WHERE age > 20", "gold_answer": [ "Netherlands", "United States", "France" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_000" }, { "question_text": "What are all distinct countries where singers above age 20 are from?", "database_name": "concert_singer", "gold_sql": "SELECT DISTINCT country FROM singer WHERE age > 20", "gold_answer": [ "Netherlands", "United States", "France" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_001" }, { "question_text": "Show location and name for all stadiums with a capacity between 5000 and 10000.", "database_name": "concert_singer", "gold_sql": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "stadium" ], "split": "train", "question_id": "concert_singer_train_002" }, { "question_text": "What are the locations and names of all stations with capacity between 5000 and 10000?", "database_name": "concert_singer", "gold_sql": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "stadium" ], "split": "train", "question_id": "concert_singer_train_003" }, { "question_text": "Show the name and theme for all concerts and the number of singers in each concert.", "database_name": "concert_singer", "gold_sql": "SELECT T2.concert_name , T2.theme , count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id", "gold_answer": [ [ "Auditions", "Free choice", 3 ], [ "Super bootcamp", "Free choice 2", 2 ], [ "Home Visits", "Bleeding Love", 1 ], [ "Week 1", "Wide Awake", 1 ], [ "Week 1", "Happy Tonight", 2 ], [ "Week 2", "Party All Night", 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "concert", "singer_in_concert" ], "split": "train", "question_id": "concert_singer_train_004" }, { "question_text": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "database_name": "concert_singer", "gold_sql": "SELECT T2.name , T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": [ [ "Somerset Park", 11998 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_005" }, { "question_text": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", "database_name": "concert_singer", "gold_sql": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", "gold_answer": [ [ "Somerset Park", "Ayr United" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_006" }, { "question_text": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", "database_name": "concert_singer", "gold_sql": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", "gold_answer": [ [ "Somerset Park", "Ayr United" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_007" }, { "question_text": "For each stadium, how many concerts play there?", "database_name": "concert_singer", "gold_sql": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", "gold_answer": [ [ "Stark's Park", 1 ], [ "Glebe Park", 1 ], [ "Somerset Park", 2 ], [ "Recreation Park", 1 ], [ "Balmoor", 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_008" }, { "question_text": "Show the stadium name and the number of concerts in each stadium.", "database_name": "concert_singer", "gold_sql": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", "gold_answer": [ [ "Stark's Park", 1 ], [ "Glebe Park", 1 ], [ "Somerset Park", 2 ], [ "Recreation Park", 1 ], [ "Balmoor", 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_009" }, { "question_text": "List singer names and number of concerts for each singer.", "database_name": "concert_singer", "gold_sql": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", "gold_answer": [ [ "Timbaland", 2 ], [ "Justin Brown", 3 ], [ "Rose White", 1 ], [ "John Nizinik", 2 ], [ "Tribal King", 2 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer", "singer_in_concert" ], "split": "train", "question_id": "concert_singer_train_010" }, { "question_text": "What are the names of the singers and number of concerts for each person?", "database_name": "concert_singer", "gold_sql": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", "gold_answer": [ [ "Timbaland", 2 ], [ "Justin Brown", 3 ], [ "Rose White", 1 ], [ "John Nizinik", 2 ], [ "Tribal King", 2 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer", "singer_in_concert" ], "split": "train", "question_id": "concert_singer_train_011" }, { "question_text": "List all singer names in concerts in year 2014.", "database_name": "concert_singer", "gold_sql": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", "gold_answer": [ "Timbaland", "Justin Brown", "John Nizinik", "Justin Brown", "Tribal King", "Rose White" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "concert", "singer", "singer_in_concert" ], "split": "train", "question_id": "concert_singer_train_012" }, { "question_text": "What are the names of the singers who performed in a concert in 2014?", "database_name": "concert_singer", "gold_sql": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", "gold_answer": [ "Timbaland", "Justin Brown", "John Nizinik", "Justin Brown", "Tribal King", "Rose White" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "concert", "singer", "singer_in_concert" ], "split": "train", "question_id": "concert_singer_train_013" }, { "question_text": "What is the year that had the most concerts?", "database_name": "concert_singer", "gold_sql": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "gold_answer": "2015", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "concert" ], "split": "train", "question_id": "concert_singer_train_014" }, { "question_text": "Which year has most number of concerts?", "database_name": "concert_singer", "gold_sql": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "gold_answer": "2015", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "concert" ], "split": "train", "question_id": "concert_singer_train_015" }, { "question_text": "What is the average, minimum, and maximum age for all French singers?", "database_name": "concert_singer", "gold_sql": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", "gold_answer": [ [ 34.5, 25, 43 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_016" }, { "question_text": "What is the average, minimum, and maximum age of all singers from France?", "database_name": "concert_singer", "gold_sql": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", "gold_answer": [ [ 34.5, 25, 43 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_017" }, { "question_text": "How many concerts are there in year 2014 or 2015?", "database_name": "concert_singer", "gold_sql": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", "gold_answer": 6, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "concert" ], "split": "train", "question_id": "concert_singer_train_018" }, { "question_text": "How many concerts occurred in 2014 or 2015?", "database_name": "concert_singer", "gold_sql": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", "gold_answer": 6, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "concert" ], "split": "train", "question_id": "concert_singer_train_019" }, { "question_text": "How many singers do we have?", "database_name": "concert_singer", "gold_sql": "SELECT count(*) FROM singer", "gold_answer": 6, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_020" }, { "question_text": "What is the total number of singers?", "database_name": "concert_singer", "gold_sql": "SELECT count(*) FROM singer", "gold_answer": 6, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_021" }, { "question_text": "How many singers are from each country?", "database_name": "concert_singer", "gold_sql": "SELECT country , count(*) FROM singer GROUP BY country", "gold_answer": [ [ "France", 4 ], [ "Netherlands", 1 ], [ "United States", 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_022" }, { "question_text": "Show all countries and the number of singers in each country.", "database_name": "concert_singer", "gold_sql": "SELECT country , count(*) FROM singer GROUP BY country", "gold_answer": [ [ "France", 4 ], [ "Netherlands", 1 ], [ "United States", 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_023" }, { "question_text": "Show countries where a singer above age 40 and a singer below 30 are from.", "database_name": "concert_singer", "gold_sql": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30", "gold_answer": "France", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_024" }, { "question_text": "What is the name and capacity for the stadium with highest average attendance?", "database_name": "concert_singer", "gold_sql": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", "gold_answer": [ [ "Stark's Park", 10104 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "stadium" ], "split": "train", "question_id": "concert_singer_train_025" }, { "question_text": "What is the name and capacity for the stadium with the highest average attendance?", "database_name": "concert_singer", "gold_sql": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", "gold_answer": [ [ "Stark's Park", 10104 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "stadium" ], "split": "train", "question_id": "concert_singer_train_026" }, { "question_text": "Show name, country, age for all singers ordered by age from the oldest to the youngest.", "database_name": "concert_singer", "gold_sql": "SELECT name , country , age FROM singer ORDER BY age DESC", "gold_answer": [ [ "Joe Sharp", "Netherlands", 52 ], [ "John Nizinik", "France", 43 ], [ "Rose White", "France", 41 ], [ "Timbaland", "United States", 32 ], [ "Justin Brown", "France", 29 ], [ "Tribal King", "France", 25 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_027" }, { "question_text": "What are the names, countries, and ages for every singer in descending order of age?", "database_name": "concert_singer", "gold_sql": "SELECT name , country , age FROM singer ORDER BY age DESC", "gold_answer": [ [ "Joe Sharp", "Netherlands", 52 ], [ "John Nizinik", "France", 43 ], [ "Rose White", "France", 41 ], [ "Timbaland", "United States", 32 ], [ "Justin Brown", "France", 29 ], [ "Tribal King", "France", 25 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_028" }, { "question_text": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?", "database_name": "concert_singer", "gold_sql": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", "gold_answer": [ [ "Justin Brown", "France" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_029" }, { "question_text": "what is the name and nation of the singer who have a song having 'Hey' in its name?", "database_name": "concert_singer", "gold_sql": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", "gold_answer": [ [ "Justin Brown", "France" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_030" }, { "question_text": "Show names for all stadiums except for stadiums having a concert in year 2014.", "database_name": "concert_singer", "gold_sql": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", "gold_answer": [ "Balmoor", "Bayview Stadium", "Forthbank Stadium", "Gayfield Park", "Hampden Park", "Recreation Park" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_031" }, { "question_text": "What are the names of all stadiums that did not have a concert in 2014?", "database_name": "concert_singer", "gold_sql": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", "gold_answer": [ "Balmoor", "Bayview Stadium", "Forthbank Stadium", "Gayfield Park", "Hampden Park", "Recreation Park" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_032" }, { "question_text": "Show the stadium names without any concert.", "database_name": "concert_singer", "gold_sql": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", "gold_answer": [ "Bayview Stadium", "Hampden Park", "Forthbank Stadium", "Gayfield Park" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_033" }, { "question_text": "What are the names of the stadiums without any concerts?", "database_name": "concert_singer", "gold_sql": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", "gold_answer": [ "Bayview Stadium", "Hampden Park", "Forthbank Stadium", "Gayfield Park" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_034" }, { "question_text": "Show the name and the release year of the song by the youngest singer.", "database_name": "concert_singer", "gold_sql": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", "gold_answer": [ [ "Love", "2016" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_035" }, { "question_text": "What are the names and release years for all the songs of the youngest singer?", "database_name": "concert_singer", "gold_sql": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", "gold_answer": [ [ "Love", "2016" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_036" }, { "question_text": "List all song names by singers above the average age.", "database_name": "concert_singer", "gold_sql": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", "gold_answer": [ "You", "Sun", "Gentleman" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_037" }, { "question_text": "What are all the song names by singers who are older than average?", "database_name": "concert_singer", "gold_sql": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", "gold_answer": [ "You", "Sun", "Gentleman" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "singer" ], "split": "train", "question_id": "concert_singer_train_038" }, { "question_text": "What is the average and maximum capacities for all stadiums ?", "database_name": "concert_singer", "gold_sql": "select avg(capacity) , max(capacity) from stadium", "gold_answer": [ [ 10621.666666666666, 52500 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "stadium" ], "split": "train", "question_id": "concert_singer_train_039" }, { "question_text": "Find the number of concerts happened in the stadium with the highest capacity .", "database_name": "concert_singer", "gold_sql": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_040" }, { "question_text": "What are the number of concerts that occurred in the stadium with the largest capacity ?", "database_name": "concert_singer", "gold_sql": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_041" }, { "question_text": "What is the maximum capacity and the average of all stadiums ?", "database_name": "concert_singer", "gold_sql": "select max(capacity), average from stadium", "gold_answer": [ [ 52500, 730 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "stadium" ], "split": "train", "question_id": "concert_singer_train_042" }, { "question_text": "What are the names , themes , and number of singers for every concert ?", "database_name": "concert_singer", "gold_sql": "select t2.concert_name , t2.theme , count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id = t2.concert_id group by t2.concert_id", "gold_answer": [ [ "Auditions", "Free choice", 3 ], [ "Super bootcamp", "Free choice 2", 2 ], [ "Home Visits", "Bleeding Love", 1 ], [ "Week 1", "Wide Awake", 1 ], [ "Week 1", "Happy Tonight", 2 ], [ "Week 2", "Party All Night", 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "concert", "singer_in_concert" ], "split": "train", "question_id": "concert_singer_train_043" }, { "question_text": "What is the name and capacity of the stadium with the most concerts after 2013 ?", "database_name": "concert_singer", "gold_sql": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013 group by t2.stadium_id order by count(*) desc limit 1", "gold_answer": [ [ "Somerset Park", 11998 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "concert", "stadium" ], "split": "train", "question_id": "concert_singer_train_044" }, { "question_text": "Return the different descriptions for templates that have been used in a document.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", "gold_answer": [ "Presentation", "Paper", "Book", "Advertisement" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "Documents", "Ref_template_types", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_000" }, { "question_text": "What are the distinct template type descriptions for the templates ever used by any document?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", "gold_answer": [ "Presentation", "Paper", "Book", "Advertisement" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "Documents", "Ref_template_types", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_001" }, { "question_text": "Show all distinct template type codes for all templates.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT DISTINCT template_type_code FROM Templates", "gold_answer": [ "PP", "BK", "PPT", "AD", "CV" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_002" }, { "question_text": "What are the different template type codes?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT DISTINCT template_type_code FROM Templates", "gold_answer": [ "PP", "BK", "PPT", "AD", "CV" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_003" }, { "question_text": "Show all document ids, names and the number of paragraphs in each document.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", "gold_answer": [ [ 3, "Summer Show", 1 ], [ 80, "Welcome to NY", 2 ], [ 2394, "Customer reviews", 3 ], [ 3830, "Do not panic", 1 ], [ 33930, "How Google people work", 1 ], [ 50123, "Learning French", 1 ], [ 651512, "How to write a CV", 2 ], [ 3540024, "Palm reading", 1 ], [ 16514113, "A history of Arts", 2 ], [ 385906526, "About Korea", 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents", "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_004" }, { "question_text": "What are the ids and names of each document, as well as the number of paragraphs in each?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", "gold_answer": [ [ 3, "Summer Show", 1 ], [ 80, "Welcome to NY", 2 ], [ 2394, "Customer reviews", 3 ], [ 3830, "Do not panic", 1 ], [ 33930, "How Google people work", 1 ], [ 50123, "Learning French", 1 ], [ 651512, "How to write a CV", 2 ], [ 3540024, "Palm reading", 1 ], [ 16514113, "A history of Arts", 2 ], [ 385906526, "About Korea", 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents", "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_005" }, { "question_text": "Return the id and name of the document with the most paragraphs.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": [ [ 2394, "Customer reviews" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents", "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_006" }, { "question_text": "What is the document id and name with greatest number of paragraphs?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": [ [ 2394, "Customer reviews" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents", "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_007" }, { "question_text": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", "gold_answer": [ [ 16615, "Japan" ], [ 608931827, "Micronesia" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents", "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_008" }, { "question_text": "What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", "gold_answer": [ [ 16615, "Japan" ], [ 608931827, "Micronesia" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents", "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_009" }, { "question_text": "Show all paragraph texts for the document \"Customer reviews\".", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"", "gold_answer": [ "Korea", "Ukraine", "Korea" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Documents", "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_010" }, { "question_text": "What are the paragraph texts for the document with the name 'Customer reviews'?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"", "gold_answer": [ "Korea", "Ukraine", "Korea" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Documents", "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_011" }, { "question_text": "Return the id and type code of the template that is used for the greatest number of documents.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": [ [ 25, "PP" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_012" }, { "question_text": "What is the id and type code for the template used by the most documents?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": [ [ 25, "PP" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_013" }, { "question_text": "Show all template type codes and the number of documents using each type.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", "gold_answer": [ [ "AD", 3 ], [ "BK", 5 ], [ "PP", 4 ], [ "PPT", 3 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_014" }, { "question_text": "What are the different template type codes, and how many documents use each type?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", "gold_answer": [ [ "AD", 3 ], [ "BK", 5 ], [ "PP", 4 ], [ "PPT", 3 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_015" }, { "question_text": "Return the code of the template type that is most commonly used in documents.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1", "gold_answer": "BK", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_016" }, { "question_text": "Which template type code is used by most number of documents?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1", "gold_answer": "BK", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_017" }, { "question_text": "Return the template type code of the template that is used by a document named Data base.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"", "gold_answer": "BK", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_018" }, { "question_text": "What is the template type code of the template used by document with the name \"Data base\"?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"", "gold_answer": "BK", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_019" }, { "question_text": "Show all document names using templates with template type code BK.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\"", "gold_answer": [ "Robbin CV", "Data base", "How to read a book", "Palm reading", "About Korea" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_020" }, { "question_text": "What are the names of documents that use templates with the code BK?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\"", "gold_answer": [ "Robbin CV", "Data base", "How to read a book", "Palm reading", "About Korea" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_021" }, { "question_text": "Return the ids corresponding to templates with the description 'Presentation'.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"", "gold_answer": [ 6, 7, 10 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Ref_template_types", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_022" }, { "question_text": "What are the template ids with template type description \"Presentation\".", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"", "gold_answer": [ 6, 7, 10 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Ref_template_types", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_023" }, { "question_text": "Count the number of documents.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Documents", "gold_answer": 15, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_024" }, { "question_text": "How many documents do we have?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Documents", "gold_answer": 15, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_025" }, { "question_text": "Count the number of documents that use the PPT template type.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", "gold_answer": 3, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_026" }, { "question_text": "How many documents are using the template with type code 'PPT'?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", "gold_answer": 3, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_027" }, { "question_text": "Count the number of paragraphs.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Paragraphs", "gold_answer": 15, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_028" }, { "question_text": "How many paragraphs in total?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Paragraphs", "gold_answer": 15, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_029" }, { "question_text": "Count the number of paragraphs in the document named 'Summer Show'.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", "gold_answer": 1, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Documents", "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_030" }, { "question_text": "How many paragraphs for the document with name 'Summer Show'?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", "gold_answer": 1, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Documents", "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_031" }, { "question_text": "Count the number of templates.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Templates", "gold_answer": 20, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_032" }, { "question_text": "How many templates do we have?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Templates", "gold_answer": 20, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_033" }, { "question_text": "Count the number of templates of the type CV.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", "gold_answer": 2, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_034" }, { "question_text": "How many templates have template type code CV?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", "gold_answer": 2, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_035" }, { "question_text": "Count the number of different templates used for documents.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(DISTINCT template_id) FROM Documents", "gold_answer": 12, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_036" }, { "question_text": "How many different templates do all document use?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT count(DISTINCT template_id) FROM Documents", "gold_answer": 12, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_037" }, { "question_text": "Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", "gold_answer": [ [ 3, 1 ], [ 80, 2 ], [ 2394, 3 ], [ 3830, 1 ], [ 33930, 1 ], [ 50123, 1 ], [ 651512, 2 ], [ 3540024, 1 ], [ 16514113, 2 ], [ 385906526, 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_038" }, { "question_text": "Show all document ids and the number of paragraphs in each document. Order by document id.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", "gold_answer": [ [ 3, 1 ], [ 80, 2 ], [ 2394, 3 ], [ 3830, 1 ], [ 33930, 1 ], [ 50123, 1 ], [ 651512, 2 ], [ 3540024, 1 ], [ 16514113, 2 ], [ 385906526, 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_039" }, { "question_text": "List document IDs, document names, and document descriptions for all documents.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id , document_name , document_description FROM Documents", "gold_answer": [ [ 0, "Introduction of OS", "n" ], [ 1, "Understanding DB", "y" ], [ 3, "Summer Show", "u" ], [ 76, "Robbin CV", "y" ], [ 80, "Welcome to NY", "h" ], [ 82, "Data base", "w" ], [ 2394, "Customer reviews", "y" ], [ 3830, "Do not panic", "k" ], [ 33930, "How Google people work", "z" ], [ 50123, "Learning French", "r" ], [ 651512, "How to write a CV", "f" ], [ 801801, "How to read a book", "w" ], [ 3540024, "Palm reading", "y" ], [ 16514113, "A history of Arts", "h" ], [ 385906526, "About Korea", "b" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_040" }, { "question_text": "What are the ids, names, and descriptions for all documents?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id , document_name , document_description FROM Documents", "gold_answer": [ [ 0, "Introduction of OS", "n" ], [ 1, "Understanding DB", "y" ], [ 3, "Summer Show", "u" ], [ 76, "Robbin CV", "y" ], [ 80, "Welcome to NY", "h" ], [ 82, "Data base", "w" ], [ 2394, "Customer reviews", "y" ], [ 3830, "Do not panic", "k" ], [ 33930, "How Google people work", "z" ], [ 50123, "Learning French", "r" ], [ 651512, "How to write a CV", "f" ], [ 801801, "How to read a book", "w" ], [ 3540024, "Palm reading", "y" ], [ 16514113, "A history of Arts", "h" ], [ 385906526, "About Korea", "b" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_041" }, { "question_text": "Return the document id, template id, and description for the document with the name Robbin CV.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", "gold_answer": [ [ 76, 20, "y" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_042" }, { "question_text": "What is the document id, template id and description for document named \"Robbin CV\"?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", "gold_answer": [ [ 76, 20, "y" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_043" }, { "question_text": "List all document ids with at least two paragraphs.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", "gold_answer": [ 80, 2394, 651512, 16514113 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_044" }, { "question_text": "What are the ids of documents that have 2 or more paragraphs?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", "gold_answer": [ 80, 2394, 651512, 16514113 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_045" }, { "question_text": "Give the ids of documents that have between one and two paragraphs.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", "gold_answer": [ 3, 80, 3830, 33930, 50123, 651512, 3540024, 16514113, 385906526 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_046" }, { "question_text": "What is the document id with 1 to 2 paragraphs?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", "gold_answer": [ 3, 80, 3830, 33930, 50123, 651512, 3540024, 16514113, 385906526 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_047" }, { "question_text": "Return the id of the document with the fewest paragraphs.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", "gold_answer": 3, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_048" }, { "question_text": "What is the document id with least number of paragraphs?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", "gold_answer": 3, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_049" }, { "question_text": "Show the document id with paragraph text 'Brazil' and 'Ireland'.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", "gold_answer": 16514113, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_050" }, { "question_text": "What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", "gold_answer": 16514113, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_051" }, { "question_text": "Return the names and template ids for documents that contain the letter w in their description.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", "gold_answer": [ [ "Data base", 11 ], [ "How to read a book", 4 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_052" }, { "question_text": "What is the document name and template id for document with description with the letter 'w' in it?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", "gold_answer": [ [ "Data base", 11 ], [ "How to read a book", 4 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_053" }, { "question_text": "Return the lowest version number, along with its corresponding template type code.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT min(Version_Number) , template_type_code FROM Templates", "gold_answer": [ [ 0, "PP" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_054" }, { "question_text": "What the smallest version number and its template type code?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT min(Version_Number) , template_type_code FROM Templates", "gold_answer": [ [ 0, "PP" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_055" }, { "question_text": "Show all template ids and number of documents using each template.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", "gold_answer": [ [ 1, 1 ], [ 4, 1 ], [ 6, 1 ], [ 7, 1 ], [ 8, 1 ], [ 10, 1 ], [ 11, 2 ], [ 14, 2 ], [ 20, 1 ], [ 21, 1 ], [ 22, 1 ], [ 25, 2 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_056" }, { "question_text": "What are all different template ids used for documents, and how many times were each of them used?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", "gold_answer": [ [ 1, 1 ], [ 4, 1 ], [ 6, 1 ], [ 7, 1 ], [ 8, 1 ], [ 10, 1 ], [ 11, 2 ], [ 14, 2 ], [ 20, 1 ], [ 21, 1 ], [ 22, 1 ], [ 25, 2 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_057" }, { "question_text": "Show template ids, version numbers, and template type codes for all templates.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_id , version_number , template_type_code FROM Templates", "gold_answer": [ [ 0, 5, "PP" ], [ 1, 9, "PP" ], [ 4, 4, "BK" ], [ 6, 2, "PPT" ], [ 7, 8, "PPT" ], [ 8, 3, "BK" ], [ 9, 2, "BK" ], [ 10, 1, "PPT" ], [ 11, 6, "BK" ], [ 14, 7, "AD" ], [ 15, 9, "CV" ], [ 16, 5, "CV" ], [ 18, 5, "PP" ], [ 19, 7, "AD" ], [ 20, 6, "BK" ], [ 21, 9, "AD" ], [ 22, 0, "PP" ], [ 23, 2, "BK" ], [ 24, 8, "PP" ], [ 25, 5, "PP" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_058" }, { "question_text": "What are the ids, version numbers, and type codes for each template?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_id , version_number , template_type_code FROM Templates", "gold_answer": [ [ 0, 5, "PP" ], [ 1, 9, "PP" ], [ 4, 4, "BK" ], [ 6, 2, "PPT" ], [ 7, 8, "PPT" ], [ 8, 3, "BK" ], [ 9, 2, "BK" ], [ 10, 1, "PPT" ], [ 11, 6, "BK" ], [ 14, 7, "AD" ], [ 15, 9, "CV" ], [ 16, 5, "CV" ], [ 18, 5, "PP" ], [ 19, 7, "AD" ], [ 20, 6, "BK" ], [ 21, 9, "AD" ], [ 22, 0, "PP" ], [ 23, 2, "BK" ], [ 24, 8, "PP" ], [ 25, 5, "PP" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_059" }, { "question_text": "Show ids for all templates that are used by more than one document.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", "gold_answer": [ 11, 14, 25 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_060" }, { "question_text": "What are the template ids of any templates used in more than a single document?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", "gold_answer": [ 11, 14, 25 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Documents" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_061" }, { "question_text": "Show ids for all templates not used by any document.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", "gold_answer": [ 0, 9, 15, 16, 18, 19, 23, 24 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_062" }, { "question_text": "What are the ids for templates that are not used in any documents?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", "gold_answer": [ 0, 9, 15, 16, 18, 19, 23, 24 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_063" }, { "question_text": "Return the ids of templates that have the code PP or PPT.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", "gold_answer": [ 0, 1, 6, 7, 10, 18, 22, 24, 25 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_064" }, { "question_text": "What are the ids of templates with template type code PP or PPT?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", "gold_answer": [ 0, 1, 6, 7, 10, 18, 22, 24, 25 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_065" }, { "question_text": "Show all template type codes and number of templates for each.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", "gold_answer": [ [ "AD", 3 ], [ "BK", 6 ], [ "CV", 2 ], [ "PP", 6 ], [ "PPT", 3 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_066" }, { "question_text": "What are the different template type codes, and how many templates correspond to each?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", "gold_answer": [ [ "AD", 3 ], [ "BK", 6 ], [ "CV", 2 ], [ "PP", 6 ], [ "PPT", 3 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_067" }, { "question_text": "Show all template type codes and descriptions.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code , template_type_description FROM Ref_template_types", "gold_answer": [ [ "PPT", "Presentation" ], [ "CV", "CV" ], [ "AD", "Advertisement" ], [ "PP", "Paper" ], [ "BK", "Book" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Ref_template_types" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_068" }, { "question_text": "What are the type codes and descriptions for all template types?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code , template_type_description FROM Ref_template_types", "gold_answer": [ [ "PPT", "Presentation" ], [ "CV", "CV" ], [ "AD", "Advertisement" ], [ "PP", "Paper" ], [ "BK", "Book" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Ref_template_types" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_069" }, { "question_text": "Return the type code of the template type with the description \"Book\".", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", "gold_answer": "BK", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Ref_template_types" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_070" }, { "question_text": "What is the template type code for template type description \"Book\".", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", "gold_answer": "BK", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Ref_template_types" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_071" }, { "question_text": "Show all template type codes that are not used by any document.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", "gold_answer": "CV", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_072" }, { "question_text": "What are the codes of template types that are not used for any document?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", "gold_answer": "CV", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Documents", "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_073" }, { "question_text": "Show all template type codes with less than three templates.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", "gold_answer": "CV", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_074" }, { "question_text": "What are the codes of template types that have fewer than 3 templates?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", "gold_answer": "CV", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_075" }, { "question_text": "Return the type code of the template type that the most templates belong to.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", "gold_answer": "PP", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_076" }, { "question_text": "Which template type code has most number of templates?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", "gold_answer": "PP", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_077" }, { "question_text": "Return the template type description of the template type with the code AD.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", "gold_answer": "Advertisement", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Ref_template_types" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_078" }, { "question_text": "What is the template type descriptions for template type code \"AD\".", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", "gold_answer": "Advertisement", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Ref_template_types" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_079" }, { "question_text": "Return the version numbers and template type codes of templates with a version number greater than 5.", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", "gold_answer": [ [ 9, "PP" ], [ 8, "PPT" ], [ 6, "BK" ], [ 7, "AD" ], [ 9, "CV" ], [ 7, "AD" ], [ 6, "BK" ], [ 9, "AD" ], [ 8, "PP" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_080" }, { "question_text": "What is the version number and template type code for the template with version number later than 5?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", "gold_answer": [ [ 9, "PP" ], [ 8, "PPT" ], [ 6, "BK" ], [ 7, "AD" ], [ 9, "CV" ], [ 7, "AD" ], [ 6, "BK" ], [ 9, "AD" ], [ 8, "PP" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Templates" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_081" }, { "question_text": "Show paragraph details for paragraph with text 'Korea ' .", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "select other_details from paragraphs where paragraph_text like 'korea'", "gold_answer": [ null, null ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_082" }, { "question_text": "What are the details for the paragraph that includes the text 'Korea ' ?", "database_name": "cre_Doc_Template_Mgt", "gold_sql": "select other_details from paragraphs where paragraph_text like 'korea'", "gold_answer": [ null, null ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "paragraphs" ], "split": "train", "question_id": "cre_Doc_Template_Mgt_train_083" }, { "question_text": "Find the arriving date and the departing date of the dogs that received a treatment.", "database_name": "dog_kennels", "gold_sql": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", "gold_answer": [ [ "2017-06-18 19:45:38", "2018-03-24 23:48:59" ], [ "2017-04-20 00:58:55", "2018-03-24 19:12:22" ], [ "2017-12-22 05:02:02", "2018-03-25 02:11:32" ], [ "2017-10-24 04:45:13", "2018-03-25 14:15:41" ], [ "2017-12-29 06:08:26", "2018-03-25 04:42:14" ], [ "2017-12-29 23:24:13", "2018-03-24 19:36:59" ], [ "2018-01-02 03:15:29", "2018-03-25 05:07:47" ], [ "2017-05-06 08:03:52", "2018-03-25 06:29:10" ], [ "2017-09-08 20:10:13", "2018-03-25 06:58:44" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_000" }, { "question_text": "What are the arriving date and the departing date of the dogs who have gone through a treatment?", "database_name": "dog_kennels", "gold_sql": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", "gold_answer": [ [ "2017-06-18 19:45:38", "2018-03-24 23:48:59" ], [ "2017-04-20 00:58:55", "2018-03-24 19:12:22" ], [ "2017-12-22 05:02:02", "2018-03-25 02:11:32" ], [ "2017-10-24 04:45:13", "2018-03-25 14:15:41" ], [ "2017-12-29 06:08:26", "2018-03-25 04:42:14" ], [ "2017-12-29 23:24:13", "2018-03-24 19:36:59" ], [ "2018-01-02 03:15:29", "2018-03-25 05:07:47" ], [ "2017-05-06 08:03:52", "2018-03-25 06:29:10" ], [ "2017-09-08 20:10:13", "2018-03-25 06:58:44" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_001" }, { "question_text": "What are the first name and last name of the professionals who have done treatment with cost below average?", "database_name": "dog_kennels", "gold_sql": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )", "gold_answer": [ [ "Taryn", "Braun" ], [ "Jayson", "Ullrich" ], [ "Olaf", "Watsica" ], [ "Vernice", "Tillman" ], [ "Danny", "Considine" ], [ "Ruben", "O'Reilly" ], [ "Velva", "Hayes" ], [ "Karley", "Hyatt" ], [ "Monte", "Kshlerin" ], [ "Domenica", "Jacobs" ], [ "Brady", "Pouros" ], [ "Winfield", "Christiansen" ], [ "Ericka", "Murazik" ], [ "Sigurd", "Frami" ], [ "Lesly", "Walter" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_002" }, { "question_text": "Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.", "database_name": "dog_kennels", "gold_sql": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )", "gold_answer": [ [ "Taryn", "Braun" ], [ "Jayson", "Ullrich" ], [ "Olaf", "Watsica" ], [ "Vernice", "Tillman" ], [ "Danny", "Considine" ], [ "Ruben", "O'Reilly" ], [ "Velva", "Hayes" ], [ "Karley", "Hyatt" ], [ "Monte", "Kshlerin" ], [ "Domenica", "Jacobs" ], [ "Brady", "Pouros" ], [ "Winfield", "Christiansen" ], [ "Ericka", "Murazik" ], [ "Sigurd", "Frami" ], [ "Lesly", "Walter" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_003" }, { "question_text": "List the first name of all the professionals along with the description of the treatment they have done.", "database_name": "dog_kennels", "gold_sql": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", "gold_answer": [ [ "Monte", "Take for a Walk" ], [ "Domenica", "Vaccination" ], [ "Vernice", "Physical examination" ], [ "Karley", "Vaccination" ], [ "Sigurd", "Vaccination" ], [ "Sigurd", "Physical examination" ], [ "Ruben", "Physical examination" ], [ "Domenica", "Take for a Walk" ], [ "Velva", "Take for a Walk" ], [ "Danny", "Vaccination" ], [ "Monte", "Physical examination" ], [ "Ruben", "Take for a Walk" ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "Treatment_types", "Treatments", "professionals" ], "split": "train", "question_id": "dog_kennels_train_004" }, { "question_text": "What are each professional's first name and description of the treatment they have performed?", "database_name": "dog_kennels", "gold_sql": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", "gold_answer": [ [ "Monte", "Take for a Walk" ], [ "Domenica", "Vaccination" ], [ "Vernice", "Physical examination" ], [ "Karley", "Vaccination" ], [ "Sigurd", "Vaccination" ], [ "Sigurd", "Physical examination" ], [ "Ruben", "Physical examination" ], [ "Domenica", "Take for a Walk" ], [ "Velva", "Take for a Walk" ], [ "Danny", "Vaccination" ], [ "Monte", "Physical examination" ], [ "Ruben", "Take for a Walk" ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "Treatment_types", "Treatments", "professionals" ], "split": "train", "question_id": "dog_kennels_train_005" }, { "question_text": "Find the distinct breed type and size type combinations for dogs.", "database_name": "dog_kennels", "gold_sql": "SELECT DISTINCT breed_code , size_code FROM dogs", "gold_answer": [ [ "ESK", "LGE" ], [ "BUL", "LGE" ], [ "BUL", "MED" ], [ "HUS", "MED" ], [ "ESK", "SML" ], [ "HUS", "SML" ], [ "ESK", "MED" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "dogs" ], "split": "train", "question_id": "dog_kennels_train_006" }, { "question_text": "What are all the possible breed type and size type combinations?", "database_name": "dog_kennels", "gold_sql": "SELECT DISTINCT breed_code , size_code FROM dogs", "gold_answer": [ [ "ESK", "LGE" ], [ "BUL", "LGE" ], [ "BUL", "MED" ], [ "HUS", "MED" ], [ "ESK", "SML" ], [ "HUS", "SML" ], [ "ESK", "MED" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "dogs" ], "split": "train", "question_id": "dog_kennels_train_007" }, { "question_text": "What is the name of the breed with the most dogs?", "database_name": "dog_kennels", "gold_sql": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1", "gold_answer": "Bulldog", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Breeds", "Dogs" ], "split": "train", "question_id": "dog_kennels_train_008" }, { "question_text": "Which breed do the most dogs have? Give me the breed name.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1", "gold_answer": "Bulldog", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Breeds", "Dogs" ], "split": "train", "question_id": "dog_kennels_train_009" }, { "question_text": "List the cost of each treatment and the corresponding treatment type description.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", "gold_answer": [ [ 567, "Take for a Walk" ], [ 147, "Vaccination" ], [ 429, "Physical examination" ], [ 266, "Vaccination" ], [ 668, "Vaccination" ], [ 313, "Physical examination" ], [ 852, "Physical examination" ], [ 407, "Physical examination" ], [ 139, "Take for a Walk" ], [ 681, "Take for a Walk" ], [ 514, "Vaccination" ], [ 428, "Physical examination" ], [ 945, "Vaccination" ], [ 349, "Take for a Walk" ], [ 656, "Take for a Walk" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Treatments", "treatment_types" ], "split": "train", "question_id": "dog_kennels_train_010" }, { "question_text": "What are the cost and treatment type description of each treatment?", "database_name": "dog_kennels", "gold_sql": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", "gold_answer": [ [ 567, "Take for a Walk" ], [ 147, "Vaccination" ], [ 429, "Physical examination" ], [ 266, "Vaccination" ], [ 668, "Vaccination" ], [ 313, "Physical examination" ], [ 852, "Physical examination" ], [ 407, "Physical examination" ], [ 139, "Take for a Walk" ], [ 681, "Take for a Walk" ], [ 514, "Vaccination" ], [ 428, "Physical examination" ], [ 945, "Vaccination" ], [ 349, "Take for a Walk" ], [ 656, "Take for a Walk" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Treatments", "treatment_types" ], "split": "train", "question_id": "dog_kennels_train_011" }, { "question_text": "List the date of each treatment, together with the first name of the professional who operated it.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", "gold_answer": [ [ "2018-03-19 04:39:54", "Monte" ], [ "2018-03-15 20:25:34", "Domenica" ], [ "2018-03-08 05:26:23", "Vernice" ], [ "2018-03-01 04:14:46", "Karley" ], [ "2018-03-23 13:52:10", "Sigurd" ], [ "2018-03-11 04:23:15", "Vernice" ], [ "2018-03-10 11:45:58", "Sigurd" ], [ "2018-03-24 22:25:58", "Ruben" ], [ "2018-03-14 19:10:40", "Domenica" ], [ "2018-02-28 17:09:43", "Velva" ], [ "2018-03-13 12:22:58", "Danny" ], [ "2018-03-16 10:27:36", "Monte" ], [ "2018-02-26 09:08:53", "Karley" ], [ "2018-03-04 20:33:43", "Monte" ], [ "2018-03-15 19:10:02", "Ruben" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_012" }, { "question_text": "What are the date and the operating professional's first name of each treatment?", "database_name": "dog_kennels", "gold_sql": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", "gold_answer": [ [ "2018-03-19 04:39:54", "Monte" ], [ "2018-03-15 20:25:34", "Domenica" ], [ "2018-03-08 05:26:23", "Vernice" ], [ "2018-03-01 04:14:46", "Karley" ], [ "2018-03-23 13:52:10", "Sigurd" ], [ "2018-03-11 04:23:15", "Vernice" ], [ "2018-03-10 11:45:58", "Sigurd" ], [ "2018-03-24 22:25:58", "Ruben" ], [ "2018-03-14 19:10:40", "Domenica" ], [ "2018-02-28 17:09:43", "Velva" ], [ "2018-03-13 12:22:58", "Danny" ], [ "2018-03-16 10:27:36", "Monte" ], [ "2018-02-26 09:08:53", "Karley" ], [ "2018-03-04 20:33:43", "Monte" ], [ "2018-03-15 19:10:02", "Ruben" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_013" }, { "question_text": "List each owner's first name, last name, and the size of his for her dog.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "gold_answer": [ [ "Jaclyn", "Stoltenberg", "LGE" ], [ "Gay", "Feil", "LGE" ], [ "Nora", "Haley", "MED" ], [ "Rachelle", "Funk", "LGE" ], [ "Emelie", "Mertz", "MED" ], [ "Johann", "Fisher", "MED" ], [ "Jaclyn", "Stoltenberg", "MED" ], [ "Rachelle", "Funk", "SML" ], [ "Melisa", "DuBuque", "MED" ], [ "Kade", "Rippin", "MED" ], [ "Cindy", "Schmitt", "LGE" ], [ "Orlando", "Price", "MED" ], [ "Rolando", "Prohaska", "SML" ], [ "Rachelle", "Funk", "MED" ], [ "Lorenz", "Nicolas", "MED" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_014" }, { "question_text": "What are each owner's first name, last name, and the size of their dog?", "database_name": "dog_kennels", "gold_sql": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "gold_answer": [ [ "Jaclyn", "Stoltenberg", "LGE" ], [ "Gay", "Feil", "LGE" ], [ "Nora", "Haley", "MED" ], [ "Rachelle", "Funk", "LGE" ], [ "Emelie", "Mertz", "MED" ], [ "Johann", "Fisher", "MED" ], [ "Jaclyn", "Stoltenberg", "MED" ], [ "Rachelle", "Funk", "SML" ], [ "Melisa", "DuBuque", "MED" ], [ "Kade", "Rippin", "MED" ], [ "Cindy", "Schmitt", "LGE" ], [ "Orlando", "Price", "MED" ], [ "Rolando", "Prohaska", "SML" ], [ "Rachelle", "Funk", "MED" ], [ "Lorenz", "Nicolas", "MED" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_015" }, { "question_text": "List pairs of the owner's first name and the dogs's name.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "gold_answer": [ [ "Jaclyn", "Kacey" ], [ "Gay", "Hipolito" ], [ "Nora", "Mavis" ], [ "Rachelle", "Houston" ], [ "Emelie", "Jeffrey" ], [ "Johann", "Merritt" ], [ "Jaclyn", "Narciso" ], [ "Rachelle", "George" ], [ "Melisa", "Bessie" ], [ "Kade", "Troy" ], [ "Cindy", "Betty" ], [ "Orlando", "Holden" ], [ "Rolando", "Jesus" ], [ "Rachelle", "Lyric" ], [ "Lorenz", "Evangeline" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_016" }, { "question_text": "What are each owner's first name and their dogs's name?", "database_name": "dog_kennels", "gold_sql": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "gold_answer": [ [ "Jaclyn", "Kacey" ], [ "Gay", "Hipolito" ], [ "Nora", "Mavis" ], [ "Rachelle", "Houston" ], [ "Emelie", "Jeffrey" ], [ "Johann", "Merritt" ], [ "Jaclyn", "Narciso" ], [ "Rachelle", "George" ], [ "Melisa", "Bessie" ], [ "Kade", "Troy" ], [ "Cindy", "Betty" ], [ "Orlando", "Holden" ], [ "Rolando", "Jesus" ], [ "Rachelle", "Lyric" ], [ "Lorenz", "Evangeline" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_017" }, { "question_text": "Find the first names of owners living in Virginia and the names of dogs they own.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", "gold_answer": [ [ "Melisa", "Bessie" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_018" }, { "question_text": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", "gold_answer": [ [ "Melisa", "Bessie" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_019" }, { "question_text": "List the last name of the owner owning the youngest dog.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )", "gold_answer": [ "Feil", "Fisher", "Rippin" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_020" }, { "question_text": "Who owns the youngest dog? Give me his or her last name.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )", "gold_answer": [ "Feil", "Fisher", "Rippin" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_021" }, { "question_text": "List the names of the dogs of the rarest breed and the treatment dates of them.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )", "gold_answer": [ [ "Lyric", "2018-03-19 04:39:54" ], [ "Houston", "2018-03-15 20:25:34" ], [ "Lyric", "2018-03-08 05:26:23" ], [ "Lyric", "2018-03-14 19:10:40" ], [ "Kacey", "2018-03-15 19:10:02" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_022" }, { "question_text": "Which dogs are of the rarest breed? Show their names and treatment dates.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )", "gold_answer": [ [ "Lyric", "2018-03-19 04:39:54" ], [ "Houston", "2018-03-15 20:25:34" ], [ "Lyric", "2018-03-08 05:26:23" ], [ "Lyric", "2018-03-14 19:10:40" ], [ "Kacey", "2018-03-15 19:10:02" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_023" }, { "question_text": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": [ [ 14, "Funk" ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "Dogs", "Owners", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_024" }, { "question_text": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": [ [ 14, "Funk" ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "Dogs", "Owners", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_025" }, { "question_text": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", "gold_answer": [ [ 3, "02647" ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "Dogs", "Owners", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_026" }, { "question_text": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", "gold_answer": [ [ 3, "02647" ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "Dogs", "Owners", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_027" }, { "question_text": "Return the owner id, first name and last name of the owner who has the most dogs.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": [ [ 14, "Rachelle", "Funk" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_028" }, { "question_text": "Which owner owns the most dogs? List the owner id, first name and last name.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": [ [ 14, "Rachelle", "Funk" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_029" }, { "question_text": "Find the id and cell phone of the professionals who operate two or more types of treatments.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "gold_answer": [ [ 4, "00230569697" ], [ 6, "139-321-7313" ], [ 8, "328.842.3792" ], [ 9, "962-983-8109x3509" ], [ 10, "461-801-2600" ], [ 14, "1-185-137-1945x409" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_030" }, { "question_text": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "gold_answer": [ [ 4, "00230569697" ], [ 6, "139-321-7313" ], [ 8, "328.842.3792" ], [ 9, "962-983-8109x3509" ], [ 10, "461-801-2600" ], [ 14, "1-185-137-1945x409" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_031" }, { "question_text": "What are the id, role, and first name of the professionals who have performed two or more treatments?", "database_name": "dog_kennels", "gold_sql": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "gold_answer": [ [ 4, "Veterenarian", "Vernice" ], [ 6, "Veterenarian", "Ruben" ], [ 8, "Employee", "Karley" ], [ 9, "Veterenarian", "Monte" ], [ 10, "Employee", "Domenica" ], [ 14, "Employee", "Sigurd" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_032" }, { "question_text": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "gold_answer": [ [ 4, "Veterenarian", "Vernice" ], [ 6, "Veterenarian", "Ruben" ], [ 8, "Employee", "Karley" ], [ 9, "Veterenarian", "Monte" ], [ 10, "Employee", "Domenica" ], [ 14, "Employee", "Sigurd" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_033" }, { "question_text": "Give me the description of the treatment type whose total cost is the lowest.", "database_name": "dog_kennels", "gold_sql": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", "gold_answer": "Take for a Walk", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Treatment_types", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_034" }, { "question_text": "What is the description of the treatment type that costs the least money in total?", "database_name": "dog_kennels", "gold_sql": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", "gold_answer": "Take for a Walk", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Treatment_types", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_035" }, { "question_text": "Compute the average age of all the dogs.", "database_name": "dog_kennels", "gold_sql": "SELECT avg(age) FROM Dogs", "gold_answer": 5.066666666666666, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "Dogs" ], "split": "train", "question_id": "dog_kennels_train_036" }, { "question_text": "What is the average age of all the dogs?", "database_name": "dog_kennels", "gold_sql": "SELECT avg(age) FROM Dogs", "gold_answer": 5.066666666666666, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "Dogs" ], "split": "train", "question_id": "dog_kennels_train_037" }, { "question_text": "Find the average age of the dogs who went through treatments.", "database_name": "dog_kennels", "gold_sql": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", "gold_answer": 5.111111111111111, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "Dogs", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_038" }, { "question_text": "What is the average age of the dogs who have gone through any treatments?", "database_name": "dog_kennels", "gold_sql": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", "gold_answer": 5.111111111111111, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "Dogs", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_039" }, { "question_text": "How much does each charge type costs? List both charge type and amount.", "database_name": "dog_kennels", "gold_sql": "SELECT charge_type , charge_amount FROM Charges", "gold_answer": [ [ "Daily Accommodation", 98 ], [ "Drugs", 322 ], [ "Health Check", 640 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Charges" ], "split": "train", "question_id": "dog_kennels_train_040" }, { "question_text": "List each charge type and its amount.", "database_name": "dog_kennels", "gold_sql": "SELECT charge_type , charge_amount FROM Charges", "gold_answer": [ [ "Daily Accommodation", 98 ], [ "Drugs", 322 ], [ "Health Check", 640 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Charges" ], "split": "train", "question_id": "dog_kennels_train_041" }, { "question_text": "How much does the most recent treatment cost?", "database_name": "dog_kennels", "gold_sql": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", "gold_answer": 407, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Treatments" ], "split": "train", "question_id": "dog_kennels_train_042" }, { "question_text": "Show me the cost of the most recently performed treatment.", "database_name": "dog_kennels", "gold_sql": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", "gold_answer": 407, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Treatments" ], "split": "train", "question_id": "dog_kennels_train_043" }, { "question_text": "Count the number of dogs of an age below the average.", "database_name": "dog_kennels", "gold_sql": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", "gold_answer": 9, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Dogs" ], "split": "train", "question_id": "dog_kennels_train_044" }, { "question_text": "How many dogs have an age below the average?", "database_name": "dog_kennels", "gold_sql": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", "gold_answer": 9, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Dogs" ], "split": "train", "question_id": "dog_kennels_train_045" }, { "question_text": "How many dogs have not gone through any treatment?", "database_name": "dog_kennels", "gold_sql": "SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )", "gold_answer": 6, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Dogs", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_046" }, { "question_text": "Find the number of owners who do not own any dogs at this moment.", "database_name": "dog_kennels", "gold_sql": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", "gold_answer": 3, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_047" }, { "question_text": "How many owners temporarily do not have any dogs?", "database_name": "dog_kennels", "gold_sql": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", "gold_answer": 3, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Dogs", "Owners" ], "split": "train", "question_id": "dog_kennels_train_048" }, { "question_text": "Find the number of professionals who have not treated any dogs.", "database_name": "dog_kennels", "gold_sql": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", "gold_answer": 7, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_049" }, { "question_text": "How many professionals did not operate any treatment on dogs?", "database_name": "dog_kennels", "gold_sql": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", "gold_answer": 7, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_050" }, { "question_text": "Count the number of dogs that went through a treatment.", "database_name": "dog_kennels", "gold_sql": "SELECT count(DISTINCT dog_id) FROM Treatments", "gold_answer": 9, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Treatments" ], "split": "train", "question_id": "dog_kennels_train_051" }, { "question_text": "How many dogs went through any treatments?", "database_name": "dog_kennels", "gold_sql": "SELECT count(DISTINCT dog_id) FROM Treatments", "gold_answer": 9, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Treatments" ], "split": "train", "question_id": "dog_kennels_train_052" }, { "question_text": "Find the number of professionals who have ever treated dogs.", "database_name": "dog_kennels", "gold_sql": "SELECT count(DISTINCT professional_id) FROM Treatments", "gold_answer": 8, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Treatments" ], "split": "train", "question_id": "dog_kennels_train_053" }, { "question_text": "How many professionals have performed any treatment to dogs?", "database_name": "dog_kennels", "gold_sql": "SELECT count(DISTINCT professional_id) FROM Treatments", "gold_answer": 8, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Treatments" ], "split": "train", "question_id": "dog_kennels_train_054" }, { "question_text": "List the arrival date and the departure date for all the dogs.", "database_name": "dog_kennels", "gold_sql": "SELECT date_arrived , date_departed FROM Dogs", "gold_answer": [ [ "2017-09-08 20:10:13", "2018-03-25 06:58:44" ], [ "2017-12-22 05:02:02", "2018-03-25 02:11:32" ], [ "2017-06-25 10:14:05", "2018-03-25 10:25:46" ], [ "2017-04-20 00:58:55", "2018-03-24 19:12:22" ], [ "2017-10-25 00:55:34", "2018-03-25 04:50:22" ], [ "2017-04-15 09:25:31", "2018-03-25 13:07:04" ], [ "2017-05-06 08:03:52", "2018-03-25 06:29:10" ], [ "2017-10-16 20:06:21", "2018-03-25 02:47:40" ], [ "2018-01-17 11:44:16", "2018-03-25 06:46:07" ], [ "2017-12-29 06:08:26", "2018-03-25 04:42:14" ], [ "2017-07-25 15:19:07", "2018-03-25 15:05:16" ], [ "2017-10-24 04:45:13", "2018-03-25 14:15:41" ], [ "2018-01-02 03:15:29", "2018-03-25 05:07:47" ], [ "2017-06-18 19:45:38", "2018-03-24 23:48:59" ], [ "2017-12-29 23:24:13", "2018-03-24 19:36:59" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs" ], "split": "train", "question_id": "dog_kennels_train_055" }, { "question_text": "What are the arriving date and the departing date of all the dogs?", "database_name": "dog_kennels", "gold_sql": "SELECT date_arrived , date_departed FROM Dogs", "gold_answer": [ [ "2017-09-08 20:10:13", "2018-03-25 06:58:44" ], [ "2017-12-22 05:02:02", "2018-03-25 02:11:32" ], [ "2017-06-25 10:14:05", "2018-03-25 10:25:46" ], [ "2017-04-20 00:58:55", "2018-03-24 19:12:22" ], [ "2017-10-25 00:55:34", "2018-03-25 04:50:22" ], [ "2017-04-15 09:25:31", "2018-03-25 13:07:04" ], [ "2017-05-06 08:03:52", "2018-03-25 06:29:10" ], [ "2017-10-16 20:06:21", "2018-03-25 02:47:40" ], [ "2018-01-17 11:44:16", "2018-03-25 06:46:07" ], [ "2017-12-29 06:08:26", "2018-03-25 04:42:14" ], [ "2017-07-25 15:19:07", "2018-03-25 15:05:16" ], [ "2017-10-24 04:45:13", "2018-03-25 14:15:41" ], [ "2018-01-02 03:15:29", "2018-03-25 05:07:47" ], [ "2017-06-18 19:45:38", "2018-03-24 23:48:59" ], [ "2017-12-29 23:24:13", "2018-03-24 19:36:59" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs" ], "split": "train", "question_id": "dog_kennels_train_056" }, { "question_text": "List the email, cell phone and home phone of all the professionals.", "database_name": "dog_kennels", "gold_sql": "SELECT email_address , cell_number , home_phone FROM professionals", "gold_answer": [ [ "deanna.schuster@example.com", "(275)939-2435x80863", "+71(6)2898266914" ], [ "lucile.shanahan@example.org", "889-940-2676", "+02(1)0259033559" ], [ "uboehm@example.org", "(369)908-7311x065", "325-155-0801x7005" ], [ "lourdes.lowe@example.net", "00230569697", "312.216.3352" ], [ "mekhi.little@example.org", "011.193.9081x3186", "1-609-566-2752x25197" ], [ "jacynthe.mclaughlin@example.net", "139-321-7313", "+43(5)1132733868" ], [ "lambert62@example.org", "499-434-0215x1628", "022.529.0550x1319" ], [ "goyette.roosevelt@example.net", "328.842.3792", "891.475.2256" ], [ "schneider.kathryne@example.org", "962-983-8109x3509", "320-508-6023" ], [ "jerrod.bahringer@example.org", "461-801-2600", "(230)338-3342x585" ], [ "west.eula@example.net", "609-405-2990", "(920)304-4499x59146" ], [ "marquardt.furman@example.org", "1-181-670-9466", "246-951-0080x76716" ], [ "delphine29@example.com", "880-659-7577x736", "346.594.3739" ], [ "cole.margarita@example.org", "1-185-137-1945x409", "971.048.3763x9404" ], [ "jeichmann@example.com", "1-258-285-4707x8020", "1-138-287-3775" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "professionals" ], "split": "train", "question_id": "dog_kennels_train_057" }, { "question_text": "What are the email, cell phone and home phone of each professional?", "database_name": "dog_kennels", "gold_sql": "SELECT email_address , cell_number , home_phone FROM professionals", "gold_answer": [ [ "deanna.schuster@example.com", "(275)939-2435x80863", "+71(6)2898266914" ], [ "lucile.shanahan@example.org", "889-940-2676", "+02(1)0259033559" ], [ "uboehm@example.org", "(369)908-7311x065", "325-155-0801x7005" ], [ "lourdes.lowe@example.net", "00230569697", "312.216.3352" ], [ "mekhi.little@example.org", "011.193.9081x3186", "1-609-566-2752x25197" ], [ "jacynthe.mclaughlin@example.net", "139-321-7313", "+43(5)1132733868" ], [ "lambert62@example.org", "499-434-0215x1628", "022.529.0550x1319" ], [ "goyette.roosevelt@example.net", "328.842.3792", "891.475.2256" ], [ "schneider.kathryne@example.org", "962-983-8109x3509", "320-508-6023" ], [ "jerrod.bahringer@example.org", "461-801-2600", "(230)338-3342x585" ], [ "west.eula@example.net", "609-405-2990", "(920)304-4499x59146" ], [ "marquardt.furman@example.org", "1-181-670-9466", "246-951-0080x76716" ], [ "delphine29@example.com", "880-659-7577x736", "346.594.3739" ], [ "cole.margarita@example.org", "1-185-137-1945x409", "971.048.3763x9404" ], [ "jeichmann@example.com", "1-258-285-4707x8020", "1-138-287-3775" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "professionals" ], "split": "train", "question_id": "dog_kennels_train_058" }, { "question_text": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.", "database_name": "dog_kennels", "gold_sql": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", "gold_answer": [ "uboehm@example.org", "mekhi.little@example.org" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Professionals" ], "split": "train", "question_id": "dog_kennels_train_059" }, { "question_text": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?", "database_name": "dog_kennels", "gold_sql": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", "gold_answer": [ "uboehm@example.org", "mekhi.little@example.org" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Professionals" ], "split": "train", "question_id": "dog_kennels_train_060" }, { "question_text": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.", "database_name": "dog_kennels", "gold_sql": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", "gold_answer": [ [ "Johann", "Fisher", "zboncak.madonna@example.net" ], [ "Cindy", "Schmitt", "wpfeffer@example.net" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Owners" ], "split": "train", "question_id": "dog_kennels_train_061" }, { "question_text": "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.", "database_name": "dog_kennels", "gold_sql": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", "gold_answer": [ [ "Johann", "Fisher", "zboncak.madonna@example.net" ], [ "Cindy", "Schmitt", "wpfeffer@example.net" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Owners" ], "split": "train", "question_id": "dog_kennels_train_062" }, { "question_text": "Find the first names that are used for professionals or owners but are not used as dog names.", "database_name": "dog_kennels", "gold_sql": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", "gold_answer": [ "Adelle", "Brady", "Cindy", "Danny", "Domenica", "Emelie", "Ericka", "Gay", "Heather", "Jaclyn", "Jayson", "Johann", "Kade", "Karley", "Lesly", "Lorenz", "Melisa", "Monte", "Nora", "Olaf", "Orlando", "Rachelle", "Rolando", "Ruben", "Sigurd", "Taryn", "Tre", "Velva", "Vernice", "Winfield" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "Dogs", "Owners", "Professionals" ], "split": "train", "question_id": "dog_kennels_train_063" }, { "question_text": "Which first names are used for professionals or owners but are not used as dog names?", "database_name": "dog_kennels", "gold_sql": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", "gold_answer": [ "Adelle", "Brady", "Cindy", "Danny", "Domenica", "Emelie", "Ericka", "Gay", "Heather", "Jaclyn", "Jayson", "Johann", "Kade", "Karley", "Lesly", "Lorenz", "Melisa", "Monte", "Nora", "Olaf", "Orlando", "Rachelle", "Rolando", "Ruben", "Sigurd", "Taryn", "Tre", "Velva", "Vernice", "Winfield" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "Dogs", "Owners", "Professionals" ], "split": "train", "question_id": "dog_kennels_train_064" }, { "question_text": "Tell me the age of the oldest dog.", "database_name": "dog_kennels", "gold_sql": "SELECT max(age) FROM Dogs", "gold_answer": "9", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Dogs" ], "split": "train", "question_id": "dog_kennels_train_065" }, { "question_text": "What is the age of the oldest dog?", "database_name": "dog_kennels", "gold_sql": "SELECT max(age) FROM Dogs", "gold_answer": "9", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "Dogs" ], "split": "train", "question_id": "dog_kennels_train_066" }, { "question_text": "How much does the most expensive charge type costs?", "database_name": "dog_kennels", "gold_sql": "SELECT max(charge_amount) FROM Charges", "gold_answer": 640, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Charges" ], "split": "train", "question_id": "dog_kennels_train_067" }, { "question_text": "What is the charge amount of the most expensive charge type?", "database_name": "dog_kennels", "gold_sql": "SELECT max(charge_amount) FROM Charges", "gold_answer": 640, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Charges" ], "split": "train", "question_id": "dog_kennels_train_068" }, { "question_text": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", "database_name": "dog_kennels", "gold_sql": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1", "gold_answer": [ [ "Kacey", "6", "7.57" ], [ "Lyric", "4", "4.36" ], [ "Evangeline", "1", "4.01" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs" ], "split": "train", "question_id": "dog_kennels_train_069" }, { "question_text": "What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.", "database_name": "dog_kennels", "gold_sql": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1", "gold_answer": [ [ "Kacey", "6", "7.57" ], [ "Lyric", "4", "4.36" ], [ "Evangeline", "1", "4.01" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Dogs" ], "split": "train", "question_id": "dog_kennels_train_070" }, { "question_text": "Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.", "database_name": "dog_kennels", "gold_sql": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", "gold_answer": [ [ 1, "Braun", "(275)939-2435x80863" ], [ 8, "Hyatt", "328.842.3792" ], [ 9, "Kshlerin", "962-983-8109x3509" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_071" }, { "question_text": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.", "database_name": "dog_kennels", "gold_sql": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", "gold_answer": [ [ 1, "Braun", "(275)939-2435x80863" ], [ 8, "Hyatt", "328.842.3792" ], [ 9, "Kshlerin", "962-983-8109x3509" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_072" }, { "question_text": "Give me the id, role and email of the professionals who did not perform any treatment on dogs.", "database_name": "dog_kennels", "gold_sql": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", "gold_answer": [ [ 1, "Employee", "deanna.schuster@example.com" ], [ 2, "Employee", "lucile.shanahan@example.org" ], [ 3, "Employee", "uboehm@example.org" ], [ 11, "Employee", "west.eula@example.net" ], [ 12, "Veterenarian", "marquardt.furman@example.org" ], [ 13, "Veterenarian", "delphine29@example.com" ], [ 15, "Employee", "jeichmann@example.com" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_073" }, { "question_text": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.", "database_name": "dog_kennels", "gold_sql": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", "gold_answer": [ [ 1, "Employee", "deanna.schuster@example.com" ], [ 2, "Employee", "lucile.shanahan@example.org" ], [ 3, "Employee", "uboehm@example.org" ], [ 11, "Employee", "west.eula@example.net" ], [ 12, "Veterenarian", "marquardt.furman@example.org" ], [ 13, "Veterenarian", "delphine29@example.com" ], [ 15, "Employee", "jeichmann@example.com" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "Professionals", "Treatments" ], "split": "train", "question_id": "dog_kennels_train_074" }, { "question_text": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.", "database_name": "dog_kennels", "gold_sql": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", "gold_answer": [ [ "Employee", "6915 Oberbrunner Point Suite 491\nGleasonville, LA ", "West Heidi", "Indiana" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "professionals" ], "split": "train", "question_id": "dog_kennels_train_075" }, { "question_text": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.", "database_name": "dog_kennels", "gold_sql": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", "gold_answer": [ [ "Employee", "6915 Oberbrunner Point Suite 491\nGleasonville, LA ", "West Heidi", "Indiana" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "professionals" ], "split": "train", "question_id": "dog_kennels_train_076" }, { "question_text": "Find the states where both owners and professionals live.", "database_name": "dog_kennels", "gold_sql": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", "gold_answer": [ "Indiana", "Mississippi", "Wisconsin" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Owners", "Professionals" ], "split": "train", "question_id": "dog_kennels_train_077" }, { "question_text": "Which states have both owners and professionals living there?", "database_name": "dog_kennels", "gold_sql": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", "gold_answer": [ "Indiana", "Mississippi", "Wisconsin" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Owners", "Professionals" ], "split": "train", "question_id": "dog_kennels_train_078" }, { "question_text": "Tell me the number of dogs that have not received any treatment .", "database_name": "dog_kennels", "gold_sql": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "gold_answer": 6, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "dogs", "treatments" ], "split": "train", "question_id": "dog_kennels_train_079" }, { "question_text": "What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?", "database_name": "dog_kennels", "gold_sql": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )", "gold_answer": [ "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey", "Merritt", "Narciso", "George", "Bessie", "Betty", "Holden", "Jesus" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "dogs", "treatments" ], "split": "train", "question_id": "dog_kennels_train_080" }, { "question_text": "Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .", "database_name": "dog_kennels", "gold_sql": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )", "gold_answer": [ "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey", "Merritt", "Narciso", "George", "Bessie", "Betty", "Holden", "Jesus" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "dogs", "treatments" ], "split": "train", "question_id": "dog_kennels_train_081" }, { "question_text": "Give me all the information about hiring.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT * FROM hiring", "gold_answer": [ [ 1, 1, "2009", "T" ], [ 1, 2, "2003", "T" ], [ 8, 3, "2011", "F" ], [ 4, 4, "2012", "T" ], [ 5, 5, "2013", "T" ], [ 2, 6, "2010", "F" ], [ 6, 7, "2008", "T" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "hiring" ], "split": "train", "question_id": "employee_hire_evaluation_train_000" }, { "question_text": "What is all the information about hiring?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT * FROM hiring", "gold_answer": [ [ 1, 1, "2009", "T" ], [ 1, 2, "2003", "T" ], [ 8, 3, "2011", "F" ], [ 4, 4, "2012", "T" ], [ 5, 5, "2013", "T" ], [ 2, 6, "2010", "F" ], [ 6, 7, "2008", "T" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "hiring" ], "split": "train", "question_id": "employee_hire_evaluation_train_001" }, { "question_text": "Find the cities that have more than one employee under age 30.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", "gold_answer": "Bath", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "employee" ], "split": "train", "question_id": "employee_hire_evaluation_train_002" }, { "question_text": "Which cities do more than one employee under age 30 come from?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", "gold_answer": "Bath", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "employee" ], "split": "train", "question_id": "employee_hire_evaluation_train_003" }, { "question_text": "Find the number of shops in each location.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", "gold_answer": [ [ 1, "Espoo" ], [ 1, "Helsinki" ], [ 1, "Jakobstad" ], [ 1, "Kotka" ], [ 1, "Kuopio" ], [ 1, "Lahti" ], [ 1, "Mariehamn" ], [ 1, "Turku" ], [ 1, "Valkeakoski" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_004" }, { "question_text": "How many shops are there in each location?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", "gold_answer": [ [ 1, "Espoo" ], [ 1, "Helsinki" ], [ 1, "Jakobstad" ], [ 1, "Kotka" ], [ 1, "Kuopio" ], [ 1, "Lahti" ], [ 1, "Mariehamn" ], [ 1, "Turku" ], [ 1, "Valkeakoski" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_005" }, { "question_text": "Count the number of employees for each city.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT count(*) , city FROM employee GROUP BY city", "gold_answer": [ [ 3, "Bath" ], [ 3, "Bristol" ], [ 1, "Leicester" ], [ 1, "Sale" ], [ 2, "Wasps" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "employee" ], "split": "train", "question_id": "employee_hire_evaluation_train_006" }, { "question_text": "What is the number of employees from each city?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT count(*) , city FROM employee GROUP BY city", "gold_answer": [ [ 3, "Bath" ], [ 3, "Bristol" ], [ 1, "Leicester" ], [ 1, "Sale" ], [ 2, "Wasps" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "employee" ], "split": "train", "question_id": "employee_hire_evaluation_train_007" }, { "question_text": "Find the number of employees hired in each shop; show the shop name as well.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", "gold_answer": [ [ 2, "FC Haka" ], [ 1, "FC Inter" ], [ 1, "FC KooTeePee" ], [ 1, "FC Lahti" ], [ 1, "FF Jaro" ], [ 1, "HJK" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "hiring", "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_008" }, { "question_text": "For each shop, return the number of employees working there and the name of the shop.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", "gold_answer": [ [ 2, "FC Haka" ], [ 1, "FC Inter" ], [ 1, "FC KooTeePee" ], [ 1, "FC Lahti" ], [ 1, "FF Jaro" ], [ 1, "HJK" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "hiring", "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_009" }, { "question_text": "Count the number of employees", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT count(*) FROM employee", "gold_answer": 10, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "employee" ], "split": "train", "question_id": "employee_hire_evaluation_train_010" }, { "question_text": "How many employees are there?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT count(*) FROM employee", "gold_answer": 10, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "employee" ], "split": "train", "question_id": "employee_hire_evaluation_train_011" }, { "question_text": "Count the number of distinct store locations.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT count(DISTINCT LOCATION) FROM shop", "gold_answer": 9, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_012" }, { "question_text": "How many different store locations are there?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT count(DISTINCT LOCATION) FROM shop", "gold_answer": 9, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_013" }, { "question_text": "Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_014" }, { "question_text": "Which district has both stores with less than 3000 products and stores with more than 10000 products?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_015" }, { "question_text": "Find the manager name and district of the shop whose number of products is the largest.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", "gold_answer": [ [ "Ilkka Mäkelä", "Lahden Stadion" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_016" }, { "question_text": "What are the manager name and district of the shop that sells the largest number of products?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", "gold_answer": [ [ "Ilkka Mäkelä", "Lahden Stadion" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_017" }, { "question_text": "What are the minimum and maximum number of products across all the shops?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT min(Number_products) , max(Number_products) FROM shop", "gold_answer": [ [ 1600, 15000 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_018" }, { "question_text": "find the minimum and maximum number of products of all stores.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT min(Number_products) , max(Number_products) FROM shop", "gold_answer": [ [ 1600, 15000 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_019" }, { "question_text": "Return the name, location and district of all shops in descending order of number of products.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", "gold_answer": [ [ "FC Lahti", "Lahti", "Lahden Stadion" ], [ "HJK", "Helsinki", "Finnair Stadium" ], [ "FC Inter", "Turku", "Veritas Stadion" ], [ "FC Honka", "Espoo", "Tapiolan Urheilupuisto" ], [ "FF Jaro", "Jakobstad", "Jakobstads Centralplan" ], [ "FC KooTeePee", "Kotka", "Arto Tolsa Areena" ], [ "FC Haka", "Valkeakoski", "Tehtaan kenttä" ], [ "KuPS", "Kuopio", "Magnum Areena" ], [ "IFK Mariehamn", "Mariehamn", "Wiklöf Holding Arena" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_020" }, { "question_text": "Sort all the shops by number products in descending order, and return the name, location and district of each shop.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", "gold_answer": [ [ "FC Lahti", "Lahti", "Lahden Stadion" ], [ "HJK", "Helsinki", "Finnair Stadium" ], [ "FC Inter", "Turku", "Veritas Stadion" ], [ "FC Honka", "Espoo", "Tapiolan Urheilupuisto" ], [ "FF Jaro", "Jakobstad", "Jakobstads Centralplan" ], [ "FC KooTeePee", "Kotka", "Arto Tolsa Areena" ], [ "FC Haka", "Valkeakoski", "Tehtaan kenttä" ], [ "KuPS", "Kuopio", "Magnum Areena" ], [ "IFK Mariehamn", "Mariehamn", "Wiklöf Holding Arena" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_021" }, { "question_text": "List the names of employees and sort in ascending order of age.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT name FROM employee ORDER BY age", "gold_answer": [ "George Chuter", "Andrew Sheridan", "Lee Mears", "Tim Payne", "Matt Stevens", "Jason Hobson", "Steve Borthwick", "Louis Deacon", "Phil Vickery", "Mark Regan" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "employee" ], "split": "train", "question_id": "employee_hire_evaluation_train_022" }, { "question_text": "Sort employee names by their age in ascending order.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT name FROM employee ORDER BY age", "gold_answer": [ "George Chuter", "Andrew Sheridan", "Lee Mears", "Tim Payne", "Matt Stevens", "Jason Hobson", "Steve Borthwick", "Louis Deacon", "Phil Vickery", "Mark Regan" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "employee" ], "split": "train", "question_id": "employee_hire_evaluation_train_023" }, { "question_text": "Find the names of employees who never won any award in the evaluation.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", "gold_answer": [ "Mark Regan", "Tim Payne", "Andrew Sheridan", "Phil Vickery", "Steve Borthwick" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "employee", "evaluation" ], "split": "train", "question_id": "employee_hire_evaluation_train_024" }, { "question_text": "What are the names of the employees who never received any evaluation?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", "gold_answer": [ "Mark Regan", "Tim Payne", "Andrew Sheridan", "Phil Vickery", "Steve Borthwick" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "employee", "evaluation" ], "split": "train", "question_id": "employee_hire_evaluation_train_025" }, { "question_text": "Find the names of stores whose number products is more than the average number of products.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", "gold_answer": [ "HJK", "FC Inter", "FC Lahti" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_026" }, { "question_text": "Which shops' number products is above the average? Give me the shop names.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", "gold_answer": [ "HJK", "FC Inter", "FC Lahti" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_027" }, { "question_text": "Find the name of the shops that do not hire any employee.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", "gold_answer": [ "FC Honka", "KuPS", "IFK Mariehamn" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "hiring", "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_028" }, { "question_text": "Which shops run with no employees? Find the shop names", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", "gold_answer": [ "FC Honka", "KuPS", "IFK Mariehamn" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "hiring", "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_029" }, { "question_text": "Find the total amount of bonus given in all the evaluations.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT sum(bonus) FROM evaluation", "gold_answer": 19500.0, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "evaluation" ], "split": "train", "question_id": "employee_hire_evaluation_train_030" }, { "question_text": "What is total bonus given in all evaluations?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT sum(bonus) FROM evaluation", "gold_answer": 19500.0, "answer_type": "float", "difficulty": "easy", "tables_involved": [ "evaluation" ], "split": "train", "question_id": "employee_hire_evaluation_train_031" }, { "question_text": "Which employee received the most awards in evaluations? Give me the employee name.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1", "gold_answer": "George Chuter", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "employee", "evaluation" ], "split": "train", "question_id": "employee_hire_evaluation_train_032" }, { "question_text": "find the name of employee who was awarded the most times in the evaluation.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1", "gold_answer": "George Chuter", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "employee", "evaluation" ], "split": "train", "question_id": "employee_hire_evaluation_train_033" }, { "question_text": "Find the name of the employee who got the highest one time bonus.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", "gold_answer": "Louis Deacon", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "employee", "evaluation" ], "split": "train", "question_id": "employee_hire_evaluation_train_034" }, { "question_text": "Which employee received the biggest bonus? Give me the employee name.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", "gold_answer": "Louis Deacon", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "employee", "evaluation" ], "split": "train", "question_id": "employee_hire_evaluation_train_035" }, { "question_text": "What is the name of the shop that is hiring the largest number of employees?", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": "FC Haka", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "hiring", "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_036" }, { "question_text": "Which shop has the most employees? Give me the shop name.", "database_name": "employee_hire_evaluation", "gold_sql": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": "FC Haka", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "hiring", "shop" ], "split": "train", "question_id": "employee_hire_evaluation_train_037" }, { "question_text": "What is the abbreviation of Airline \"JetBlue Airways\"?", "database_name": "flight_2", "gold_sql": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "gold_answer": "JetBlue", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_000" }, { "question_text": "Which abbreviation corresponds to Jetblue Airways?", "database_name": "flight_2", "gold_sql": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "gold_answer": "JetBlue", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_001" }, { "question_text": "List all airline names and their abbreviations in \"USA\".", "database_name": "flight_2", "gold_sql": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\"", "gold_answer": [ [ "United Airlines", "UAL" ], [ "US Airways", "USAir" ], [ "Delta Airlines", "Delta" ], [ "Southwest Airlines", "Southwest" ], [ "American Airlines", "American" ], [ "Northwest Airlines", "Northwest" ], [ "Continental Airlines", "Continental" ], [ "JetBlue Airways", "JetBlue" ], [ "Frontier Airlines", "Frontier" ], [ "AirTran Airways", "AirTran" ], [ "Allegiant Air", "Allegiant" ], [ "Virgin America", "Virgin" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_002" }, { "question_text": "What are the airline names and abbreviations for airlines in the USA?", "database_name": "flight_2", "gold_sql": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\"", "gold_answer": [ [ "United Airlines", "UAL" ], [ "US Airways", "USAir" ], [ "Delta Airlines", "Delta" ], [ "Southwest Airlines", "Southwest" ], [ "American Airlines", "American" ], [ "Northwest Airlines", "Northwest" ], [ "Continental Airlines", "Continental" ], [ "JetBlue Airways", "JetBlue" ], [ "Frontier Airlines", "Frontier" ], [ "AirTran Airways", "AirTran" ], [ "Allegiant Air", "Allegiant" ], [ "Virgin America", "Virgin" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_003" }, { "question_text": "Give the airline with abbreviation 'UAL'.", "database_name": "flight_2", "gold_sql": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", "gold_answer": "United Airlines", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_004" }, { "question_text": "Which airline has abbreviation 'UAL'?", "database_name": "flight_2", "gold_sql": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", "gold_answer": "United Airlines", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_005" }, { "question_text": "Give the airport code and airport name corresonding to the city Anthony.", "database_name": "flight_2", "gold_sql": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS" ], "split": "train", "question_id": "flight_2_train_006" }, { "question_text": "List the airport code and name in the city of Anthony.", "database_name": "flight_2", "gold_sql": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS" ], "split": "train", "question_id": "flight_2_train_007" }, { "question_text": "Return the name of the airport with code 'AKO'.", "database_name": "flight_2", "gold_sql": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", "gold_answer": "Colorado Plains Regional Airport ", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "AIRPORTS" ], "split": "train", "question_id": "flight_2_train_008" }, { "question_text": "What is the airport name for airport 'AKO'?", "database_name": "flight_2", "gold_sql": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", "gold_answer": "Colorado Plains Regional Airport ", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "AIRPORTS" ], "split": "train", "question_id": "flight_2_train_009" }, { "question_text": "What are airport names at City 'Aberdeen'?", "database_name": "flight_2", "gold_sql": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS" ], "split": "train", "question_id": "flight_2_train_010" }, { "question_text": "What are the names of airports in Aberdeen?", "database_name": "flight_2", "gold_sql": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS" ], "split": "train", "question_id": "flight_2_train_011" }, { "question_text": "Find the name of airports which do not have any flight in and out.", "database_name": "flight_2", "gold_sql": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", "gold_answer": [ "Phillips AAF ", "Municipal ", "Dyess AFB ", "Municipal ", "Virginia Highlands ", "Ada ", "Adak Island Ns ", "Lenawee County ", "Municipal ", "Municipal ", "Ainsworth ", "Akhiok SPB ", "Spb ", "Akiak ", "Colorado Plains Regional Airport ", "Akron/canton Regional ", "Fulton International ", "Akutan ", "Alakanuk ", "NAS ", "Holloman AFB ", "Municipal ", "Municipal ", "Albany NAS ", "Dougherty County ", "Albany International ", "Albany ", "Albert Lea ", "Albuquerque International ", "Aleknagik ", "Aleneva ", "Thomas C Russell Fld ", "Alexandria International ", "Esler Field ", "Alexandria ", "Alexandria Bay ", "Algona ", "International ", "George Downer ", "Alitak SPB ", "Allakaket ", "Alliance ", "Gratiot Community ", "Alpena County Regional ", "Alpine ", "Alton ", "Altus AFB ", "Municipal ", "Alyeska ", "Rick Husband Amarillo International ", "Tradewind ", "Ambler ", "Amchitka ", "Municipal ", "Ames ", "Zahns ", "Amook ", "Anacortes ", "USN Heliport ", "Orange County Steel Salvage Heliport ", "Anaktuvuk ", "Elmendorf Afb ", "Ted Stevens Anchorage International Airport ", "Merrill Field ", "Municipal ", "Anderson ", "Andrews ", "Angel Fire ", "Tri-State Steuben Cty ", "Angoon ", "Rollang Field ", "Aniak ", "Anita Bay ", "Municipal ", "Lee ", "Annette Island ", "Anniston Metropolitan ", "Ft Mcclellan Bus Trml ", "Reilly AHP ", "Anthony ", "Antlers ", "Anvik ", "Municipal ", "Apple Valley ", "Outagamie County ", "Municipal ", "Arcata ", "Arctic Village ", "Downtown ", "Ardmore Municipal Arpt ", "US Army Heliport ", "Artesia ", "Asbury Park ", "Ashland ", "Ashley ", "Aspen ", "Astoria ", "Athens ", "Ohio University ", "McMinn County " ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Airports", "Flights" ], "split": "train", "question_id": "flight_2_train_012" }, { "question_text": "Which airports do not have departing or arriving flights?", "database_name": "flight_2", "gold_sql": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", "gold_answer": [ "Phillips AAF ", "Municipal ", "Dyess AFB ", "Municipal ", "Virginia Highlands ", "Ada ", "Adak Island Ns ", "Lenawee County ", "Municipal ", "Municipal ", "Ainsworth ", "Akhiok SPB ", "Spb ", "Akiak ", "Colorado Plains Regional Airport ", "Akron/canton Regional ", "Fulton International ", "Akutan ", "Alakanuk ", "NAS ", "Holloman AFB ", "Municipal ", "Municipal ", "Albany NAS ", "Dougherty County ", "Albany International ", "Albany ", "Albert Lea ", "Albuquerque International ", "Aleknagik ", "Aleneva ", "Thomas C Russell Fld ", "Alexandria International ", "Esler Field ", "Alexandria ", "Alexandria Bay ", "Algona ", "International ", "George Downer ", "Alitak SPB ", "Allakaket ", "Alliance ", "Gratiot Community ", "Alpena County Regional ", "Alpine ", "Alton ", "Altus AFB ", "Municipal ", "Alyeska ", "Rick Husband Amarillo International ", "Tradewind ", "Ambler ", "Amchitka ", "Municipal ", "Ames ", "Zahns ", "Amook ", "Anacortes ", "USN Heliport ", "Orange County Steel Salvage Heliport ", "Anaktuvuk ", "Elmendorf Afb ", "Ted Stevens Anchorage International Airport ", "Merrill Field ", "Municipal ", "Anderson ", "Andrews ", "Angel Fire ", "Tri-State Steuben Cty ", "Angoon ", "Rollang Field ", "Aniak ", "Anita Bay ", "Municipal ", "Lee ", "Annette Island ", "Anniston Metropolitan ", "Ft Mcclellan Bus Trml ", "Reilly AHP ", "Anthony ", "Antlers ", "Anvik ", "Municipal ", "Apple Valley ", "Outagamie County ", "Municipal ", "Arcata ", "Arctic Village ", "Downtown ", "Ardmore Municipal Arpt ", "US Army Heliport ", "Artesia ", "Asbury Park ", "Ashland ", "Ashley ", "Aspen ", "Astoria ", "Athens ", "Ohio University ", "McMinn County " ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "Airports", "Flights" ], "split": "train", "question_id": "flight_2_train_013" }, { "question_text": "Give the city and country for the Alton airport.", "database_name": "flight_2", "gold_sql": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS" ], "split": "train", "question_id": "flight_2_train_014" }, { "question_text": "Which city and country is the Alton airport at?", "database_name": "flight_2", "gold_sql": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS" ], "split": "train", "question_id": "flight_2_train_015" }, { "question_text": "What country is Jetblue Airways affiliated with?", "database_name": "flight_2", "gold_sql": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "gold_answer": "USA", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_016" }, { "question_text": "Which country does Airline \"JetBlue Airways\" belong to?", "database_name": "flight_2", "gold_sql": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "gold_answer": "USA", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_017" }, { "question_text": "Give the flight numbers of flights landing at APG.", "database_name": "flight_2", "gold_sql": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_018" }, { "question_text": "What are flight numbers of flights arriving at Airport \"APG\"?", "database_name": "flight_2", "gold_sql": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_019" }, { "question_text": "Give the flight numbers of flights leaving from APG.", "database_name": "flight_2", "gold_sql": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_020" }, { "question_text": "What are flight numbers of flights departing from Airport \"APG\"?", "database_name": "flight_2", "gold_sql": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_021" }, { "question_text": "Find the abbreviation and country of the airline that has fewest number of flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1", "gold_answer": [ [ "AirTran", "USA" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_022" }, { "question_text": "What is the abbreviation of the airilne has the fewest flights and what country is it in?", "database_name": "flight_2", "gold_sql": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1", "gold_answer": [ [ "AirTran", "USA" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_023" }, { "question_text": "Find all airlines that have fewer than 200 flights.", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", "gold_answer": [ "AirTran Airways", "Allegiant Air", "American Airlines", "Continental Airlines", "Delta Airlines", "Frontier Airlines", "JetBlue Airways", "Northwest Airlines", "Southwest Airlines", "US Airways", "United Airlines", "Virgin America" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_024" }, { "question_text": "Which airlines have less than 200 flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", "gold_answer": [ "AirTran Airways", "Allegiant Air", "American Airlines", "Continental Airlines", "Delta Airlines", "Frontier Airlines", "JetBlue Airways", "Northwest Airlines", "Southwest Airlines", "US Airways", "United Airlines", "Virgin America" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_025" }, { "question_text": "Find all airlines that have at least 10 flights.", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", "gold_answer": [ "AirTran Airways", "Allegiant Air", "American Airlines", "Continental Airlines", "Delta Airlines", "Frontier Airlines", "JetBlue Airways", "Northwest Airlines", "Southwest Airlines", "US Airways", "United Airlines", "Virgin America" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_026" }, { "question_text": "Which airlines have at least 10 flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", "gold_answer": [ "AirTran Airways", "Allegiant Air", "American Airlines", "Continental Airlines", "Delta Airlines", "Frontier Airlines", "JetBlue Airways", "Northwest Airlines", "Southwest Airlines", "US Airways", "United Airlines", "Virgin America" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_027" }, { "question_text": "What airline serves the most flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", "gold_answer": "Virgin America", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_028" }, { "question_text": "Which airline has most number of flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", "gold_answer": "Virgin America", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_029" }, { "question_text": "What are airlines that have flights arriving at airport 'AHD'?", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_030" }, { "question_text": "Which airlines have a flight with destination airport AHD?", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_031" }, { "question_text": "What are airlines that have some flight departing from airport 'AHD'?", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_032" }, { "question_text": "Which airlines have a flight with source airport AHD?", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_033" }, { "question_text": "Find all airlines that have flights from both airports 'APG' and 'CVO'.", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_034" }, { "question_text": "Which airlines have departing flights from both APG and CVO airports?", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_035" }, { "question_text": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_036" }, { "question_text": "Which airlines have departures from CVO but not from APG airports?", "database_name": "flight_2", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_037" }, { "question_text": "What is the airport code of the airport with the most flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_038" }, { "question_text": "What is the code of airport that has the highest number of flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_039" }, { "question_text": "Give the code of the airport with the least flights.", "database_name": "flight_2", "gold_sql": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_040" }, { "question_text": "What is the code of airport that has fewest number of flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_041" }, { "question_text": "Which city has most number of arriving flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_042" }, { "question_text": "Which city has the most frequent destination airport?", "database_name": "flight_2", "gold_sql": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_043" }, { "question_text": "Which city has most number of departing flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_044" }, { "question_text": "Which city is the most frequent source airport?", "database_name": "flight_2", "gold_sql": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_045" }, { "question_text": "What are flight numbers of Airline \"United Airlines\"?", "database_name": "flight_2", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", "gold_answer": [ 28, 29, 44, 45, 54, 55, 90, 91, 108, 109, 142, 143, 148, 149, 198, 199, 226, 227, 276, 277, 308, 309, 326, 327, 370, 371, 414, 415, 424, 425, 470, 471, 520, 521, 556, 557, 560, 561, 604, 605, 608, 609, 626, 627, 658, 659, 708, 709, 744, 745, 754, 755, 786, 787, 810, 811, 828, 829, 878, 879, 888, 889, 900, 901, 924, 925, 946, 947, 996, 997, 1000, 1001, 1026, 1027, 1062, 1063, 1068, 1069, 1100, 1101, 1144, 1145, 1166, 1167, 1168, 1169, 1192, 1193, 1208, 1209, 1216, 1217, 1250, 1251, 1274, 1275, 1284, 1285, 1328, 1329 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_046" }, { "question_text": "Which flight numbers correspond to United Airlines flights?", "database_name": "flight_2", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", "gold_answer": [ 28, 29, 44, 45, 54, 55, 90, 91, 108, 109, 142, 143, 148, 149, 198, 199, 226, 227, 276, 277, 308, 309, 326, 327, 370, 371, 414, 415, 424, 425, 470, 471, 520, 521, 556, 557, 560, 561, 604, 605, 608, 609, 626, 627, 658, 659, 708, 709, 744, 745, 754, 755, 786, 787, 810, 811, 828, 829, 878, 879, 888, 889, 900, 901, 924, 925, 946, 947, 996, 997, 1000, 1001, 1026, 1027, 1062, 1063, 1068, 1069, 1100, 1101, 1144, 1145, 1166, 1167, 1168, 1169, 1192, 1193, 1208, 1209, 1216, 1217, 1250, 1251, 1274, 1275, 1284, 1285, 1328, 1329 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_047" }, { "question_text": "Give the flight numbers of flights arriving in Aberdeen.", "database_name": "flight_2", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_048" }, { "question_text": "What are flight numbers of flights arriving at City \"Aberdeen\"?", "database_name": "flight_2", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_049" }, { "question_text": "Give the flight numbers of flights leaving from Aberdeen.", "database_name": "flight_2", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_050" }, { "question_text": "What are flight numbers of flights departing from City \"Aberdeen \"?", "database_name": "flight_2", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "gold_answer": [], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_051" }, { "question_text": "How many airlines do we have?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM AIRLINES", "gold_answer": 12, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_052" }, { "question_text": "What is the total number of airlines?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM AIRLINES", "gold_answer": 12, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_053" }, { "question_text": "Count the number of United Airlines flights arriving in ASY Airport.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_054" }, { "question_text": "How many 'United Airlines' flights go to Airport 'ASY'?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_055" }, { "question_text": "How many 'United Airlines' flights depart from Airport 'AHD'?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_056" }, { "question_text": "Return the number of United Airlines flights leaving from AHD Airport.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_057" }, { "question_text": "How many airlines are from USA?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", "gold_answer": 12, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_058" }, { "question_text": "Return the number of airlines in the USA.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", "gold_answer": 12, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRLINES" ], "split": "train", "question_id": "flight_2_train_059" }, { "question_text": "How many airports do we have?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM AIRPORTS", "gold_answer": 100, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRPORTS" ], "split": "train", "question_id": "flight_2_train_060" }, { "question_text": "Return the number of airports.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM AIRPORTS", "gold_answer": 100, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRPORTS" ], "split": "train", "question_id": "flight_2_train_061" }, { "question_text": "How many flights do we have?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS", "gold_answer": 1200, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_062" }, { "question_text": "Return the number of flights.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS", "gold_answer": 1200, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_063" }, { "question_text": "Give the number of Jetblue Airways flights.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", "gold_answer": 100, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_064" }, { "question_text": "How many flights does airline 'JetBlue Airways' have?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", "gold_answer": 100, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRLINES", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_065" }, { "question_text": "Count the number of United Airlines flights that arrive in Aberdeen.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "medium", "tables_involved": [ "AIRLINES", "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_066" }, { "question_text": "How many United Airlines flights go to City 'Aberdeen'?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "medium", "tables_involved": [ "AIRLINES", "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_067" }, { "question_text": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_068" }, { "question_text": "How many flights fly from Aberdeen to Ashley?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_069" }, { "question_text": "How many flights arriving in Aberdeen city?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_070" }, { "question_text": "Return the number of flights arriving in Aberdeen.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_071" }, { "question_text": "How many flights depart from City Aberdeen?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_072" }, { "question_text": "Return the number of flights departing from Aberdeen.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "AIRPORTS", "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_073" }, { "question_text": "Count the number of flights into ATO.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_074" }, { "question_text": "How many flights have destination ATO?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_075" }, { "question_text": "Count the number of flights departing from 'APG'.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_076" }, { "question_text": "How many flights depart from 'APG'?", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "FLIGHTS" ], "split": "train", "question_id": "flight_2_train_077" }, { "question_text": "Find the number of flights landing in the city of Aberdeen or Abilene.", "database_name": "flight_2", "gold_sql": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", "gold_answer": 0, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "Airports", "Flights" ], "split": "train", "question_id": "flight_2_train_078" }, { "question_text": "What are all details of the students who registered but did not attend any course?", "database_name": "student_assessment", "gold_sql": "SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "gold_answer": [ [ 131, 303, "2008-11-05 10:35:13" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "student_course_attendance", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_000" }, { "question_text": "What are all info of students who registered courses but not attended courses?", "database_name": "student_assessment", "gold_sql": "SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "gold_answer": [ [ 131, 303, "2008-11-05 10:35:13" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "student_course_attendance", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_001" }, { "question_text": "Find distinct cities of addresses of people?", "database_name": "student_assessment", "gold_sql": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id", "gold_answer": [ "South Minnie", "Linnealand", "East Tavaresburgh", "Terencetown", "Lake Devon", "O'Connellview", "New Alta", "South Naomibury" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "addresses", "people_addresses" ], "split": "train", "question_id": "student_assessment_train_002" }, { "question_text": "What are the different cities where people live?", "database_name": "student_assessment", "gold_sql": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id", "gold_answer": [ "South Minnie", "Linnealand", "East Tavaresburgh", "Terencetown", "Lake Devon", "O'Connellview", "New Alta", "South Naomibury" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "addresses", "people_addresses" ], "split": "train", "question_id": "student_assessment_train_003" }, { "question_text": "Find distinct cities of address of students?", "database_name": "student_assessment", "gold_sql": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id", "gold_answer": [ "South Minnie", "Linnealand", "East Tavaresburgh", "Terencetown", "Lake Devon", "O'Connellview", "New Alta", "South Naomibury" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "addresses", "people_addresses", "students" ], "split": "train", "question_id": "student_assessment_train_004" }, { "question_text": "What are the different cities where students live?", "database_name": "student_assessment", "gold_sql": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id", "gold_answer": [ "South Minnie", "Linnealand", "East Tavaresburgh", "Terencetown", "Lake Devon", "O'Connellview", "New Alta", "South Naomibury" ], "answer_type": "list", "difficulty": "medium", "tables_involved": [ "addresses", "people_addresses", "students" ], "split": "train", "question_id": "student_assessment_train_005" }, { "question_text": "What is the name of the course with the most registered students?", "database_name": "student_assessment", "gold_sql": "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": "statistics", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "courses", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_006" }, { "question_text": "which course has most number of registered students?", "database_name": "student_assessment", "gold_sql": "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": "statistics", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "courses", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_007" }, { "question_text": "What are the details of the student who registered for the most number of courses?", "database_name": "student_assessment", "gold_sql": "SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": "Martin", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "student_course_registrations", "students" ], "split": "train", "question_id": "student_assessment_train_008" }, { "question_text": "What is detail of the student who registered the most number of courses?", "database_name": "student_assessment", "gold_sql": "SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "gold_answer": "Martin", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "student_course_registrations", "students" ], "split": "train", "question_id": "student_assessment_train_009" }, { "question_text": "What are the ids of all students for courses and what are the names of those courses?", "database_name": "student_assessment", "gold_sql": "SELECT T1.student_id , T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id", "gold_answer": [ [ 111, "statistics" ], [ 121, "statistics" ], [ 141, "statistics" ], [ 171, "statistics" ], [ 141, "English" ], [ 161, "English" ], [ 121, "French" ], [ 131, "French" ], [ 151, "data structure" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "courses", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_010" }, { "question_text": "For every student who is registered for some course, how many courses are they registered for?", "database_name": "student_assessment", "gold_sql": "SELECT T1.student_id , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id", "gold_answer": [ [ 111, 1 ], [ 121, 2 ], [ 131, 1 ], [ 141, 2 ], [ 151, 1 ], [ 161, 1 ], [ 171, 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "student_course_registrations", "students" ], "split": "train", "question_id": "student_assessment_train_011" }, { "question_text": "List the id of students who registered some courses and the number of their registered courses?", "database_name": "student_assessment", "gold_sql": "SELECT T1.student_id , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id", "gold_answer": [ [ 111, 1 ], [ 121, 2 ], [ 131, 1 ], [ 141, 2 ], [ 151, 1 ], [ 161, 1 ], [ 171, 1 ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "student_course_registrations", "students" ], "split": "train", "question_id": "student_assessment_train_012" }, { "question_text": "Find id of the candidate whose email is stanley.monahan@example.org?", "database_name": "student_assessment", "gold_sql": "SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = \"stanley.monahan@example.org\"", "gold_answer": 151, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "candidates", "people" ], "split": "train", "question_id": "student_assessment_train_013" }, { "question_text": "What is the id of the candidate whose email is stanley.monahan@example.org?", "database_name": "student_assessment", "gold_sql": "SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = \"stanley.monahan@example.org\"", "gold_answer": 151, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "candidates", "people" ], "split": "train", "question_id": "student_assessment_train_014" }, { "question_text": "What are the first and last names of all the candidates?", "database_name": "student_assessment", "gold_sql": "SELECT T2.first_name , T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id", "gold_answer": [ [ "Shannon", "Senger" ], [ "Virginie", "Hartmann" ], [ "Dariana", "Bednar" ], [ "Verna", "Grant" ], [ "Hoyt", "Wintheiser" ], [ "Mayra", "Hartmann" ], [ "Lizeth", "Bartoletti" ], [ "Nova", "Feest" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "candidates", "people" ], "split": "train", "question_id": "student_assessment_train_015" }, { "question_text": "what are the first name and last name of all candidates?", "database_name": "student_assessment", "gold_sql": "SELECT T2.first_name , T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id", "gold_answer": [ [ "Shannon", "Senger" ], [ "Virginie", "Hartmann" ], [ "Dariana", "Bednar" ], [ "Verna", "Grant" ], [ "Hoyt", "Wintheiser" ], [ "Mayra", "Hartmann" ], [ "Lizeth", "Bartoletti" ], [ "Nova", "Feest" ] ], "answer_type": "table", "difficulty": "easy", "tables_involved": [ "candidates", "people" ], "split": "train", "question_id": "student_assessment_train_016" }, { "question_text": "What details do we have on the students who registered for courses most recently?", "database_name": "student_assessment", "gold_sql": "SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1", "gold_answer": "Martin", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "student_course_registrations", "students" ], "split": "train", "question_id": "student_assessment_train_017" }, { "question_text": "What is detail of the student who most recently registered course?", "database_name": "student_assessment", "gold_sql": "SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1", "gold_answer": "Martin", "answer_type": "string", "difficulty": "easy", "tables_involved": [ "student_course_registrations", "students" ], "split": "train", "question_id": "student_assessment_train_018" }, { "question_text": "List the id of students who attended statistics courses in the order of attendance date.", "database_name": "student_assessment", "gold_sql": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.date_of_attendance", "gold_answer": [ 111, 121, 141, 171 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "courses", "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_019" }, { "question_text": "What are the ids of the students who attended courses in the statistics department in order of attendance date.", "database_name": "student_assessment", "gold_sql": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.date_of_attendance", "gold_answer": [ 111, 121, 141, 171 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "courses", "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_020" }, { "question_text": "List the id of students who registered course statistics in the order of registration date.", "database_name": "student_assessment", "gold_sql": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.registration_date", "gold_answer": [ 121, 111, 171, 141 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "courses", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_021" }, { "question_text": "What are the ids of the students who registered course statistics by order of registration date?", "database_name": "student_assessment", "gold_sql": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.registration_date", "gold_answer": [ 121, 111, 171, 141 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "courses", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_022" }, { "question_text": "Find the cell mobile number of the candidates whose assessment code is \"Fail\"?", "database_name": "student_assessment", "gold_sql": "SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = \"Fail\"", "gold_answer": "(262)347-9364x516", "answer_type": "string", "difficulty": "medium", "tables_involved": [ "candidate_assessments", "candidates", "people" ], "split": "train", "question_id": "student_assessment_train_023" }, { "question_text": "What are the cell phone numbers of the candidates that received an assessment code of \"Fail\"?", "database_name": "student_assessment", "gold_sql": "SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = \"Fail\"", "gold_answer": "(262)347-9364x516", "answer_type": "string", "difficulty": "medium", "tables_involved": [ "candidate_assessments", "candidates", "people" ], "split": "train", "question_id": "student_assessment_train_024" }, { "question_text": "For each course id, how many students are registered and what are the course names?", "database_name": "student_assessment", "gold_sql": "SELECT T3.course_name , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id", "gold_answer": [ [ "statistics", 4 ], [ "English", 2 ], [ "French", 2 ], [ "data structure", 1 ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "courses", "student_course_registrations", "students" ], "split": "train", "question_id": "student_assessment_train_025" }, { "question_text": "How many registed students do each course have? List course name and the number of their registered students?", "database_name": "student_assessment", "gold_sql": "SELECT T3.course_name , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id", "gold_answer": [ [ "statistics", 4 ], [ "English", 2 ], [ "French", 2 ], [ "data structure", 1 ] ], "answer_type": "table", "difficulty": "medium", "tables_involved": [ "courses", "student_course_registrations", "students" ], "split": "train", "question_id": "student_assessment_train_026" }, { "question_text": "Find id of the candidate who most recently accessed the course?", "database_name": "student_assessment", "gold_sql": "SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1", "gold_answer": 121, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "candidate_assessments" ], "split": "train", "question_id": "student_assessment_train_027" }, { "question_text": "What is the id of the candidate who most recently accessed the course?", "database_name": "student_assessment", "gold_sql": "SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1", "gold_answer": 121, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "candidate_assessments" ], "split": "train", "question_id": "student_assessment_train_028" }, { "question_text": "Find id of candidates whose assessment code is \"Pass\"?", "database_name": "student_assessment", "gold_sql": "SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = \"Pass\"", "gold_answer": [ 111, 121, 141, 151 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "candidate_assessments" ], "split": "train", "question_id": "student_assessment_train_029" }, { "question_text": "What are the ids of the candidates that have an outcome code of Pass?", "database_name": "student_assessment", "gold_sql": "SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = \"Pass\"", "gold_answer": [ 111, 121, 141, 151 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "candidate_assessments" ], "split": "train", "question_id": "student_assessment_train_030" }, { "question_text": "How many students are attending English courses?", "database_name": "student_assessment", "gold_sql": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"English\"", "gold_answer": 2, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "courses", "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_031" }, { "question_text": "How many students attend course English?", "database_name": "student_assessment", "gold_sql": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"English\"", "gold_answer": 2, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "courses", "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_032" }, { "question_text": "How many courses do the student whose id is 171 attend?", "database_name": "student_assessment", "gold_sql": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171", "gold_answer": 1, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "courses", "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_033" }, { "question_text": "How many courses does the student with id 171 actually attend?", "database_name": "student_assessment", "gold_sql": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171", "gold_answer": 1, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "courses", "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_034" }, { "question_text": "Find the id of courses which are registered or attended by student whose id is 121?", "database_name": "student_assessment", "gold_sql": "SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121", "gold_answer": [ 301, 303 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "student_course_attendance", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_035" }, { "question_text": "What are the ids of the courses that are registered or attended by the student whose id is 121?", "database_name": "student_assessment", "gold_sql": "SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121", "gold_answer": [ 301, 303 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "student_course_attendance", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_036" }, { "question_text": "List the names of courses in alphabetical order?", "database_name": "student_assessment", "gold_sql": "SELECT course_name FROM courses ORDER BY course_name", "gold_answer": [ "Art history", "English", "French", "data structure", "database", "statistics" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "courses" ], "split": "train", "question_id": "student_assessment_train_037" }, { "question_text": "What are the names of the courses in alphabetical order?", "database_name": "student_assessment", "gold_sql": "SELECT course_name FROM courses ORDER BY course_name", "gold_answer": [ "Art history", "English", "French", "data structure", "database", "statistics" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "courses" ], "split": "train", "question_id": "student_assessment_train_038" }, { "question_text": "List the first names of people in alphabetical order?", "database_name": "student_assessment", "gold_sql": "SELECT first_name FROM people ORDER BY first_name", "gold_answer": [ "Dariana", "Hoyt", "Lizeth", "Mayra", "Nova", "Shannon", "Verna", "Virginie" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "people" ], "split": "train", "question_id": "student_assessment_train_039" }, { "question_text": "What are the first names of the people in alphabetical order?", "database_name": "student_assessment", "gold_sql": "SELECT first_name FROM people ORDER BY first_name", "gold_answer": [ "Dariana", "Hoyt", "Lizeth", "Mayra", "Nova", "Shannon", "Verna", "Virginie" ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "people" ], "split": "train", "question_id": "student_assessment_train_040" }, { "question_text": "List the id of students who attended some courses?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM student_course_attendance", "gold_answer": [ 111, 121, 121, 141, 141, 151, 161, 171 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_041" }, { "question_text": "What are the ids of all students who have attended at least one course?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM student_course_attendance", "gold_answer": [ 111, 121, 121, 141, 141, 151, 161, 171 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_042" }, { "question_text": "What are the id of students who registered course 301?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM student_course_attendance WHERE course_id = 301", "gold_answer": [ 111, 121, 141, 171 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_043" }, { "question_text": "What are the ids of the students who registered for course 301?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM student_course_attendance WHERE course_id = 301", "gold_answer": [ 111, 121, 141, 171 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_044" }, { "question_text": "What are the ids of the students who registered for course 301 most recently?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1", "gold_answer": 171, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_045" }, { "question_text": "What is the id of the student who most recently registered course 301?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1", "gold_answer": 171, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "student_course_attendance" ], "split": "train", "question_id": "student_assessment_train_046" }, { "question_text": "What are the ids of the students who registered for some courses but had the least number of courses for all students?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1", "gold_answer": 111, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_047" }, { "question_text": "what is id of students who registered some courses but the least number of courses in these students?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1", "gold_answer": 111, "answer_type": "integer", "difficulty": "easy", "tables_involved": [ "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_048" }, { "question_text": "What are the id of students who registered courses or attended courses?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance", "gold_answer": [ 111, 121, 131, 141, 151, 161, 171 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "student_course_attendance", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_049" }, { "question_text": "What are the ids of the students who either registered or attended a course?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance", "gold_answer": [ 111, 121, 131, 141, 151, 161, 171 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "student_course_attendance", "student_course_registrations" ], "split": "train", "question_id": "student_assessment_train_050" }, { "question_text": "List the id of students who never attends courses?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "gold_answer": [ 131, 181 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "student_course_attendance", "students" ], "split": "train", "question_id": "student_assessment_train_051" }, { "question_text": "What are the ids of every student who has never attended a course?", "database_name": "student_assessment", "gold_sql": "SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "gold_answer": [ 131, 181 ], "answer_type": "list", "difficulty": "easy", "tables_involved": [ "student_course_attendance", "students" ], "split": "train", "question_id": "student_assessment_train_052" } ]