pocketsql-data / spider_dev_duckdb.jsonl
MidlightDDK's picture
v0 (M1): Spider-derived train/val/test with DuckDB databases
d3f8c1f verified
Raw History Blame Contribute Delete
314 kB
{"id": "spider_dev_0000", "db_id": "concert_singer", "question": "How many singers do we have?", "gold_sql": "SELECT COUNT(*) FROM singer;", "gold_result_hash": "7bd6032174e40a46", "difficulty": "easy"}
{"id": "spider_dev_0001", "db_id": "concert_singer", "question": "What is the total number of singers?", "gold_sql": "SELECT COUNT(*) FROM singer;", "gold_result_hash": "7bd6032174e40a46", "difficulty": "easy"}
{"id": "spider_dev_0002", "db_id": "concert_singer", "question": "Show name, country, age for all singers ordered by age from the oldest to the youngest.", "gold_sql": "SELECT name, country, age FROM singer ORDER BY age DESC;", "gold_result_hash": "224ca567dc54c5e0", "difficulty": "medium"}
{"id": "spider_dev_0003", "db_id": "concert_singer", "question": "What are the names, countries, and ages for every singer in descending order of age?", "gold_sql": "SELECT name, country, age FROM singer ORDER BY age DESC;", "gold_result_hash": "224ca567dc54c5e0", "difficulty": "medium"}
{"id": "spider_dev_0004", "db_id": "concert_singer", "question": "What is the average, minimum, and maximum age of all singers from France?", "gold_sql": "SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France';", "gold_result_hash": "66dc0ed46c39f0cb", "difficulty": "medium"}
{"id": "spider_dev_0005", "db_id": "concert_singer", "question": "What is the average, minimum, and maximum age for all French singers?", "gold_sql": "SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France';", "gold_result_hash": "66dc0ed46c39f0cb", "difficulty": "medium"}
{"id": "spider_dev_0006", "db_id": "concert_singer", "question": "Show the name and the release year of the song by the youngest singer.", "gold_sql": "SELECT song_name, song_release_year FROM singer ORDER BY age LIMIT 1;", "gold_result_hash": "3dbed3c88caaa5bc", "difficulty": "medium"}
{"id": "spider_dev_0007", "db_id": "concert_singer", "question": "What are the names and release years for all the songs of the youngest singer?", "gold_sql": "SELECT song_name, song_release_year FROM singer ORDER BY age LIMIT 1;", "gold_result_hash": "3dbed3c88caaa5bc", "difficulty": "medium"}
{"id": "spider_dev_0008", "db_id": "concert_singer", "question": "What are all distinct countries where singers above age 20 are from?", "gold_sql": "SELECT DISTINCT country FROM singer WHERE age > 20;", "gold_result_hash": "9e779860218abdc6", "difficulty": "easy"}
{"id": "spider_dev_0009", "db_id": "concert_singer", "question": "What are the different countries with singers above age 20?", "gold_sql": "SELECT DISTINCT country FROM singer WHERE age > 20;", "gold_result_hash": "9e779860218abdc6", "difficulty": "easy"}
{"id": "spider_dev_0010", "db_id": "concert_singer", "question": "Show all countries and the number of singers in each country.", "gold_sql": "SELECT country, COUNT(*) FROM singer GROUP BY country;", "gold_result_hash": "459cc34d2b2fae44", "difficulty": "medium"}
{"id": "spider_dev_0011", "db_id": "concert_singer", "question": "How many singers are from each country?", "gold_sql": "SELECT country, COUNT(*) FROM singer GROUP BY country;", "gold_result_hash": "459cc34d2b2fae44", "difficulty": "medium"}
{"id": "spider_dev_0012", "db_id": "concert_singer", "question": "List all song names by singers above the average age.", "gold_sql": "SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer);", "gold_result_hash": "0e4bb46cb92b4632", "difficulty": "hard"}
{"id": "spider_dev_0013", "db_id": "concert_singer", "question": "What are all the song names by singers who are older than average?", "gold_sql": "SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer);", "gold_result_hash": "0e4bb46cb92b4632", "difficulty": "hard"}
{"id": "spider_dev_0014", "db_id": "concert_singer", "question": "Show location and name for all stadiums with a capacity between 5000 and 10000.", "gold_sql": "SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0015", "db_id": "concert_singer", "question": "What are the locations and names of all stations with capacity between 5000 and 10000?", "gold_sql": "SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0017", "db_id": "concert_singer", "question": "What is the average and maximum capacities for all stadiums ?", "gold_sql": "SELECT AVG(capacity), MAX(capacity) FROM stadium;", "gold_result_hash": "8a459119304c0789", "difficulty": "medium"}
{"id": "spider_dev_0018", "db_id": "concert_singer", "question": "What is the name and capacity for the stadium with highest average attendance?", "gold_sql": "SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1;", "gold_result_hash": "9238e50cda8ba465", "difficulty": "medium"}
{"id": "spider_dev_0019", "db_id": "concert_singer", "question": "What is the name and capacity for the stadium with the highest average attendance?", "gold_sql": "SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1;", "gold_result_hash": "9238e50cda8ba465", "difficulty": "medium"}
{"id": "spider_dev_0020", "db_id": "concert_singer", "question": "How many concerts are there in year 2014 or 2015?", "gold_sql": "SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015;", "gold_result_hash": "7bd6032174e40a46", "difficulty": "medium"}
{"id": "spider_dev_0021", "db_id": "concert_singer", "question": "How many concerts occurred in 2014 or 2015?", "gold_sql": "SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015;", "gold_result_hash": "7bd6032174e40a46", "difficulty": "medium"}
{"id": "spider_dev_0022", "db_id": "concert_singer", "question": "Show the stadium name and the number of concerts in each stadium.", "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, T2.name;", "gold_result_hash": "0fcd99bd5581e721", "difficulty": "medium"}
{"id": "spider_dev_0023", "db_id": "concert_singer", "question": "For each stadium, how many concerts play there?", "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, T2.name;", "gold_result_hash": "0fcd99bd5581e721", "difficulty": "medium"}
{"id": "spider_dev_0024", "db_id": "concert_singer", "question": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "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, T2.name, T2.capacity ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "64a224e9d5fe71e8", "difficulty": "extra"}
{"id": "spider_dev_0025", "db_id": "concert_singer", "question": "What is the name and capacity of the stadium with the most concerts after 2013 ?", "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, t2.name, t2.capacity ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "64a224e9d5fe71e8", "difficulty": "extra"}
{"id": "spider_dev_0028", "db_id": "concert_singer", "question": "Show the stadium names without any concert.", "gold_sql": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert);", "gold_result_hash": "0c1320baa7851554", "difficulty": "hard"}
{"id": "spider_dev_0029", "db_id": "concert_singer", "question": "What are the names of the stadiums without any concerts?", "gold_sql": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert);", "gold_result_hash": "0c1320baa7851554", "difficulty": "hard"}
{"id": "spider_dev_0030", "db_id": "concert_singer", "question": "Show countries where a singer above age 40 and a singer below 30 are from.", "gold_sql": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30;", "gold_result_hash": "aa574af0d5594715", "difficulty": "hard"}
{"id": "spider_dev_0031", "db_id": "concert_singer", "question": "Show names for all stadiums except for stadiums having a concert in year 2014.", "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_result_hash": "c8cf0472ffa9b2c4", "difficulty": "hard"}
{"id": "spider_dev_0032", "db_id": "concert_singer", "question": "What are the names of all stadiums that did not have a concert in 2014?", "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_result_hash": "c8cf0472ffa9b2c4", "difficulty": "hard"}
{"id": "spider_dev_0033", "db_id": "concert_singer", "question": "Show the name and theme for all concerts and the number of singers in each concert.", "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, T2.concert_name, T2.theme;", "gold_result_hash": "1035bc78edb499ac", "difficulty": "medium"}
{"id": "spider_dev_0034", "db_id": "concert_singer", "question": "What are the names , themes , and number of singers for every concert ?", "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, t2.concert_name, t2.theme;", "gold_result_hash": "1035bc78edb499ac", "difficulty": "medium"}
{"id": "spider_dev_0035", "db_id": "concert_singer", "question": "List singer names and number of concerts for each 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, T2.name;", "gold_result_hash": "3652bc800d5e3051", "difficulty": "medium"}
{"id": "spider_dev_0036", "db_id": "concert_singer", "question": "What are the names of the singers and number of concerts for each person?", "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, T2.name;", "gold_result_hash": "3652bc800d5e3051", "difficulty": "medium"}
{"id": "spider_dev_0037", "db_id": "concert_singer", "question": "List all singer names in concerts in year 2014.", "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_result_hash": "d0734d5f917625fa", "difficulty": "hard"}
{"id": "spider_dev_0038", "db_id": "concert_singer", "question": "What are the names of the singers who performed in a concert in 2014?", "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_result_hash": "d0734d5f917625fa", "difficulty": "hard"}
{"id": "spider_dev_0039", "db_id": "concert_singer", "question": "what is the name and nation of the singer who have a song having 'Hey' in its name?", "gold_sql": "SELECT name, country FROM singer WHERE song_name ILIKE '%Hey%';", "gold_result_hash": "3b662fe68a6adfee", "difficulty": "medium"}
{"id": "spider_dev_0040", "db_id": "concert_singer", "question": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?", "gold_sql": "SELECT name, country FROM singer WHERE song_name ILIKE '%Hey%';", "gold_result_hash": "3b662fe68a6adfee", "difficulty": "medium"}
{"id": "spider_dev_0041", "db_id": "concert_singer", "question": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", "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_result_hash": "58784e185b1d373d", "difficulty": "extra"}
{"id": "spider_dev_0042", "db_id": "concert_singer", "question": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", "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_result_hash": "58784e185b1d373d", "difficulty": "extra"}
{"id": "spider_dev_0043", "db_id": "concert_singer", "question": "Find the number of concerts happened in the stadium with the highest capacity .", "gold_sql": "SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1);", "gold_result_hash": "577c6170c3073977", "difficulty": "hard"}
{"id": "spider_dev_0044", "db_id": "concert_singer", "question": "What are the number of concerts that occurred in the stadium with the largest capacity ?", "gold_sql": "SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1);", "gold_result_hash": "577c6170c3073977", "difficulty": "hard"}
{"id": "spider_dev_0045", "db_id": "pets_1", "question": "Find the number of pets whose weight is heavier than 10.", "gold_sql": "SELECT COUNT(*) FROM pets WHERE weight > 10;", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "easy"}
{"id": "spider_dev_0046", "db_id": "pets_1", "question": "How many pets have a greater weight than 10?", "gold_sql": "SELECT COUNT(*) FROM pets WHERE weight > 10;", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "easy"}
{"id": "spider_dev_0047", "db_id": "pets_1", "question": "Find the weight of the youngest dog.", "gold_sql": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1;", "gold_result_hash": "0fac0308027fec11", "difficulty": "medium"}
{"id": "spider_dev_0048", "db_id": "pets_1", "question": "How much does the youngest dog weigh?", "gold_sql": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1;", "gold_result_hash": "0fac0308027fec11", "difficulty": "medium"}
{"id": "spider_dev_0049", "db_id": "pets_1", "question": "Find the maximum weight for each type of pet. List the maximum weight and pet type.", "gold_sql": "SELECT MAX(weight), petType FROM pets GROUP BY petType;", "gold_result_hash": "156dcee74dc8824d", "difficulty": "medium"}
{"id": "spider_dev_0050", "db_id": "pets_1", "question": "List the maximum weight and type for each type of pet.", "gold_sql": "SELECT MAX(weight), petType FROM pets GROUP BY petType;", "gold_result_hash": "156dcee74dc8824d", "difficulty": "medium"}
{"id": "spider_dev_0051", "db_id": "pets_1", "question": "Find number of pets owned by students who are older than 20.", "gold_sql": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20;", "gold_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0052", "db_id": "pets_1", "question": "How many pets are owned by students that have an age greater than 20?", "gold_sql": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20;", "gold_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0053", "db_id": "pets_1", "question": "Find the number of dog pets that are raised by female students (with sex F).", "gold_sql": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog';", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "hard"}
{"id": "spider_dev_0054", "db_id": "pets_1", "question": "How many dog pets are raised by female students?", "gold_sql": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog';", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "hard"}
{"id": "spider_dev_0055", "db_id": "pets_1", "question": "Find the number of distinct type of pets.", "gold_sql": "SELECT COUNT(DISTINCT pettype) FROM pets;", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "easy"}
{"id": "spider_dev_0056", "db_id": "pets_1", "question": "How many different types of pet are there?", "gold_sql": "SELECT COUNT(DISTINCT pettype) FROM pets;", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "easy"}
{"id": "spider_dev_0057", "db_id": "pets_1", "question": "Find the first name of students who have cat or dog pet.", "gold_sql": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog';", "gold_result_hash": "55e51007f71595c8", "difficulty": "extra"}
{"id": "spider_dev_0058", "db_id": "pets_1", "question": "What are the first names of every student who has a cat or dog as a pet?", "gold_sql": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog';", "gold_result_hash": "55e51007f71595c8", "difficulty": "extra"}
{"id": "spider_dev_0059", "db_id": "pets_1", "question": "Find the first name of students who have both cat and dog pets .", "gold_sql": "SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'cat' INTERSECT SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'dog';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0060", "db_id": "pets_1", "question": "What are the students' first names who have both cats and dogs as pets?", "gold_sql": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0061", "db_id": "pets_1", "question": "Find the major and age of students who do not have a cat pet.", "gold_sql": "SELECT major, age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat');", "gold_result_hash": "610fe010fca09a52", "difficulty": "extra"}
{"id": "spider_dev_0062", "db_id": "pets_1", "question": "What major is every student who does not own a cat as a pet, and also how old are they?", "gold_sql": "SELECT major, age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat');", "gold_result_hash": "610fe010fca09a52", "difficulty": "extra"}
{"id": "spider_dev_0063", "db_id": "pets_1", "question": "Find the id of students who do not have a cat pet.", "gold_sql": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat';", "gold_result_hash": "2cb1842edaca1752", "difficulty": "hard"}
{"id": "spider_dev_0064", "db_id": "pets_1", "question": "What are the ids of the students who do not own cats as pets?", "gold_sql": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat';", "gold_result_hash": "2cb1842edaca1752", "difficulty": "hard"}
{"id": "spider_dev_0065", "db_id": "pets_1", "question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", "gold_sql": "SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat');", "gold_result_hash": "57575d286a47cf48", "difficulty": "extra"}
{"id": "spider_dev_0066", "db_id": "pets_1", "question": "What is the first name of every student who has a dog but does not have a cat?", "gold_sql": "SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat');", "gold_result_hash": "57575d286a47cf48", "difficulty": "extra"}
{"id": "spider_dev_0067", "db_id": "pets_1", "question": "Find the type and weight of the youngest pet.", "gold_sql": "SELECT pettype, weight FROM pets ORDER BY pet_age LIMIT 1;", "gold_result_hash": "0afff235a3557b3d", "difficulty": "medium"}
{"id": "spider_dev_0068", "db_id": "pets_1", "question": "What type of pet is the youngest animal, and how much does it weigh?", "gold_sql": "SELECT pettype, weight FROM pets ORDER BY pet_age LIMIT 1;", "gold_result_hash": "0afff235a3557b3d", "difficulty": "medium"}
{"id": "spider_dev_0069", "db_id": "pets_1", "question": "Find the id and weight of all pets whose age is older than 1.", "gold_sql": "SELECT petid, weight FROM pets WHERE pet_age > 1;", "gold_result_hash": "ea94b12c847a2455", "difficulty": "medium"}
{"id": "spider_dev_0070", "db_id": "pets_1", "question": "What is the id and weight of every pet who is older than 1?", "gold_sql": "SELECT petid, weight FROM pets WHERE pet_age > 1;", "gold_result_hash": "ea94b12c847a2455", "difficulty": "medium"}
{"id": "spider_dev_0071", "db_id": "pets_1", "question": "Find the average and maximum age for each type of pet.", "gold_sql": "SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype;", "gold_result_hash": "2716e6c7e94f6821", "difficulty": "medium"}
{"id": "spider_dev_0072", "db_id": "pets_1", "question": "What is the average and maximum age for each pet type?", "gold_sql": "SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype;", "gold_result_hash": "2716e6c7e94f6821", "difficulty": "medium"}
{"id": "spider_dev_0073", "db_id": "pets_1", "question": "Find the average weight for each pet type.", "gold_sql": "SELECT AVG(weight), pettype FROM pets GROUP BY pettype;", "gold_result_hash": "215c09aa04b2f9de", "difficulty": "medium"}
{"id": "spider_dev_0074", "db_id": "pets_1", "question": "What is the average weight for each type of pet?", "gold_sql": "SELECT AVG(weight), pettype FROM pets GROUP BY pettype;", "gold_result_hash": "215c09aa04b2f9de", "difficulty": "medium"}
{"id": "spider_dev_0075", "db_id": "pets_1", "question": "Find the first name and age of students who have a pet.", "gold_sql": "SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid;", "gold_result_hash": "eed6ed069a7abcc4", "difficulty": "medium"}
{"id": "spider_dev_0076", "db_id": "pets_1", "question": "What are the different first names and ages of the students who do have pets?", "gold_sql": "SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid;", "gold_result_hash": "eed6ed069a7abcc4", "difficulty": "medium"}
{"id": "spider_dev_0077", "db_id": "pets_1", "question": "Find the id of the pet owned by student whose last name is ‘Smith’.", "gold_sql": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith';", "gold_result_hash": "348fd913131397dc", "difficulty": "medium"}
{"id": "spider_dev_0078", "db_id": "pets_1", "question": "What is the id of the pet owned by the student whose last name is 'Smith'?", "gold_sql": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith';", "gold_result_hash": "348fd913131397dc", "difficulty": "medium"}
{"id": "spider_dev_0079", "db_id": "pets_1", "question": "Find the number of pets for each student who has any pet and student id.", "gold_sql": "SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid;", "gold_result_hash": "450a416ea96dc033", "difficulty": "medium"}
{"id": "spider_dev_0080", "db_id": "pets_1", "question": "For students who have pets , how many pets does each student have ? list their ids instead of names .", "gold_sql": "SELECT COUNT(*), t1.stuid FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid GROUP BY t1.stuid;", "gold_result_hash": "450a416ea96dc033", "difficulty": "medium"}
{"id": "spider_dev_0081", "db_id": "pets_1", "question": "Find the first name and gender of student who have more than one pet.", "gold_sql": "SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid, T1.fname, T1.sex HAVING COUNT(*) > 1;", "gold_result_hash": "8955a580f6f97c33", "difficulty": "medium"}
{"id": "spider_dev_0082", "db_id": "pets_1", "question": "What is the first name and gender of the all the students who have more than one pet?", "gold_sql": "SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid, T1.fname, T1.sex HAVING COUNT(*) > 1;", "gold_result_hash": "8955a580f6f97c33", "difficulty": "medium"}
{"id": "spider_dev_0083", "db_id": "pets_1", "question": "Find the last name of the student who has a cat that is age 3.", "gold_sql": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat';", "gold_result_hash": "d5e13f70ec8b2883", "difficulty": "hard"}
{"id": "spider_dev_0084", "db_id": "pets_1", "question": "What is the last name of the student who has a cat that is 3 years old?", "gold_sql": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat';", "gold_result_hash": "d5e13f70ec8b2883", "difficulty": "hard"}
{"id": "spider_dev_0085", "db_id": "pets_1", "question": "Find the average age of students who do not have any pet .", "gold_sql": "SELECT AVG(age) FROM student WHERE stuid NOT IN (SELECT stuid FROM has_pet);", "gold_result_hash": "a724ca65b75433bb", "difficulty": "extra"}
{"id": "spider_dev_0086", "db_id": "pets_1", "question": "What is the average age for all students who do not own any pets ?", "gold_sql": "SELECT AVG(age) FROM student WHERE stuid NOT IN (SELECT stuid FROM has_pet);", "gold_result_hash": "a724ca65b75433bb", "difficulty": "extra"}
{"id": "spider_dev_0087", "db_id": "car_1", "question": "How many continents are there?", "gold_sql": "SELECT COUNT(*) FROM CONTINENTS;", "gold_result_hash": "467016eb267f6bb0", "difficulty": "easy"}
{"id": "spider_dev_0088", "db_id": "car_1", "question": "What is the number of continents?", "gold_sql": "SELECT COUNT(*) FROM CONTINENTS;", "gold_result_hash": "467016eb267f6bb0", "difficulty": "easy"}
{"id": "spider_dev_0089", "db_id": "car_1", "question": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "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, T1.Continent;", "gold_result_hash": "0d744e8ebba80a49", "difficulty": "medium"}
{"id": "spider_dev_0090", "db_id": "car_1", "question": "For each continent, list its id, name, and how many countries it has?", "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, T1.Continent;", "gold_result_hash": "0d744e8ebba80a49", "difficulty": "medium"}
{"id": "spider_dev_0091", "db_id": "car_1", "question": "How many countries are listed?", "gold_sql": "SELECT COUNT(*) FROM COUNTRIES;", "gold_result_hash": "d0673151d4ee94d3", "difficulty": "easy"}
{"id": "spider_dev_0092", "db_id": "car_1", "question": "How many countries exist?", "gold_sql": "SELECT COUNT(*) FROM COUNTRIES;", "gold_result_hash": "d0673151d4ee94d3", "difficulty": "easy"}
{"id": "spider_dev_0093", "db_id": "car_1", "question": "How many models does each car maker produce? List maker full name, id and the number.", "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, T1.FullName;", "gold_result_hash": "fc159465c4988834", "difficulty": "medium"}
{"id": "spider_dev_0094", "db_id": "car_1", "question": "What is the full name of each car maker, along with its id and how many models it produces?", "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, T1.FullName;", "gold_result_hash": "fc159465c4988834", "difficulty": "medium"}
{"id": "spider_dev_0095", "db_id": "car_1", "question": "Which model of the car has the minimum horsepower?", "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_result_hash": "efb2a75858132c49", "difficulty": "hard"}
{"id": "spider_dev_0096", "db_id": "car_1", "question": "What is the model of the car with the smallest amount of horsepower?", "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_result_hash": "efb2a75858132c49", "difficulty": "hard"}
{"id": "spider_dev_0097", "db_id": "car_1", "question": "Find the model of the car whose weight is below the average weight.", "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_result_hash": "e5528143260aa7ae", "difficulty": "extra"}
{"id": "spider_dev_0098", "db_id": "car_1", "question": "What is the model for the car with a weight smaller than the average?", "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_result_hash": "e5528143260aa7ae", "difficulty": "extra"}
{"id": "spider_dev_0099", "db_id": "car_1", "question": "Find the name of the makers that produced some cars in the year of 1970?", "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_result_hash": "8490d0d74280d139", "difficulty": "extra"}
{"id": "spider_dev_0100", "db_id": "car_1", "question": "What is the name of the different car makers who produced a car in 1970?", "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_result_hash": "8490d0d74280d139", "difficulty": "extra"}
{"id": "spider_dev_0101", "db_id": "car_1", "question": "Find the make and production time of the cars that were produced in the earliest year?", "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_result_hash": "2abc26407e77f086", "difficulty": "extra"}
{"id": "spider_dev_0102", "db_id": "car_1", "question": "What is the maker of the carr produced in the earliest year and what year was it?", "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_result_hash": "2abc26407e77f086", "difficulty": "extra"}
{"id": "spider_dev_0103", "db_id": "car_1", "question": "Which distinct car models are the produced after 1980?", "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_result_hash": "2552cfb6046bdf61", "difficulty": "hard"}
{"id": "spider_dev_0104", "db_id": "car_1", "question": "What are the different models for the cards produced after 1980?", "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_result_hash": "2552cfb6046bdf61", "difficulty": "hard"}
{"id": "spider_dev_0105", "db_id": "car_1", "question": "How many car makers are there in each continents? List the continent name and the count.", "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_result_hash": "4c45f1f989289802", "difficulty": "hard"}
{"id": "spider_dev_0106", "db_id": "car_1", "question": "What is the name of each continent and how many car makers are there in each one?", "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_result_hash": "4c45f1f989289802", "difficulty": "hard"}
{"id": "spider_dev_0107", "db_id": "car_1", "question": "Which of the countries has the most car makers? List the country name.", "gold_sql": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country, T2.CountryName ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "ef27ab9eb1bb627d", "difficulty": "extra"}
{"id": "spider_dev_0108", "db_id": "car_1", "question": "What is the name of the country with the most car makers?", "gold_sql": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country, T2.CountryName ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "ef27ab9eb1bb627d", "difficulty": "extra"}
{"id": "spider_dev_0109", "db_id": "car_1", "question": "How many car models are produced by each maker ? Only list the count and the maker full name .", "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, t2.fullname;", "gold_result_hash": "cec50c9450864629", "difficulty": "medium"}
{"id": "spider_dev_0110", "db_id": "car_1", "question": "What is the number of car models that are produced by each maker and what is the id and full name of each maker?", "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, T2.FullName;", "gold_result_hash": "b913ce9e15f5a082", "difficulty": "medium"}
{"id": "spider_dev_0111", "db_id": "car_1", "question": "What is the accelerate of the car make amc hornet sportabout (sw)?", "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_result_hash": "d59fe2db4640530d", "difficulty": "medium"}
{"id": "spider_dev_0112", "db_id": "car_1", "question": "How much does the car accelerate that makes amc hornet sportabout (sw)?", "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_result_hash": "d59fe2db4640530d", "difficulty": "medium"}
{"id": "spider_dev_0113", "db_id": "car_1", "question": "How many car makers are there in france?", "gold_sql": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "medium"}
{"id": "spider_dev_0114", "db_id": "car_1", "question": "What is the number of makers of care in France?", "gold_sql": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "medium"}
{"id": "spider_dev_0115", "db_id": "car_1", "question": "How many car models are produced in the usa?", "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_result_hash": "86a9d211082f1975", "difficulty": "hard"}
{"id": "spider_dev_0116", "db_id": "car_1", "question": "What is the count of the car models produced in the United States?", "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_result_hash": "86a9d211082f1975", "difficulty": "hard"}
{"id": "spider_dev_0119", "db_id": "car_1", "question": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?", "gold_sql": "SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974;", "gold_result_hash": "237ce2d55fa1c114", "difficulty": "medium"}
{"id": "spider_dev_0120", "db_id": "car_1", "question": "What is the minimum weight of the car with 8 cylinders produced in 1974 ?", "gold_sql": "SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974;", "gold_result_hash": "237ce2d55fa1c114", "difficulty": "medium"}
{"id": "spider_dev_0121", "db_id": "car_1", "question": "What are all the makers and models?", "gold_sql": "SELECT Maker, Model FROM MODEL_LIST;", "gold_result_hash": "f0b008664167e72c", "difficulty": "medium"}
{"id": "spider_dev_0122", "db_id": "car_1", "question": "What are the makers and models?", "gold_sql": "SELECT Maker, Model FROM MODEL_LIST;", "gold_result_hash": "f0b008664167e72c", "difficulty": "medium"}
{"id": "spider_dev_0123", "db_id": "car_1", "question": "What are the countries having at least one car maker? List name and id.", "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, T1.CountryName HAVING COUNT(*) >= 1;", "gold_result_hash": "185e878b645a7d9d", "difficulty": "medium"}
{"id": "spider_dev_0124", "db_id": "car_1", "question": "What are the names and ids of all countries with at least one car maker?", "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, T1.CountryName HAVING COUNT(*) >= 1;", "gold_result_hash": "185e878b645a7d9d", "difficulty": "medium"}
{"id": "spider_dev_0127", "db_id": "car_1", "question": "What is the average weight of cars each year?", "gold_sql": "SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR;", "gold_result_hash": "bd7efc07bd831d47", "difficulty": "medium"}
{"id": "spider_dev_0128", "db_id": "car_1", "question": "What is the average weight and year for each year?", "gold_sql": "SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR;", "gold_result_hash": "bd7efc07bd831d47", "difficulty": "medium"}
{"id": "spider_dev_0129", "db_id": "car_1", "question": "Which countries in europe have at least 3 car manufacturers?", "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_result_hash": "f7b34773120edc40", "difficulty": "extra"}
{"id": "spider_dev_0130", "db_id": "car_1", "question": "What are the names of all European countries with at least 3 manufacturers?", "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_result_hash": "f7b34773120edc40", "difficulty": "extra"}
{"id": "spider_dev_0131", "db_id": "car_1", "question": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "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_result_hash": "fc31cbe9ee1e3a09", "difficulty": "extra"}
{"id": "spider_dev_0132", "db_id": "car_1", "question": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", "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_result_hash": "fc31cbe9ee1e3a09", "difficulty": "extra"}
{"id": "spider_dev_0133", "db_id": "car_1", "question": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", "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_result_hash": "4fe96a661df39d3d", "difficulty": "hard"}
{"id": "spider_dev_0134", "db_id": "car_1", "question": "What is the car model with the highest mpg ?", "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_result_hash": "4fe96a661df39d3d", "difficulty": "hard"}
{"id": "spider_dev_0137", "db_id": "car_1", "question": "What is the average edispl of the cars of model volvo?", "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_result_hash": "68f80c5d2514dd37", "difficulty": "medium"}
{"id": "spider_dev_0138", "db_id": "car_1", "question": "What is the average edispl for all volvos?", "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_result_hash": "68f80c5d2514dd37", "difficulty": "medium"}
{"id": "spider_dev_0139", "db_id": "car_1", "question": "What is the maximum accelerate for different number of cylinders?", "gold_sql": "SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders;", "gold_result_hash": "461c7e200ab261cc", "difficulty": "medium"}
{"id": "spider_dev_0140", "db_id": "car_1", "question": "What is the maximum accelerate for all the different cylinders?", "gold_sql": "SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders;", "gold_result_hash": "461c7e200ab261cc", "difficulty": "medium"}
{"id": "spider_dev_0141", "db_id": "car_1", "question": "Which model has the most version(make) of cars?", "gold_sql": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "412f768352613bfe", "difficulty": "hard"}
{"id": "spider_dev_0142", "db_id": "car_1", "question": "What model has the most different versions?", "gold_sql": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "412f768352613bfe", "difficulty": "hard"}
{"id": "spider_dev_0143", "db_id": "car_1", "question": "How many cars have more than 4 cylinders?", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4;", "gold_result_hash": "fdded4399a906009", "difficulty": "easy"}
{"id": "spider_dev_0144", "db_id": "car_1", "question": "What is the number of cars with more than 4 cylinders?", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4;", "gold_result_hash": "fdded4399a906009", "difficulty": "easy"}
{"id": "spider_dev_0145", "db_id": "car_1", "question": "how many cars were produced in 1980?", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980;", "gold_result_hash": "6c31f8a215173a90", "difficulty": "easy"}
{"id": "spider_dev_0146", "db_id": "car_1", "question": "In 1980, how many cars were made?", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980;", "gold_result_hash": "6c31f8a215173a90", "difficulty": "easy"}
{"id": "spider_dev_0147", "db_id": "car_1", "question": "How many car models were produced by the maker with full name American Motor Company?", "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_result_hash": "aee0423e393e4f51", "difficulty": "medium"}
{"id": "spider_dev_0148", "db_id": "car_1", "question": "What is the number of car models created by the car maker American Motor Company?", "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_result_hash": "aee0423e393e4f51", "difficulty": "medium"}
{"id": "spider_dev_0149", "db_id": "car_1", "question": "Which makers designed more than 3 car models? List full name and the id.", "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, T1.FullName HAVING COUNT(*) > 3;", "gold_result_hash": "480430449e567c5b", "difficulty": "medium"}
{"id": "spider_dev_0150", "db_id": "car_1", "question": "What are the names and ids of all makers with more than 3 models?", "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, T1.FullName HAVING COUNT(*) > 3;", "gold_result_hash": "480430449e567c5b", "difficulty": "medium"}
{"id": "spider_dev_0151", "db_id": "car_1", "question": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", "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_result_hash": "e6e0c5df6d603371", "difficulty": "extra"}
{"id": "spider_dev_0152", "db_id": "car_1", "question": "What are the different models created by either the car maker General Motors or weighed more than 3500?", "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_result_hash": "e6e0c5df6d603371", "difficulty": "extra"}
{"id": "spider_dev_0153", "db_id": "car_1", "question": "In which years cars were produced weighing no less than 3000 and no more than 4000 ?", "gold_sql": "SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000;", "gold_result_hash": "b5c3d83ccf553717", "difficulty": "easy"}
{"id": "spider_dev_0154", "db_id": "car_1", "question": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?", "gold_sql": "SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000;", "gold_result_hash": "b5c3d83ccf553717", "difficulty": "easy"}
{"id": "spider_dev_0155", "db_id": "car_1", "question": "What is the horsepower of the car with the largest accelerate?", "gold_sql": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", "gold_result_hash": "9fdfba71740556da", "difficulty": "medium"}
{"id": "spider_dev_0156", "db_id": "car_1", "question": "What is the horsepower of the car with the greatest accelerate?", "gold_sql": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", "gold_result_hash": "9fdfba71740556da", "difficulty": "medium"}
{"id": "spider_dev_0157", "db_id": "car_1", "question": "For model volvo, how many cylinders does the car with the least accelerate have?", "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_result_hash": "7bd6032174e40a46", "difficulty": "extra"}
{"id": "spider_dev_0158", "db_id": "car_1", "question": "For a volvo model, how many cylinders does the version with least accelerate have?", "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_result_hash": "7bd6032174e40a46", "difficulty": "extra"}
{"id": "spider_dev_0159", "db_id": "car_1", "question": "How many cars have a larger accelerate than the car with the largest horsepower?", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1);", "gold_result_hash": "1031b4da87955e7f", "difficulty": "hard"}
{"id": "spider_dev_0160", "db_id": "car_1", "question": "What is the number of cars with a greater accelerate than the one with the most horsepower?", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1);", "gold_result_hash": "1031b4da87955e7f", "difficulty": "hard"}
{"id": "spider_dev_0161", "db_id": "car_1", "question": "How many countries has more than 2 car makers ?", "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_result_hash": "1f091e51507b93e3", "difficulty": "medium"}
{"id": "spider_dev_0162", "db_id": "car_1", "question": "What is the number of countries with more than 2 car makers ?", "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_result_hash": "1f091e51507b93e3", "difficulty": "medium"}
{"id": "spider_dev_0163", "db_id": "car_1", "question": "How many cars has over 6 cylinders?", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", "gold_result_hash": "740d605f72e9b722", "difficulty": "easy"}
{"id": "spider_dev_0164", "db_id": "car_1", "question": "What is the number of carsw ith over 6 cylinders?", "gold_sql": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", "gold_result_hash": "740d605f72e9b722", "difficulty": "easy"}
{"id": "spider_dev_0165", "db_id": "car_1", "question": "For the cars with 4 cylinders, which model has the largest horsepower?", "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_result_hash": "412f768352613bfe", "difficulty": "extra"}
{"id": "spider_dev_0166", "db_id": "car_1", "question": "For all of the 4 cylinder cars, which model has the most horsepower?", "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_result_hash": "412f768352613bfe", "difficulty": "extra"}
{"id": "spider_dev_0167", "db_id": "car_1", "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "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_result_hash": "bc251a577283a45e", "difficulty": "extra"}
{"id": "spider_dev_0168", "db_id": "car_1", "question": "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 ?", "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_result_hash": "bc251a577283a45e", "difficulty": "extra"}
{"id": "spider_dev_0169", "db_id": "car_1", "question": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?", "gold_sql": "SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980;", "gold_result_hash": "6f0dece1d0ca1dfe", "difficulty": "medium"}
{"id": "spider_dev_0170", "db_id": "car_1", "question": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?", "gold_sql": "SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980;", "gold_result_hash": "6f0dece1d0ca1dfe", "difficulty": "medium"}
{"id": "spider_dev_0171", "db_id": "car_1", "question": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?", "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_result_hash": "0c1bccab8279914f", "difficulty": "extra"}
{"id": "spider_dev_0172", "db_id": "car_1", "question": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?", "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_result_hash": "0c1bccab8279914f", "difficulty": "extra"}
{"id": "spider_dev_0173", "db_id": "car_1", "question": "What are the name of the countries where there is not a single car maker?", "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_result_hash": "ed75c00659336cb7", "difficulty": "hard"}
{"id": "spider_dev_0174", "db_id": "car_1", "question": "What are the names of the countries with no car makers?", "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_result_hash": "ed75c00659336cb7", "difficulty": "hard"}
{"id": "spider_dev_0175", "db_id": "car_1", "question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "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, t1.maker 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, t1.maker HAVING COUNT(*) > 3;", "gold_result_hash": "170e1029c1eb86c0", "difficulty": "extra"}
{"id": "spider_dev_0176", "db_id": "car_1", "question": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", "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, T1.Maker 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, T1.Maker HAVING COUNT(*) > 3;", "gold_result_hash": "170e1029c1eb86c0", "difficulty": "extra"}
{"id": "spider_dev_0177", "db_id": "car_1", "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "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, T1.CountryName 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_result_hash": "62a0ed31df85510e", "difficulty": "extra"}
{"id": "spider_dev_0178", "db_id": "car_1", "question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "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, t1.countryname 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_result_hash": "62a0ed31df85510e", "difficulty": "extra"}
{"id": "spider_dev_0179", "db_id": "flight_2", "question": "Which country does Airline \"JetBlue Airways\" belong to?", "gold_sql": "SELECT Country FROM AIRLINES WHERE Airline = 'JetBlue Airways';", "gold_result_hash": "b550bc95f1cdff9f", "difficulty": "easy"}
{"id": "spider_dev_0180", "db_id": "flight_2", "question": "What country is Jetblue Airways affiliated with?", "gold_sql": "SELECT Country FROM AIRLINES WHERE Airline = 'JetBlue Airways';", "gold_result_hash": "b550bc95f1cdff9f", "difficulty": "easy"}
{"id": "spider_dev_0181", "db_id": "flight_2", "question": "What is the abbreviation of Airline \"JetBlue Airways\"?", "gold_sql": "SELECT Abbreviation FROM AIRLINES WHERE Airline = 'JetBlue Airways';", "gold_result_hash": "9b2f8538512c6a8f", "difficulty": "easy"}
{"id": "spider_dev_0182", "db_id": "flight_2", "question": "Which abbreviation corresponds to Jetblue Airways?", "gold_sql": "SELECT Abbreviation FROM AIRLINES WHERE Airline = 'JetBlue Airways';", "gold_result_hash": "9b2f8538512c6a8f", "difficulty": "easy"}
{"id": "spider_dev_0183", "db_id": "flight_2", "question": "List all airline names and their abbreviations in \"USA\".", "gold_sql": "SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = 'USA';", "gold_result_hash": "d48d5ceda1479207", "difficulty": "medium"}
{"id": "spider_dev_0184", "db_id": "flight_2", "question": "What are the airline names and abbreviations for airlines in the USA?", "gold_sql": "SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = 'USA';", "gold_result_hash": "d48d5ceda1479207", "difficulty": "medium"}
{"id": "spider_dev_0185", "db_id": "flight_2", "question": "List the airport code and name in the city of Anthony.", "gold_sql": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Anthony';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0186", "db_id": "flight_2", "question": "Give the airport code and airport name corresonding to the city Anthony.", "gold_sql": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Anthony';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0187", "db_id": "flight_2", "question": "How many airlines do we have?", "gold_sql": "SELECT COUNT(*) FROM AIRLINES;", "gold_result_hash": "20579d3863cad5f7", "difficulty": "easy"}
{"id": "spider_dev_0188", "db_id": "flight_2", "question": "What is the total number of airlines?", "gold_sql": "SELECT COUNT(*) FROM AIRLINES;", "gold_result_hash": "20579d3863cad5f7", "difficulty": "easy"}
{"id": "spider_dev_0189", "db_id": "flight_2", "question": "How many airports do we have?", "gold_sql": "SELECT COUNT(*) FROM AIRPORTS;", "gold_result_hash": "67c6faa8bafffe9a", "difficulty": "easy"}
{"id": "spider_dev_0190", "db_id": "flight_2", "question": "Return the number of airports.", "gold_sql": "SELECT COUNT(*) FROM AIRPORTS;", "gold_result_hash": "67c6faa8bafffe9a", "difficulty": "easy"}
{"id": "spider_dev_0191", "db_id": "flight_2", "question": "How many flights do we have?", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS;", "gold_result_hash": "e21ff9195b6e4054", "difficulty": "easy"}
{"id": "spider_dev_0192", "db_id": "flight_2", "question": "Return the number of flights.", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS;", "gold_result_hash": "e21ff9195b6e4054", "difficulty": "easy"}
{"id": "spider_dev_0193", "db_id": "flight_2", "question": "Which airline has abbreviation 'UAL'?", "gold_sql": "SELECT Airline FROM AIRLINES WHERE Abbreviation = 'UAL';", "gold_result_hash": "7e739cf9d4da1e75", "difficulty": "easy"}
{"id": "spider_dev_0194", "db_id": "flight_2", "question": "Give the airline with abbreviation 'UAL'.", "gold_sql": "SELECT Airline FROM AIRLINES WHERE Abbreviation = 'UAL';", "gold_result_hash": "7e739cf9d4da1e75", "difficulty": "easy"}
{"id": "spider_dev_0195", "db_id": "flight_2", "question": "How many airlines are from USA?", "gold_sql": "SELECT COUNT(*) FROM AIRLINES WHERE Country = 'USA';", "gold_result_hash": "20579d3863cad5f7", "difficulty": "easy"}
{"id": "spider_dev_0196", "db_id": "flight_2", "question": "Return the number of airlines in the USA.", "gold_sql": "SELECT COUNT(*) FROM AIRLINES WHERE Country = 'USA';", "gold_result_hash": "20579d3863cad5f7", "difficulty": "easy"}
{"id": "spider_dev_0197", "db_id": "flight_2", "question": "Which city and country is the Alton airport at?", "gold_sql": "SELECT City, Country FROM AIRPORTS WHERE AirportName = 'Alton';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0198", "db_id": "flight_2", "question": "Give the city and country for the Alton airport.", "gold_sql": "SELECT City, Country FROM AIRPORTS WHERE AirportName = 'Alton';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0199", "db_id": "flight_2", "question": "What is the airport name for airport 'AKO'?", "gold_sql": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = 'AKO';", "gold_result_hash": "ac717be71edf4c85", "difficulty": "easy"}
{"id": "spider_dev_0200", "db_id": "flight_2", "question": "Return the name of the airport with code 'AKO'.", "gold_sql": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = 'AKO';", "gold_result_hash": "ac717be71edf4c85", "difficulty": "easy"}
{"id": "spider_dev_0201", "db_id": "flight_2", "question": "What are airport names at City 'Aberdeen'?", "gold_sql": "SELECT AirportName FROM AIRPORTS WHERE City = 'Aberdeen';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "easy"}
{"id": "spider_dev_0202", "db_id": "flight_2", "question": "What are the names of airports in Aberdeen?", "gold_sql": "SELECT AirportName FROM AIRPORTS WHERE City = 'Aberdeen';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "easy"}
{"id": "spider_dev_0203", "db_id": "flight_2", "question": "How many flights depart from 'APG'?", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = 'APG';", "gold_result_hash": "577c6170c3073977", "difficulty": "easy"}
{"id": "spider_dev_0204", "db_id": "flight_2", "question": "Count the number of flights departing from 'APG'.", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = 'APG';", "gold_result_hash": "577c6170c3073977", "difficulty": "easy"}
{"id": "spider_dev_0205", "db_id": "flight_2", "question": "How many flights have destination ATO?", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = 'ATO';", "gold_result_hash": "577c6170c3073977", "difficulty": "easy"}
{"id": "spider_dev_0206", "db_id": "flight_2", "question": "Count the number of flights into ATO.", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = 'ATO';", "gold_result_hash": "577c6170c3073977", "difficulty": "easy"}
{"id": "spider_dev_0207", "db_id": "flight_2", "question": "How many flights depart from City Aberdeen?", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen';", "gold_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0208", "db_id": "flight_2", "question": "Return the number of flights departing from Aberdeen.", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen';", "gold_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0209", "db_id": "flight_2", "question": "How many flights arriving in Aberdeen city?", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen';", "gold_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0210", "db_id": "flight_2", "question": "Return the number of flights arriving in Aberdeen.", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen';", "gold_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0211", "db_id": "flight_2", "question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", "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_result_hash": "577c6170c3073977", "difficulty": "hard"}
{"id": "spider_dev_0212", "db_id": "flight_2", "question": "How many flights fly from Aberdeen to Ashley?", "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_result_hash": "577c6170c3073977", "difficulty": "hard"}
{"id": "spider_dev_0213", "db_id": "flight_2", "question": "How many flights does airline 'JetBlue Airways' have?", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = 'JetBlue Airways';", "gold_result_hash": "67c6faa8bafffe9a", "difficulty": "medium"}
{"id": "spider_dev_0214", "db_id": "flight_2", "question": "Give the number of Jetblue Airways flights.", "gold_sql": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = 'JetBlue Airways';", "gold_result_hash": "67c6faa8bafffe9a", "difficulty": "medium"}
{"id": "spider_dev_0215", "db_id": "flight_2", "question": "How many 'United Airlines' flights go to Airport 'ASY'?", "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_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0216", "db_id": "flight_2", "question": "Count the number of United Airlines flights arriving in ASY Airport.", "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_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0217", "db_id": "flight_2", "question": "How many 'United Airlines' flights depart from Airport 'AHD'?", "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_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0218", "db_id": "flight_2", "question": "Return the number of United Airlines flights leaving from AHD Airport.", "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_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0219", "db_id": "flight_2", "question": "How many United Airlines flights go to City 'Aberdeen'?", "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_result_hash": "577c6170c3073977", "difficulty": "hard"}
{"id": "spider_dev_0220", "db_id": "flight_2", "question": "Count the number of United Airlines flights that arrive in Aberdeen.", "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_result_hash": "577c6170c3073977", "difficulty": "hard"}
{"id": "spider_dev_0221", "db_id": "flight_2", "question": "Which city has most number of arriving flights?", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0222", "db_id": "flight_2", "question": "Which city has the most frequent destination airport?", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0223", "db_id": "flight_2", "question": "Which city has most number of departing flights?", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0224", "db_id": "flight_2", "question": "Which city is the most frequent source airport?", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0225", "db_id": "flight_2", "question": "What is the code of airport that has the highest number of flights?", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0226", "db_id": "flight_2", "question": "What is the airport code of the airport with the most flights?", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0227", "db_id": "flight_2", "question": "What is the code of airport that has fewest number of flights?", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0228", "db_id": "flight_2", "question": "Give the code of the airport with the least flights.", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0233", "db_id": "flight_2", "question": "What are airlines that have some flight departing from airport 'AHD'?", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'AHD';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0234", "db_id": "flight_2", "question": "Which airlines have a flight with source airport AHD?", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'AHD';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0235", "db_id": "flight_2", "question": "What are airlines that have flights arriving at airport 'AHD'?", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = 'AHD';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0236", "db_id": "flight_2", "question": "Which airlines have a flight with destination airport AHD?", "gold_sql": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = 'AHD';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0237", "db_id": "flight_2", "question": "Find all airlines that have flights from both airports 'APG' and 'CVO'.", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0238", "db_id": "flight_2", "question": "Which airlines have departing flights from both APG and CVO airports?", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0239", "db_id": "flight_2", "question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0240", "db_id": "flight_2", "question": "Which airlines have departures from CVO but not from APG airports?", "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_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0241", "db_id": "flight_2", "question": "Find all airlines that have at least 10 flights.", "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_result_hash": "7dcb4d62c4caeded", "difficulty": "medium"}
{"id": "spider_dev_0242", "db_id": "flight_2", "question": "Which airlines have at least 10 flights?", "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_result_hash": "7dcb4d62c4caeded", "difficulty": "medium"}
{"id": "spider_dev_0243", "db_id": "flight_2", "question": "Find all airlines that have fewer than 200 flights.", "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_result_hash": "7dcb4d62c4caeded", "difficulty": "medium"}
{"id": "spider_dev_0244", "db_id": "flight_2", "question": "Which airlines have less than 200 flights?", "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_result_hash": "7dcb4d62c4caeded", "difficulty": "medium"}
{"id": "spider_dev_0245", "db_id": "flight_2", "question": "What are flight numbers of Airline \"United Airlines\"?", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = 'United Airlines';", "gold_result_hash": "6626226f7dda6a9f", "difficulty": "medium"}
{"id": "spider_dev_0246", "db_id": "flight_2", "question": "Which flight numbers correspond to United Airlines flights?", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = 'United Airlines';", "gold_result_hash": "6626226f7dda6a9f", "difficulty": "medium"}
{"id": "spider_dev_0247", "db_id": "flight_2", "question": "What are flight numbers of flights departing from Airport \"APG\"?", "gold_sql": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = 'APG';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "easy"}
{"id": "spider_dev_0248", "db_id": "flight_2", "question": "Give the flight numbers of flights leaving from APG.", "gold_sql": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = 'APG';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "easy"}
{"id": "spider_dev_0249", "db_id": "flight_2", "question": "What are flight numbers of flights arriving at Airport \"APG\"?", "gold_sql": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = 'APG';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "easy"}
{"id": "spider_dev_0250", "db_id": "flight_2", "question": "Give the flight numbers of flights landing at APG.", "gold_sql": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = 'APG';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "easy"}
{"id": "spider_dev_0251", "db_id": "flight_2", "question": "What are flight numbers of flights departing from City \"Aberdeen \"?", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0252", "db_id": "flight_2", "question": "Give the flight numbers of flights leaving from Aberdeen.", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0253", "db_id": "flight_2", "question": "What are flight numbers of flights arriving at City \"Aberdeen\"?", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0254", "db_id": "flight_2", "question": "Give the flight numbers of flights arriving in Aberdeen.", "gold_sql": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0255", "db_id": "flight_2", "question": "Find the number of flights landing in the city of Aberdeen or Abilene.", "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_result_hash": "577c6170c3073977", "difficulty": "hard"}
{"id": "spider_dev_0256", "db_id": "flight_2", "question": "How many flights land in Aberdeen or Abilene?", "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_result_hash": "577c6170c3073977", "difficulty": "hard"}
{"id": "spider_dev_0257", "db_id": "flight_2", "question": "Find the name of airports which do not have any flight in and out.", "gold_sql": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights);", "gold_result_hash": "d34a106b8d9c68c1", "difficulty": "hard"}
{"id": "spider_dev_0258", "db_id": "flight_2", "question": "Which airports do not have departing or arriving flights?", "gold_sql": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights);", "gold_result_hash": "d34a106b8d9c68c1", "difficulty": "hard"}
{"id": "spider_dev_0259", "db_id": "employee_hire_evaluation", "question": "How many employees are there?", "gold_sql": "SELECT COUNT(*) FROM employee;", "gold_result_hash": "be5384e286c3c135", "difficulty": "easy"}
{"id": "spider_dev_0260", "db_id": "employee_hire_evaluation", "question": "Count the number of employees", "gold_sql": "SELECT COUNT(*) FROM employee;", "gold_result_hash": "be5384e286c3c135", "difficulty": "easy"}
{"id": "spider_dev_0261", "db_id": "employee_hire_evaluation", "question": "Sort employee names by their age in ascending order.", "gold_sql": "SELECT name FROM employee ORDER BY age;", "gold_result_hash": "65fc28c60c58f680", "difficulty": "easy"}
{"id": "spider_dev_0262", "db_id": "employee_hire_evaluation", "question": "List the names of employees and sort in ascending order of age.", "gold_sql": "SELECT name FROM employee ORDER BY age;", "gold_result_hash": "65fc28c60c58f680", "difficulty": "easy"}
{"id": "spider_dev_0263", "db_id": "employee_hire_evaluation", "question": "What is the number of employees from each city?", "gold_sql": "SELECT COUNT(*), city FROM employee GROUP BY city;", "gold_result_hash": "8f4bcdea4d906e7d", "difficulty": "medium"}
{"id": "spider_dev_0264", "db_id": "employee_hire_evaluation", "question": "Count the number of employees for each city.", "gold_sql": "SELECT COUNT(*), city FROM employee GROUP BY city;", "gold_result_hash": "8f4bcdea4d906e7d", "difficulty": "medium"}
{"id": "spider_dev_0265", "db_id": "employee_hire_evaluation", "question": "Which cities do more than one employee under age 30 come from?", "gold_sql": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING COUNT(*) > 1;", "gold_result_hash": "086e8115006fae6b", "difficulty": "medium"}
{"id": "spider_dev_0266", "db_id": "employee_hire_evaluation", "question": "Find the cities that have more than one employee under age 30.", "gold_sql": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING COUNT(*) > 1;", "gold_result_hash": "086e8115006fae6b", "difficulty": "medium"}
{"id": "spider_dev_0267", "db_id": "employee_hire_evaluation", "question": "Find the number of shops in each location.", "gold_sql": "SELECT COUNT(*), LOCATION FROM shop GROUP BY LOCATION;", "gold_result_hash": "85deef0924ea7101", "difficulty": "medium"}
{"id": "spider_dev_0268", "db_id": "employee_hire_evaluation", "question": "How many shops are there in each location?", "gold_sql": "SELECT COUNT(*), LOCATION FROM shop GROUP BY LOCATION;", "gold_result_hash": "85deef0924ea7101", "difficulty": "medium"}
{"id": "spider_dev_0269", "db_id": "employee_hire_evaluation", "question": "Find the manager name and district of the shop whose number of products is the largest.", "gold_sql": "SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1;", "gold_result_hash": "05c51b11ce36976d", "difficulty": "medium"}
{"id": "spider_dev_0270", "db_id": "employee_hire_evaluation", "question": "What are the manager name and district of the shop that sells the largest number of products?", "gold_sql": "SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1;", "gold_result_hash": "05c51b11ce36976d", "difficulty": "medium"}
{"id": "spider_dev_0271", "db_id": "employee_hire_evaluation", "question": "find the minimum and maximum number of products of all stores.", "gold_sql": "SELECT MIN(Number_products), MAX(Number_products) FROM shop;", "gold_result_hash": "2331097b9a396391", "difficulty": "medium"}
{"id": "spider_dev_0272", "db_id": "employee_hire_evaluation", "question": "What are the minimum and maximum number of products across all the shops?", "gold_sql": "SELECT MIN(Number_products), MAX(Number_products) FROM shop;", "gold_result_hash": "2331097b9a396391", "difficulty": "medium"}
{"id": "spider_dev_0273", "db_id": "employee_hire_evaluation", "question": "Return the name, location and district of all shops in descending order of number of products.", "gold_sql": "SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC;", "gold_result_hash": "8026ea5bb50b8ed6", "difficulty": "medium"}
{"id": "spider_dev_0274", "db_id": "employee_hire_evaluation", "question": "Sort all the shops by number products in descending order, and return the name, location and district of each shop.", "gold_sql": "SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC;", "gold_result_hash": "8026ea5bb50b8ed6", "difficulty": "medium"}
{"id": "spider_dev_0275", "db_id": "employee_hire_evaluation", "question": "Find the names of stores whose number products is more than the average number of products.", "gold_sql": "SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop);", "gold_result_hash": "2c76ffddb7d467a3", "difficulty": "hard"}
{"id": "spider_dev_0276", "db_id": "employee_hire_evaluation", "question": "Which shops' number products is above the average? Give me the shop names.", "gold_sql": "SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop);", "gold_result_hash": "2c76ffddb7d467a3", "difficulty": "hard"}
{"id": "spider_dev_0277", "db_id": "employee_hire_evaluation", "question": "find the name of employee who was awarded the most times in the 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, t1.name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "cfbb4291ad9ab780", "difficulty": "extra"}
{"id": "spider_dev_0278", "db_id": "employee_hire_evaluation", "question": "Which employee received the most awards in evaluations? Give me the employee name.", "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, t1.name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "cfbb4291ad9ab780", "difficulty": "extra"}
{"id": "spider_dev_0279", "db_id": "employee_hire_evaluation", "question": "Find the name of the employee who got the highest one time bonus.", "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_result_hash": "94daa352bd5cc9b1", "difficulty": "hard"}
{"id": "spider_dev_0280", "db_id": "employee_hire_evaluation", "question": "Which employee received the biggest bonus? Give me the employee name.", "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_result_hash": "94daa352bd5cc9b1", "difficulty": "hard"}
{"id": "spider_dev_0281", "db_id": "employee_hire_evaluation", "question": "Find the names of employees who never won any award in the evaluation.", "gold_sql": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation);", "gold_result_hash": "20bd00b3430d1bd6", "difficulty": "hard"}
{"id": "spider_dev_0282", "db_id": "employee_hire_evaluation", "question": "What are the names of the employees who never received any evaluation?", "gold_sql": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation);", "gold_result_hash": "20bd00b3430d1bd6", "difficulty": "hard"}
{"id": "spider_dev_0283", "db_id": "employee_hire_evaluation", "question": "What is the name of the shop that is hiring the largest number of employees?", "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, t2.name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "e7e250b81eba594b", "difficulty": "extra"}
{"id": "spider_dev_0284", "db_id": "employee_hire_evaluation", "question": "Which shop has the most employees? Give me the shop name.", "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, t2.name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "e7e250b81eba594b", "difficulty": "extra"}
{"id": "spider_dev_0285", "db_id": "employee_hire_evaluation", "question": "Find the name of the shops that do not hire any employee.", "gold_sql": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring);", "gold_result_hash": "1ac39c7614e4861b", "difficulty": "hard"}
{"id": "spider_dev_0286", "db_id": "employee_hire_evaluation", "question": "Which shops run with no employees? Find the shop names", "gold_sql": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring);", "gold_result_hash": "1ac39c7614e4861b", "difficulty": "hard"}
{"id": "spider_dev_0287", "db_id": "employee_hire_evaluation", "question": "Find the number of employees hired in each shop; show the shop name as well.", "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_result_hash": "7d03d62de211633d", "difficulty": "medium"}
{"id": "spider_dev_0288", "db_id": "employee_hire_evaluation", "question": "For each shop, return the number of employees working there and the name of the shop.", "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_result_hash": "7d03d62de211633d", "difficulty": "medium"}
{"id": "spider_dev_0289", "db_id": "employee_hire_evaluation", "question": "What is total bonus given in all evaluations?", "gold_sql": "SELECT SUM(bonus) FROM evaluation;", "gold_result_hash": "bfe4b532d0d818df", "difficulty": "easy"}
{"id": "spider_dev_0290", "db_id": "employee_hire_evaluation", "question": "Find the total amount of bonus given in all the evaluations.", "gold_sql": "SELECT SUM(bonus) FROM evaluation;", "gold_result_hash": "bfe4b532d0d818df", "difficulty": "easy"}
{"id": "spider_dev_0291", "db_id": "employee_hire_evaluation", "question": "Give me all the information about hiring.", "gold_sql": "SELECT * FROM hiring;", "gold_result_hash": "158763340a4e8e5b", "difficulty": "easy"}
{"id": "spider_dev_0292", "db_id": "employee_hire_evaluation", "question": "What is all the information about hiring?", "gold_sql": "SELECT * FROM hiring;", "gold_result_hash": "158763340a4e8e5b", "difficulty": "easy"}
{"id": "spider_dev_0293", "db_id": "employee_hire_evaluation", "question": "Which district has both stores with less than 3000 products and stores with more than 10000 products?", "gold_sql": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "hard"}
{"id": "spider_dev_0294", "db_id": "employee_hire_evaluation", "question": "Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.", "gold_sql": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "hard"}
{"id": "spider_dev_0295", "db_id": "employee_hire_evaluation", "question": "How many different store locations are there?", "gold_sql": "SELECT COUNT(DISTINCT LOCATION) FROM shop;", "gold_result_hash": "2aabc6d2c38cc38b", "difficulty": "easy"}
{"id": "spider_dev_0296", "db_id": "employee_hire_evaluation", "question": "Count the number of distinct store locations.", "gold_sql": "SELECT COUNT(DISTINCT LOCATION) FROM shop;", "gold_result_hash": "2aabc6d2c38cc38b", "difficulty": "easy"}
{"id": "spider_dev_0297", "db_id": "cre_Doc_Template_Mgt", "question": "How many documents do we have?", "gold_sql": "SELECT COUNT(*) FROM Documents;", "gold_result_hash": "d0673151d4ee94d3", "difficulty": "easy"}
{"id": "spider_dev_0298", "db_id": "cre_Doc_Template_Mgt", "question": "Count the number of documents.", "gold_sql": "SELECT COUNT(*) FROM Documents;", "gold_result_hash": "d0673151d4ee94d3", "difficulty": "easy"}
{"id": "spider_dev_0299", "db_id": "cre_Doc_Template_Mgt", "question": "List document IDs, document names, and document descriptions for all documents.", "gold_sql": "SELECT document_id, document_name, document_description FROM Documents;", "gold_result_hash": "f239eb1eb98ae141", "difficulty": "medium"}
{"id": "spider_dev_0300", "db_id": "cre_Doc_Template_Mgt", "question": "What are the ids, names, and descriptions for all documents?", "gold_sql": "SELECT document_id, document_name, document_description FROM Documents;", "gold_result_hash": "f239eb1eb98ae141", "difficulty": "medium"}
{"id": "spider_dev_0301", "db_id": "cre_Doc_Template_Mgt", "question": "What is the document name and template id for document with description with the letter 'w' in it?", "gold_sql": "SELECT document_name, template_id FROM Documents WHERE Document_Description ILIKE '%w%';", "gold_result_hash": "41dd45a8eea18056", "difficulty": "medium"}
{"id": "spider_dev_0302", "db_id": "cre_Doc_Template_Mgt", "question": "Return the names and template ids for documents that contain the letter w in their description.", "gold_sql": "SELECT document_name, template_id FROM Documents WHERE Document_Description ILIKE '%w%';", "gold_result_hash": "41dd45a8eea18056", "difficulty": "medium"}
{"id": "spider_dev_0303", "db_id": "cre_Doc_Template_Mgt", "question": "What is the document id, template id and description for document named \"Robbin CV\"?", "gold_sql": "SELECT document_id, template_id, Document_Description FROM Documents WHERE document_name = 'Robbin CV';", "gold_result_hash": "a0ac53c8e3f71a80", "difficulty": "medium"}
{"id": "spider_dev_0304", "db_id": "cre_Doc_Template_Mgt", "question": "Return the document id, template id, and description for the document with the name Robbin CV.", "gold_sql": "SELECT document_id, template_id, Document_Description FROM Documents WHERE document_name = 'Robbin CV';", "gold_result_hash": "a0ac53c8e3f71a80", "difficulty": "medium"}
{"id": "spider_dev_0305", "db_id": "cre_Doc_Template_Mgt", "question": "How many different templates do all document use?", "gold_sql": "SELECT COUNT(DISTINCT template_id) FROM Documents;", "gold_result_hash": "20579d3863cad5f7", "difficulty": "easy"}
{"id": "spider_dev_0306", "db_id": "cre_Doc_Template_Mgt", "question": "Count the number of different templates used for documents.", "gold_sql": "SELECT COUNT(DISTINCT template_id) FROM Documents;", "gold_result_hash": "20579d3863cad5f7", "difficulty": "easy"}
{"id": "spider_dev_0307", "db_id": "cre_Doc_Template_Mgt", "question": "How many documents are using the template with type code 'PPT'?", "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_result_hash": "a8b7a2a903cbfdea", "difficulty": "medium"}
{"id": "spider_dev_0308", "db_id": "cre_Doc_Template_Mgt", "question": "Count the number of documents that use the PPT template type.", "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_result_hash": "a8b7a2a903cbfdea", "difficulty": "medium"}
{"id": "spider_dev_0309", "db_id": "cre_Doc_Template_Mgt", "question": "Show all template ids and number of documents using each template.", "gold_sql": "SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id;", "gold_result_hash": "b93120b01d5f2ab0", "difficulty": "medium"}
{"id": "spider_dev_0310", "db_id": "cre_Doc_Template_Mgt", "question": "What are all different template ids used for documents, and how many times were each of them used?", "gold_sql": "SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id;", "gold_result_hash": "b93120b01d5f2ab0", "difficulty": "medium"}
{"id": "spider_dev_0313", "db_id": "cre_Doc_Template_Mgt", "question": "Show ids for all templates that are used by more than one document.", "gold_sql": "SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1;", "gold_result_hash": "92b31c3eccacee22", "difficulty": "easy"}
{"id": "spider_dev_0314", "db_id": "cre_Doc_Template_Mgt", "question": "What are the template ids of any templates used in more than a single document?", "gold_sql": "SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1;", "gold_result_hash": "92b31c3eccacee22", "difficulty": "easy"}
{"id": "spider_dev_0315", "db_id": "cre_Doc_Template_Mgt", "question": "Show ids for all templates not used by any document.", "gold_sql": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents;", "gold_result_hash": "7687f68e76913358", "difficulty": "hard"}
{"id": "spider_dev_0316", "db_id": "cre_Doc_Template_Mgt", "question": "What are the ids for templates that are not used in any documents?", "gold_sql": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents;", "gold_result_hash": "7687f68e76913358", "difficulty": "hard"}
{"id": "spider_dev_0317", "db_id": "cre_Doc_Template_Mgt", "question": "How many templates do we have?", "gold_sql": "SELECT COUNT(*) FROM Templates;", "gold_result_hash": "3b5de700f3cf16bf", "difficulty": "easy"}
{"id": "spider_dev_0318", "db_id": "cre_Doc_Template_Mgt", "question": "Count the number of templates.", "gold_sql": "SELECT COUNT(*) FROM Templates;", "gold_result_hash": "3b5de700f3cf16bf", "difficulty": "easy"}
{"id": "spider_dev_0319", "db_id": "cre_Doc_Template_Mgt", "question": "Show template ids, version numbers, and template type codes for all templates.", "gold_sql": "SELECT template_id, version_number, template_type_code FROM Templates;", "gold_result_hash": "c97f80bd536a85e1", "difficulty": "medium"}
{"id": "spider_dev_0320", "db_id": "cre_Doc_Template_Mgt", "question": "What are the ids, version numbers, and type codes for each template?", "gold_sql": "SELECT template_id, version_number, template_type_code FROM Templates;", "gold_result_hash": "c97f80bd536a85e1", "difficulty": "medium"}
{"id": "spider_dev_0321", "db_id": "cre_Doc_Template_Mgt", "question": "Show all distinct template type codes for all templates.", "gold_sql": "SELECT DISTINCT template_type_code FROM Templates;", "gold_result_hash": "0da51f60478479ef", "difficulty": "easy"}
{"id": "spider_dev_0322", "db_id": "cre_Doc_Template_Mgt", "question": "What are the different template type codes?", "gold_sql": "SELECT DISTINCT template_type_code FROM Templates;", "gold_result_hash": "0da51f60478479ef", "difficulty": "easy"}
{"id": "spider_dev_0323", "db_id": "cre_Doc_Template_Mgt", "question": "What are the ids of templates with template type code PP or PPT?", "gold_sql": "SELECT template_id FROM Templates WHERE template_type_code = 'PP' OR template_type_code = 'PPT';", "gold_result_hash": "c45ee1b0154db8f4", "difficulty": "medium"}
{"id": "spider_dev_0324", "db_id": "cre_Doc_Template_Mgt", "question": "Return the ids of templates that have the code PP or PPT.", "gold_sql": "SELECT template_id FROM Templates WHERE template_type_code = 'PP' OR template_type_code = 'PPT';", "gold_result_hash": "c45ee1b0154db8f4", "difficulty": "medium"}
{"id": "spider_dev_0325", "db_id": "cre_Doc_Template_Mgt", "question": "How many templates have template type code CV?", "gold_sql": "SELECT COUNT(*) FROM Templates WHERE template_type_code = 'CV';", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "easy"}
{"id": "spider_dev_0326", "db_id": "cre_Doc_Template_Mgt", "question": "Count the number of templates of the type CV.", "gold_sql": "SELECT COUNT(*) FROM Templates WHERE template_type_code = 'CV';", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "easy"}
{"id": "spider_dev_0327", "db_id": "cre_Doc_Template_Mgt", "question": "What is the version number and template type code for the template with version number later than 5?", "gold_sql": "SELECT version_number, template_type_code FROM Templates WHERE version_number > 5;", "gold_result_hash": "67eeaafa64353906", "difficulty": "medium"}
{"id": "spider_dev_0328", "db_id": "cre_Doc_Template_Mgt", "question": "Return the version numbers and template type codes of templates with a version number greater than 5.", "gold_sql": "SELECT version_number, template_type_code FROM Templates WHERE version_number > 5;", "gold_result_hash": "67eeaafa64353906", "difficulty": "medium"}
{"id": "spider_dev_0329", "db_id": "cre_Doc_Template_Mgt", "question": "Show all template type codes and number of templates for each.", "gold_sql": "SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code;", "gold_result_hash": "3e48bacc73e3e191", "difficulty": "medium"}
{"id": "spider_dev_0330", "db_id": "cre_Doc_Template_Mgt", "question": "What are the different template type codes, and how many templates correspond to each?", "gold_sql": "SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code;", "gold_result_hash": "3e48bacc73e3e191", "difficulty": "medium"}
{"id": "spider_dev_0331", "db_id": "cre_Doc_Template_Mgt", "question": "Which template type code has most number of templates?", "gold_sql": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "559a970fefd35eb6", "difficulty": "hard"}
{"id": "spider_dev_0332", "db_id": "cre_Doc_Template_Mgt", "question": "Return the type code of the template type that the most templates belong to.", "gold_sql": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "559a970fefd35eb6", "difficulty": "hard"}
{"id": "spider_dev_0333", "db_id": "cre_Doc_Template_Mgt", "question": "Show all template type codes with less than three templates.", "gold_sql": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3;", "gold_result_hash": "e2d48b049a75b182", "difficulty": "easy"}
{"id": "spider_dev_0334", "db_id": "cre_Doc_Template_Mgt", "question": "What are the codes of template types that have fewer than 3 templates?", "gold_sql": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3;", "gold_result_hash": "e2d48b049a75b182", "difficulty": "easy"}
{"id": "spider_dev_0337", "db_id": "cre_Doc_Template_Mgt", "question": "What is the template type code of the template used by document with the name \"Data base\"?", "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_result_hash": "30a4a222ed76d7d7", "difficulty": "medium"}
{"id": "spider_dev_0338", "db_id": "cre_Doc_Template_Mgt", "question": "Return the template type code of the template that is used by a document named Data base.", "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_result_hash": "30a4a222ed76d7d7", "difficulty": "medium"}
{"id": "spider_dev_0339", "db_id": "cre_Doc_Template_Mgt", "question": "Show all document names using templates with template type code BK.", "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_result_hash": "8af51f771811d10a", "difficulty": "medium"}
{"id": "spider_dev_0340", "db_id": "cre_Doc_Template_Mgt", "question": "What are the names of documents that use templates with the code BK?", "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_result_hash": "8af51f771811d10a", "difficulty": "medium"}
{"id": "spider_dev_0341", "db_id": "cre_Doc_Template_Mgt", "question": "Show all template type codes and the number of documents using each type.", "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_result_hash": "0679d4edc4e9e1cc", "difficulty": "medium"}
{"id": "spider_dev_0342", "db_id": "cre_Doc_Template_Mgt", "question": "What are the different template type codes, and how many documents use each type?", "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_result_hash": "0679d4edc4e9e1cc", "difficulty": "medium"}
{"id": "spider_dev_0343", "db_id": "cre_Doc_Template_Mgt", "question": "Which template type code is used by most number of documents?", "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_result_hash": "30a4a222ed76d7d7", "difficulty": "extra"}
{"id": "spider_dev_0344", "db_id": "cre_Doc_Template_Mgt", "question": "Return the code of the template type that is most commonly used in documents.", "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_result_hash": "30a4a222ed76d7d7", "difficulty": "extra"}
{"id": "spider_dev_0345", "db_id": "cre_Doc_Template_Mgt", "question": "Show all template type codes that are not used by any document.", "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_result_hash": "e2d48b049a75b182", "difficulty": "hard"}
{"id": "spider_dev_0346", "db_id": "cre_Doc_Template_Mgt", "question": "What are the codes of template types that are not used for any document?", "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_result_hash": "e2d48b049a75b182", "difficulty": "hard"}
{"id": "spider_dev_0347", "db_id": "cre_Doc_Template_Mgt", "question": "Show all template type codes and descriptions.", "gold_sql": "SELECT template_type_code, template_type_description FROM Ref_template_types;", "gold_result_hash": "84f33fc2753b53d1", "difficulty": "medium"}
{"id": "spider_dev_0348", "db_id": "cre_Doc_Template_Mgt", "question": "What are the type codes and descriptions for all template types?", "gold_sql": "SELECT template_type_code, template_type_description FROM Ref_template_types;", "gold_result_hash": "84f33fc2753b53d1", "difficulty": "medium"}
{"id": "spider_dev_0349", "db_id": "cre_Doc_Template_Mgt", "question": "What is the template type descriptions for template type code \"AD\".", "gold_sql": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = 'AD';", "gold_result_hash": "da112747cb9b2d9a", "difficulty": "easy"}
{"id": "spider_dev_0350", "db_id": "cre_Doc_Template_Mgt", "question": "Return the template type description of the template type with the code AD.", "gold_sql": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = 'AD';", "gold_result_hash": "da112747cb9b2d9a", "difficulty": "easy"}
{"id": "spider_dev_0351", "db_id": "cre_Doc_Template_Mgt", "question": "What is the template type code for template type description \"Book\".", "gold_sql": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = 'Book';", "gold_result_hash": "30a4a222ed76d7d7", "difficulty": "easy"}
{"id": "spider_dev_0352", "db_id": "cre_Doc_Template_Mgt", "question": "Return the type code of the template type with the description \"Book\".", "gold_sql": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = 'Book';", "gold_result_hash": "30a4a222ed76d7d7", "difficulty": "easy"}
{"id": "spider_dev_0353", "db_id": "cre_Doc_Template_Mgt", "question": "What are the distinct template type descriptions for the templates ever used by any document?", "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_result_hash": "fafe53a84fdfcb8d", "difficulty": "medium"}
{"id": "spider_dev_0354", "db_id": "cre_Doc_Template_Mgt", "question": "Return the different descriptions for templates that have been used in a document.", "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_result_hash": "fafe53a84fdfcb8d", "difficulty": "medium"}
{"id": "spider_dev_0355", "db_id": "cre_Doc_Template_Mgt", "question": "What are the template ids with template type description \"Presentation\".", "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_result_hash": "2d67029f99ecc31e", "difficulty": "medium"}
{"id": "spider_dev_0356", "db_id": "cre_Doc_Template_Mgt", "question": "Return the ids corresponding to templates with the description 'Presentation'.", "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_result_hash": "2d67029f99ecc31e", "difficulty": "medium"}
{"id": "spider_dev_0357", "db_id": "cre_Doc_Template_Mgt", "question": "How many paragraphs in total?", "gold_sql": "SELECT COUNT(*) FROM Paragraphs;", "gold_result_hash": "d0673151d4ee94d3", "difficulty": "easy"}
{"id": "spider_dev_0358", "db_id": "cre_Doc_Template_Mgt", "question": "Count the number of paragraphs.", "gold_sql": "SELECT COUNT(*) FROM Paragraphs;", "gold_result_hash": "d0673151d4ee94d3", "difficulty": "easy"}
{"id": "spider_dev_0359", "db_id": "cre_Doc_Template_Mgt", "question": "How many paragraphs for the document with name 'Summer Show'?", "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_result_hash": "aee0423e393e4f51", "difficulty": "medium"}
{"id": "spider_dev_0360", "db_id": "cre_Doc_Template_Mgt", "question": "Count the number of paragraphs in the document named 'Summer Show'.", "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_result_hash": "aee0423e393e4f51", "difficulty": "medium"}
{"id": "spider_dev_0361", "db_id": "cre_Doc_Template_Mgt", "question": "Show paragraph details for paragraph with text 'Korea ' .", "gold_sql": "SELECT other_details FROM paragraphs WHERE paragraph_text ILIKE 'korea';", "gold_result_hash": "0b4b63e810328311", "difficulty": "medium"}
{"id": "spider_dev_0362", "db_id": "cre_Doc_Template_Mgt", "question": "What are the details for the paragraph that includes the text 'Korea ' ?", "gold_sql": "SELECT other_details FROM paragraphs WHERE paragraph_text ILIKE 'korea';", "gold_result_hash": "0b4b63e810328311", "difficulty": "medium"}
{"id": "spider_dev_0363", "db_id": "cre_Doc_Template_Mgt", "question": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.", "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_result_hash": "7a0977bc2c5f7f37", "difficulty": "medium"}
{"id": "spider_dev_0364", "db_id": "cre_Doc_Template_Mgt", "question": "What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?", "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_result_hash": "7a0977bc2c5f7f37", "difficulty": "medium"}
{"id": "spider_dev_0365", "db_id": "cre_Doc_Template_Mgt", "question": "Show all paragraph texts for the document \"Customer reviews\".", "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_result_hash": "f6788fd54cf6eba4", "difficulty": "medium"}
{"id": "spider_dev_0366", "db_id": "cre_Doc_Template_Mgt", "question": "What are the paragraph texts for the document with the name 'Customer reviews'?", "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_result_hash": "f6788fd54cf6eba4", "difficulty": "medium"}
{"id": "spider_dev_0367", "db_id": "cre_Doc_Template_Mgt", "question": "Show all document ids and the number of paragraphs in each document. Order by document id.", "gold_sql": "SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id;", "gold_result_hash": "6bb2eea6ab57ea55", "difficulty": "medium"}
{"id": "spider_dev_0368", "db_id": "cre_Doc_Template_Mgt", "question": "Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.", "gold_sql": "SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id;", "gold_result_hash": "6bb2eea6ab57ea55", "difficulty": "medium"}
{"id": "spider_dev_0369", "db_id": "cre_Doc_Template_Mgt", "question": "Show all document ids, names and the number of paragraphs in each document.", "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, T2.document_name;", "gold_result_hash": "dc0fe1edfb9d87bc", "difficulty": "medium"}
{"id": "spider_dev_0370", "db_id": "cre_Doc_Template_Mgt", "question": "What are the ids and names of each document, as well as the number of paragraphs in each?", "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, T2.document_name;", "gold_result_hash": "dc0fe1edfb9d87bc", "difficulty": "medium"}
{"id": "spider_dev_0371", "db_id": "cre_Doc_Template_Mgt", "question": "List all document ids with at least two paragraphs.", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2;", "gold_result_hash": "6923a93e2b46f646", "difficulty": "easy"}
{"id": "spider_dev_0372", "db_id": "cre_Doc_Template_Mgt", "question": "What are the ids of documents that have 2 or more paragraphs?", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2;", "gold_result_hash": "6923a93e2b46f646", "difficulty": "easy"}
{"id": "spider_dev_0373", "db_id": "cre_Doc_Template_Mgt", "question": "What is the document id and name with greatest number of paragraphs?", "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, T2.document_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "066f6808bad3aa1c", "difficulty": "extra"}
{"id": "spider_dev_0374", "db_id": "cre_Doc_Template_Mgt", "question": "Return the id and name of the document with the most paragraphs.", "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, T2.document_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "066f6808bad3aa1c", "difficulty": "extra"}
{"id": "spider_dev_0375", "db_id": "cre_Doc_Template_Mgt", "question": "What is the document id with least number of paragraphs?", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) ASC LIMIT 1;", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "hard"}
{"id": "spider_dev_0376", "db_id": "cre_Doc_Template_Mgt", "question": "Return the id of the document with the fewest paragraphs.", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) ASC LIMIT 1;", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "hard"}
{"id": "spider_dev_0377", "db_id": "cre_Doc_Template_Mgt", "question": "What is the document id with 1 to 2 paragraphs?", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2;", "gold_result_hash": "1e7cfc45d21f4c83", "difficulty": "easy"}
{"id": "spider_dev_0378", "db_id": "cre_Doc_Template_Mgt", "question": "Give the ids of documents that have between one and two paragraphs.", "gold_sql": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2;", "gold_result_hash": "1e7cfc45d21f4c83", "difficulty": "easy"}
{"id": "spider_dev_0379", "db_id": "cre_Doc_Template_Mgt", "question": "Show the document id with paragraph text 'Brazil' and 'Ireland'.", "gold_sql": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland';", "gold_result_hash": "d013895dea68b4de", "difficulty": "hard"}
{"id": "spider_dev_0380", "db_id": "cre_Doc_Template_Mgt", "question": "What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?", "gold_sql": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland';", "gold_result_hash": "d013895dea68b4de", "difficulty": "hard"}
{"id": "spider_dev_0381", "db_id": "course_teach", "question": "How many teachers are there?", "gold_sql": "SELECT COUNT(*) FROM teacher;", "gold_result_hash": "765041f9f76eabbd", "difficulty": "easy"}
{"id": "spider_dev_0382", "db_id": "course_teach", "question": "What is the total count of teachers?", "gold_sql": "SELECT COUNT(*) FROM teacher;", "gold_result_hash": "765041f9f76eabbd", "difficulty": "easy"}
{"id": "spider_dev_0383", "db_id": "course_teach", "question": "List the names of teachers in ascending order of age.", "gold_sql": "SELECT Name FROM teacher ORDER BY Age ASC;", "gold_result_hash": "bde819fed5c50158", "difficulty": "easy"}
{"id": "spider_dev_0384", "db_id": "course_teach", "question": "What are the names of the teachers ordered by ascending age?", "gold_sql": "SELECT Name FROM teacher ORDER BY Age ASC;", "gold_result_hash": "bde819fed5c50158", "difficulty": "easy"}
{"id": "spider_dev_0385", "db_id": "course_teach", "question": "What are the age and hometown of teachers?", "gold_sql": "SELECT Age, Hometown FROM teacher;", "gold_result_hash": "cde1a475f65dfcac", "difficulty": "medium"}
{"id": "spider_dev_0386", "db_id": "course_teach", "question": "What is the age and hometown of every teacher?", "gold_sql": "SELECT Age, Hometown FROM teacher;", "gold_result_hash": "cde1a475f65dfcac", "difficulty": "medium"}
{"id": "spider_dev_0387", "db_id": "course_teach", "question": "List the name of teachers whose hometown is not `` Little Lever Urban District '' .", "gold_sql": "SELECT name FROM teacher WHERE hometown <> 'little lever urban district';", "gold_result_hash": "b964ec9a892b36ac", "difficulty": "easy"}
{"id": "spider_dev_0388", "db_id": "course_teach", "question": "What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?", "gold_sql": "SELECT name FROM teacher WHERE hometown <> 'little lever urban district';", "gold_result_hash": "b964ec9a892b36ac", "difficulty": "easy"}
{"id": "spider_dev_0389", "db_id": "course_teach", "question": "Show the name of teachers aged either 32 or 33?", "gold_sql": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33;", "gold_result_hash": "c4d3a413ba5de24f", "difficulty": "medium"}
{"id": "spider_dev_0390", "db_id": "course_teach", "question": "What are the names of the teachers who are aged either 32 or 33?", "gold_sql": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33;", "gold_result_hash": "c4d3a413ba5de24f", "difficulty": "medium"}
{"id": "spider_dev_0391", "db_id": "course_teach", "question": "What is the hometown of the youngest teacher?", "gold_sql": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1;", "gold_result_hash": "bee9c02518a1380c", "difficulty": "medium"}
{"id": "spider_dev_0392", "db_id": "course_teach", "question": "Where is the youngest teacher from?", "gold_sql": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1;", "gold_result_hash": "bee9c02518a1380c", "difficulty": "medium"}
{"id": "spider_dev_0393", "db_id": "course_teach", "question": "Show different hometown of teachers and the number of teachers from each hometown.", "gold_sql": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown;", "gold_result_hash": "97efe4fc2b1f2d34", "difficulty": "medium"}
{"id": "spider_dev_0394", "db_id": "course_teach", "question": "For each hometown, how many teachers are there?", "gold_sql": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown;", "gold_result_hash": "97efe4fc2b1f2d34", "difficulty": "medium"}
{"id": "spider_dev_0397", "db_id": "course_teach", "question": "Show the hometowns shared by at least two teachers.", "gold_sql": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "easy"}
{"id": "spider_dev_0398", "db_id": "course_teach", "question": "What are the towns from which at least two teachers come from?", "gold_sql": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "easy"}
{"id": "spider_dev_0399", "db_id": "course_teach", "question": "Show names of teachers and the courses they are arranged to teach.", "gold_sql": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID;", "gold_result_hash": "5348c9159117add9", "difficulty": "medium"}
{"id": "spider_dev_0400", "db_id": "course_teach", "question": "What is the name of each teacher and what course they teach?", "gold_sql": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID;", "gold_result_hash": "5348c9159117add9", "difficulty": "medium"}
{"id": "spider_dev_0403", "db_id": "course_teach", "question": "Show the name of the teacher for the math course.", "gold_sql": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = 'Math';", "gold_result_hash": "c4c5be690a034b08", "difficulty": "hard"}
{"id": "spider_dev_0404", "db_id": "course_teach", "question": "What are the names of the people who teach math courses?", "gold_sql": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = 'Math';", "gold_result_hash": "c4c5be690a034b08", "difficulty": "hard"}
{"id": "spider_dev_0405", "db_id": "course_teach", "question": "Show names of teachers and the number of courses they teach.", "gold_sql": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name;", "gold_result_hash": "b0cb52e3415d864e", "difficulty": "medium"}
{"id": "spider_dev_0406", "db_id": "course_teach", "question": "What are the names of the teachers and how many courses do they teach?", "gold_sql": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name;", "gold_result_hash": "b0cb52e3415d864e", "difficulty": "medium"}
{"id": "spider_dev_0407", "db_id": "course_teach", "question": "Show names of teachers that teach at least two courses.", "gold_sql": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2;", "gold_result_hash": "d86b54c5f8861944", "difficulty": "medium"}
{"id": "spider_dev_0408", "db_id": "course_teach", "question": "What are the names of the teachers who teach at least two courses?", "gold_sql": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2;", "gold_result_hash": "d86b54c5f8861944", "difficulty": "medium"}
{"id": "spider_dev_0409", "db_id": "course_teach", "question": "List the names of teachers who have not been arranged to teach courses.", "gold_sql": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange);", "gold_result_hash": "c4d3a413ba5de24f", "difficulty": "hard"}
{"id": "spider_dev_0410", "db_id": "course_teach", "question": "What are the names of the teachers whose courses have not been arranged?", "gold_sql": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange);", "gold_result_hash": "c4d3a413ba5de24f", "difficulty": "hard"}
{"id": "spider_dev_0411", "db_id": "museum_visit", "question": "How many visitors below age 30 are there?", "gold_sql": "SELECT COUNT(*) FROM visitor WHERE age < 30;", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_0412", "db_id": "museum_visit", "question": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.", "gold_sql": "SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC;", "gold_result_hash": "a7e63b2d13672327", "difficulty": "medium"}
{"id": "spider_dev_0413", "db_id": "museum_visit", "question": "What is the average age of the visitors whose membership level is not higher than 4?", "gold_sql": "SELECT AVG(age) FROM visitor WHERE Level_of_membership <= 4;", "gold_result_hash": "40f1abf064104314", "difficulty": "easy"}
{"id": "spider_dev_0414", "db_id": "museum_visit", "question": "Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.", "gold_sql": "SELECT name, Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC;", "gold_result_hash": "3576a9d37f621c92", "difficulty": "medium"}
{"id": "spider_dev_0415", "db_id": "museum_visit", "question": "Find the id and name of the museum that has the most staff members?", "gold_sql": "SELECT museum_id, name FROM museum ORDER BY num_of_staff DESC LIMIT 1;", "gold_result_hash": "0c76a856f41bab97", "difficulty": "medium"}
{"id": "spider_dev_0416", "db_id": "museum_visit", "question": "Find the average number of staff working for the museums that were open before 2009.", "gold_sql": "SELECT AVG(num_of_staff) FROM museum WHERE open_year < 2009;", "gold_result_hash": "32f516e93481a451", "difficulty": "easy"}
{"id": "spider_dev_0417", "db_id": "museum_visit", "question": "What are the opening year and staff number of the museum named Plaza Museum?", "gold_sql": "SELECT Num_of_Staff, Open_Year FROM museum WHERE name = 'Plaza Museum';", "gold_result_hash": "64753b04d800a04e", "difficulty": "medium"}
{"id": "spider_dev_0418", "db_id": "museum_visit", "question": "find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.", "gold_sql": "SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010);", "gold_result_hash": "fb57e5dc3014a250", "difficulty": "hard"}
{"id": "spider_dev_0419", "db_id": "museum_visit", "question": "find the id, name and age for visitors who visited some museums more than once.", "gold_sql": "SELECT t1.id, t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id, t1.name, t1.age HAVING COUNT(*) > 1;", "gold_result_hash": "1a283dcf1c58cfca", "difficulty": "medium"}
{"id": "spider_dev_0420", "db_id": "museum_visit", "question": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?", "gold_sql": "SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id, t1.name, t1.Level_of_membership ORDER BY SUM(t2.Total_spent) DESC LIMIT 1;", "gold_result_hash": "43cbf8f6c56c8ca3", "difficulty": "extra"}
{"id": "spider_dev_0422", "db_id": "museum_visit", "question": "What is the name of the museum that had no visitor yet?", "gold_sql": "SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit);", "gold_result_hash": "4969afecdc035e48", "difficulty": "hard"}
{"id": "spider_dev_0423", "db_id": "museum_visit", "question": "Find the name and age of the visitor who bought the most tickets at once.", "gold_sql": "SELECT t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1;", "gold_result_hash": "0b38405af02a66e2", "difficulty": "hard"}
{"id": "spider_dev_0424", "db_id": "museum_visit", "question": "What are the average and maximum number of tickets bought in all visits?", "gold_sql": "SELECT AVG(num_of_ticket), MAX(num_of_ticket) FROM visit;", "gold_result_hash": "152aabdf74f73864", "difficulty": "medium"}
{"id": "spider_dev_0425", "db_id": "museum_visit", "question": "What is the total ticket expense of the visitors whose membership level is 1?", "gold_sql": "SELECT SUM(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1;", "gold_result_hash": "9036eb7929a8d241", "difficulty": "medium"}
{"id": "spider_dev_0426", "db_id": "museum_visit", "question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", "gold_sql": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011;", "gold_result_hash": "2bb225dd185fc830", "difficulty": "extra"}
{"id": "spider_dev_0427", "db_id": "museum_visit", "question": "Find the number of visitors who did not visit any museum opened after 2010.", "gold_sql": "SELECT COUNT(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010);", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "extra"}
{"id": "spider_dev_0428", "db_id": "museum_visit", "question": "How many museums were opened after 2013 or before 2008?", "gold_sql": "SELECT COUNT(*) FROM museum WHERE open_year > 2013 OR open_year < 2008;", "gold_result_hash": "aee0423e393e4f51", "difficulty": "medium"}
{"id": "spider_dev_0429", "db_id": "wta_1", "question": "Find the total number of players.", "gold_sql": "SELECT COUNT(*) FROM players;", "gold_result_hash": "e0daa0d79cf12366", "difficulty": "easy"}
{"id": "spider_dev_0430", "db_id": "wta_1", "question": "How many players are there?", "gold_sql": "SELECT COUNT(*) FROM players;", "gold_result_hash": "e0daa0d79cf12366", "difficulty": "easy"}
{"id": "spider_dev_0431", "db_id": "wta_1", "question": "Find the total number of matches.", "gold_sql": "SELECT COUNT(*) FROM matches;", "gold_result_hash": "3ce0f36d9d7f3df9", "difficulty": "easy"}
{"id": "spider_dev_0432", "db_id": "wta_1", "question": "Count the number of matches.", "gold_sql": "SELECT COUNT(*) FROM matches;", "gold_result_hash": "3ce0f36d9d7f3df9", "difficulty": "easy"}
{"id": "spider_dev_0433", "db_id": "wta_1", "question": "List the first name and birth date of all players from the country with code USA.", "gold_sql": "SELECT first_name, birth_date FROM players WHERE country_code = 'USA';", "gold_result_hash": "561204d58b5b6a15", "difficulty": "medium"}
{"id": "spider_dev_0434", "db_id": "wta_1", "question": "What are the first names and birth dates of players from the USA?", "gold_sql": "SELECT first_name, birth_date FROM players WHERE country_code = 'USA';", "gold_result_hash": "561204d58b5b6a15", "difficulty": "medium"}
{"id": "spider_dev_0435", "db_id": "wta_1", "question": "Find the average age of losers and winners of all matches.", "gold_sql": "SELECT AVG(loser_age), AVG(winner_age) FROM matches;", "gold_result_hash": "f46e01bc5f429b42", "difficulty": "medium"}
{"id": "spider_dev_0436", "db_id": "wta_1", "question": "What are the average ages of losers and winners across matches?", "gold_sql": "SELECT AVG(loser_age), AVG(winner_age) FROM matches;", "gold_result_hash": "f46e01bc5f429b42", "difficulty": "medium"}
{"id": "spider_dev_0437", "db_id": "wta_1", "question": "Find the average rank of winners in all matches.", "gold_sql": "SELECT AVG(winner_rank) FROM matches;", "gold_result_hash": "7a1d30adcb1b2f54", "difficulty": "easy"}
{"id": "spider_dev_0438", "db_id": "wta_1", "question": "What is the average rank for winners in all matches?", "gold_sql": "SELECT AVG(winner_rank) FROM matches;", "gold_result_hash": "7a1d30adcb1b2f54", "difficulty": "easy"}
{"id": "spider_dev_0439", "db_id": "wta_1", "question": "Find the highest rank of losers in all matches.", "gold_sql": "SELECT MIN(loser_rank) FROM matches;", "gold_result_hash": "aee0423e393e4f51", "difficulty": "easy"}
{"id": "spider_dev_0440", "db_id": "wta_1", "question": "What is the best rank of losers across all matches?", "gold_sql": "SELECT MIN(loser_rank) FROM matches;", "gold_result_hash": "aee0423e393e4f51", "difficulty": "easy"}
{"id": "spider_dev_0441", "db_id": "wta_1", "question": "find the number of distinct country codes of all players.", "gold_sql": "SELECT COUNT(DISTINCT country_code) FROM players;", "gold_result_hash": "4b1c96886aa7f395", "difficulty": "easy"}
{"id": "spider_dev_0442", "db_id": "wta_1", "question": "How many distinct countries do players come from?", "gold_sql": "SELECT COUNT(DISTINCT country_code) FROM players;", "gold_result_hash": "4b1c96886aa7f395", "difficulty": "easy"}
{"id": "spider_dev_0443", "db_id": "wta_1", "question": "Find the number of distinct name of losers.", "gold_sql": "SELECT COUNT(DISTINCT loser_name) FROM matches;", "gold_result_hash": "a39b8ddd971210d9", "difficulty": "easy"}
{"id": "spider_dev_0444", "db_id": "wta_1", "question": "How many different loser names are there?", "gold_sql": "SELECT COUNT(DISTINCT loser_name) FROM matches;", "gold_result_hash": "a39b8ddd971210d9", "difficulty": "easy"}
{"id": "spider_dev_0445", "db_id": "wta_1", "question": "Find the name of tourney that has more than 10 matches.", "gold_sql": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10;", "gold_result_hash": "ca2da7f5b668081e", "difficulty": "easy"}
{"id": "spider_dev_0446", "db_id": "wta_1", "question": "What are the names of tournaments that have more than 10 matches?", "gold_sql": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10;", "gold_result_hash": "ca2da7f5b668081e", "difficulty": "easy"}
{"id": "spider_dev_0447", "db_id": "wta_1", "question": "List the names of all winners who played in both 2013 and 2016.", "gold_sql": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016;", "gold_result_hash": "6603fc740679c480", "difficulty": "hard"}
{"id": "spider_dev_0448", "db_id": "wta_1", "question": "What are the names of players who won in both 2013 and 2016?", "gold_sql": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016;", "gold_result_hash": "6603fc740679c480", "difficulty": "hard"}
{"id": "spider_dev_0449", "db_id": "wta_1", "question": "List the number of all matches who played in years of 2013 or 2016.", "gold_sql": "SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016;", "gold_result_hash": "092901a80fb0be59", "difficulty": "medium"}
{"id": "spider_dev_0450", "db_id": "wta_1", "question": "How many matches were played in 2013 or 2016?", "gold_sql": "SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016;", "gold_result_hash": "092901a80fb0be59", "difficulty": "medium"}
{"id": "spider_dev_0451", "db_id": "wta_1", "question": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?", "gold_sql": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open';", "gold_result_hash": "e29cf7c2bd583ed6", "difficulty": "extra"}
{"id": "spider_dev_0452", "db_id": "wta_1", "question": "What are the first names and country codes for players who won both the WTA Championships and the Australian Open?", "gold_sql": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open';", "gold_result_hash": "e29cf7c2bd583ed6", "difficulty": "extra"}
{"id": "spider_dev_0459", "db_id": "wta_1", "question": "Find the first name and country code of the player who did the most number of tours.", "gold_sql": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1;", "gold_result_hash": "063b9a4b49563d6d", "difficulty": "hard"}
{"id": "spider_dev_0460", "db_id": "wta_1", "question": "What is the first name and country code of the player with the most tours?", "gold_sql": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1;", "gold_result_hash": "063b9a4b49563d6d", "difficulty": "hard"}
{"id": "spider_dev_0461", "db_id": "wta_1", "question": "Find the year that has the most number of matches.", "gold_sql": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "7a303ec3fa6f9fe4", "difficulty": "hard"}
{"id": "spider_dev_0462", "db_id": "wta_1", "question": "Which year had the most matches?", "gold_sql": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "7a303ec3fa6f9fe4", "difficulty": "hard"}
{"id": "spider_dev_0465", "db_id": "wta_1", "question": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.", "gold_sql": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1;", "gold_result_hash": "f7d84e257b3dd3fc", "difficulty": "hard"}
{"id": "spider_dev_0466", "db_id": "wta_1", "question": "What is the name of the winner with the most rank points who participated in the Australian Open tournament?", "gold_sql": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1;", "gold_result_hash": "f7d84e257b3dd3fc", "difficulty": "hard"}
{"id": "spider_dev_0467", "db_id": "wta_1", "question": "find the names of loser and winner who played in the match with greatest number of minutes.", "gold_sql": "SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1;", "gold_result_hash": "7a605d554011fa75", "difficulty": "medium"}
{"id": "spider_dev_0468", "db_id": "wta_1", "question": "What are the names of the winner and loser who played in the longest match?", "gold_sql": "SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1;", "gold_result_hash": "7a605d554011fa75", "difficulty": "medium"}
{"id": "spider_dev_0469", "db_id": "wta_1", "question": "Find the average ranking for each player and their first name.", "gold_sql": "SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name;", "gold_result_hash": "f29766f0c4e1d159", "difficulty": "medium"}
{"id": "spider_dev_0470", "db_id": "wta_1", "question": "What are the first names of all players, and their average rankings?", "gold_sql": "SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name;", "gold_result_hash": "f29766f0c4e1d159", "difficulty": "medium"}
{"id": "spider_dev_0471", "db_id": "wta_1", "question": "Find the total ranking points for each player and their first name.", "gold_sql": "SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name;", "gold_result_hash": "8c6219b498dd561a", "difficulty": "medium"}
{"id": "spider_dev_0472", "db_id": "wta_1", "question": "What are the first names of all players, and their total ranking points?", "gold_sql": "SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name;", "gold_result_hash": "8c6219b498dd561a", "difficulty": "medium"}
{"id": "spider_dev_0473", "db_id": "wta_1", "question": "find the number of players for each country.", "gold_sql": "SELECT COUNT(*), country_code FROM players GROUP BY country_code;", "gold_result_hash": "ae297c867f9cbeb6", "difficulty": "medium"}
{"id": "spider_dev_0474", "db_id": "wta_1", "question": "How many players are from each country?", "gold_sql": "SELECT COUNT(*), country_code FROM players GROUP BY country_code;", "gold_result_hash": "ae297c867f9cbeb6", "difficulty": "medium"}
{"id": "spider_dev_0475", "db_id": "wta_1", "question": "find the code of the country where has the greatest number of players.", "gold_sql": "SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "b550bc95f1cdff9f", "difficulty": "hard"}
{"id": "spider_dev_0476", "db_id": "wta_1", "question": "What is the code of the country with the most players?", "gold_sql": "SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "b550bc95f1cdff9f", "difficulty": "hard"}
{"id": "spider_dev_0477", "db_id": "wta_1", "question": "Find the codes of countries that have more than 50 players.", "gold_sql": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50;", "gold_result_hash": "940d3fd329868004", "difficulty": "easy"}
{"id": "spider_dev_0478", "db_id": "wta_1", "question": "What are the codes of countries with more than 50 players?", "gold_sql": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50;", "gold_result_hash": "940d3fd329868004", "difficulty": "easy"}
{"id": "spider_dev_0479", "db_id": "wta_1", "question": "Find the total number of tours for each ranking date.", "gold_sql": "SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date;", "gold_result_hash": "78835fdb82485d57", "difficulty": "medium"}
{"id": "spider_dev_0480", "db_id": "wta_1", "question": "How many total tours were there for each ranking date?", "gold_sql": "SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date;", "gold_result_hash": "78835fdb82485d57", "difficulty": "medium"}
{"id": "spider_dev_0481", "db_id": "wta_1", "question": "Find the number of matches happened in each year.", "gold_sql": "SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR;", "gold_result_hash": "ddfec905ce330863", "difficulty": "medium"}
{"id": "spider_dev_0482", "db_id": "wta_1", "question": "How many matches were played in each year?", "gold_sql": "SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR;", "gold_result_hash": "ddfec905ce330863", "difficulty": "medium"}
{"id": "spider_dev_0483", "db_id": "wta_1", "question": "Find the name and rank of the 3 youngest winners across all matches.", "gold_sql": "SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3;", "gold_result_hash": "d3f302c7a0c78f84", "difficulty": "medium"}
{"id": "spider_dev_0484", "db_id": "wta_1", "question": "What are the names and ranks of the three youngest winners across all matches?", "gold_sql": "SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3;", "gold_result_hash": "d3f302c7a0c78f84", "difficulty": "medium"}
{"id": "spider_dev_0485", "db_id": "wta_1", "question": "How many different winners both participated in the WTA Championships and were left handed?", "gold_sql": "SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L';", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "medium"}
{"id": "spider_dev_0486", "db_id": "wta_1", "question": "Find the number of left handed winners who participated in the WTA Championships.", "gold_sql": "SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L';", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "medium"}
{"id": "spider_dev_0487", "db_id": "wta_1", "question": "Find the first name, country code and birth date of the winner who has the highest rank points in all matches.", "gold_sql": "SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1;", "gold_result_hash": "50b2415b37e74550", "difficulty": "hard"}
{"id": "spider_dev_0488", "db_id": "wta_1", "question": "What is the first name, country code, and birth date of the player with the most winner rank points across all matches?", "gold_sql": "SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1;", "gold_result_hash": "50b2415b37e74550", "difficulty": "hard"}
{"id": "spider_dev_0489", "db_id": "wta_1", "question": "Find the number of players for each hand type.", "gold_sql": "SELECT COUNT(*), hand FROM players GROUP BY hand;", "gold_result_hash": "06d2e3b90fc76474", "difficulty": "medium"}
{"id": "spider_dev_0490", "db_id": "wta_1", "question": "How many players are there for each hand type?", "gold_sql": "SELECT COUNT(*), hand FROM players GROUP BY hand;", "gold_result_hash": "06d2e3b90fc76474", "difficulty": "medium"}
{"id": "spider_dev_0491", "db_id": "battle_death", "question": "How many ships ended up being 'Captured'?", "gold_sql": "SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured';", "gold_result_hash": "63e057b7b7314ff0", "difficulty": "easy"}
{"id": "spider_dev_0492", "db_id": "battle_death", "question": "List the name and tonnage ordered by in descending alphaetical order for the names.", "gold_sql": "SELECT name, tonnage FROM ship ORDER BY name DESC;", "gold_result_hash": "adba60473c73b7b7", "difficulty": "medium"}
{"id": "spider_dev_0493", "db_id": "battle_death", "question": "List the name, date and result of each battle.", "gold_sql": "SELECT name, date FROM battle;", "gold_result_hash": "641d3be70884ff14", "difficulty": "medium"}
{"id": "spider_dev_0494", "db_id": "battle_death", "question": "What is maximum and minimum death toll caused each time?", "gold_sql": "SELECT MAX(killed), MIN(killed) FROM death;", "gold_result_hash": "6a4a35b8baefa110", "difficulty": "medium"}
{"id": "spider_dev_0495", "db_id": "battle_death", "question": "What is the average number of injuries caused each time?", "gold_sql": "SELECT AVG(injured) FROM death;", "gold_result_hash": "fac0fb5f1c67d981", "difficulty": "easy"}
{"id": "spider_dev_0496", "db_id": "battle_death", "question": "What are the death and injury situations caused by the ship with tonnage 't'?", "gold_sql": "SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't';", "gold_result_hash": "9d280bef16ad9502", "difficulty": "medium"}
{"id": "spider_dev_0497", "db_id": "battle_death", "question": "What are the name and results of the battles when the bulgarian commander is not 'Boril'", "gold_sql": "SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril';", "gold_result_hash": "1802c5f4aed2f72b", "difficulty": "medium"}
{"id": "spider_dev_0498", "db_id": "battle_death", "question": "What are the different ids and names of the battles that lost any 'Brig' type shipes?", "gold_sql": "SELECT DISTINCT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig';", "gold_result_hash": "0c2738ff54fe8aed", "difficulty": "medium"}
{"id": "spider_dev_0499", "db_id": "battle_death", "question": "What are the ids and names of the battles that led to more than 10 people killed in total.", "gold_sql": "SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id, T1.name HAVING SUM(T3.killed) > 10;", "gold_result_hash": "12cf8995c3abd65a", "difficulty": "hard"}
{"id": "spider_dev_0501", "db_id": "battle_death", "question": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?", "gold_sql": "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I';", "gold_result_hash": "70807e96fe77b112", "difficulty": "medium"}
{"id": "spider_dev_0502", "db_id": "battle_death", "question": "How many different results are there for the battles?", "gold_sql": "SELECT COUNT(DISTINCT RESULT) FROM battle;", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_0503", "db_id": "battle_death", "question": "How many battles did not lose any ship with tonnage '225'?", "gold_sql": "SELECT COUNT(*) FROM battle WHERE id NOT IN (SELECT lost_in_battle FROM ship WHERE tonnage = '225');", "gold_result_hash": "765041f9f76eabbd", "difficulty": "extra"}
{"id": "spider_dev_0504", "db_id": "battle_death", "question": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'", "gold_sql": "SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta';", "gold_result_hash": "e3a3742af2abf842", "difficulty": "extra"}
{"id": "spider_dev_0505", "db_id": "battle_death", "question": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.", "gold_sql": "SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel';", "gold_result_hash": "1864ac4987b6ef43", "difficulty": "extra"}
{"id": "spider_dev_0506", "db_id": "battle_death", "question": "What are the notes of the death events which has substring 'East'?", "gold_sql": "SELECT note FROM death WHERE note ILIKE '%East%';", "gold_result_hash": "f4d418f7ca1d17f2", "difficulty": "medium"}
{"id": "spider_dev_0507", "db_id": "student_transcripts_tracking", "question": "what are all the addresses including line 1 and line 2?", "gold_sql": "SELECT line_1, line_2 FROM addresses;", "gold_result_hash": "3553dafab6118d5e", "difficulty": "medium"}
{"id": "spider_dev_0508", "db_id": "student_transcripts_tracking", "question": "What is the first and second line for all addresses?", "gold_sql": "SELECT line_1, line_2 FROM addresses;", "gold_result_hash": "3553dafab6118d5e", "difficulty": "medium"}
{"id": "spider_dev_0509", "db_id": "student_transcripts_tracking", "question": "How many courses in total are listed?", "gold_sql": "SELECT COUNT(*) FROM Courses;", "gold_result_hash": "d0673151d4ee94d3", "difficulty": "easy"}
{"id": "spider_dev_0510", "db_id": "student_transcripts_tracking", "question": "How many courses are there?", "gold_sql": "SELECT COUNT(*) FROM Courses;", "gold_result_hash": "d0673151d4ee94d3", "difficulty": "easy"}
{"id": "spider_dev_0511", "db_id": "student_transcripts_tracking", "question": "How is the math course described?", "gold_sql": "SELECT course_description FROM Courses WHERE course_name = 'math';", "gold_result_hash": "f1e84fc279b41f73", "difficulty": "easy"}
{"id": "spider_dev_0512", "db_id": "student_transcripts_tracking", "question": "What are the descriptions for all the math courses?", "gold_sql": "SELECT course_description FROM Courses WHERE course_name = 'math';", "gold_result_hash": "f1e84fc279b41f73", "difficulty": "easy"}
{"id": "spider_dev_0513", "db_id": "student_transcripts_tracking", "question": "What is the zip code of the address in the city Port Chelsea?", "gold_sql": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea';", "gold_result_hash": "c5a0bc35b4a73439", "difficulty": "easy"}
{"id": "spider_dev_0514", "db_id": "student_transcripts_tracking", "question": "What is the zip code for Port Chelsea?", "gold_sql": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea';", "gold_result_hash": "c5a0bc35b4a73439", "difficulty": "easy"}
{"id": "spider_dev_0515", "db_id": "student_transcripts_tracking", "question": "Which department offers the most number of degrees? List department name and id.", "gold_sql": "SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id, T2.department_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "72fa98ca41aa096c", "difficulty": "extra"}
{"id": "spider_dev_0516", "db_id": "student_transcripts_tracking", "question": "What is the name and id of the department with the most number of degrees ?", "gold_sql": "SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id, t2.department_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "72fa98ca41aa096c", "difficulty": "extra"}
{"id": "spider_dev_0517", "db_id": "student_transcripts_tracking", "question": "How many departments offer any degree?", "gold_sql": "SELECT COUNT(DISTINCT department_id) FROM Degree_Programs;", "gold_result_hash": "be5384e286c3c135", "difficulty": "easy"}
{"id": "spider_dev_0518", "db_id": "student_transcripts_tracking", "question": "How many different departments offer degrees?", "gold_sql": "SELECT COUNT(DISTINCT department_id) FROM Degree_Programs;", "gold_result_hash": "be5384e286c3c135", "difficulty": "easy"}
{"id": "spider_dev_0519", "db_id": "student_transcripts_tracking", "question": "How many different degree names are offered?", "gold_sql": "SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs;", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_0520", "db_id": "student_transcripts_tracking", "question": "How many different degrees are offered?", "gold_sql": "SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs;", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_0521", "db_id": "student_transcripts_tracking", "question": "How many degrees does the engineering department offer?", "gold_sql": "SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer';", "gold_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0522", "db_id": "student_transcripts_tracking", "question": "How many degrees does the engineering department have?", "gold_sql": "SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer';", "gold_result_hash": "577c6170c3073977", "difficulty": "medium"}
{"id": "spider_dev_0523", "db_id": "student_transcripts_tracking", "question": "What are the names and descriptions of all the sections?", "gold_sql": "SELECT section_name, section_description FROM Sections;", "gold_result_hash": "6c81ca3e7574fb28", "difficulty": "medium"}
{"id": "spider_dev_0524", "db_id": "student_transcripts_tracking", "question": "What are the names and descriptions for all the sections?", "gold_sql": "SELECT section_name, section_description FROM Sections;", "gold_result_hash": "6c81ca3e7574fb28", "difficulty": "medium"}
{"id": "spider_dev_0525", "db_id": "student_transcripts_tracking", "question": "What are the names and id of courses having at most 2 sections?", "gold_sql": "SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id, T1.course_name HAVING COUNT(*) <= 2;", "gold_result_hash": "1611b159bee78c6d", "difficulty": "medium"}
{"id": "spider_dev_0526", "db_id": "student_transcripts_tracking", "question": "What are the names and ids of every course with less than 2 sections?", "gold_sql": "SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id, T1.course_name HAVING COUNT(*) <= 2;", "gold_result_hash": "1611b159bee78c6d", "difficulty": "medium"}
{"id": "spider_dev_0527", "db_id": "student_transcripts_tracking", "question": "List the section_name in reversed lexicographical order.", "gold_sql": "SELECT section_name FROM Sections ORDER BY section_name DESC;", "gold_result_hash": "034e1899d5201ba9", "difficulty": "easy"}
{"id": "spider_dev_0528", "db_id": "student_transcripts_tracking", "question": "What are the names of the sections in reverse alphabetical order?", "gold_sql": "SELECT section_name FROM Sections ORDER BY section_name DESC;", "gold_result_hash": "034e1899d5201ba9", "difficulty": "easy"}
{"id": "spider_dev_0529", "db_id": "student_transcripts_tracking", "question": "What is the semester which most student registered in? Show both the name and the id.", "gold_sql": "SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id, T1.semester_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "903c1f845a90559a", "difficulty": "extra"}
{"id": "spider_dev_0530", "db_id": "student_transcripts_tracking", "question": "For each semester, what is the name and id of the one with the most students registered?", "gold_sql": "SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id, T1.semester_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "903c1f845a90559a", "difficulty": "extra"}
{"id": "spider_dev_0531", "db_id": "student_transcripts_tracking", "question": "What is the description of the department whose name has the substring the computer?", "gold_sql": "SELECT department_description FROM Departments WHERE department_name ILIKE '%computer%';", "gold_result_hash": "e4fca80ee376b451", "difficulty": "medium"}
{"id": "spider_dev_0532", "db_id": "student_transcripts_tracking", "question": "What is the department description for the one whose name has the word computer?", "gold_sql": "SELECT department_description FROM Departments WHERE department_name ILIKE '%computer%';", "gold_result_hash": "e4fca80ee376b451", "difficulty": "medium"}
{"id": "spider_dev_0533", "db_id": "student_transcripts_tracking", "question": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", "gold_sql": "SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id, T1.first_name, T1.middle_name, T1.last_name HAVING COUNT(*) = 2;", "gold_result_hash": "50e48165fbc18cf0", "difficulty": "medium"}
{"id": "spider_dev_0534", "db_id": "student_transcripts_tracking", "question": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?", "gold_sql": "SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id, T1.first_name, T1.middle_name, T1.last_name HAVING COUNT(*) = 2;", "gold_result_hash": "50e48165fbc18cf0", "difficulty": "medium"}
{"id": "spider_dev_0535", "db_id": "student_transcripts_tracking", "question": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.", "gold_sql": "SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor';", "gold_result_hash": "b7635c8236f78a92", "difficulty": "hard"}
{"id": "spider_dev_0536", "db_id": "student_transcripts_tracking", "question": "What are the first, middle, and last names for everybody enrolled in a Bachelors program?", "gold_sql": "SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor';", "gold_result_hash": "b7635c8236f78a92", "difficulty": "hard"}
{"id": "spider_dev_0537", "db_id": "student_transcripts_tracking", "question": "Find the kind of program which most number of students are enrolled in?", "gold_sql": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "390e8ab6180c6ff8", "difficulty": "extra"}
{"id": "spider_dev_0538", "db_id": "student_transcripts_tracking", "question": "What is the degree summary name that has the most number of students enrolled?", "gold_sql": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "390e8ab6180c6ff8", "difficulty": "extra"}
{"id": "spider_dev_0539", "db_id": "student_transcripts_tracking", "question": "Find the program which most number of students are enrolled in. List both the id and the summary.", "gold_sql": "SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id, T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "5d63501b7debc435", "difficulty": "extra"}
{"id": "spider_dev_0540", "db_id": "student_transcripts_tracking", "question": "What is the program id and the summary of the degree that has the most students enrolled?", "gold_sql": "SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id, T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "5d63501b7debc435", "difficulty": "extra"}
{"id": "spider_dev_0541", "db_id": "student_transcripts_tracking", "question": "Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.", "gold_sql": "SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id, T1.first_name, T1.middle_name, T1.last_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "92f39ddc16e0605a", "difficulty": "extra"}
{"id": "spider_dev_0542", "db_id": "student_transcripts_tracking", "question": "What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?", "gold_sql": "SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id, T1.first_name, T1.middle_name, T1.last_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "92f39ddc16e0605a", "difficulty": "extra"}
{"id": "spider_dev_0543", "db_id": "student_transcripts_tracking", "question": "Which semesters do not have any student enrolled? List the semester name.", "gold_sql": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN (SELECT semester_id FROM Student_Enrolment);", "gold_result_hash": "0fbef7c01bbd4278", "difficulty": "hard"}
{"id": "spider_dev_0544", "db_id": "student_transcripts_tracking", "question": "What is the name of the semester with no students enrolled?", "gold_sql": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN (SELECT semester_id FROM Student_Enrolment);", "gold_result_hash": "0fbef7c01bbd4278", "difficulty": "hard"}
{"id": "spider_dev_0545", "db_id": "student_transcripts_tracking", "question": "What are all the course names of the courses which ever have students enrolled in?", "gold_sql": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id;", "gold_result_hash": "fd9d03ffa227e459", "difficulty": "easy"}
{"id": "spider_dev_0546", "db_id": "student_transcripts_tracking", "question": "What are the names of all courses that have some students enrolled?", "gold_sql": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id;", "gold_result_hash": "fd9d03ffa227e459", "difficulty": "easy"}
{"id": "spider_dev_0549", "db_id": "student_transcripts_tracking", "question": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.", "gold_sql": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id;", "gold_result_hash": "5faead3fc2ea3d47", "difficulty": "extra"}
{"id": "spider_dev_0550", "db_id": "student_transcripts_tracking", "question": "What are the last name of the students who live in North Carolina but have not registered in any degree programs?", "gold_sql": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id;", "gold_result_hash": "5faead3fc2ea3d47", "difficulty": "extra"}
{"id": "spider_dev_0551", "db_id": "student_transcripts_tracking", "question": "Show the date and id of the transcript with at least 2 course results.", "gold_sql": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id, T2.transcript_date HAVING COUNT(*) >= 2;", "gold_result_hash": "fdbb3113863774a5", "difficulty": "medium"}
{"id": "spider_dev_0552", "db_id": "student_transcripts_tracking", "question": "What is the date and id of the transcript with at least 2 courses listed?", "gold_sql": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id, T2.transcript_date HAVING COUNT(*) >= 2;", "gold_result_hash": "fdbb3113863774a5", "difficulty": "medium"}
{"id": "spider_dev_0553", "db_id": "student_transcripts_tracking", "question": "What is the phone number of the man with the first name Timmothy and the last name Ward?", "gold_sql": "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward';", "gold_result_hash": "15a7a4154c2587c7", "difficulty": "medium"}
{"id": "spider_dev_0554", "db_id": "student_transcripts_tracking", "question": "What is the mobile phone number of the student named Timmothy Ward ?", "gold_sql": "SELECT cell_mobile_number FROM students WHERE first_name = 'timmothy' AND last_name = 'ward';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0555", "db_id": "student_transcripts_tracking", "question": "Who is the first student to register? List the first name, middle name and last name.", "gold_sql": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1;", "gold_result_hash": "cf7e7798a631802b", "difficulty": "medium"}
{"id": "spider_dev_0556", "db_id": "student_transcripts_tracking", "question": "What is the first, middle, and last name of the first student to register?", "gold_sql": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1;", "gold_result_hash": "cf7e7798a631802b", "difficulty": "medium"}
{"id": "spider_dev_0557", "db_id": "student_transcripts_tracking", "question": "Who is the earliest graduate of the school? List the first name, middle name and last name.", "gold_sql": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left ASC LIMIT 1;", "gold_result_hash": "cf7e7798a631802b", "difficulty": "medium"}
{"id": "spider_dev_0558", "db_id": "student_transcripts_tracking", "question": "What is the first, middle, and last name of the earliest school graduate?", "gold_sql": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left ASC LIMIT 1;", "gold_result_hash": "cf7e7798a631802b", "difficulty": "medium"}
{"id": "spider_dev_0559", "db_id": "student_transcripts_tracking", "question": "Whose permanent address is different from his or her current address? List his or her first name.", "gold_sql": "SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id;", "gold_result_hash": "512d103206b3efcb", "difficulty": "easy"}
{"id": "spider_dev_0560", "db_id": "student_transcripts_tracking", "question": "What is the first name of the student whose permanent address is different from his or her current one?", "gold_sql": "SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id;", "gold_result_hash": "512d103206b3efcb", "difficulty": "easy"}
{"id": "spider_dev_0561", "db_id": "student_transcripts_tracking", "question": "Which address holds the most number of students currently? List the address id and all lines.", "gold_sql": "SELECT T1.address_id, T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id, T1.line_1, T1.line_2 ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "dfee2345c3b87201", "difficulty": "extra"}
{"id": "spider_dev_0562", "db_id": "student_transcripts_tracking", "question": "What is the id, line 1, and line 2 of the address with the most students?", "gold_sql": "SELECT T1.address_id, T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id, T1.line_1, T1.line_2 ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "dfee2345c3b87201", "difficulty": "extra"}
{"id": "spider_dev_0565", "db_id": "student_transcripts_tracking", "question": "When is the first transcript released? List the date and details.", "gold_sql": "SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1;", "gold_result_hash": "9b501baa9edb3129", "difficulty": "medium"}
{"id": "spider_dev_0566", "db_id": "student_transcripts_tracking", "question": "What is the earliest date of a transcript release, and what details can you tell me?", "gold_sql": "SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1;", "gold_result_hash": "9b501baa9edb3129", "difficulty": "medium"}
{"id": "spider_dev_0567", "db_id": "student_transcripts_tracking", "question": "How many transcripts are released?", "gold_sql": "SELECT COUNT(*) FROM Transcripts;", "gold_result_hash": "d0673151d4ee94d3", "difficulty": "easy"}
{"id": "spider_dev_0568", "db_id": "student_transcripts_tracking", "question": "How many transcripts are listed?", "gold_sql": "SELECT COUNT(*) FROM Transcripts;", "gold_result_hash": "d0673151d4ee94d3", "difficulty": "easy"}
{"id": "spider_dev_0569", "db_id": "student_transcripts_tracking", "question": "What is the last transcript release date?", "gold_sql": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1;", "gold_result_hash": "b404cdd8876b507b", "difficulty": "medium"}
{"id": "spider_dev_0570", "db_id": "student_transcripts_tracking", "question": "When was the last transcript released?", "gold_sql": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1;", "gold_result_hash": "b404cdd8876b507b", "difficulty": "medium"}
{"id": "spider_dev_0571", "db_id": "student_transcripts_tracking", "question": "How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.", "gold_sql": "SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "9f119771847e13cc", "difficulty": "hard"}
{"id": "spider_dev_0572", "db_id": "student_transcripts_tracking", "question": "What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?", "gold_sql": "SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "9f119771847e13cc", "difficulty": "hard"}
{"id": "spider_dev_0574", "db_id": "student_transcripts_tracking", "question": "What is the date and id of the transcript with the least number of results?", "gold_sql": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id, T2.transcript_date ORDER BY COUNT(*) ASC LIMIT 1;", "gold_result_hash": "9cbc4e278dcb6b44", "difficulty": "extra"}
{"id": "spider_dev_0575", "db_id": "student_transcripts_tracking", "question": "Find the semester when both Master students and Bachelor students got enrolled in.", "gold_sql": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor';", "gold_result_hash": "86a9d211082f1975", "difficulty": "extra"}
{"id": "spider_dev_0576", "db_id": "student_transcripts_tracking", "question": "What is the id of the semester that had both Masters and Bachelors students enrolled?", "gold_sql": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor';", "gold_result_hash": "86a9d211082f1975", "difficulty": "extra"}
{"id": "spider_dev_0577", "db_id": "student_transcripts_tracking", "question": "How many different addresses do the students currently live?", "gold_sql": "SELECT COUNT(DISTINCT current_address_id) FROM Students;", "gold_result_hash": "2aabc6d2c38cc38b", "difficulty": "easy"}
{"id": "spider_dev_0578", "db_id": "student_transcripts_tracking", "question": "What are the different addresses that have students living there?", "gold_sql": "SELECT COUNT(DISTINCT current_address_id) FROM Students;", "gold_result_hash": "2aabc6d2c38cc38b", "difficulty": "easy"}
{"id": "spider_dev_0579", "db_id": "student_transcripts_tracking", "question": "List all the student details in reversed lexicographical order.", "gold_sql": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC;", "gold_result_hash": "159488a233d8f1ba", "difficulty": "easy"}
{"id": "spider_dev_0580", "db_id": "student_transcripts_tracking", "question": "What other details can you tell me about students in reverse alphabetical order?", "gold_sql": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC;", "gold_result_hash": "159488a233d8f1ba", "difficulty": "easy"}
{"id": "spider_dev_0581", "db_id": "student_transcripts_tracking", "question": "Describe the section h.", "gold_sql": "SELECT section_description FROM Sections WHERE section_name = 'h';", "gold_result_hash": "31624e8402626355", "difficulty": "easy"}
{"id": "spider_dev_0582", "db_id": "student_transcripts_tracking", "question": "What is the description for the section named h?", "gold_sql": "SELECT section_description FROM Sections WHERE section_name = 'h';", "gold_result_hash": "31624e8402626355", "difficulty": "easy"}
{"id": "spider_dev_0583", "db_id": "student_transcripts_tracking", "question": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .", "gold_sql": "SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582';", "gold_result_hash": "d10a900aa1e53b9f", "difficulty": "hard"}
{"id": "spider_dev_0584", "db_id": "student_transcripts_tracking", "question": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?", "gold_sql": "SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582';", "gold_result_hash": "d10a900aa1e53b9f", "difficulty": "hard"}
{"id": "spider_dev_0585", "db_id": "tvshow", "question": "List the title of all cartoons in alphabetical order.", "gold_sql": "SELECT Title FROM Cartoon ORDER BY title;", "gold_result_hash": "d55e5a77cc9fa005", "difficulty": "easy"}
{"id": "spider_dev_0586", "db_id": "tvshow", "question": "What are the titles of the cartoons sorted alphabetically?", "gold_sql": "SELECT Title FROM Cartoon ORDER BY title;", "gold_result_hash": "d55e5a77cc9fa005", "difficulty": "easy"}
{"id": "spider_dev_0587", "db_id": "tvshow", "question": "List all cartoon directed by \"Ben Jones\".", "gold_sql": "SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones';", "gold_result_hash": "50b4a3f7b0643064", "difficulty": "easy"}
{"id": "spider_dev_0588", "db_id": "tvshow", "question": "What are the names of all cartoons directed by Ben Jones?", "gold_sql": "SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones';", "gold_result_hash": "50b4a3f7b0643064", "difficulty": "easy"}
{"id": "spider_dev_0589", "db_id": "tvshow", "question": "How many cartoons were written by \"Joseph Kuhr\"?", "gold_sql": "SELECT COUNT(*) FROM Cartoon WHERE Written_by = 'Joseph Kuhr';", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "easy"}
{"id": "spider_dev_0590", "db_id": "tvshow", "question": "What is the number of cartoones written by Joseph Kuhr?", "gold_sql": "SELECT COUNT(*) FROM Cartoon WHERE Written_by = 'Joseph Kuhr';", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "easy"}
{"id": "spider_dev_0591", "db_id": "tvshow", "question": "list all cartoon titles and their directors ordered by their air date", "gold_sql": "SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date;", "gold_result_hash": "4340c42c70dd7386", "difficulty": "medium"}
{"id": "spider_dev_0592", "db_id": "tvshow", "question": "What is the name and directors of all the cartoons that are ordered by air date?", "gold_sql": "SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date;", "gold_result_hash": "4340c42c70dd7386", "difficulty": "medium"}
{"id": "spider_dev_0593", "db_id": "tvshow", "question": "List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\".", "gold_sql": "SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones' OR Directed_by = 'Brandon Vietti';", "gold_result_hash": "5660af24a3599798", "difficulty": "medium"}
{"id": "spider_dev_0594", "db_id": "tvshow", "question": "What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?", "gold_sql": "SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones' OR Directed_by = 'Brandon Vietti';", "gold_result_hash": "5660af24a3599798", "difficulty": "medium"}
{"id": "spider_dev_0595", "db_id": "tvshow", "question": "Which country has the most of TV Channels? List the country and number of TV Channels it has.", "gold_sql": "SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "48af841f13d10fa8", "difficulty": "hard"}
{"id": "spider_dev_0596", "db_id": "tvshow", "question": "What is the country with the most number of TV Channels and how many does it have?", "gold_sql": "SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "48af841f13d10fa8", "difficulty": "hard"}
{"id": "spider_dev_0597", "db_id": "tvshow", "question": "List the number of different series names and contents in the TV Channel table.", "gold_sql": "SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel;", "gold_result_hash": "59bef9fc3ab46c55", "difficulty": "medium"}
{"id": "spider_dev_0598", "db_id": "tvshow", "question": "How many different series and contents are listed in the TV Channel table?", "gold_sql": "SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel;", "gold_result_hash": "59bef9fc3ab46c55", "difficulty": "medium"}
{"id": "spider_dev_0599", "db_id": "tvshow", "question": "What is the content of TV Channel with serial name \"Sky Radio\"?", "gold_sql": "SELECT Content FROM TV_Channel WHERE series_name = 'Sky Radio';", "gold_result_hash": "acd12931761ce5b7", "difficulty": "easy"}
{"id": "spider_dev_0600", "db_id": "tvshow", "question": "What is the content of the series Sky Radio?", "gold_sql": "SELECT Content FROM TV_Channel WHERE series_name = 'Sky Radio';", "gold_result_hash": "acd12931761ce5b7", "difficulty": "easy"}
{"id": "spider_dev_0601", "db_id": "tvshow", "question": "What is the Package Option of TV Channel with serial name \"Sky Radio\"?", "gold_sql": "SELECT Package_Option FROM TV_Channel WHERE series_name = 'Sky Radio';", "gold_result_hash": "537a5aef43499628", "difficulty": "easy"}
{"id": "spider_dev_0602", "db_id": "tvshow", "question": "What are the Package Options of the TV Channels whose series names are Sky Radio?", "gold_sql": "SELECT Package_Option FROM TV_Channel WHERE series_name = 'Sky Radio';", "gold_result_hash": "537a5aef43499628", "difficulty": "easy"}
{"id": "spider_dev_0603", "db_id": "tvshow", "question": "How many TV Channel using language English?", "gold_sql": "SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = 'English';", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_0604", "db_id": "tvshow", "question": "How many TV Channels use the English language?", "gold_sql": "SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = 'English';", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_0605", "db_id": "tvshow", "question": "List the language used least number of TV Channel. List language and number of TV Channel.", "gold_sql": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) ASC LIMIT 1;", "gold_result_hash": "31066966b3dc15f2", "difficulty": "hard"}
{"id": "spider_dev_0606", "db_id": "tvshow", "question": "What are the languages used by the least number of TV Channels and how many channels use it?", "gold_sql": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) ASC LIMIT 1;", "gold_result_hash": "31066966b3dc15f2", "difficulty": "hard"}
{"id": "spider_dev_0607", "db_id": "tvshow", "question": "List each language and the number of TV Channels using it.", "gold_sql": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE;", "gold_result_hash": "852eb7c8597b8f32", "difficulty": "medium"}
{"id": "spider_dev_0608", "db_id": "tvshow", "question": "For each language, list the number of TV Channels that use it.", "gold_sql": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE;", "gold_result_hash": "852eb7c8597b8f32", "difficulty": "medium"}
{"id": "spider_dev_0609", "db_id": "tvshow", "question": "What is the TV Channel that shows the cartoon \"The Rise of the Blue Beetle!\"? List the TV Channel's series name.", "gold_sql": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = 'The Rise of the Blue Beetle!';", "gold_result_hash": "cbfe2ce24a8dfe28", "difficulty": "medium"}
{"id": "spider_dev_0610", "db_id": "tvshow", "question": "What is the series name of the TV Channel that shows the cartoon \"The Rise of the Blue Beetle\"?", "gold_sql": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = 'The Rise of the Blue Beetle!';", "gold_result_hash": "cbfe2ce24a8dfe28", "difficulty": "medium"}
{"id": "spider_dev_0611", "db_id": "tvshow", "question": "List the title of all Cartoons showed on TV Channel with series name \"Sky Radio\".", "gold_sql": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio';", "gold_result_hash": "d04edae5de56b9ec", "difficulty": "medium"}
{"id": "spider_dev_0612", "db_id": "tvshow", "question": "What is the title of all the cartools that are on the TV Channel with the series name \"Sky Radio\"?", "gold_sql": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio';", "gold_result_hash": "d04edae5de56b9ec", "difficulty": "medium"}
{"id": "spider_dev_0613", "db_id": "tvshow", "question": "List the Episode of all TV series sorted by rating.", "gold_sql": "SELECT Episode FROM TV_series ORDER BY rating;", "gold_result_hash": "1bb990d51c54a312", "difficulty": "easy"}
{"id": "spider_dev_0614", "db_id": "tvshow", "question": "What are all of the episodes ordered by ratings?", "gold_sql": "SELECT Episode FROM TV_series ORDER BY rating;", "gold_result_hash": "1bb990d51c54a312", "difficulty": "easy"}
{"id": "spider_dev_0615", "db_id": "tvshow", "question": "List top 3 highest Rating TV series. List the TV series's Episode and Rating.", "gold_sql": "SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", "gold_result_hash": "b7f08e71c720c70f", "difficulty": "medium"}
{"id": "spider_dev_0616", "db_id": "tvshow", "question": "What are 3 most highly rated episodes in the TV series table and what were those ratings?", "gold_sql": "SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", "gold_result_hash": "b7f08e71c720c70f", "difficulty": "medium"}
{"id": "spider_dev_0617", "db_id": "tvshow", "question": "What is minimum and maximum share of TV series?", "gold_sql": "SELECT MAX(SHARE), MIN(SHARE) FROM TV_series;", "gold_result_hash": "7f3e261fd4f68d4b", "difficulty": "medium"}
{"id": "spider_dev_0618", "db_id": "tvshow", "question": "What is the maximum and minimum share for the TV series?", "gold_sql": "SELECT MAX(SHARE), MIN(SHARE) FROM TV_series;", "gold_result_hash": "7f3e261fd4f68d4b", "difficulty": "medium"}
{"id": "spider_dev_0619", "db_id": "tvshow", "question": "What is the air date of TV series with Episode \"A Love of a Lifetime\"?", "gold_sql": "SELECT Air_Date FROM TV_series WHERE Episode = 'A Love of a Lifetime';", "gold_result_hash": "5cced9d5a77eb1c1", "difficulty": "easy"}
{"id": "spider_dev_0620", "db_id": "tvshow", "question": "When did the episode \"A Love of a Lifetime\" air?", "gold_sql": "SELECT Air_Date FROM TV_series WHERE Episode = 'A Love of a Lifetime';", "gold_result_hash": "5cced9d5a77eb1c1", "difficulty": "easy"}
{"id": "spider_dev_0621", "db_id": "tvshow", "question": "What is Weekly Rank of TV series with Episode \"A Love of a Lifetime\"?", "gold_sql": "SELECT Weekly_Rank FROM TV_series WHERE Episode = 'A Love of a Lifetime';", "gold_result_hash": "b8946422a82add80", "difficulty": "easy"}
{"id": "spider_dev_0622", "db_id": "tvshow", "question": "What is the weekly rank for the episode \"A Love of a Lifetime\"?", "gold_sql": "SELECT Weekly_Rank FROM TV_series WHERE Episode = 'A Love of a Lifetime';", "gold_result_hash": "b8946422a82add80", "difficulty": "easy"}
{"id": "spider_dev_0623", "db_id": "tvshow", "question": "What is the TV Channel of TV series with Episode \"A Love of a Lifetime\"? List the TV Channel's series name.", "gold_sql": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = 'A Love of a Lifetime';", "gold_result_hash": "cbfe2ce24a8dfe28", "difficulty": "medium"}
{"id": "spider_dev_0624", "db_id": "tvshow", "question": "What is the name of the series that has the episode \"A Love of a Lifetime\"?", "gold_sql": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = 'A Love of a Lifetime';", "gold_result_hash": "cbfe2ce24a8dfe28", "difficulty": "medium"}
{"id": "spider_dev_0625", "db_id": "tvshow", "question": "List the Episode of all TV series showed on TV Channel with series name \"Sky Radio\".", "gold_sql": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio';", "gold_result_hash": "b885de09b4a064d3", "difficulty": "medium"}
{"id": "spider_dev_0626", "db_id": "tvshow", "question": "What is the episode for the TV series named \"Sky Radio\"?", "gold_sql": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio';", "gold_result_hash": "b885de09b4a064d3", "difficulty": "medium"}
{"id": "spider_dev_0627", "db_id": "tvshow", "question": "Find the number of cartoons directed by each of the listed directors.", "gold_sql": "SELECT COUNT(*), Directed_by FROM cartoon GROUP BY Directed_by;", "gold_result_hash": "38c9e447dc0f15fb", "difficulty": "medium"}
{"id": "spider_dev_0628", "db_id": "tvshow", "question": "How many cartoons did each director create?", "gold_sql": "SELECT COUNT(*), Directed_by FROM cartoon GROUP BY Directed_by;", "gold_result_hash": "38c9e447dc0f15fb", "difficulty": "medium"}
{"id": "spider_dev_0629", "db_id": "tvshow", "question": "Find the production code and channel of the most recently aired cartoon .", "gold_sql": "SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1;", "gold_result_hash": "016c8bace093f287", "difficulty": "medium"}
{"id": "spider_dev_0630", "db_id": "tvshow", "question": "What is the produdction code and channel of the most recent cartoon ?", "gold_sql": "SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1;", "gold_result_hash": "016c8bace093f287", "difficulty": "medium"}
{"id": "spider_dev_0631", "db_id": "tvshow", "question": "Find the package choice and series name of the TV channel that has high definition TV.", "gold_sql": "SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = 'yes';", "gold_result_hash": "3ccbc26cc62cb24e", "difficulty": "medium"}
{"id": "spider_dev_0632", "db_id": "tvshow", "question": "What are the package options and the name of the series for the TV Channel that supports high definition TV?", "gold_sql": "SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = 'yes';", "gold_result_hash": "3ccbc26cc62cb24e", "difficulty": "medium"}
{"id": "spider_dev_0633", "db_id": "tvshow", "question": "which countries' tv channels are playing some cartoon written by Todd Casey?", "gold_sql": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey';", "gold_result_hash": "bb346fc811413c63", "difficulty": "medium"}
{"id": "spider_dev_0634", "db_id": "tvshow", "question": "What are the countries that have cartoons on TV that were written by Todd Casey?", "gold_sql": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey';", "gold_result_hash": "bb346fc811413c63", "difficulty": "medium"}
{"id": "spider_dev_0635", "db_id": "tvshow", "question": "which countries' tv channels are not playing any cartoon written by Todd Casey?", "gold_sql": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey';", "gold_result_hash": "0d22fe8a71bf9f6b", "difficulty": "hard"}
{"id": "spider_dev_0636", "db_id": "tvshow", "question": "What are the countries that are not playing cartoons written by Todd Casey?", "gold_sql": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey';", "gold_result_hash": "0d22fe8a71bf9f6b", "difficulty": "hard"}
{"id": "spider_dev_0637", "db_id": "tvshow", "question": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?", "gold_sql": "SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones';", "gold_result_hash": "ba31a432b68d83d8", "difficulty": "extra"}
{"id": "spider_dev_0638", "db_id": "tvshow", "question": "What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang?", "gold_sql": "SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones';", "gold_result_hash": "ba31a432b68d83d8", "difficulty": "extra"}
{"id": "spider_dev_0639", "db_id": "tvshow", "question": "find the pixel aspect ratio and nation of the tv channels that do not use English.", "gold_sql": "SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE <> 'English';", "gold_result_hash": "b58ad0a3481c599e", "difficulty": "medium"}
{"id": "spider_dev_0640", "db_id": "tvshow", "question": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English?", "gold_sql": "SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE <> 'English';", "gold_result_hash": "b58ad0a3481c599e", "difficulty": "medium"}
{"id": "spider_dev_0643", "db_id": "tvshow", "question": "find the id of tv channels that do not play any cartoon directed by Ben Jones.", "gold_sql": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones';", "gold_result_hash": "96e135054ee47256", "difficulty": "hard"}
{"id": "spider_dev_0644", "db_id": "tvshow", "question": "What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?", "gold_sql": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones';", "gold_result_hash": "96e135054ee47256", "difficulty": "hard"}
{"id": "spider_dev_0645", "db_id": "tvshow", "question": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones.", "gold_sql": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones');", "gold_result_hash": "4b2b8b9dca58c14d", "difficulty": "hard"}
{"id": "spider_dev_0646", "db_id": "tvshow", "question": "What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?", "gold_sql": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones');", "gold_result_hash": "4b2b8b9dca58c14d", "difficulty": "hard"}
{"id": "spider_dev_0647", "db_id": "poker_player", "question": "How many poker players are there?", "gold_sql": "SELECT COUNT(*) FROM poker_player;", "gold_result_hash": "467016eb267f6bb0", "difficulty": "easy"}
{"id": "spider_dev_0648", "db_id": "poker_player", "question": "Count the number of poker players.", "gold_sql": "SELECT COUNT(*) FROM poker_player;", "gold_result_hash": "467016eb267f6bb0", "difficulty": "easy"}
{"id": "spider_dev_0649", "db_id": "poker_player", "question": "List the earnings of poker players in descending order.", "gold_sql": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC;", "gold_result_hash": "badd747eb8ad435a", "difficulty": "easy"}
{"id": "spider_dev_0650", "db_id": "poker_player", "question": "What are the earnings of poker players, ordered descending by value?", "gold_sql": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC;", "gold_result_hash": "badd747eb8ad435a", "difficulty": "easy"}
{"id": "spider_dev_0651", "db_id": "poker_player", "question": "List the final tables made and the best finishes of poker players.", "gold_sql": "SELECT Final_Table_Made, Best_Finish FROM poker_player;", "gold_result_hash": "c0fda2284af360d3", "difficulty": "medium"}
{"id": "spider_dev_0652", "db_id": "poker_player", "question": "What are the final tables made and best finishes for all poker players?", "gold_sql": "SELECT Final_Table_Made, Best_Finish FROM poker_player;", "gold_result_hash": "c0fda2284af360d3", "difficulty": "medium"}
{"id": "spider_dev_0653", "db_id": "poker_player", "question": "What is the average earnings of poker players?", "gold_sql": "SELECT AVG(Earnings) FROM poker_player;", "gold_result_hash": "1ed089fdf7f9db8d", "difficulty": "easy"}
{"id": "spider_dev_0654", "db_id": "poker_player", "question": "Return the average earnings across all poker players.", "gold_sql": "SELECT AVG(Earnings) FROM poker_player;", "gold_result_hash": "1ed089fdf7f9db8d", "difficulty": "easy"}
{"id": "spider_dev_0655", "db_id": "poker_player", "question": "What is the money rank of the poker player with the highest earnings?", "gold_sql": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1;", "gold_result_hash": "46c9241f885899f3", "difficulty": "medium"}
{"id": "spider_dev_0656", "db_id": "poker_player", "question": "Return the money rank of the player with the greatest earnings.", "gold_sql": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1;", "gold_result_hash": "46c9241f885899f3", "difficulty": "medium"}
{"id": "spider_dev_0657", "db_id": "poker_player", "question": "What is the maximum number of final tables made among poker players with earnings less than 200000?", "gold_sql": "SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000;", "gold_result_hash": "a316d492419cf895", "difficulty": "easy"}
{"id": "spider_dev_0658", "db_id": "poker_player", "question": "Return the maximum final tables made across all poker players who have earnings below 200000.", "gold_sql": "SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000;", "gold_result_hash": "a316d492419cf895", "difficulty": "easy"}
{"id": "spider_dev_0659", "db_id": "poker_player", "question": "What are the names of poker players?", "gold_sql": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID;", "gold_result_hash": "9c4942330922c0d6", "difficulty": "easy"}
{"id": "spider_dev_0660", "db_id": "poker_player", "question": "Return the names of all the poker players.", "gold_sql": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID;", "gold_result_hash": "9c4942330922c0d6", "difficulty": "easy"}
{"id": "spider_dev_0661", "db_id": "poker_player", "question": "What are the names of poker players whose earnings is higher than 300000?", "gold_sql": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000;", "gold_result_hash": "2282b73ef49657b4", "difficulty": "medium"}
{"id": "spider_dev_0662", "db_id": "poker_player", "question": "Give the names of poker players who have earnings above 300000.", "gold_sql": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000;", "gold_result_hash": "2282b73ef49657b4", "difficulty": "medium"}
{"id": "spider_dev_0663", "db_id": "poker_player", "question": "List the names of poker players ordered by the final tables made in ascending order.", "gold_sql": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made;", "gold_result_hash": "91a5c5d3d67b216d", "difficulty": "medium"}
{"id": "spider_dev_0664", "db_id": "poker_player", "question": "What are the names of poker players, ordered ascending by the number of final tables they have made?", "gold_sql": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made;", "gold_result_hash": "91a5c5d3d67b216d", "difficulty": "medium"}
{"id": "spider_dev_0665", "db_id": "poker_player", "question": "What is the birth date of the poker player with the lowest earnings?", "gold_sql": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1;", "gold_result_hash": "7915e1d0bf81d316", "difficulty": "hard"}
{"id": "spider_dev_0666", "db_id": "poker_player", "question": "Return the birth date of the poker player with the lowest earnings.", "gold_sql": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1;", "gold_result_hash": "7915e1d0bf81d316", "difficulty": "hard"}
{"id": "spider_dev_0667", "db_id": "poker_player", "question": "What is the money rank of the tallest poker player?", "gold_sql": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1;", "gold_result_hash": "acd1ff16cf509108", "difficulty": "hard"}
{"id": "spider_dev_0668", "db_id": "poker_player", "question": "Return the money rank of the poker player with the greatest height.", "gold_sql": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1;", "gold_result_hash": "acd1ff16cf509108", "difficulty": "hard"}
{"id": "spider_dev_0669", "db_id": "poker_player", "question": "What is the average earnings of poker players with height higher than 200?", "gold_sql": "SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200;", "gold_result_hash": "427c1fe575258568", "difficulty": "medium"}
{"id": "spider_dev_0670", "db_id": "poker_player", "question": "Give average earnings of poker players who are taller than 200.", "gold_sql": "SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200;", "gold_result_hash": "427c1fe575258568", "difficulty": "medium"}
{"id": "spider_dev_0671", "db_id": "poker_player", "question": "What are the names of poker players in descending order of earnings?", "gold_sql": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC;", "gold_result_hash": "2a41e3cbb4ba34c9", "difficulty": "medium"}
{"id": "spider_dev_0672", "db_id": "poker_player", "question": "Return the names of poker players sorted by their earnings descending.", "gold_sql": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC;", "gold_result_hash": "2a41e3cbb4ba34c9", "difficulty": "medium"}
{"id": "spider_dev_0673", "db_id": "poker_player", "question": "What are different nationalities of people and the corresponding number of people from each nation?", "gold_sql": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality;", "gold_result_hash": "019394a100d32909", "difficulty": "medium"}
{"id": "spider_dev_0674", "db_id": "poker_player", "question": "How many people are there of each nationality?", "gold_sql": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality;", "gold_result_hash": "019394a100d32909", "difficulty": "medium"}
{"id": "spider_dev_0675", "db_id": "poker_player", "question": "What is the most common nationality of people?", "gold_sql": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "733f08f312e2f87f", "difficulty": "hard"}
{"id": "spider_dev_0676", "db_id": "poker_player", "question": "Give the nationality that is most common across all people.", "gold_sql": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "733f08f312e2f87f", "difficulty": "hard"}
{"id": "spider_dev_0677", "db_id": "poker_player", "question": "What are the nationalities that are shared by at least two people?", "gold_sql": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2;", "gold_result_hash": "733f08f312e2f87f", "difficulty": "easy"}
{"id": "spider_dev_0678", "db_id": "poker_player", "question": "Return the nationalities for which there are two or more people.", "gold_sql": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2;", "gold_result_hash": "733f08f312e2f87f", "difficulty": "easy"}
{"id": "spider_dev_0679", "db_id": "poker_player", "question": "List the names and birth dates of people in ascending alphabetical order of name.", "gold_sql": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC;", "gold_result_hash": "23ec07ee75d58628", "difficulty": "medium"}
{"id": "spider_dev_0680", "db_id": "poker_player", "question": "What are the names and birth dates of people, ordered by their names in alphabetical order?", "gold_sql": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC;", "gold_result_hash": "23ec07ee75d58628", "difficulty": "medium"}
{"id": "spider_dev_0681", "db_id": "poker_player", "question": "Show names of people whose nationality is not \"Russia\".", "gold_sql": "SELECT Name FROM people WHERE Nationality <> 'Russia';", "gold_result_hash": "75964fc02a7187be", "difficulty": "easy"}
{"id": "spider_dev_0682", "db_id": "poker_player", "question": "What are the names of people who are not from Russia?", "gold_sql": "SELECT Name FROM people WHERE Nationality <> 'Russia';", "gold_result_hash": "75964fc02a7187be", "difficulty": "easy"}
{"id": "spider_dev_0683", "db_id": "poker_player", "question": "List the names of people that are not poker players.", "gold_sql": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player);", "gold_result_hash": "e23a842696ab737b", "difficulty": "hard"}
{"id": "spider_dev_0684", "db_id": "poker_player", "question": "What are the names of people who do not play poker?", "gold_sql": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player);", "gold_result_hash": "e23a842696ab737b", "difficulty": "hard"}
{"id": "spider_dev_0685", "db_id": "poker_player", "question": "How many distinct nationalities are there?", "gold_sql": "SELECT COUNT(DISTINCT Nationality) FROM people;", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "easy"}
{"id": "spider_dev_0686", "db_id": "poker_player", "question": "Count the number of different nationalities.", "gold_sql": "SELECT COUNT(DISTINCT Nationality) FROM people;", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "easy"}
{"id": "spider_dev_0687", "db_id": "voter_1", "question": "How many states are there?", "gold_sql": "SELECT COUNT(*) FROM area_code_state;", "gold_result_hash": "cccee6fc58070399", "difficulty": "easy"}
{"id": "spider_dev_0688", "db_id": "voter_1", "question": "List the contestant numbers and names, ordered by contestant name descending.", "gold_sql": "SELECT contestant_number, contestant_name FROM contestants ORDER BY contestant_name DESC;", "gold_result_hash": "ea181c85ac4ccb73", "difficulty": "medium"}
{"id": "spider_dev_0689", "db_id": "voter_1", "question": "List the vote ids, phone numbers and states of all votes.", "gold_sql": "SELECT vote_id, phone_number, state FROM votes;", "gold_result_hash": "f007d37ef4a26c49", "difficulty": "medium"}
{"id": "spider_dev_0690", "db_id": "voter_1", "question": "What are the maximum and minimum values of area codes?", "gold_sql": "SELECT MAX(area_code), MIN(area_code) FROM area_code_state;", "gold_result_hash": "73c02d233c0a93d1", "difficulty": "medium"}
{"id": "spider_dev_0691", "db_id": "voter_1", "question": "What is last date created of votes from the state 'CA'?", "gold_sql": "SELECT MAX(created) FROM votes WHERE state = 'CA';", "gold_result_hash": "92894ad0d8c3f5d7", "difficulty": "easy"}
{"id": "spider_dev_0692", "db_id": "voter_1", "question": "What are the names of the contestants whose names are not 'Jessie Alloway'", "gold_sql": "SELECT contestant_name FROM contestants WHERE contestant_name <> 'Jessie Alloway';", "gold_result_hash": "a5e9d547a0919b59", "difficulty": "easy"}
{"id": "spider_dev_0693", "db_id": "voter_1", "question": "What are the distinct states and create time of all votes?", "gold_sql": "SELECT DISTINCT state, created FROM votes;", "gold_result_hash": "fae61e9bf691f70f", "difficulty": "medium"}
{"id": "spider_dev_0694", "db_id": "voter_1", "question": "What are the contestant numbers and names of the contestants who had at least two votes?", "gold_sql": "SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number, T1.contestant_name HAVING COUNT(*) >= 2;", "gold_result_hash": "73d685d190652abf", "difficulty": "medium"}
{"id": "spider_dev_0696", "db_id": "voter_1", "question": "What are the number of votes from state 'NY' or 'CA'?", "gold_sql": "SELECT COUNT(*) FROM votes WHERE state = 'NY' OR state = 'CA';", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "medium"}
{"id": "spider_dev_0697", "db_id": "voter_1", "question": "How many contestants did not get voted?", "gold_sql": "SELECT COUNT(*) FROM contestants WHERE contestant_number NOT IN (SELECT contestant_number FROM votes);", "gold_result_hash": "322acd9b0ecd66e4", "difficulty": "extra"}
{"id": "spider_dev_0698", "db_id": "voter_1", "question": "What is the area code in which the most voters voted?", "gold_sql": "SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state = T2.state GROUP BY T1.area_code ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "0dcd702b32d75266", "difficulty": "extra"}
{"id": "spider_dev_0699", "db_id": "voter_1", "question": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?", "gold_sql": "SELECT T2.created, T2.state, T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling';", "gold_result_hash": "87f9fd506c322643", "difficulty": "medium"}
{"id": "spider_dev_0700", "db_id": "voter_1", "question": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.", "gold_sql": "SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss';", "gold_result_hash": "3bcc9ee099998194", "difficulty": "extra"}
{"id": "spider_dev_0701", "db_id": "voter_1", "question": "Return the names of the contestants whose names contain the substring 'Al' .", "gold_sql": "SELECT contestant_name FROM contestants WHERE contestant_name ILIKE '%al%';", "gold_result_hash": "ef676ae637015568", "difficulty": "medium"}
{"id": "spider_dev_0702", "db_id": "world_1", "question": "What are the names of all the countries that became independent after 1950?", "gold_sql": "SELECT Name FROM country WHERE IndepYear > 1950;", "gold_result_hash": "bdf99d56f52d7b71", "difficulty": "easy"}
{"id": "spider_dev_0703", "db_id": "world_1", "question": "Give the names of the nations that were founded after 1950.", "gold_sql": "SELECT Name FROM country WHERE IndepYear > 1950;", "gold_result_hash": "bdf99d56f52d7b71", "difficulty": "easy"}
{"id": "spider_dev_0704", "db_id": "world_1", "question": "How many countries have a republic as their form of government?", "gold_sql": "SELECT COUNT(*) FROM country WHERE GovernmentForm = 'Republic';", "gold_result_hash": "c1e6b4b35efd2cd2", "difficulty": "easy"}
{"id": "spider_dev_0705", "db_id": "world_1", "question": "How many countries have governments that are republics?", "gold_sql": "SELECT COUNT(*) FROM country WHERE GovernmentForm = 'Republic';", "gold_result_hash": "c1e6b4b35efd2cd2", "difficulty": "easy"}
{"id": "spider_dev_0706", "db_id": "world_1", "question": "What is the total surface area of the countries in the Caribbean region?", "gold_sql": "SELECT SUM(SurfaceArea) FROM country WHERE Region = 'Caribbean';", "gold_result_hash": "97214beb6d8c1d4b", "difficulty": "easy"}
{"id": "spider_dev_0707", "db_id": "world_1", "question": "How much surface area do the countires in the Carribean cover together?", "gold_sql": "SELECT SUM(SurfaceArea) FROM country WHERE Region = 'Caribbean';", "gold_result_hash": "97214beb6d8c1d4b", "difficulty": "easy"}
{"id": "spider_dev_0708", "db_id": "world_1", "question": "Which continent is Anguilla in?", "gold_sql": "SELECT Continent FROM country WHERE Name = 'Anguilla';", "gold_result_hash": "23b2356747082287", "difficulty": "easy"}
{"id": "spider_dev_0709", "db_id": "world_1", "question": "What is the continent name which Anguilla belongs to?", "gold_sql": "SELECT Continent FROM country WHERE Name = 'Anguilla';", "gold_result_hash": "23b2356747082287", "difficulty": "easy"}
{"id": "spider_dev_0710", "db_id": "world_1", "question": "Which region is the city Kabul located in?", "gold_sql": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Kabul';", "gold_result_hash": "6d457514c4f63b5d", "difficulty": "medium"}
{"id": "spider_dev_0711", "db_id": "world_1", "question": "What region is Kabul in?", "gold_sql": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Kabul';", "gold_result_hash": "6d457514c4f63b5d", "difficulty": "medium"}
{"id": "spider_dev_0712", "db_id": "world_1", "question": "Which language is the most popular in Aruba?", "gold_sql": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' ORDER BY Percentage DESC LIMIT 1;", "gold_result_hash": "df973aa1726dcc84", "difficulty": "extra"}
{"id": "spider_dev_0713", "db_id": "world_1", "question": "What language is predominantly spoken in Aruba?", "gold_sql": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' ORDER BY Percentage DESC LIMIT 1;", "gold_result_hash": "df973aa1726dcc84", "difficulty": "extra"}
{"id": "spider_dev_0714", "db_id": "world_1", "question": "What are the population and life expectancies in Brazil?", "gold_sql": "SELECT Population, LifeExpectancy FROM country WHERE Name = 'Brazil';", "gold_result_hash": "7e8fa76a16576e02", "difficulty": "medium"}
{"id": "spider_dev_0715", "db_id": "world_1", "question": "Give me Brazil’s population and life expectancies.", "gold_sql": "SELECT Population, LifeExpectancy FROM country WHERE Name = 'Brazil';", "gold_result_hash": "7e8fa76a16576e02", "difficulty": "medium"}
{"id": "spider_dev_0716", "db_id": "world_1", "question": "What are the region and population of Angola?", "gold_sql": "SELECT Population, Region FROM country WHERE Name = 'Angola';", "gold_result_hash": "081f9fe3ef9632f2", "difficulty": "medium"}
{"id": "spider_dev_0717", "db_id": "world_1", "question": "What region does Angola belong to and what is its population?", "gold_sql": "SELECT Population, Region FROM country WHERE Name = 'Angola';", "gold_result_hash": "081f9fe3ef9632f2", "difficulty": "medium"}
{"id": "spider_dev_0718", "db_id": "world_1", "question": "What is the average expected life expectancy for countries in the region of Central Africa?", "gold_sql": "SELECT AVG(LifeExpectancy) FROM country WHERE Region = 'Central Africa';", "gold_result_hash": "40ac1ebd8145721c", "difficulty": "easy"}
{"id": "spider_dev_0719", "db_id": "world_1", "question": "How long is the people’s average life expectancy in Central Africa?", "gold_sql": "SELECT AVG(LifeExpectancy) FROM country WHERE Region = 'Central Africa';", "gold_result_hash": "40ac1ebd8145721c", "difficulty": "easy"}
{"id": "spider_dev_0720", "db_id": "world_1", "question": "What is the name of country that has the shortest life expectancy in Asia?", "gold_sql": "SELECT Name FROM country WHERE Continent = 'Asia' ORDER BY LifeExpectancy LIMIT 1;", "gold_result_hash": "9640b2ef3f137d57", "difficulty": "hard"}
{"id": "spider_dev_0721", "db_id": "world_1", "question": "Give the name of the country in Asia with the lowest life expectancy.", "gold_sql": "SELECT Name FROM country WHERE Continent = 'Asia' ORDER BY LifeExpectancy LIMIT 1;", "gold_result_hash": "9640b2ef3f137d57", "difficulty": "hard"}
{"id": "spider_dev_0722", "db_id": "world_1", "question": "What is the total population and maximum GNP in Asia?", "gold_sql": "SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = 'Asia';", "gold_result_hash": "f69cf95bc27b0733", "difficulty": "medium"}
{"id": "spider_dev_0723", "db_id": "world_1", "question": "How many people live in Asia, and what is the largest GNP among them?", "gold_sql": "SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = 'Asia';", "gold_result_hash": "f69cf95bc27b0733", "difficulty": "medium"}
{"id": "spider_dev_0724", "db_id": "world_1", "question": "What is the average life expectancy in African countries that are republics?", "gold_sql": "SELECT AVG(LifeExpectancy) FROM country WHERE Continent = 'Africa' AND GovernmentForm = 'Republic';", "gold_result_hash": "bc4180e9bb96cffc", "difficulty": "medium"}
{"id": "spider_dev_0725", "db_id": "world_1", "question": "Give the average life expectancy for countries in Africa which are republics?", "gold_sql": "SELECT AVG(LifeExpectancy) FROM country WHERE Continent = 'Africa' AND GovernmentForm = 'Republic';", "gold_result_hash": "bc4180e9bb96cffc", "difficulty": "medium"}
{"id": "spider_dev_0726", "db_id": "world_1", "question": "What is the total surface area of the continents Asia and Europe?", "gold_sql": "SELECT SUM(SurfaceArea) FROM country WHERE Continent = 'Asia' OR Continent = 'Europe';", "gold_result_hash": "ddfea909133b5548", "difficulty": "medium"}
{"id": "spider_dev_0727", "db_id": "world_1", "question": "Give the total surface area covered by countries in Asia or Europe.", "gold_sql": "SELECT SUM(SurfaceArea) FROM country WHERE Continent = 'Asia' OR Continent = 'Europe';", "gold_result_hash": "ddfea909133b5548", "difficulty": "medium"}
{"id": "spider_dev_0728", "db_id": "world_1", "question": "How many people live in Gelderland district?", "gold_sql": "SELECT SUM(Population) FROM city WHERE District = 'Gelderland';", "gold_result_hash": "b838cd83d05527f6", "difficulty": "easy"}
{"id": "spider_dev_0729", "db_id": "world_1", "question": "What is the total population of Gelderland district?", "gold_sql": "SELECT SUM(Population) FROM city WHERE District = 'Gelderland';", "gold_result_hash": "b838cd83d05527f6", "difficulty": "easy"}
{"id": "spider_dev_0730", "db_id": "world_1", "question": "What is the average GNP and total population in all nations whose government is US territory?", "gold_sql": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = 'US Territory';", "gold_result_hash": "1d1f1f6b723c6393", "difficulty": "medium"}
{"id": "spider_dev_0731", "db_id": "world_1", "question": "Give the mean GNP and total population of nations which are considered US territory.", "gold_sql": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = 'US Territory';", "gold_result_hash": "1d1f1f6b723c6393", "difficulty": "medium"}
{"id": "spider_dev_0732", "db_id": "world_1", "question": "How many unique languages are spoken in the world?", "gold_sql": "SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage;", "gold_result_hash": "32e3543f36a01dfd", "difficulty": "easy"}
{"id": "spider_dev_0733", "db_id": "world_1", "question": "What is the number of distinct languages used around the world?", "gold_sql": "SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage;", "gold_result_hash": "32e3543f36a01dfd", "difficulty": "easy"}
{"id": "spider_dev_0734", "db_id": "world_1", "question": "How many type of governments are in Africa?", "gold_sql": "SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = 'Africa';", "gold_result_hash": "be5384e286c3c135", "difficulty": "easy"}
{"id": "spider_dev_0735", "db_id": "world_1", "question": "How many different forms of governments are there in Africa?", "gold_sql": "SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = 'Africa';", "gold_result_hash": "be5384e286c3c135", "difficulty": "easy"}
{"id": "spider_dev_0736", "db_id": "world_1", "question": "What is the total number of languages used in Aruba?", "gold_sql": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba';", "gold_result_hash": "63e057b7b7314ff0", "difficulty": "medium"}
{"id": "spider_dev_0737", "db_id": "world_1", "question": "How many languages are spoken in Aruba?", "gold_sql": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba';", "gold_result_hash": "63e057b7b7314ff0", "difficulty": "medium"}
{"id": "spider_dev_0738", "db_id": "world_1", "question": "How many official languages does Afghanistan have?", "gold_sql": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Afghanistan' AND IsOfficial = 'T';", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "medium"}
{"id": "spider_dev_0739", "db_id": "world_1", "question": "How many official languages are spoken in Afghanistan?", "gold_sql": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Afghanistan' AND IsOfficial = 'T';", "gold_result_hash": "904a274d3d08d9d1", "difficulty": "medium"}
{"id": "spider_dev_0742", "db_id": "world_1", "question": "Which continent has the most diverse languages?", "gold_sql": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "1d7570d88fc5c0b0", "difficulty": "extra"}
{"id": "spider_dev_0743", "db_id": "world_1", "question": "Which continent speaks the most languages?", "gold_sql": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "1d7570d88fc5c0b0", "difficulty": "extra"}
{"id": "spider_dev_0744", "db_id": "world_1", "question": "How many countries speak both English and Dutch?", "gold_sql": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch');", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_0745", "db_id": "world_1", "question": "What is the number of nations that use English and Dutch?", "gold_sql": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch');", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_0746", "db_id": "world_1", "question": "What are the names of nations speak both English and French?", "gold_sql": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French';", "gold_result_hash": "e54a1503194b52db", "difficulty": "extra"}
{"id": "spider_dev_0747", "db_id": "world_1", "question": "Give the names of nations that speak both English and French.", "gold_sql": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French';", "gold_result_hash": "e54a1503194b52db", "difficulty": "extra"}
{"id": "spider_dev_0748", "db_id": "world_1", "question": "What are the names of nations where both English and French are official languages?", "gold_sql": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' AND T2.IsOfficial = 'T';", "gold_result_hash": "3e7c98ab00937cc0", "difficulty": "extra"}
{"id": "spider_dev_0749", "db_id": "world_1", "question": "Give the names of countries with English and French as official languages.", "gold_sql": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' AND T2.IsOfficial = 'T';", "gold_result_hash": "3e7c98ab00937cc0", "difficulty": "extra"}
{"id": "spider_dev_0750", "db_id": "world_1", "question": "What is the number of distinct continents where Chinese is spoken?", "gold_sql": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Chinese';", "gold_result_hash": "63e057b7b7314ff0", "difficulty": "medium"}
{"id": "spider_dev_0751", "db_id": "world_1", "question": "How many continents speak Chinese?", "gold_sql": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Chinese';", "gold_result_hash": "63e057b7b7314ff0", "difficulty": "medium"}
{"id": "spider_dev_0752", "db_id": "world_1", "question": "What are the regions that use English or Dutch?", "gold_sql": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' OR T2.Language = 'Dutch';", "gold_result_hash": "fdd5768e5e27c727", "difficulty": "hard"}
{"id": "spider_dev_0753", "db_id": "world_1", "question": "Which regions speak Dutch or English?", "gold_sql": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' OR T2.Language = 'Dutch';", "gold_result_hash": "fdd5768e5e27c727", "difficulty": "hard"}
{"id": "spider_dev_0754", "db_id": "world_1", "question": "What are the countries where either English or Dutch is the official language ?", "gold_sql": "SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'english' AND isofficial = 't' UNION SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'dutch' AND isofficial = 't';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "extra"}
{"id": "spider_dev_0755", "db_id": "world_1", "question": "Which countries have either English or Dutch as an official language?", "gold_sql": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND IsOfficial = 'T' UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch' AND IsOfficial = 'T';", "gold_result_hash": "017b2b20aebd7095", "difficulty": "extra"}
{"id": "spider_dev_0756", "db_id": "world_1", "question": "Which language is the most popular on the Asian continent?", "gold_sql": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "d11817c06e0ced3a", "difficulty": "extra"}
{"id": "spider_dev_0757", "db_id": "world_1", "question": "What is the language that is used by the largest number of Asian nations?", "gold_sql": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "d11817c06e0ced3a", "difficulty": "extra"}
{"id": "spider_dev_0758", "db_id": "world_1", "question": "Which languages are spoken by only one country in republic governments?", "gold_sql": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = 'Republic' GROUP BY T2.Language HAVING COUNT(*) = 1;", "gold_result_hash": "e64b7ed99d5e1667", "difficulty": "hard"}
{"id": "spider_dev_0759", "db_id": "world_1", "question": "What languages are only used by a single country with a republic government?", "gold_sql": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = 'Republic' GROUP BY T2.Language HAVING COUNT(*) = 1;", "gold_result_hash": "e64b7ed99d5e1667", "difficulty": "hard"}
{"id": "spider_dev_0760", "db_id": "world_1", "question": "Find the city with the largest population that uses English.", "gold_sql": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T1.Population DESC LIMIT 1;", "gold_result_hash": "46c3d774a40c2421", "difficulty": "extra"}
{"id": "spider_dev_0761", "db_id": "world_1", "question": "What is the most populace city that speaks English?", "gold_sql": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T1.Population DESC LIMIT 1;", "gold_result_hash": "46c3d774a40c2421", "difficulty": "extra"}
{"id": "spider_dev_0762", "db_id": "world_1", "question": "Find the name, population and expected life length of asian country with the largest area?", "gold_sql": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = 'Asia' ORDER BY SurfaceArea DESC LIMIT 1;", "gold_result_hash": "c33bc91db1190ab9", "difficulty": "hard"}
{"id": "spider_dev_0763", "db_id": "world_1", "question": "What are the name, population, and life expectancy of the largest Asian country by land?", "gold_sql": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = 'Asia' ORDER BY SurfaceArea DESC LIMIT 1;", "gold_result_hash": "c33bc91db1190ab9", "difficulty": "hard"}
{"id": "spider_dev_0764", "db_id": "world_1", "question": "What is average life expectancy in the countries where English is not the official language?", "gold_sql": "SELECT AVG(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T');", "gold_result_hash": "afcc6565469eb658", "difficulty": "extra"}
{"id": "spider_dev_0765", "db_id": "world_1", "question": "Give the mean life expectancy of countries in which English is not the official language.", "gold_sql": "SELECT AVG(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T');", "gold_result_hash": "afcc6565469eb658", "difficulty": "extra"}
{"id": "spider_dev_0766", "db_id": "world_1", "question": "What is the total number of people living in the nations that do not use English?", "gold_sql": "SELECT SUM(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English');", "gold_result_hash": "a713d0d8ea2b1c51", "difficulty": "extra"}
{"id": "spider_dev_0767", "db_id": "world_1", "question": "How many people live in countries that do not speak English?", "gold_sql": "SELECT SUM(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English');", "gold_result_hash": "a713d0d8ea2b1c51", "difficulty": "extra"}
{"id": "spider_dev_0768", "db_id": "world_1", "question": "What is the official language spoken in the country whose head of state is Beatrix?", "gold_sql": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial = 'T';", "gold_result_hash": "74b05e9f144c56bd", "difficulty": "medium"}
{"id": "spider_dev_0769", "db_id": "world_1", "question": "What is the official language used in the country the name of whose head of state is Beatrix.", "gold_sql": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial = 'T';", "gold_result_hash": "74b05e9f144c56bd", "difficulty": "medium"}
{"id": "spider_dev_0770", "db_id": "world_1", "question": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", "gold_sql": "SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = 'T';", "gold_result_hash": "6978c89be7297a48", "difficulty": "medium"}
{"id": "spider_dev_0771", "db_id": "world_1", "question": "For the countries founded before 1930, what is the total number of distinct official languages?", "gold_sql": "SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = 'T';", "gold_result_hash": "6978c89be7297a48", "difficulty": "medium"}
{"id": "spider_dev_0772", "db_id": "world_1", "question": "What are the countries that have greater surface area than any country in Europe?", "gold_sql": "SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = 'Europe');", "gold_result_hash": "5b9dfa3604f3a8bd", "difficulty": "hard"}
{"id": "spider_dev_0773", "db_id": "world_1", "question": "Which countries have greater area than that of any country in Europe?", "gold_sql": "SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = 'Europe');", "gold_result_hash": "5b9dfa3604f3a8bd", "difficulty": "hard"}
{"id": "spider_dev_0774", "db_id": "world_1", "question": "What are the African countries that have a population less than any country in Asia?", "gold_sql": "SELECT Name FROM country WHERE Continent = 'Africa' AND population < (SELECT MAX(population) FROM country WHERE Continent = 'Asia');", "gold_result_hash": "1aa22b56082f9d33", "difficulty": "extra"}
{"id": "spider_dev_0775", "db_id": "world_1", "question": "Which African countries have a smaller population than that of any country in Asia?", "gold_sql": "SELECT Name FROM country WHERE Continent = 'Africa' AND population < (SELECT MIN(population) FROM country WHERE Continent = 'Asia');", "gold_result_hash": "e947d5165282fdbd", "difficulty": "extra"}
{"id": "spider_dev_0776", "db_id": "world_1", "question": "Which Asian countries have a population that is larger than any country in Africa?", "gold_sql": "SELECT Name FROM country WHERE Continent = 'Asia' AND population > (SELECT MAX(population) FROM country WHERE Continent = 'Africa');", "gold_result_hash": "b2b62983716217d9", "difficulty": "extra"}
{"id": "spider_dev_0777", "db_id": "world_1", "question": "What are the Asian countries which have a population larger than that of any country in Africa?", "gold_sql": "SELECT Name FROM country WHERE Continent = 'Asia' AND population > (SELECT MIN(population) FROM country WHERE Continent = 'Africa');", "gold_result_hash": "d00e5f4c86a50e88", "difficulty": "extra"}
{"id": "spider_dev_0778", "db_id": "world_1", "question": "What are the country codes for countries that do not speak English?", "gold_sql": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English';", "gold_result_hash": "9284abfbabc2c5e5", "difficulty": "hard"}
{"id": "spider_dev_0779", "db_id": "world_1", "question": "Return the country codes for countries that do not speak English.", "gold_sql": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English';", "gold_result_hash": "9284abfbabc2c5e5", "difficulty": "hard"}
{"id": "spider_dev_0780", "db_id": "world_1", "question": "What are the country codes of countries where people use languages other than English?", "gold_sql": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE <> 'English';", "gold_result_hash": "e8a665f620e33738", "difficulty": "easy"}
{"id": "spider_dev_0781", "db_id": "world_1", "question": "Give the country codes for countries in which people speak langauges that are not English.", "gold_sql": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE <> 'English';", "gold_result_hash": "e8a665f620e33738", "difficulty": "easy"}
{"id": "spider_dev_0782", "db_id": "world_1", "question": "What are the codes of the countries that do not speak English and whose government forms are not Republic?", "gold_sql": "SELECT Code FROM country WHERE GovernmentForm <> 'Republic' EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English';", "gold_result_hash": "6823fdc1c5ad5a3e", "difficulty": "hard"}
{"id": "spider_dev_0783", "db_id": "world_1", "question": "Return the codes of countries that do not speak English and do not have Republics for governments.", "gold_sql": "SELECT Code FROM country WHERE GovernmentForm <> 'Republic' EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English';", "gold_result_hash": "6823fdc1c5ad5a3e", "difficulty": "hard"}
{"id": "spider_dev_0784", "db_id": "world_1", "question": "Which cities are in European countries where English is not the official language?", "gold_sql": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English');", "gold_result_hash": "5302ade3c2f5bd82", "difficulty": "extra"}
{"id": "spider_dev_0785", "db_id": "world_1", "question": "What are the names of cities in Europe for which English is not the official language?", "gold_sql": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English');", "gold_result_hash": "5302ade3c2f5bd82", "difficulty": "extra"}
{"id": "spider_dev_0786", "db_id": "world_1", "question": "Which unique cities are in Asian countries where Chinese is the official language ?", "gold_sql": "SELECT DISTINCT t3.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode JOIN city AS t3 ON t1.code = t3.countrycode WHERE t2.isofficial = 't' AND t2.language = 'chinese' AND t1.continent = 'asia';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "hard"}
{"id": "spider_dev_0787", "db_id": "world_1", "question": "Return the different names of cities that are in Asia and for which Chinese is the official language.", "gold_sql": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = 'Asia';", "gold_result_hash": "c2ffd950e8e75292", "difficulty": "hard"}
{"id": "spider_dev_0788", "db_id": "world_1", "question": "What are the name, independence year, and surface area of the country with the smallest population?", "gold_sql": "SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population LIMIT 1;", "gold_result_hash": "5e52c81f70bd69d1", "difficulty": "medium"}
{"id": "spider_dev_0789", "db_id": "world_1", "question": "Give the name, year of independence, and surface area of the country that has the lowest population.", "gold_sql": "SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population LIMIT 1;", "gold_result_hash": "5e52c81f70bd69d1", "difficulty": "medium"}
{"id": "spider_dev_0790", "db_id": "world_1", "question": "What are the population, name and leader of the country with the largest area?", "gold_sql": "SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1;", "gold_result_hash": "6143eb84967481d9", "difficulty": "medium"}
{"id": "spider_dev_0791", "db_id": "world_1", "question": "Give the name, population, and head of state for the country that has the largest area.", "gold_sql": "SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1;", "gold_result_hash": "6143eb84967481d9", "difficulty": "medium"}
{"id": "spider_dev_0792", "db_id": "world_1", "question": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.", "gold_sql": "SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2;", "gold_result_hash": "ed09679ceba40e88", "difficulty": "medium"}
{"id": "spider_dev_0793", "db_id": "world_1", "question": "What are the names of countries that speak more than 2 languages, as well as how many languages they speak?", "gold_sql": "SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2;", "gold_result_hash": "ed09679ceba40e88", "difficulty": "medium"}
{"id": "spider_dev_0794", "db_id": "world_1", "question": "Find the number of cities in each district whose population is greater than the average population of cities?", "gold_sql": "SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District;", "gold_result_hash": "c461a369f0077507", "difficulty": "extra"}
{"id": "spider_dev_0795", "db_id": "world_1", "question": "How many cities in each district have a population that is above the average population across all cities?", "gold_sql": "SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District;", "gold_result_hash": "c461a369f0077507", "difficulty": "extra"}
{"id": "spider_dev_0796", "db_id": "world_1", "question": "Find the government form name and total population for each government form whose average life expectancy is longer than 72.", "gold_sql": "SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72;", "gold_result_hash": "cb297204ce727a46", "difficulty": "medium"}
{"id": "spider_dev_0797", "db_id": "world_1", "question": "What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?", "gold_sql": "SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72;", "gold_result_hash": "cb297204ce727a46", "difficulty": "medium"}
{"id": "spider_dev_0798", "db_id": "world_1", "question": "Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?", "gold_sql": "SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72;", "gold_result_hash": "87670fb74827984d", "difficulty": "medium"}
{"id": "spider_dev_0799", "db_id": "world_1", "question": "What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?", "gold_sql": "SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72;", "gold_result_hash": "87670fb74827984d", "difficulty": "medium"}
{"id": "spider_dev_0800", "db_id": "world_1", "question": "What are the names and areas of countries with the top 5 largest area?", "gold_sql": "SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5;", "gold_result_hash": "caf452e3248de9c1", "difficulty": "medium"}
{"id": "spider_dev_0801", "db_id": "world_1", "question": "Return the names and surface areas of the 5 largest countries.", "gold_sql": "SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5;", "gold_result_hash": "caf452e3248de9c1", "difficulty": "medium"}
{"id": "spider_dev_0802", "db_id": "world_1", "question": "What are names of countries with the top 3 largest population?", "gold_sql": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3;", "gold_result_hash": "afe5aa33555e5c8b", "difficulty": "medium"}
{"id": "spider_dev_0803", "db_id": "world_1", "question": "Return the names of the 3 most populated countries.", "gold_sql": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3;", "gold_result_hash": "afe5aa33555e5c8b", "difficulty": "medium"}
{"id": "spider_dev_0804", "db_id": "world_1", "question": "What are the names of the nations with the 3 lowest populations?", "gold_sql": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3;", "gold_result_hash": "6b36ca00ec65edc4", "difficulty": "medium"}
{"id": "spider_dev_0805", "db_id": "world_1", "question": "Return the names of the 3 countries with the fewest people.", "gold_sql": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3;", "gold_result_hash": "6b36ca00ec65edc4", "difficulty": "medium"}
{"id": "spider_dev_0806", "db_id": "world_1", "question": "how many countries are in Asia?", "gold_sql": "SELECT COUNT(*) FROM country WHERE continent = 'Asia';", "gold_result_hash": "8fc48e076631d6d7", "difficulty": "easy"}
{"id": "spider_dev_0807", "db_id": "world_1", "question": "Count the number of countries in Asia.", "gold_sql": "SELECT COUNT(*) FROM country WHERE continent = 'Asia';", "gold_result_hash": "8fc48e076631d6d7", "difficulty": "easy"}
{"id": "spider_dev_0808", "db_id": "world_1", "question": "What are the names of the countries that are in the continent of Europe and have a population of 80000?", "gold_sql": "SELECT Name FROM country WHERE continent = 'Europe' AND Population = '80000';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0809", "db_id": "world_1", "question": "Give the names of countries that are in Europe and have a population equal to 80000.", "gold_sql": "SELECT Name FROM country WHERE continent = 'Europe' AND Population = '80000';", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0810", "db_id": "world_1", "question": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?", "gold_sql": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = 'north america' AND surfacearea > 3000;", "gold_result_hash": "df7ac1ed286fcba0", "difficulty": "hard"}
{"id": "spider_dev_0811", "db_id": "world_1", "question": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .", "gold_sql": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = 'north america' AND surfacearea > 3000;", "gold_result_hash": "df7ac1ed286fcba0", "difficulty": "hard"}
{"id": "spider_dev_0812", "db_id": "world_1", "question": "What are the cities whose population is between 160000 and 900000?", "gold_sql": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000;", "gold_result_hash": "2ffb373022ecd455", "difficulty": "easy"}
{"id": "spider_dev_0813", "db_id": "world_1", "question": "Return the names of cities that have a population between 160000 and 900000 .", "gold_sql": "SELECT name FROM city WHERE population BETWEEN 160000 AND 900000;", "gold_result_hash": "2ffb373022ecd455", "difficulty": "easy"}
{"id": "spider_dev_0814", "db_id": "world_1", "question": "Which language is spoken by the largest number of countries?", "gold_sql": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "8e52cc892b4a6adc", "difficulty": "hard"}
{"id": "spider_dev_0815", "db_id": "world_1", "question": "Give the language that is spoken in the most countries.", "gold_sql": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "8e52cc892b4a6adc", "difficulty": "hard"}
{"id": "spider_dev_0818", "db_id": "world_1", "question": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", "gold_sql": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode;", "gold_result_hash": "26cf065e7189a873", "difficulty": "extra"}
{"id": "spider_dev_0819", "db_id": "world_1", "question": "Count the number of countries for which Spanish is the predominantly spoken language.", "gold_sql": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode;", "gold_result_hash": "26cf065e7189a873", "difficulty": "extra"}
{"id": "spider_dev_0820", "db_id": "world_1", "question": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", "gold_sql": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode;", "gold_result_hash": "94da8f7cfcaef91a", "difficulty": "medium"}
{"id": "spider_dev_0821", "db_id": "world_1", "question": "Return the codes of countries for which Spanish is the predominantly spoken language.", "gold_sql": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode;", "gold_result_hash": "94da8f7cfcaef91a", "difficulty": "medium"}
{"id": "spider_dev_0822", "db_id": "orchestra", "question": "How many conductors are there?", "gold_sql": "SELECT COUNT(*) FROM conductor;", "gold_result_hash": "20579d3863cad5f7", "difficulty": "easy"}
{"id": "spider_dev_0823", "db_id": "orchestra", "question": "Count the number of conductors.", "gold_sql": "SELECT COUNT(*) FROM conductor;", "gold_result_hash": "20579d3863cad5f7", "difficulty": "easy"}
{"id": "spider_dev_0824", "db_id": "orchestra", "question": "List the names of conductors in ascending order of age.", "gold_sql": "SELECT Name FROM conductor ORDER BY Age ASC;", "gold_result_hash": "620cde5fe278f5a1", "difficulty": "easy"}
{"id": "spider_dev_0825", "db_id": "orchestra", "question": "What are the names of conductors, ordered by age?", "gold_sql": "SELECT Name FROM conductor ORDER BY Age ASC;", "gold_result_hash": "620cde5fe278f5a1", "difficulty": "easy"}
{"id": "spider_dev_0826", "db_id": "orchestra", "question": "What are the names of conductors whose nationalities are not \"USA\"?", "gold_sql": "SELECT Name FROM conductor WHERE Nationality <> 'USA';", "gold_result_hash": "4edabe30b4dbd043", "difficulty": "easy"}
{"id": "spider_dev_0827", "db_id": "orchestra", "question": "Return the names of conductors that do not have the nationality \"USA\".", "gold_sql": "SELECT Name FROM conductor WHERE Nationality <> 'USA';", "gold_result_hash": "4edabe30b4dbd043", "difficulty": "easy"}
{"id": "spider_dev_0828", "db_id": "orchestra", "question": "What are the record companies of orchestras in descending order of years in which they were founded?", "gold_sql": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC;", "gold_result_hash": "c4560d01ed27e7cb", "difficulty": "easy"}
{"id": "spider_dev_0829", "db_id": "orchestra", "question": "Return the record companies of orchestras, sorted descending by the years in which they were founded.", "gold_sql": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC;", "gold_result_hash": "c4560d01ed27e7cb", "difficulty": "easy"}
{"id": "spider_dev_0832", "db_id": "orchestra", "question": "What are the maximum and minimum share of performances whose type is not \"Live final\".", "gold_sql": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> 'Live final';", "gold_result_hash": "19b81f37bece7554", "difficulty": "medium"}
{"id": "spider_dev_0833", "db_id": "orchestra", "question": "Return the maximum and minimum shares for performances that do not have the type \"Live final\".", "gold_sql": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> 'Live final';", "gold_result_hash": "19b81f37bece7554", "difficulty": "medium"}
{"id": "spider_dev_0834", "db_id": "orchestra", "question": "How many different nationalities do conductors have?", "gold_sql": "SELECT COUNT(DISTINCT Nationality) FROM conductor;", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_0835", "db_id": "orchestra", "question": "Count the number of different nationalities of conductors.", "gold_sql": "SELECT COUNT(DISTINCT Nationality) FROM conductor;", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_0836", "db_id": "orchestra", "question": "List names of conductors in descending order of years of work.", "gold_sql": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC;", "gold_result_hash": "f1032a0854226eb4", "difficulty": "easy"}
{"id": "spider_dev_0837", "db_id": "orchestra", "question": "What are the names of conductors, sorted descending by the number of years they have worked?", "gold_sql": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC;", "gold_result_hash": "f1032a0854226eb4", "difficulty": "easy"}
{"id": "spider_dev_0838", "db_id": "orchestra", "question": "List the name of the conductor with the most years of work.", "gold_sql": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1;", "gold_result_hash": "5fd06deb3a01c6eb", "difficulty": "medium"}
{"id": "spider_dev_0839", "db_id": "orchestra", "question": "What is the name of the conductor who has worked the greatest number of years?", "gold_sql": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1;", "gold_result_hash": "5fd06deb3a01c6eb", "difficulty": "medium"}
{"id": "spider_dev_0840", "db_id": "orchestra", "question": "Show the names of conductors and the orchestras they have conducted.", "gold_sql": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID;", "gold_result_hash": "a88381a5fdbce72e", "difficulty": "medium"}
{"id": "spider_dev_0841", "db_id": "orchestra", "question": "What are the names of conductors as well as the corresonding orchestras that they have conducted?", "gold_sql": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID;", "gold_result_hash": "a88381a5fdbce72e", "difficulty": "medium"}
{"id": "spider_dev_0842", "db_id": "orchestra", "question": "Show the names of conductors that have conducted more than one orchestras.", "gold_sql": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID, T1.Name HAVING COUNT(*) > 1;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0843", "db_id": "orchestra", "question": "What are the names of conductors who have conducted at more than one orchestra?", "gold_sql": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID, T1.Name HAVING COUNT(*) > 1;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0846", "db_id": "orchestra", "question": "Please show the name of the conductor that has conducted orchestras founded after 2008.", "gold_sql": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008;", "gold_result_hash": "a63ec9e089b1707f", "difficulty": "medium"}
{"id": "spider_dev_0847", "db_id": "orchestra", "question": "What are the names of conductors who have conducted orchestras founded after the year 2008?", "gold_sql": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008;", "gold_result_hash": "a63ec9e089b1707f", "difficulty": "medium"}
{"id": "spider_dev_0848", "db_id": "orchestra", "question": "Please show the different record companies and the corresponding number of orchestras.", "gold_sql": "SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company;", "gold_result_hash": "bc18006f45f800e5", "difficulty": "medium"}
{"id": "spider_dev_0849", "db_id": "orchestra", "question": "How many orchestras does each record company manage?", "gold_sql": "SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company;", "gold_result_hash": "bc18006f45f800e5", "difficulty": "medium"}
{"id": "spider_dev_0852", "db_id": "orchestra", "question": "List the record company shared by the most number of orchestras.", "gold_sql": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "4c762b77c1acfcee", "difficulty": "hard"}
{"id": "spider_dev_0853", "db_id": "orchestra", "question": "What is the record company used by the greatest number of orchestras?", "gold_sql": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "4c762b77c1acfcee", "difficulty": "hard"}
{"id": "spider_dev_0854", "db_id": "orchestra", "question": "List the names of orchestras that have no performance.", "gold_sql": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance);", "gold_result_hash": "28e2df533c5bd2c7", "difficulty": "hard"}
{"id": "spider_dev_0855", "db_id": "orchestra", "question": "What are the orchestras that do not have any performances?", "gold_sql": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance);", "gold_result_hash": "28e2df533c5bd2c7", "difficulty": "hard"}
{"id": "spider_dev_0856", "db_id": "orchestra", "question": "Show the record companies shared by orchestras founded before 2003 and after 2003.", "gold_sql": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003;", "gold_result_hash": "4c762b77c1acfcee", "difficulty": "hard"}
{"id": "spider_dev_0857", "db_id": "orchestra", "question": "What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?", "gold_sql": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003;", "gold_result_hash": "4c762b77c1acfcee", "difficulty": "hard"}
{"id": "spider_dev_0858", "db_id": "orchestra", "question": "Find the number of orchestras whose record format is \"CD\" or \"DVD\".", "gold_sql": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = 'CD' OR Major_Record_Format = 'DVD';", "gold_result_hash": "f2fa73e72e9982ea", "difficulty": "medium"}
{"id": "spider_dev_0859", "db_id": "orchestra", "question": "Count the number of orchestras that have CD or DVD as their record format.", "gold_sql": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = 'CD' OR Major_Record_Format = 'DVD';", "gold_result_hash": "f2fa73e72e9982ea", "difficulty": "medium"}
{"id": "spider_dev_0860", "db_id": "orchestra", "question": "Show the years in which orchestras that have given more than one performance are founded.", "gold_sql": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID, Year_of_Founded HAVING COUNT(*) > 1;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0861", "db_id": "orchestra", "question": "What are years of founding for orchestras that have had more than a single performance?", "gold_sql": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID, Year_of_Founded HAVING COUNT(*) > 1;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0862", "db_id": "network_1", "question": "How many high schoolers are there?", "gold_sql": "SELECT COUNT(*) FROM Highschooler;", "gold_result_hash": "87e106332cb1d4c5", "difficulty": "easy"}
{"id": "spider_dev_0863", "db_id": "network_1", "question": "Count the number of high schoolers.", "gold_sql": "SELECT COUNT(*) FROM Highschooler;", "gold_result_hash": "87e106332cb1d4c5", "difficulty": "easy"}
{"id": "spider_dev_0864", "db_id": "network_1", "question": "Show the names and grades of each high schooler.", "gold_sql": "SELECT name, grade FROM Highschooler;", "gold_result_hash": "8705c1a922e583ff", "difficulty": "medium"}
{"id": "spider_dev_0865", "db_id": "network_1", "question": "What are the names and grades for each high schooler?", "gold_sql": "SELECT name, grade FROM Highschooler;", "gold_result_hash": "8705c1a922e583ff", "difficulty": "medium"}
{"id": "spider_dev_0866", "db_id": "network_1", "question": "Show all the grades of the high schoolers.", "gold_sql": "SELECT grade FROM Highschooler;", "gold_result_hash": "c2d268286cc1d20e", "difficulty": "easy"}
{"id": "spider_dev_0867", "db_id": "network_1", "question": "What is the grade of each high schooler?", "gold_sql": "SELECT grade FROM Highschooler;", "gold_result_hash": "c2d268286cc1d20e", "difficulty": "easy"}
{"id": "spider_dev_0868", "db_id": "network_1", "question": "What grade is Kyle in?", "gold_sql": "SELECT grade FROM Highschooler WHERE name = 'Kyle';", "gold_result_hash": "20579d3863cad5f7", "difficulty": "easy"}
{"id": "spider_dev_0869", "db_id": "network_1", "question": "Return the grade for the high schooler named Kyle.", "gold_sql": "SELECT grade FROM Highschooler WHERE name = 'Kyle';", "gold_result_hash": "20579d3863cad5f7", "difficulty": "easy"}
{"id": "spider_dev_0870", "db_id": "network_1", "question": "Show the names of all high schoolers in grade 10.", "gold_sql": "SELECT name FROM Highschooler WHERE grade = 10;", "gold_result_hash": "16dd9300f6bb1b92", "difficulty": "easy"}
{"id": "spider_dev_0871", "db_id": "network_1", "question": "What are the names of all high schoolers in grade 10?", "gold_sql": "SELECT name FROM Highschooler WHERE grade = 10;", "gold_result_hash": "16dd9300f6bb1b92", "difficulty": "easy"}
{"id": "spider_dev_0872", "db_id": "network_1", "question": "Show the ID of the high schooler named Kyle.", "gold_sql": "SELECT ID FROM Highschooler WHERE name = 'Kyle';", "gold_result_hash": "a1882f3616965ede", "difficulty": "easy"}
{"id": "spider_dev_0873", "db_id": "network_1", "question": "What is Kyle's id?", "gold_sql": "SELECT ID FROM Highschooler WHERE name = 'Kyle';", "gold_result_hash": "a1882f3616965ede", "difficulty": "easy"}
{"id": "spider_dev_0874", "db_id": "network_1", "question": "How many high schoolers are there in grade 9 or 10?", "gold_sql": "SELECT COUNT(*) FROM Highschooler WHERE grade = 9 OR grade = 10;", "gold_result_hash": "322acd9b0ecd66e4", "difficulty": "medium"}
{"id": "spider_dev_0875", "db_id": "network_1", "question": "Count the number of high schoolers in grades 9 or 10.", "gold_sql": "SELECT COUNT(*) FROM Highschooler WHERE grade = 9 OR grade = 10;", "gold_result_hash": "322acd9b0ecd66e4", "difficulty": "medium"}
{"id": "spider_dev_0876", "db_id": "network_1", "question": "Show the number of high schoolers for each grade.", "gold_sql": "SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade;", "gold_result_hash": "20d68483f9ee92ac", "difficulty": "medium"}
{"id": "spider_dev_0877", "db_id": "network_1", "question": "How many high schoolers are in each grade?", "gold_sql": "SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade;", "gold_result_hash": "20d68483f9ee92ac", "difficulty": "medium"}
{"id": "spider_dev_0880", "db_id": "network_1", "question": "Show me all grades that have at least 4 students.", "gold_sql": "SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4;", "gold_result_hash": "b08d0da91bb4354e", "difficulty": "easy"}
{"id": "spider_dev_0881", "db_id": "network_1", "question": "Which grades have 4 or more high schoolers?", "gold_sql": "SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4;", "gold_result_hash": "b08d0da91bb4354e", "difficulty": "easy"}
{"id": "spider_dev_0882", "db_id": "network_1", "question": "Show the student IDs and numbers of friends corresponding to each.", "gold_sql": "SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id;", "gold_result_hash": "c75d39fd6288376c", "difficulty": "medium"}
{"id": "spider_dev_0883", "db_id": "network_1", "question": "How many friends does each student have?", "gold_sql": "SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id;", "gold_result_hash": "c75d39fd6288376c", "difficulty": "medium"}
{"id": "spider_dev_0884", "db_id": "network_1", "question": "Show the names of high school students and their corresponding number of friends.", "gold_sql": "SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id, T2.name;", "gold_result_hash": "3d77951b7a40c367", "difficulty": "medium"}
{"id": "spider_dev_0885", "db_id": "network_1", "question": "What are the names of the high schoolers and how many friends does each have?", "gold_sql": "SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id, T2.name;", "gold_result_hash": "3d77951b7a40c367", "difficulty": "medium"}
{"id": "spider_dev_0886", "db_id": "network_1", "question": "What is the name of the high schooler who has the greatest number of friends?", "gold_sql": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id, T2.name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "e6ce90144a970850", "difficulty": "extra"}
{"id": "spider_dev_0887", "db_id": "network_1", "question": "Return the name of the high school student with the most friends.", "gold_sql": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id, T2.name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "e6ce90144a970850", "difficulty": "extra"}
{"id": "spider_dev_0888", "db_id": "network_1", "question": "Show the names of high schoolers who have at least 3 friends.", "gold_sql": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id, T2.name HAVING COUNT(*) >= 3;", "gold_result_hash": "e6ce90144a970850", "difficulty": "medium"}
{"id": "spider_dev_0889", "db_id": "network_1", "question": "What are the names of high schoolers who have 3 or more friends?", "gold_sql": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id, T2.name HAVING COUNT(*) >= 3;", "gold_result_hash": "e6ce90144a970850", "difficulty": "medium"}
{"id": "spider_dev_0890", "db_id": "network_1", "question": "Show the names of all of the high schooler Kyle's friends.", "gold_sql": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = 'Kyle';", "gold_result_hash": "c4cd4444236cbb9a", "difficulty": "hard"}
{"id": "spider_dev_0891", "db_id": "network_1", "question": "Return the names of friends of the high school student Kyle.", "gold_sql": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = 'Kyle';", "gold_result_hash": "c4cd4444236cbb9a", "difficulty": "hard"}
{"id": "spider_dev_0892", "db_id": "network_1", "question": "How many friends does the high school student Kyle have?", "gold_sql": "SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle';", "gold_result_hash": "aee0423e393e4f51", "difficulty": "medium"}
{"id": "spider_dev_0893", "db_id": "network_1", "question": "Count the number of friends Kyle has.", "gold_sql": "SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle';", "gold_result_hash": "aee0423e393e4f51", "difficulty": "medium"}
{"id": "spider_dev_0894", "db_id": "network_1", "question": "Show ids of all students who do not have any friends.", "gold_sql": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend;", "gold_result_hash": "8013d1c516ee857f", "difficulty": "hard"}
{"id": "spider_dev_0895", "db_id": "network_1", "question": "What are the ids of high school students who do not have friends?", "gold_sql": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend;", "gold_result_hash": "8013d1c516ee857f", "difficulty": "hard"}
{"id": "spider_dev_0896", "db_id": "network_1", "question": "Show names of all high school students who do not have any friends.", "gold_sql": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id;", "gold_result_hash": "112e04d4faa7813d", "difficulty": "hard"}
{"id": "spider_dev_0897", "db_id": "network_1", "question": "What are the names of students who have no friends?", "gold_sql": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id;", "gold_result_hash": "112e04d4faa7813d", "difficulty": "hard"}
{"id": "spider_dev_0898", "db_id": "network_1", "question": "Show the ids of high schoolers who have friends and are also liked by someone else.", "gold_sql": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes;", "gold_result_hash": "afcce27786e85db6", "difficulty": "hard"}
{"id": "spider_dev_0899", "db_id": "network_1", "question": "What are the ids of students who both have friends and are liked?", "gold_sql": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes;", "gold_result_hash": "afcce27786e85db6", "difficulty": "hard"}
{"id": "spider_dev_0900", "db_id": "network_1", "question": "Show name of all students who have some friends and also are liked by someone else.", "gold_sql": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id;", "gold_result_hash": "42af85d6d098a2ff", "difficulty": "hard"}
{"id": "spider_dev_0901", "db_id": "network_1", "question": "What are the names of high schoolers who both have friends and are liked?", "gold_sql": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id;", "gold_result_hash": "42af85d6d098a2ff", "difficulty": "hard"}
{"id": "spider_dev_0902", "db_id": "network_1", "question": "Count the number of likes for each student id.", "gold_sql": "SELECT student_id, COUNT(*) FROM Likes GROUP BY student_id;", "gold_result_hash": "2647f07503d9867b", "difficulty": "medium"}
{"id": "spider_dev_0903", "db_id": "network_1", "question": "How many likes correspond to each student id?", "gold_sql": "SELECT student_id, COUNT(*) FROM Likes GROUP BY student_id;", "gold_result_hash": "2647f07503d9867b", "difficulty": "medium"}
{"id": "spider_dev_0904", "db_id": "network_1", "question": "Show the names of high schoolers who have likes, and numbers of likes for each.", "gold_sql": "SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id, T2.name;", "gold_result_hash": "b62c9f3206d10af2", "difficulty": "medium"}
{"id": "spider_dev_0905", "db_id": "network_1", "question": "What are the names of high schoolers who have likes, and how many likes does each have?", "gold_sql": "SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id, T2.name;", "gold_result_hash": "b62c9f3206d10af2", "difficulty": "medium"}
{"id": "spider_dev_0908", "db_id": "network_1", "question": "Show the names of students who have at least 2 likes.", "gold_sql": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id, T2.name HAVING COUNT(*) >= 2;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0909", "db_id": "network_1", "question": "What are the names of students who have 2 or more likes?", "gold_sql": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id, T2.name HAVING COUNT(*) >= 2;", "gold_result_hash": "4f53cda18c2baa0c", "difficulty": "medium"}
{"id": "spider_dev_0910", "db_id": "network_1", "question": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", "gold_sql": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id, T2.name HAVING COUNT(*) >= 2;", "gold_result_hash": "b0af164adcc071cb", "difficulty": "hard"}
{"id": "spider_dev_0911", "db_id": "network_1", "question": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?", "gold_sql": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id, T2.name HAVING COUNT(*) >= 2;", "gold_result_hash": "b0af164adcc071cb", "difficulty": "hard"}
{"id": "spider_dev_0912", "db_id": "network_1", "question": "How many likes does Kyle have?", "gold_sql": "SELECT COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle';", "gold_result_hash": "aee0423e393e4f51", "difficulty": "medium"}
{"id": "spider_dev_0913", "db_id": "network_1", "question": "Return the number of likes that the high schooler named Kyle has.", "gold_sql": "SELECT COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle';", "gold_result_hash": "aee0423e393e4f51", "difficulty": "medium"}
{"id": "spider_dev_0914", "db_id": "network_1", "question": "Find the average grade of all students who have some friends.", "gold_sql": "SELECT AVG(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id);", "gold_result_hash": "c746c985aa7c7f18", "difficulty": "hard"}
{"id": "spider_dev_0915", "db_id": "network_1", "question": "What is the average grade of students who have friends?", "gold_sql": "SELECT AVG(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id);", "gold_result_hash": "c746c985aa7c7f18", "difficulty": "hard"}
{"id": "spider_dev_0916", "db_id": "network_1", "question": "Find the minimum grade of students who have no friends.", "gold_sql": "SELECT MIN(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id);", "gold_result_hash": "be5384e286c3c135", "difficulty": "extra"}
{"id": "spider_dev_0917", "db_id": "network_1", "question": "What is the lowest grade of students who do not have any friends?", "gold_sql": "SELECT MIN(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id);", "gold_result_hash": "be5384e286c3c135", "difficulty": "extra"}
{"id": "spider_dev_0918", "db_id": "dog_kennels", "question": "Which states have both owners and professionals living there?", "gold_sql": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals;", "gold_result_hash": "c1a0308d203318bb", "difficulty": "hard"}
{"id": "spider_dev_0919", "db_id": "dog_kennels", "question": "Find the states where both owners and professionals live.", "gold_sql": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals;", "gold_result_hash": "c1a0308d203318bb", "difficulty": "hard"}
{"id": "spider_dev_0920", "db_id": "dog_kennels", "question": "What is the average age of the dogs who have gone through any treatments?", "gold_sql": "SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments);", "gold_result_hash": "257f2ab0dabf9e36", "difficulty": "hard"}
{"id": "spider_dev_0921", "db_id": "dog_kennels", "question": "Find the average age of the dogs who went through treatments.", "gold_sql": "SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments);", "gold_result_hash": "257f2ab0dabf9e36", "difficulty": "hard"}
{"id": "spider_dev_0922", "db_id": "dog_kennels", "question": "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.", "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, T1.last_name, T1.cell_number HAVING COUNT(*) > 2;", "gold_result_hash": "e0bf5392f2b719ed", "difficulty": "extra"}
{"id": "spider_dev_0923", "db_id": "dog_kennels", "question": "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.", "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, T1.last_name, T1.cell_number HAVING COUNT(*) > 2;", "gold_result_hash": "e0bf5392f2b719ed", "difficulty": "extra"}
{"id": "spider_dev_0924", "db_id": "dog_kennels", "question": "Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .", "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_result_hash": "413ec7c4caec4e98", "difficulty": "hard"}
{"id": "spider_dev_0925", "db_id": "dog_kennels", "question": "What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?", "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_result_hash": "413ec7c4caec4e98", "difficulty": "hard"}
{"id": "spider_dev_0926", "db_id": "dog_kennels", "question": "Which first names are used for professionals or owners but are not used as dog names?", "gold_sql": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs;", "gold_result_hash": "9ee1849f1b110792", "difficulty": "hard"}
{"id": "spider_dev_0927", "db_id": "dog_kennels", "question": "Find the first names that are used for professionals or owners but are not used as dog names.", "gold_sql": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs;", "gold_result_hash": "9ee1849f1b110792", "difficulty": "hard"}
{"id": "spider_dev_0928", "db_id": "dog_kennels", "question": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.", "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_result_hash": "54d5566da0a1a7f5", "difficulty": "extra"}
{"id": "spider_dev_0929", "db_id": "dog_kennels", "question": "Give me the id, role and email of the professionals who did not perform any treatment on dogs.", "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_result_hash": "54d5566da0a1a7f5", "difficulty": "extra"}
{"id": "spider_dev_0930", "db_id": "dog_kennels", "question": "Which owner owns the most dogs? List the owner id, first name and last name.", "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, T2.first_name, T2.last_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "9fadec784476f182", "difficulty": "extra"}
{"id": "spider_dev_0931", "db_id": "dog_kennels", "question": "Return the owner id, first name and last name of the owner who has the most dogs.", "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, T2.first_name, T2.last_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "9fadec784476f182", "difficulty": "extra"}
{"id": "spider_dev_0932", "db_id": "dog_kennels", "question": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", "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, T1.role_code, T1.first_name HAVING COUNT(*) >= 2;", "gold_result_hash": "4c5e81b7402eac37", "difficulty": "medium"}
{"id": "spider_dev_0933", "db_id": "dog_kennels", "question": "What are the id, role, and first name of the professionals who have performed two or more treatments?", "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, T1.role_code, T1.first_name HAVING COUNT(*) >= 2;", "gold_result_hash": "4c5e81b7402eac37", "difficulty": "medium"}
{"id": "spider_dev_0934", "db_id": "dog_kennels", "question": "What is the name of the breed with the most dogs?", "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_result_hash": "59fadaf9769865b4", "difficulty": "extra"}
{"id": "spider_dev_0935", "db_id": "dog_kennels", "question": "Which breed do the most dogs have? Give me the breed name.", "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_result_hash": "59fadaf9769865b4", "difficulty": "extra"}
{"id": "spider_dev_0936", "db_id": "dog_kennels", "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "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, T1.last_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "38d1f20fbb5beda9", "difficulty": "extra"}
{"id": "spider_dev_0937", "db_id": "dog_kennels", "question": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", "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, T1.last_name ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "38d1f20fbb5beda9", "difficulty": "extra"}
{"id": "spider_dev_0938", "db_id": "dog_kennels", "question": "What is the description of the treatment type that costs the least money in total?", "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, T1.treatment_type_description ORDER BY SUM(cost_of_treatment) ASC LIMIT 1;", "gold_result_hash": "197ebf3a969d1b1f", "difficulty": "extra"}
{"id": "spider_dev_0939", "db_id": "dog_kennels", "question": "Give me the description of the treatment type whose total cost is the lowest.", "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, T1.treatment_type_description ORDER BY SUM(cost_of_treatment) ASC LIMIT 1;", "gold_result_hash": "197ebf3a969d1b1f", "difficulty": "extra"}
{"id": "spider_dev_0940", "db_id": "dog_kennels", "question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "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, T1.zip_code ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1;", "gold_result_hash": "a5ee8d1755eadbf5", "difficulty": "extra"}
{"id": "spider_dev_0941", "db_id": "dog_kennels", "question": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", "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, T1.zip_code ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1;", "gold_result_hash": "a5ee8d1755eadbf5", "difficulty": "extra"}
{"id": "spider_dev_0942", "db_id": "dog_kennels", "question": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", "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, T1.cell_number HAVING COUNT(*) >= 2;", "gold_result_hash": "98581384579c316b", "difficulty": "medium"}
{"id": "spider_dev_0943", "db_id": "dog_kennels", "question": "Find the id and cell phone of the professionals who operate two or more types of treatments.", "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, T1.cell_number HAVING COUNT(*) >= 2;", "gold_result_hash": "98581384579c316b", "difficulty": "medium"}
{"id": "spider_dev_0944", "db_id": "dog_kennels", "question": "What are the first name and last name of the professionals who have done treatment with cost below average?", "gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 ON TRUE WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments);", "gold_result_hash": "b88043e35a9e0e05", "difficulty": "extra"}
{"id": "spider_dev_0945", "db_id": "dog_kennels", "question": "Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.", "gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 ON TRUE WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments);", "gold_result_hash": "b88043e35a9e0e05", "difficulty": "extra"}
{"id": "spider_dev_0946", "db_id": "dog_kennels", "question": "List the date of each treatment, together with the first name of the professional who operated it.", "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_result_hash": "c397a977965daf26", "difficulty": "medium"}
{"id": "spider_dev_0947", "db_id": "dog_kennels", "question": "What are the date and the operating professional's first name of each treatment?", "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_result_hash": "c397a977965daf26", "difficulty": "medium"}
{"id": "spider_dev_0948", "db_id": "dog_kennels", "question": "List the cost of each treatment and the corresponding treatment type description.", "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_result_hash": "873c269de6c24b6c", "difficulty": "medium"}
{"id": "spider_dev_0949", "db_id": "dog_kennels", "question": "What are the cost and treatment type description of each treatment?", "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_result_hash": "873c269de6c24b6c", "difficulty": "medium"}
{"id": "spider_dev_0950", "db_id": "dog_kennels", "question": "List each owner's first name, last name, and the size of his for her dog.", "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_result_hash": "81bb524d8a354f0c", "difficulty": "medium"}
{"id": "spider_dev_0951", "db_id": "dog_kennels", "question": "What are each owner's first name, last name, and the size of their dog?", "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_result_hash": "81bb524d8a354f0c", "difficulty": "medium"}
{"id": "spider_dev_0952", "db_id": "dog_kennels", "question": "List pairs of the owner's first name and the dogs's name.", "gold_sql": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id;", "gold_result_hash": "d6748730fdc380ab", "difficulty": "medium"}
{"id": "spider_dev_0953", "db_id": "dog_kennels", "question": "What are each owner's first name and their dogs's name?", "gold_sql": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id;", "gold_result_hash": "d6748730fdc380ab", "difficulty": "medium"}
{"id": "spider_dev_0954", "db_id": "dog_kennels", "question": "List the names of the dogs of the rarest breed and the treatment dates of them.", "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_result_hash": "5178e79cfc83302e", "difficulty": "extra"}
{"id": "spider_dev_0955", "db_id": "dog_kennels", "question": "Which dogs are of the rarest breed? Show their names and treatment dates.", "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_result_hash": "5178e79cfc83302e", "difficulty": "extra"}
{"id": "spider_dev_0956", "db_id": "dog_kennels", "question": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.", "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_result_hash": "fcf994c61d50bc0d", "difficulty": "medium"}
{"id": "spider_dev_0957", "db_id": "dog_kennels", "question": "Find the first names of owners living in Virginia and the names of dogs they own.", "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_result_hash": "fcf994c61d50bc0d", "difficulty": "medium"}
{"id": "spider_dev_0958", "db_id": "dog_kennels", "question": "What are the arriving date and the departing date of the dogs who have gone through a treatment?", "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_result_hash": "b69807ce83708cd6", "difficulty": "medium"}
{"id": "spider_dev_0959", "db_id": "dog_kennels", "question": "Find the arriving date and the departing date of the dogs that received a treatment.", "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_result_hash": "b69807ce83708cd6", "difficulty": "medium"}
{"id": "spider_dev_0960", "db_id": "dog_kennels", "question": "List the last name of the owner owning the youngest dog.", "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_result_hash": "45f3cafa911e86c1", "difficulty": "extra"}
{"id": "spider_dev_0961", "db_id": "dog_kennels", "question": "Who owns the youngest dog? Give me his or her last name.", "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_result_hash": "45f3cafa911e86c1", "difficulty": "extra"}
{"id": "spider_dev_0962", "db_id": "dog_kennels", "question": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.", "gold_sql": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin';", "gold_result_hash": "88169f71a518d9cc", "difficulty": "medium"}
{"id": "spider_dev_0963", "db_id": "dog_kennels", "question": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?", "gold_sql": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin';", "gold_result_hash": "88169f71a518d9cc", "difficulty": "medium"}
{"id": "spider_dev_0964", "db_id": "dog_kennels", "question": "What are the arriving date and the departing date of all the dogs?", "gold_sql": "SELECT date_arrived, date_departed FROM Dogs;", "gold_result_hash": "da91eea0d3ea4419", "difficulty": "medium"}
{"id": "spider_dev_0965", "db_id": "dog_kennels", "question": "List the arrival date and the departure date for all the dogs.", "gold_sql": "SELECT date_arrived, date_departed FROM Dogs;", "gold_result_hash": "da91eea0d3ea4419", "difficulty": "medium"}
{"id": "spider_dev_0966", "db_id": "dog_kennels", "question": "How many dogs went through any treatments?", "gold_sql": "SELECT COUNT(DISTINCT dog_id) FROM Treatments;", "gold_result_hash": "2aabc6d2c38cc38b", "difficulty": "easy"}
{"id": "spider_dev_0967", "db_id": "dog_kennels", "question": "Count the number of dogs that went through a treatment.", "gold_sql": "SELECT COUNT(DISTINCT dog_id) FROM Treatments;", "gold_result_hash": "2aabc6d2c38cc38b", "difficulty": "easy"}
{"id": "spider_dev_0968", "db_id": "dog_kennels", "question": "How many professionals have performed any treatment to dogs?", "gold_sql": "SELECT COUNT(DISTINCT professional_id) FROM Treatments;", "gold_result_hash": "322acd9b0ecd66e4", "difficulty": "easy"}
{"id": "spider_dev_0969", "db_id": "dog_kennels", "question": "Find the number of professionals who have ever treated dogs.", "gold_sql": "SELECT COUNT(DISTINCT professional_id) FROM Treatments;", "gold_result_hash": "322acd9b0ecd66e4", "difficulty": "easy"}
{"id": "spider_dev_0970", "db_id": "dog_kennels", "question": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.", "gold_sql": "SELECT role_code, street, city, state FROM professionals WHERE city ILIKE '%West%';", "gold_result_hash": "3b33b67b80ef34b4", "difficulty": "medium"}
{"id": "spider_dev_0971", "db_id": "dog_kennels", "question": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.", "gold_sql": "SELECT role_code, street, city, state FROM professionals WHERE city ILIKE '%West%';", "gold_result_hash": "3b33b67b80ef34b4", "difficulty": "medium"}
{"id": "spider_dev_0972", "db_id": "dog_kennels", "question": "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.", "gold_sql": "SELECT first_name, last_name, email_address FROM Owners WHERE state ILIKE '%North%';", "gold_result_hash": "339e611f48e2677f", "difficulty": "medium"}
{"id": "spider_dev_0973", "db_id": "dog_kennels", "question": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.", "gold_sql": "SELECT first_name, last_name, email_address FROM Owners WHERE state ILIKE '%North%';", "gold_result_hash": "339e611f48e2677f", "difficulty": "medium"}
{"id": "spider_dev_0974", "db_id": "dog_kennels", "question": "How many dogs have an age below the average?", "gold_sql": "SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs);", "gold_result_hash": "2aabc6d2c38cc38b", "difficulty": "hard"}
{"id": "spider_dev_0975", "db_id": "dog_kennels", "question": "Count the number of dogs of an age below the average.", "gold_sql": "SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs);", "gold_result_hash": "2aabc6d2c38cc38b", "difficulty": "hard"}
{"id": "spider_dev_0976", "db_id": "dog_kennels", "question": "How much does the most recent treatment cost?", "gold_sql": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1;", "gold_result_hash": "404a4b60020ca12d", "difficulty": "medium"}
{"id": "spider_dev_0977", "db_id": "dog_kennels", "question": "Show me the cost of the most recently performed treatment.", "gold_sql": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1;", "gold_result_hash": "404a4b60020ca12d", "difficulty": "medium"}
{"id": "spider_dev_0978", "db_id": "dog_kennels", "question": "How many dogs have not gone through any treatment?", "gold_sql": "SELECT COUNT(*) FROM Dogs WHERE dog_id NOT IN (SELECT dog_id FROM Treatments);", "gold_result_hash": "7bd6032174e40a46", "difficulty": "extra"}
{"id": "spider_dev_0979", "db_id": "dog_kennels", "question": "Tell me the number of dogs that have not received any treatment .", "gold_sql": "SELECT COUNT(*) FROM dogs WHERE dog_id NOT IN (SELECT dog_id FROM treatments);", "gold_result_hash": "7bd6032174e40a46", "difficulty": "extra"}
{"id": "spider_dev_0980", "db_id": "dog_kennels", "question": "How many owners temporarily do not have any dogs?", "gold_sql": "SELECT COUNT(*) FROM Owners WHERE owner_id NOT IN (SELECT owner_id FROM Dogs);", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "extra"}
{"id": "spider_dev_0981", "db_id": "dog_kennels", "question": "Find the number of owners who do not own any dogs at this moment.", "gold_sql": "SELECT COUNT(*) FROM Owners WHERE owner_id NOT IN (SELECT owner_id FROM Dogs);", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "extra"}
{"id": "spider_dev_0982", "db_id": "dog_kennels", "question": "How many professionals did not operate any treatment on dogs?", "gold_sql": "SELECT COUNT(*) FROM Professionals WHERE professional_id NOT IN (SELECT professional_id FROM Treatments);", "gold_result_hash": "765041f9f76eabbd", "difficulty": "extra"}
{"id": "spider_dev_0983", "db_id": "dog_kennels", "question": "Find the number of professionals who have not treated any dogs.", "gold_sql": "SELECT COUNT(*) FROM Professionals WHERE professional_id NOT IN (SELECT professional_id FROM Treatments);", "gold_result_hash": "765041f9f76eabbd", "difficulty": "extra"}
{"id": "spider_dev_0984", "db_id": "dog_kennels", "question": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", "gold_sql": "SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1;", "gold_result_hash": "12861934403b30a9", "difficulty": "medium"}
{"id": "spider_dev_0985", "db_id": "dog_kennels", "question": "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.", "gold_sql": "SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1;", "gold_result_hash": "12861934403b30a9", "difficulty": "medium"}
{"id": "spider_dev_0986", "db_id": "dog_kennels", "question": "What is the average age of all the dogs?", "gold_sql": "SELECT AVG(age) FROM Dogs;", "gold_result_hash": "e7c4b10bf1757cad", "difficulty": "easy"}
{"id": "spider_dev_0987", "db_id": "dog_kennels", "question": "Compute the average age of all the dogs.", "gold_sql": "SELECT AVG(age) FROM Dogs;", "gold_result_hash": "e7c4b10bf1757cad", "difficulty": "easy"}
{"id": "spider_dev_0988", "db_id": "dog_kennels", "question": "What is the age of the oldest dog?", "gold_sql": "SELECT MAX(age) FROM Dogs;", "gold_result_hash": "2aabc6d2c38cc38b", "difficulty": "easy"}
{"id": "spider_dev_0989", "db_id": "dog_kennels", "question": "Tell me the age of the oldest dog.", "gold_sql": "SELECT MAX(age) FROM Dogs;", "gold_result_hash": "2aabc6d2c38cc38b", "difficulty": "easy"}
{"id": "spider_dev_0990", "db_id": "dog_kennels", "question": "How much does each charge type costs? List both charge type and amount.", "gold_sql": "SELECT charge_type, charge_amount FROM Charges;", "gold_result_hash": "c67020ebb9956e08", "difficulty": "medium"}
{"id": "spider_dev_0991", "db_id": "dog_kennels", "question": "List each charge type and its amount.", "gold_sql": "SELECT charge_type, charge_amount FROM Charges;", "gold_result_hash": "c67020ebb9956e08", "difficulty": "medium"}
{"id": "spider_dev_0992", "db_id": "dog_kennels", "question": "How much does the most expensive charge type costs?", "gold_sql": "SELECT MAX(charge_amount) FROM Charges;", "gold_result_hash": "471071bc12746b77", "difficulty": "easy"}
{"id": "spider_dev_0993", "db_id": "dog_kennels", "question": "What is the charge amount of the most expensive charge type?", "gold_sql": "SELECT MAX(charge_amount) FROM Charges;", "gold_result_hash": "471071bc12746b77", "difficulty": "easy"}
{"id": "spider_dev_0994", "db_id": "dog_kennels", "question": "List the email, cell phone and home phone of all the professionals.", "gold_sql": "SELECT email_address, cell_number, home_phone FROM professionals;", "gold_result_hash": "2a17164b90d80a06", "difficulty": "medium"}
{"id": "spider_dev_0995", "db_id": "dog_kennels", "question": "What are the email, cell phone and home phone of each professional?", "gold_sql": "SELECT email_address, cell_number, home_phone FROM professionals;", "gold_result_hash": "2a17164b90d80a06", "difficulty": "medium"}
{"id": "spider_dev_0996", "db_id": "dog_kennels", "question": "What are all the possible breed type and size type combinations?", "gold_sql": "SELECT DISTINCT breed_code, size_code FROM dogs;", "gold_result_hash": "7d518c25dd065ead", "difficulty": "medium"}
{"id": "spider_dev_0997", "db_id": "dog_kennels", "question": "Find the distinct breed type and size type combinations for dogs.", "gold_sql": "SELECT DISTINCT breed_code, size_code FROM dogs;", "gold_result_hash": "7d518c25dd065ead", "difficulty": "medium"}
{"id": "spider_dev_0998", "db_id": "dog_kennels", "question": "List the first name of all the professionals along with the description of the treatment they have done.", "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_result_hash": "2258158571758e64", "difficulty": "medium"}
{"id": "spider_dev_0999", "db_id": "dog_kennels", "question": "What are each professional's first name and description of the treatment they have performed?", "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_result_hash": "2258158571758e64", "difficulty": "medium"}
{"id": "spider_dev_1000", "db_id": "singer", "question": "How many singers are there?", "gold_sql": "SELECT COUNT(*) FROM singer;", "gold_result_hash": "322acd9b0ecd66e4", "difficulty": "easy"}
{"id": "spider_dev_1001", "db_id": "singer", "question": "What is the count of singers?", "gold_sql": "SELECT COUNT(*) FROM singer;", "gold_result_hash": "322acd9b0ecd66e4", "difficulty": "easy"}
{"id": "spider_dev_1002", "db_id": "singer", "question": "List the name of singers in ascending order of net worth.", "gold_sql": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC;", "gold_result_hash": "4a3f4f3c20297a97", "difficulty": "easy"}
{"id": "spider_dev_1003", "db_id": "singer", "question": "What are the names of singers ordered by ascending net worth?", "gold_sql": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC;", "gold_result_hash": "4a3f4f3c20297a97", "difficulty": "easy"}
{"id": "spider_dev_1004", "db_id": "singer", "question": "What are the birth year and citizenship of singers?", "gold_sql": "SELECT Birth_Year, Citizenship FROM singer;", "gold_result_hash": "cf277c767557f59f", "difficulty": "medium"}
{"id": "spider_dev_1005", "db_id": "singer", "question": "What are the birth years and citizenships of the singers?", "gold_sql": "SELECT Birth_Year, Citizenship FROM singer;", "gold_result_hash": "cf277c767557f59f", "difficulty": "medium"}
{"id": "spider_dev_1006", "db_id": "singer", "question": "List the name of singers whose citizenship is not \"France\".", "gold_sql": "SELECT Name FROM singer WHERE Citizenship <> 'France';", "gold_result_hash": "7c04a628f8222a7f", "difficulty": "easy"}
{"id": "spider_dev_1007", "db_id": "singer", "question": "What are the names of the singers who are not French citizens?", "gold_sql": "SELECT Name FROM singer WHERE Citizenship <> 'France';", "gold_result_hash": "7c04a628f8222a7f", "difficulty": "easy"}
{"id": "spider_dev_1008", "db_id": "singer", "question": "Show the name of singers whose birth year is either 1948 or 1949?", "gold_sql": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949;", "gold_result_hash": "874117fee2d4245b", "difficulty": "medium"}
{"id": "spider_dev_1009", "db_id": "singer", "question": "What are the names of the singers whose birth years are either 1948 or 1949?", "gold_sql": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949;", "gold_result_hash": "874117fee2d4245b", "difficulty": "medium"}
{"id": "spider_dev_1010", "db_id": "singer", "question": "What is the name of the singer with the largest net worth?", "gold_sql": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1;", "gold_result_hash": "232c731d61a924d1", "difficulty": "medium"}
{"id": "spider_dev_1011", "db_id": "singer", "question": "What is the name of the singer who is worth the most?", "gold_sql": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1;", "gold_result_hash": "232c731d61a924d1", "difficulty": "medium"}
{"id": "spider_dev_1012", "db_id": "singer", "question": "Show different citizenship of singers and the number of singers of each citizenship.", "gold_sql": "SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship;", "gold_result_hash": "d4c8c42f9022d438", "difficulty": "medium"}
{"id": "spider_dev_1013", "db_id": "singer", "question": "For each citizenship, how many singers are from that country?", "gold_sql": "SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship;", "gold_result_hash": "d4c8c42f9022d438", "difficulty": "medium"}
{"id": "spider_dev_1014", "db_id": "singer", "question": "Please show the most common citizenship of singers.", "gold_sql": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "0a81e193f41e6941", "difficulty": "hard"}
{"id": "spider_dev_1015", "db_id": "singer", "question": "What is the most common singer citizenship ?", "gold_sql": "SELECT citizenship FROM singer GROUP BY citizenship ORDER BY COUNT(*) DESC LIMIT 1;", "gold_result_hash": "0a81e193f41e6941", "difficulty": "hard"}
{"id": "spider_dev_1016", "db_id": "singer", "question": "Show different citizenships and the maximum net worth of singers of each citizenship.", "gold_sql": "SELECT Citizenship, MAX(Net_Worth_Millions) FROM singer GROUP BY Citizenship;", "gold_result_hash": "32ebc123e6021153", "difficulty": "medium"}
{"id": "spider_dev_1017", "db_id": "singer", "question": "For each citizenship, what is the maximum net worth?", "gold_sql": "SELECT Citizenship, MAX(Net_Worth_Millions) FROM singer GROUP BY Citizenship;", "gold_result_hash": "32ebc123e6021153", "difficulty": "medium"}
{"id": "spider_dev_1018", "db_id": "singer", "question": "Show titles of songs and names of singers.", "gold_sql": "SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID;", "gold_result_hash": "bcdf5dffcffc3ba7", "difficulty": "medium"}
{"id": "spider_dev_1019", "db_id": "singer", "question": "What are the song titles and singer names?", "gold_sql": "SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID;", "gold_result_hash": "bcdf5dffcffc3ba7", "difficulty": "medium"}
{"id": "spider_dev_1020", "db_id": "singer", "question": "Show distinct names of singers that have songs with sales more than 300000.", "gold_sql": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000;", "gold_result_hash": "a5316b88432095df", "difficulty": "medium"}
{"id": "spider_dev_1021", "db_id": "singer", "question": "what are the different names of the singers that have sales more than 300000?", "gold_sql": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000;", "gold_result_hash": "a5316b88432095df", "difficulty": "medium"}
{"id": "spider_dev_1022", "db_id": "singer", "question": "Show the names of singers that have more than one song.", "gold_sql": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1;", "gold_result_hash": "c7842987360b3ce0", "difficulty": "medium"}
{"id": "spider_dev_1023", "db_id": "singer", "question": "What are the names of the singers that have more than one songs?", "gold_sql": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1;", "gold_result_hash": "c7842987360b3ce0", "difficulty": "medium"}
{"id": "spider_dev_1024", "db_id": "singer", "question": "Show the names of singers and the total sales of their songs.", "gold_sql": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name;", "gold_result_hash": "5db8f80b0030c13a", "difficulty": "medium"}
{"id": "spider_dev_1025", "db_id": "singer", "question": "For each singer name, what is the total sales for their songs?", "gold_sql": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name;", "gold_result_hash": "5db8f80b0030c13a", "difficulty": "medium"}
{"id": "spider_dev_1026", "db_id": "singer", "question": "List the name of singers that do not have any song.", "gold_sql": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song);", "gold_result_hash": "a716e581db14792e", "difficulty": "hard"}
{"id": "spider_dev_1027", "db_id": "singer", "question": "What is the sname of every sing that does not have any song?", "gold_sql": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song);", "gold_result_hash": "a716e581db14792e", "difficulty": "hard"}
{"id": "spider_dev_1028", "db_id": "singer", "question": "Show the citizenship shared by singers with birth year before 1945 and after 1955.", "gold_sql": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955;", "gold_result_hash": "0a81e193f41e6941", "difficulty": "hard"}
{"id": "spider_dev_1029", "db_id": "singer", "question": "What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?", "gold_sql": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955;", "gold_result_hash": "0a81e193f41e6941", "difficulty": "hard"}
{"id": "spider_dev_1030", "db_id": "real_estate_properties", "question": "How many available features are there in total?", "gold_sql": "SELECT COUNT(*) FROM Other_Available_Features;", "gold_result_hash": "a8b7a2a903cbfdea", "difficulty": "easy"}
{"id": "spider_dev_1031", "db_id": "real_estate_properties", "question": "What is the feature type name of feature AirCon?", "gold_sql": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = 'AirCon';", "gold_result_hash": "673a397ca12f4f4d", "difficulty": "medium"}
{"id": "spider_dev_1032", "db_id": "real_estate_properties", "question": "Show the property type descriptions of properties belonging to that code.", "gold_sql": "SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code, T2.property_type_description;", "gold_result_hash": "9858f6548bb440f9", "difficulty": "medium"}
{"id": "spider_dev_1033", "db_id": "real_estate_properties", "question": "What are the names of properties that are either houses or apartments with more than 1 room?", "gold_sql": "SELECT property_name FROM Properties WHERE property_type_code = 'House' UNION SELECT property_name FROM Properties WHERE property_type_code = 'Apartment' AND room_count > 1;", "gold_result_hash": "2f06c97024dc205e", "difficulty": "hard"}