diff --git "a/spider-queries-validation.json" "b/spider-queries-validation.json" --- "a/spider-queries-validation.json" +++ "b/spider-queries-validation.json" @@ -2,7 +2,9 @@ { "query_id": 0, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "How many singers do we have?", "answer": "SELECT count(*) FROM singer", "difficulty": "easy" @@ -10,7 +12,9 @@ { "query_id": 1, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What is the total number of singers?", "answer": "SELECT count(*) FROM singer", "difficulty": "easy" @@ -18,7 +22,9 @@ { "query_id": 2, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "Show name, country, age for all singers ordered by age from the oldest to the youngest.", "answer": "SELECT name , country , age FROM singer ORDER BY age DESC", "difficulty": "medium" @@ -26,7 +32,9 @@ { "query_id": 3, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are the names, countries, and ages for every singer in descending order of age?", "answer": "SELECT name , country , age FROM singer ORDER BY age DESC", "difficulty": "medium" @@ -34,7 +42,9 @@ { "query_id": 4, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What is the average, minimum, and maximum age of all singers from France?", "answer": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", "difficulty": "medium" @@ -42,7 +52,9 @@ { "query_id": 5, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What is the average, minimum, and maximum age for all French singers?", "answer": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", "difficulty": "medium" @@ -50,7 +62,9 @@ { "query_id": 6, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "Show the name and the release year of the song by the youngest singer.", "answer": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", "difficulty": "medium" @@ -58,7 +72,9 @@ { "query_id": 7, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are the names and release years for all the songs of the youngest singer?", "answer": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", "difficulty": "medium" @@ -66,7 +82,9 @@ { "query_id": 8, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are all distinct countries where singers above age 20 are from?", "answer": "SELECT DISTINCT country FROM singer WHERE age > 20", "difficulty": "easy" @@ -74,7 +92,9 @@ { "query_id": 9, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are the different countries with singers above age 20?", "answer": "SELECT DISTINCT country FROM singer WHERE age > 20", "difficulty": "easy" @@ -82,7 +102,9 @@ { "query_id": 10, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "Show all countries and the number of singers in each country.", "answer": "SELECT country , count(*) FROM singer GROUP BY country", "difficulty": "medium" @@ -90,7 +112,9 @@ { "query_id": 11, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "How many singers are from each country?", "answer": "SELECT country , count(*) FROM singer GROUP BY country", "difficulty": "medium" @@ -98,7 +122,9 @@ { "query_id": 12, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "List all song names by singers above the average age.", "answer": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", "difficulty": "hard" @@ -106,7 +132,9 @@ { "query_id": 13, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are all the song names by singers who are older than average?", "answer": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", "difficulty": "hard" @@ -114,7 +142,9 @@ { "query_id": 14, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium" + ], "query": "Show location and name for all stadiums with a capacity between 5000 and 10000.", "answer": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", "difficulty": "medium" @@ -122,7 +152,9 @@ { "query_id": 15, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium" + ], "query": "What are the locations and names of all stations with capacity between 5000 and 10000?", "answer": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", "difficulty": "medium" @@ -130,7 +162,9 @@ { "query_id": 16, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium" + ], "query": "What is the maximum capacity and the average of all stadiums ?", "answer": "select max(capacity), average from stadium", "difficulty": "medium" @@ -138,7 +172,9 @@ { "query_id": 17, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium" + ], "query": "What is the average and maximum capacities for all stadiums ?", "answer": "select avg(capacity) , max(capacity) from stadium", "difficulty": "medium" @@ -146,7 +182,9 @@ { "query_id": 18, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium" + ], "query": "What is the name and capacity for the stadium with highest average attendance?", "answer": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", "difficulty": "medium" @@ -154,7 +192,9 @@ { "query_id": 19, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium" + ], "query": "What is the name and capacity for the stadium with the highest average attendance?", "answer": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", "difficulty": "medium" @@ -162,7 +202,9 @@ { "query_id": 20, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "concert" + ], "query": "How many concerts are there in year 2014 or 2015?", "answer": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", "difficulty": "medium" @@ -170,7 +212,9 @@ { "query_id": 21, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "concert" + ], "query": "How many concerts occurred in 2014 or 2015?", "answer": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", "difficulty": "medium" @@ -178,7 +222,10 @@ { "query_id": 22, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "Show the stadium name and the number of concerts in each stadium.", "answer": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", "difficulty": "medium" @@ -186,7 +233,10 @@ { "query_id": 23, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "For each stadium, how many concerts play there?", "answer": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", "difficulty": "medium" @@ -194,7 +244,10 @@ { "query_id": 24, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "answer": "SELECT T2.name , T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -202,7 +255,10 @@ { "query_id": 25, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "What is the name and capacity of the stadium with the most concerts after 2013 ?", "answer": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013 group by t2.stadium_id order by count(*) desc limit 1", "difficulty": "extra" @@ -210,7 +266,9 @@ { "query_id": 26, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "concert" + ], "query": "Which year has most number of concerts?", "answer": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -218,7 +276,9 @@ { "query_id": 27, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "concert" + ], "query": "What is the year that had the most concerts?", "answer": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -226,7 +286,10 @@ { "query_id": 28, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "Show the stadium names without any concert.", "answer": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", "difficulty": "hard" @@ -234,7 +297,10 @@ { "query_id": 29, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "What are the names of the stadiums without any concerts?", "answer": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", "difficulty": "hard" @@ -242,7 +308,9 @@ { "query_id": 30, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "Show countries where a singer above age 40 and a singer below 30 are from.", "answer": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30", "difficulty": "hard" @@ -250,7 +318,10 @@ { "query_id": 31, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "Show names for all stadiums except for stadiums having a concert in year 2014.", "answer": "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", "difficulty": "hard" @@ -258,7 +329,10 @@ { "query_id": 32, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "What are the names of all stadiums that did not have a concert in 2014?", "answer": "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", "difficulty": "hard" @@ -266,7 +340,10 @@ { "query_id": 33, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "concert", + "singer_in_concert" + ], "query": "Show the name and theme for all concerts and the number of singers in each concert.", "answer": "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", "difficulty": "medium" @@ -274,7 +351,10 @@ { "query_id": 34, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "concert", + "singer_in_concert" + ], "query": "What are the names , themes , and number of singers for every concert ?", "answer": "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", "difficulty": "medium" @@ -282,7 +362,10 @@ { "query_id": 35, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer", + "singer_in_concert" + ], "query": "List singer names and number of concerts for each singer.", "answer": "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", "difficulty": "medium" @@ -290,7 +373,10 @@ { "query_id": 36, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer", + "singer_in_concert" + ], "query": "What are the names of the singers and number of concerts for each person?", "answer": "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", "difficulty": "medium" @@ -298,7 +384,11 @@ { "query_id": 37, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer", + "concert", + "singer_in_concert" + ], "query": "List all singer names in concerts in year 2014.", "answer": "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", "difficulty": "hard" @@ -306,7 +396,11 @@ { "query_id": 38, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer", + "concert", + "singer_in_concert" + ], "query": "What are the names of the singers who performed in a concert in 2014?", "answer": "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", "difficulty": "hard" @@ -314,7 +408,9 @@ { "query_id": 39, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "what is the name and nation of the singer who have a song having 'Hey' in its name?", "answer": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", "difficulty": "medium" @@ -322,7 +418,9 @@ { "query_id": 40, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?", "answer": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", "difficulty": "medium" @@ -330,7 +428,10 @@ { "query_id": 41, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", "answer": "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", "difficulty": "extra" @@ -338,7 +439,10 @@ { "query_id": 42, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", "answer": "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", "difficulty": "extra" @@ -346,7 +450,10 @@ { "query_id": 43, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "Find the number of concerts happened in the stadium with the highest capacity .", "answer": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", "difficulty": "hard" @@ -354,7 +461,10 @@ { "query_id": 44, "database_id": "concert_singer", - "table_id": "N/A", + "table_id": [ + "stadium", + "concert" + ], "query": "What are the number of concerts that occurred in the stadium with the largest capacity ?", "answer": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", "difficulty": "hard" @@ -362,7 +472,9 @@ { "query_id": 45, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "Find the number of pets whose weight is heavier than 10.", "answer": "SELECT count(*) FROM pets WHERE weight > 10", "difficulty": "easy" @@ -370,7 +482,9 @@ { "query_id": 46, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "How many pets have a greater weight than 10?", "answer": "SELECT count(*) FROM pets WHERE weight > 10", "difficulty": "easy" @@ -378,7 +492,9 @@ { "query_id": 47, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "Find the weight of the youngest dog.", "answer": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", "difficulty": "medium" @@ -386,7 +502,9 @@ { "query_id": 48, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "How much does the youngest dog weigh?", "answer": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", "difficulty": "medium" @@ -394,7 +512,9 @@ { "query_id": 49, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "Find the maximum weight for each type of pet. List the maximum weight and pet type.", "answer": "SELECT max(weight) , petType FROM pets GROUP BY petType", "difficulty": "medium" @@ -402,7 +522,9 @@ { "query_id": 50, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "List the maximum weight and type for each type of pet.", "answer": "SELECT max(weight) , petType FROM pets GROUP BY petType", "difficulty": "medium" @@ -410,7 +532,10 @@ { "query_id": 51, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "Find number of pets owned by students who are older than 20.", "answer": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", "difficulty": "medium" @@ -418,7 +543,10 @@ { "query_id": 52, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "How many pets are owned by students that have an age greater than 20?", "answer": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", "difficulty": "medium" @@ -426,7 +554,11 @@ { "query_id": 53, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "Find the number of dog pets that are raised by female students (with sex F).", "answer": "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'", "difficulty": "hard" @@ -434,7 +566,11 @@ { "query_id": 54, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "How many dog pets are raised by female students?", "answer": "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'", "difficulty": "hard" @@ -442,7 +578,9 @@ { "query_id": 55, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "Find the number of distinct type of pets.", "answer": "SELECT count(DISTINCT pettype) FROM pets", "difficulty": "easy" @@ -450,7 +588,9 @@ { "query_id": 56, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "How many different types of pet are there?", "answer": "SELECT count(DISTINCT pettype) FROM pets", "difficulty": "easy" @@ -458,7 +598,11 @@ { "query_id": 57, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "Find the first name of students who have cat or dog pet.", "answer": "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'", "difficulty": "extra" @@ -466,7 +610,11 @@ { "query_id": 58, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "What are the first names of every student who has a cat or dog as a pet?", "answer": "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'", "difficulty": "extra" @@ -474,7 +622,11 @@ { "query_id": 59, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "Find the first name of students who have both cat and dog pets .", "answer": "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'", "difficulty": "extra" @@ -482,7 +634,11 @@ { "query_id": 60, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "What are the students' first names who have both cats and dogs as pets?", "answer": "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'", "difficulty": "extra" @@ -490,7 +646,11 @@ { "query_id": 61, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "Find the major and age of students who do not have a cat pet.", "answer": "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')", "difficulty": "extra" @@ -498,7 +658,11 @@ { "query_id": 62, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "What major is every student who does not own a cat as a pet, and also how old are they?", "answer": "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')", "difficulty": "extra" @@ -506,7 +670,11 @@ { "query_id": 63, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "Find the id of students who do not have a cat pet.", "answer": "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'", "difficulty": "hard" @@ -514,7 +682,11 @@ { "query_id": 64, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "What are the ids of the students who do not own cats as pets?", "answer": "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'", "difficulty": "hard" @@ -522,7 +694,11 @@ { "query_id": 65, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "Find the first name and age of students who have a dog but do not have a cat as a pet.", "answer": "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')", "difficulty": "extra" @@ -530,7 +706,11 @@ { "query_id": 66, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "What is the first name of every student who has a dog but does not have a cat?", "answer": "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')", "difficulty": "extra" @@ -538,7 +718,9 @@ { "query_id": 67, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "Find the type and weight of the youngest pet.", "answer": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1", "difficulty": "medium" @@ -546,7 +728,9 @@ { "query_id": 68, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "What type of pet is the youngest animal, and how much does it weigh?", "answer": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1", "difficulty": "medium" @@ -554,7 +738,9 @@ { "query_id": 69, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "Find the id and weight of all pets whose age is older than 1.", "answer": "SELECT petid , weight FROM pets WHERE pet_age > 1", "difficulty": "medium" @@ -562,7 +748,9 @@ { "query_id": 70, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "What is the id and weight of every pet who is older than 1?", "answer": "SELECT petid , weight FROM pets WHERE pet_age > 1", "difficulty": "medium" @@ -570,7 +758,9 @@ { "query_id": 71, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "Find the average and maximum age for each type of pet.", "answer": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype", "difficulty": "medium" @@ -578,7 +768,9 @@ { "query_id": 72, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "What is the average and maximum age for each pet type?", "answer": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype", "difficulty": "medium" @@ -586,7 +778,9 @@ { "query_id": 73, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "Find the average weight for each pet type.", "answer": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype", "difficulty": "medium" @@ -594,7 +788,9 @@ { "query_id": 74, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "pets" + ], "query": "What is the average weight for each type of pet?", "answer": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype", "difficulty": "medium" @@ -602,7 +798,10 @@ { "query_id": 75, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "Find the first name and age of students who have a pet.", "answer": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", "difficulty": "medium" @@ -610,7 +809,10 @@ { "query_id": 76, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "What are the different first names and ages of the students who do have pets?", "answer": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", "difficulty": "medium" @@ -618,7 +820,10 @@ { "query_id": 77, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "Find the id of the pet owned by student whose last name is \u2018Smith\u2019.", "answer": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", "difficulty": "medium" @@ -626,7 +831,10 @@ { "query_id": 78, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "What is the id of the pet owned by the student whose last name is 'Smith'?", "answer": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", "difficulty": "medium" @@ -634,7 +842,10 @@ { "query_id": 79, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "Find the number of pets for each student who has any pet and student id.", "answer": "SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid", "difficulty": "medium" @@ -642,7 +853,10 @@ { "query_id": 80, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "For students who have pets , how many pets does each student have ? list their ids instead of names .", "answer": "select count(*) , t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid", "difficulty": "medium" @@ -650,7 +864,10 @@ { "query_id": 81, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "Find the first name and gender of student who have more than one pet.", "answer": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1", "difficulty": "medium" @@ -658,7 +875,10 @@ { "query_id": 82, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "What is the first name and gender of the all the students who have more than one pet?", "answer": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1", "difficulty": "medium" @@ -666,7 +886,11 @@ { "query_id": 83, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "Find the last name of the student who has a cat that is age 3.", "answer": "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'", "difficulty": "hard" @@ -674,7 +898,11 @@ { "query_id": 84, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "pets", + "student" + ], "query": "What is the last name of the student who has a cat that is 3 years old?", "answer": "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'", "difficulty": "hard" @@ -682,7 +910,10 @@ { "query_id": 85, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "Find the average age of students who do not have any pet .", "answer": "select avg(age) from student where stuid not in (select stuid from has_pet)", "difficulty": "extra" @@ -690,7 +921,10 @@ { "query_id": 86, "database_id": "pets_1", - "table_id": "N/A", + "table_id": [ + "has_pet", + "student" + ], "query": "What is the average age for all students who do not own any pets ?", "answer": "select avg(age) from student where stuid not in (select stuid from has_pet)", "difficulty": "extra" @@ -698,7 +932,9 @@ { "query_id": 87, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CONTINENTS" + ], "query": "How many continents are there?", "answer": "SELECT count(*) FROM CONTINENTS;", "difficulty": "easy" @@ -706,7 +942,9 @@ { "query_id": 88, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CONTINENTS" + ], "query": "What is the number of continents?", "answer": "SELECT count(*) FROM CONTINENTS;", "difficulty": "easy" @@ -714,7 +952,10 @@ { "query_id": 89, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CONTINENTS" + ], "query": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "answer": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", "difficulty": "medium" @@ -722,7 +963,10 @@ { "query_id": 90, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CONTINENTS" + ], "query": "For each continent, list its id, name, and how many countries it has?", "answer": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", "difficulty": "medium" @@ -730,7 +974,9 @@ { "query_id": 91, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES" + ], "query": "How many countries are listed?", "answer": "SELECT count(*) FROM COUNTRIES;", "difficulty": "easy" @@ -738,7 +984,9 @@ { "query_id": 92, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES" + ], "query": "How many countries exist?", "answer": "SELECT count(*) FROM COUNTRIES;", "difficulty": "easy" @@ -746,7 +994,10 @@ { "query_id": 93, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST", + "CAR_MAKERS" + ], "query": "How many models does each car maker produce? List maker full name, id and the number.", "answer": "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;", "difficulty": "medium" @@ -754,7 +1005,10 @@ { "query_id": 94, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST", + "CAR_MAKERS" + ], "query": "What is the full name of each car maker, along with its id and how many models it produces?", "answer": "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;", "difficulty": "medium" @@ -762,7 +1016,10 @@ { "query_id": 95, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA", + "CAR_NAMES" + ], "query": "Which model of the car has the minimum horsepower?", "answer": "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;", "difficulty": "hard" @@ -770,7 +1027,10 @@ { "query_id": 96, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA", + "CAR_NAMES" + ], "query": "What is the model of the car with the smallest amount of horsepower?", "answer": "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;", "difficulty": "hard" @@ -778,7 +1038,10 @@ { "query_id": 97, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "CARS_DATA" + ], "query": "Find the model of the car whose weight is below the average weight.", "answer": "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)", "difficulty": "extra" @@ -786,7 +1049,10 @@ { "query_id": 98, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "CARS_DATA" + ], "query": "What is the model for the car with a weight smaller than the average?", "answer": "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)", "difficulty": "extra" @@ -794,7 +1060,12 @@ { "query_id": 99, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "MODEL_LIST", + "CAR_MAKERS", + "CARS_DATA" + ], "query": "Find the name of the makers that produced some cars in the year of 1970?", "answer": "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';", "difficulty": "extra" @@ -802,7 +1073,12 @@ { "query_id": 100, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "MODEL_LIST", + "CAR_MAKERS", + "CARS_DATA" + ], "query": "What is the name of the different car makers who produced a car in 1970?", "answer": "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';", "difficulty": "extra" @@ -810,7 +1086,10 @@ { "query_id": 101, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "CARS_DATA" + ], "query": "Find the make and production time of the cars that were produced in the earliest year?", "answer": "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);", "difficulty": "extra" @@ -818,7 +1097,10 @@ { "query_id": 102, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "CARS_DATA" + ], "query": "What is the maker of the carr produced in the earliest year and what year was it?", "answer": "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);", "difficulty": "extra" @@ -826,7 +1108,11 @@ { "query_id": 103, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST", + "CAR_NAMES", + "CARS_DATA" + ], "query": "Which distinct car models are the produced after 1980?", "answer": "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;", "difficulty": "hard" @@ -834,7 +1120,11 @@ { "query_id": 104, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST", + "CAR_NAMES", + "CARS_DATA" + ], "query": "What are the different models for the cards produced after 1980?", "answer": "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;", "difficulty": "hard" @@ -842,7 +1132,11 @@ { "query_id": 105, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CONTINENTS", + "car_makers" + ], "query": "How many car makers are there in each continents? List the continent name and the count.", "answer": "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;", "difficulty": "hard" @@ -850,7 +1144,11 @@ { "query_id": 106, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CONTINENTS", + "car_makers" + ], "query": "What is the name of each continent and how many car makers are there in each one?", "answer": "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;", "difficulty": "hard" @@ -858,7 +1156,10 @@ { "query_id": 107, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CAR_MAKERS" + ], "query": "Which of the countries has the most car makers? List the country name.", "answer": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;", "difficulty": "extra" @@ -866,7 +1167,10 @@ { "query_id": 108, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CAR_MAKERS" + ], "query": "What is the name of the country with the most car makers?", "answer": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;", "difficulty": "extra" @@ -874,7 +1178,10 @@ { "query_id": 109, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "car_makers", + "model_list" + ], "query": "How many car models are produced by each maker ? Only list the count and the maker full name .", "answer": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;", "difficulty": "medium" @@ -882,7 +1189,10 @@ { "query_id": 110, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST", + "CAR_MAKERS" + ], "query": "What is the number of car models that are produced by each maker and what is the id and full name of each maker?", "answer": "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;", "difficulty": "medium" @@ -890,7 +1200,10 @@ { "query_id": 111, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "CARS_DATA" + ], "query": "What is the accelerate of the car make amc hornet sportabout (sw)?", "answer": "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)';", "difficulty": "medium" @@ -898,7 +1211,10 @@ { "query_id": 112, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "CARS_DATA" + ], "query": "How much does the car accelerate that makes amc hornet sportabout (sw)?", "answer": "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)';", "difficulty": "medium" @@ -906,7 +1222,10 @@ { "query_id": 113, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CAR_MAKERS" + ], "query": "How many car makers are there in france?", "answer": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", "difficulty": "medium" @@ -914,7 +1233,10 @@ { "query_id": 114, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CAR_MAKERS" + ], "query": "What is the number of makers of care in France?", "answer": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", "difficulty": "medium" @@ -922,7 +1244,11 @@ { "query_id": 115, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "MODEL_LIST", + "CAR_MAKERS" + ], "query": "How many car models are produced in the usa?", "answer": "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';", "difficulty": "hard" @@ -930,7 +1256,11 @@ { "query_id": 116, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "MODEL_LIST", + "CAR_MAKERS" + ], "query": "What is the count of the car models produced in the United States?", "answer": "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';", "difficulty": "hard" @@ -938,7 +1268,9 @@ { "query_id": 117, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the average miles per gallon(mpg) of the cars with 4 cylinders?", "answer": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", "difficulty": "easy" @@ -946,7 +1278,9 @@ { "query_id": 118, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the average miles per gallon of all the cards with 4 cylinders?", "answer": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", "difficulty": "easy" @@ -954,7 +1288,9 @@ { "query_id": 119, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "cars_data" + ], "query": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?", "answer": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "difficulty": "medium" @@ -962,7 +1298,9 @@ { "query_id": 120, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "cars_data" + ], "query": "What is the minimum weight of the car with 8 cylinders produced in 1974 ?", "answer": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "difficulty": "medium" @@ -970,7 +1308,9 @@ { "query_id": 121, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST" + ], "query": "What are all the makers and models?", "answer": "SELECT Maker , Model FROM MODEL_LIST;", "difficulty": "medium" @@ -978,7 +1318,9 @@ { "query_id": 122, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST" + ], "query": "What are the makers and models?", "answer": "SELECT Maker , Model FROM MODEL_LIST;", "difficulty": "medium" @@ -986,7 +1328,10 @@ { "query_id": 123, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CAR_MAKERS" + ], "query": "What are the countries having at least one car maker? List name and id.", "answer": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", "difficulty": "medium" @@ -994,7 +1339,10 @@ { "query_id": 124, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CAR_MAKERS" + ], "query": "What are the names and ids of all countries with at least one car maker?", "answer": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", "difficulty": "medium" @@ -1002,7 +1350,9 @@ { "query_id": 125, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the number of the cars with horsepower more than 150?", "answer": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", "difficulty": "easy" @@ -1010,7 +1360,9 @@ { "query_id": 126, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the number of cars with a horsepower greater than 150?", "answer": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", "difficulty": "easy" @@ -1018,7 +1370,9 @@ { "query_id": 127, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the average weight of cars each year?", "answer": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", "difficulty": "medium" @@ -1026,7 +1380,9 @@ { "query_id": 128, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the average weight and year for each year?", "answer": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", "difficulty": "medium" @@ -1034,7 +1390,11 @@ { "query_id": 129, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CONTINENTS", + "CAR_MAKERS" + ], "query": "Which countries in europe have at least 3 car manufacturers?", "answer": "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;", "difficulty": "extra" @@ -1042,7 +1402,11 @@ { "query_id": 130, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "COUNTRIES", + "CONTINENTS", + "CAR_MAKERS" + ], "query": "What are the names of all European countries with at least 3 manufacturers?", "answer": "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;", "difficulty": "extra" @@ -1050,7 +1414,10 @@ { "query_id": 131, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA", + "CAR_NAMES" + ], "query": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "answer": "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;", "difficulty": "extra" @@ -1058,7 +1425,10 @@ { "query_id": 132, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA", + "CAR_NAMES" + ], "query": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", "answer": "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;", "difficulty": "extra" @@ -1066,7 +1436,10 @@ { "query_id": 133, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA", + "CAR_NAMES" + ], "query": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", "answer": "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;", "difficulty": "hard" @@ -1074,7 +1447,10 @@ { "query_id": 134, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "cars_data", + "car_names" + ], "query": "What is the car model with the highest mpg ?", "answer": "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;", "difficulty": "hard" @@ -1082,7 +1458,9 @@ { "query_id": 135, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the average horsepower of the cars before 1980?", "answer": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980;", "difficulty": "easy" @@ -1090,7 +1468,9 @@ { "query_id": 136, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "cars_data" + ], "query": "What is the average horsepower for all cars produced before 1980 ?", "answer": "select avg(horsepower) from cars_data where year < 1980;", "difficulty": "easy" @@ -1098,7 +1478,10 @@ { "query_id": 137, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA", + "CAR_NAMES" + ], "query": "What is the average edispl of the cars of model volvo?", "answer": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", "difficulty": "medium" @@ -1106,7 +1489,10 @@ { "query_id": 138, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA", + "CAR_NAMES" + ], "query": "What is the average edispl for all volvos?", "answer": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", "difficulty": "medium" @@ -1114,7 +1500,9 @@ { "query_id": 139, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the maximum accelerate for different number of cylinders?", "answer": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", "difficulty": "medium" @@ -1122,7 +1510,9 @@ { "query_id": 140, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the maximum accelerate for all the different cylinders?", "answer": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", "difficulty": "medium" @@ -1130,7 +1520,9 @@ { "query_id": 141, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES" + ], "query": "Which model has the most version(make) of cars?", "answer": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", "difficulty": "hard" @@ -1138,7 +1530,9 @@ { "query_id": 142, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES" + ], "query": "What model has the most different versions?", "answer": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", "difficulty": "hard" @@ -1146,7 +1540,9 @@ { "query_id": 143, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "How many cars have more than 4 cylinders?", "answer": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", "difficulty": "easy" @@ -1154,7 +1550,9 @@ { "query_id": 144, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the number of cars with more than 4 cylinders?", "answer": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", "difficulty": "easy" @@ -1162,7 +1560,9 @@ { "query_id": 145, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "how many cars were produced in 1980?", "answer": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", "difficulty": "easy" @@ -1170,7 +1570,9 @@ { "query_id": 146, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "In 1980, how many cars were made?", "answer": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", "difficulty": "easy" @@ -1178,7 +1580,10 @@ { "query_id": 147, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST", + "CAR_MAKERS" + ], "query": "How many car models were produced by the maker with full name American Motor Company?", "answer": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", "difficulty": "medium" @@ -1186,7 +1591,10 @@ { "query_id": 148, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST", + "CAR_MAKERS" + ], "query": "What is the number of car models created by the car maker American Motor Company?", "answer": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", "difficulty": "medium" @@ -1194,7 +1602,10 @@ { "query_id": 149, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST", + "CAR_MAKERS" + ], "query": "Which makers designed more than 3 car models? List full name and the id.", "answer": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", "difficulty": "medium" @@ -1202,7 +1613,10 @@ { "query_id": 150, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "MODEL_LIST", + "CAR_MAKERS" + ], "query": "What are the names and ids of all makers with more than 3 models?", "answer": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", "difficulty": "medium" @@ -1210,7 +1624,12 @@ { "query_id": 151, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_MAKERS", + "MODEL_LIST", + "CAR_NAMES", + "CARS_DATA" + ], "query": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", "answer": "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;", "difficulty": "extra" @@ -1218,7 +1637,12 @@ { "query_id": 152, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_MAKERS", + "MODEL_LIST", + "CAR_NAMES", + "CARS_DATA" + ], "query": "What are the different models created by either the car maker General Motors or weighed more than 3500?", "answer": "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;", "difficulty": "extra" @@ -1226,7 +1650,9 @@ { "query_id": 153, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "cars_data" + ], "query": "In which years cars were produced weighing no less than 3000 and no more than 4000 ?", "answer": "select distinct year from cars_data where weight between 3000 and 4000;", "difficulty": "easy" @@ -1234,7 +1660,9 @@ { "query_id": 154, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "cars_data" + ], "query": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?", "answer": "select distinct year from cars_data where weight between 3000 and 4000;", "difficulty": "easy" @@ -1242,7 +1670,9 @@ { "query_id": 155, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the horsepower of the car with the largest accelerate?", "answer": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", "difficulty": "medium" @@ -1250,7 +1680,9 @@ { "query_id": 156, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the horsepower of the car with the greatest accelerate?", "answer": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", "difficulty": "medium" @@ -1258,7 +1690,10 @@ { "query_id": 157, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "CARS_DATA" + ], "query": "For model volvo, how many cylinders does the car with the least accelerate have?", "answer": "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;", "difficulty": "extra" @@ -1266,7 +1701,10 @@ { "query_id": 158, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "CARS_DATA" + ], "query": "For a volvo model, how many cylinders does the version with least accelerate have?", "answer": "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;", "difficulty": "extra" @@ -1274,7 +1712,9 @@ { "query_id": 159, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "How many cars have a larger accelerate than the car with the largest horsepower?", "answer": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", "difficulty": "hard" @@ -1282,7 +1722,9 @@ { "query_id": 160, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the number of cars with a greater accelerate than the one with the most horsepower?", "answer": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", "difficulty": "hard" @@ -1290,7 +1732,10 @@ { "query_id": 161, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "car_makers", + "countries" + ], "query": "How many countries has more than 2 car makers ?", "answer": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "difficulty": "medium" @@ -1298,7 +1743,10 @@ { "query_id": 162, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "car_makers", + "countries" + ], "query": "What is the number of countries with more than 2 car makers ?", "answer": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "difficulty": "medium" @@ -1306,7 +1754,9 @@ { "query_id": 163, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "How many cars has over 6 cylinders?", "answer": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", "difficulty": "easy" @@ -1314,7 +1764,9 @@ { "query_id": 164, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA" + ], "query": "What is the number of carsw ith over 6 cylinders?", "answer": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", "difficulty": "easy" @@ -1322,7 +1774,10 @@ { "query_id": 165, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA", + "CAR_NAMES" + ], "query": "For the cars with 4 cylinders, which model has the largest horsepower?", "answer": "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;", "difficulty": "extra" @@ -1330,7 +1785,10 @@ { "query_id": 166, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CARS_DATA", + "CAR_NAMES" + ], "query": "For all of the 4 cylinder cars, which model has the most horsepower?", "answer": "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;", "difficulty": "extra" @@ -1338,7 +1796,10 @@ { "query_id": 167, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "CARS_DATA" + ], "query": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "answer": "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;", "difficulty": "extra" @@ -1346,7 +1807,10 @@ { "query_id": 168, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "cars_data", + "car_names" + ], "query": "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 ?", "answer": "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;", "difficulty": "extra" @@ -1354,7 +1818,9 @@ { "query_id": 169, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "cars_data" + ], "query": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?", "answer": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", "difficulty": "medium" @@ -1362,7 +1828,9 @@ { "query_id": 170, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "cars_data" + ], "query": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?", "answer": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", "difficulty": "medium" @@ -1370,7 +1838,12 @@ { "query_id": 171, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_MAKERS", + "MODEL_LIST", + "CAR_NAMES", + "CARS_DATA" + ], "query": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?", "answer": "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';", "difficulty": "extra" @@ -1378,7 +1851,12 @@ { "query_id": 172, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_MAKERS", + "MODEL_LIST", + "CAR_NAMES", + "CARS_DATA" + ], "query": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?", "answer": "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';", "difficulty": "extra" @@ -1386,7 +1864,10 @@ { "query_id": 173, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_MAKERS", + "countries" + ], "query": "What are the name of the countries where there is not a single car maker?", "answer": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", "difficulty": "hard" @@ -1394,7 +1875,10 @@ { "query_id": 174, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_MAKERS", + "countries" + ], "query": "What are the names of the countries with no car makers?", "answer": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", "difficulty": "hard" @@ -1402,7 +1886,11 @@ { "query_id": 175, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "car_makers", + "car_names", + "model_list" + ], "query": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "answer": "select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3;", "difficulty": "extra" @@ -1410,7 +1898,11 @@ { "query_id": 176, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_NAMES", + "MODEL_LIST", + "CAR_MAKERS" + ], "query": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", "answer": "SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) >= 2 INTERSECT SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING count(*) > 3;", "difficulty": "extra" @@ -1418,7 +1910,11 @@ { "query_id": 177, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "CAR_MAKERS", + "MODEL_LIST", + "Countries" + ], "query": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "answer": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat';", "difficulty": "extra" @@ -1426,7 +1922,11 @@ { "query_id": 178, "database_id": "car_1", - "table_id": "N/A", + "table_id": [ + "car_makers", + "countries", + "model_list" + ], "query": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "answer": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat';", "difficulty": "extra" @@ -1434,7 +1934,9 @@ { "query_id": 179, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "Which country does Airline \"JetBlue Airways\" belong to?", "answer": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "difficulty": "easy" @@ -1442,7 +1944,9 @@ { "query_id": 180, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "What country is Jetblue Airways affiliated with?", "answer": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "difficulty": "easy" @@ -1450,7 +1954,9 @@ { "query_id": 181, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "What is the abbreviation of Airline \"JetBlue Airways\"?", "answer": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "difficulty": "easy" @@ -1458,7 +1964,9 @@ { "query_id": 182, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "Which abbreviation corresponds to Jetblue Airways?", "answer": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "difficulty": "easy" @@ -1466,7 +1974,9 @@ { "query_id": 183, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "List all airline names and their abbreviations in \"USA\".", "answer": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\"", "difficulty": "medium" @@ -1474,7 +1984,9 @@ { "query_id": 184, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "What are the airline names and abbreviations for airlines in the USA?", "answer": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\"", "difficulty": "medium" @@ -1482,7 +1994,9 @@ { "query_id": 185, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRPORTS" + ], "query": "List the airport code and name in the city of Anthony.", "answer": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", "difficulty": "medium" @@ -1490,7 +2004,9 @@ { "query_id": 186, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRPORTS" + ], "query": "Give the airport code and airport name corresonding to the city Anthony.", "answer": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", "difficulty": "medium" @@ -1498,7 +2014,9 @@ { "query_id": 187, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "How many airlines do we have?", "answer": "SELECT count(*) FROM AIRLINES", "difficulty": "easy" @@ -1506,7 +2024,9 @@ { "query_id": 188, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "What is the total number of airlines?", "answer": "SELECT count(*) FROM AIRLINES", "difficulty": "easy" @@ -1514,7 +2034,9 @@ { "query_id": 189, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRPORTS" + ], "query": "How many airports do we have?", "answer": "SELECT count(*) FROM AIRPORTS", "difficulty": "easy" @@ -1522,7 +2044,9 @@ { "query_id": 190, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRPORTS" + ], "query": "Return the number of airports.", "answer": "SELECT count(*) FROM AIRPORTS", "difficulty": "easy" @@ -1530,7 +2054,9 @@ { "query_id": 191, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS" + ], "query": "How many flights do we have?", "answer": "SELECT count(*) FROM FLIGHTS", "difficulty": "easy" @@ -1538,7 +2064,9 @@ { "query_id": 192, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS" + ], "query": "Return the number of flights.", "answer": "SELECT count(*) FROM FLIGHTS", "difficulty": "easy" @@ -1546,7 +2074,9 @@ { "query_id": 193, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "Which airline has abbreviation 'UAL'?", "answer": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", "difficulty": "easy" @@ -1554,7 +2084,9 @@ { "query_id": 194, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "Give the airline with abbreviation 'UAL'.", "answer": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", "difficulty": "easy" @@ -1562,7 +2094,9 @@ { "query_id": 195, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "How many airlines are from USA?", "answer": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", "difficulty": "easy" @@ -1570,7 +2104,9 @@ { "query_id": 196, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRLINES" + ], "query": "Return the number of airlines in the USA.", "answer": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", "difficulty": "easy" @@ -1578,7 +2114,9 @@ { "query_id": 197, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRPORTS" + ], "query": "Which city and country is the Alton airport at?", "answer": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\"", "difficulty": "medium" @@ -1586,7 +2124,9 @@ { "query_id": 198, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRPORTS" + ], "query": "Give the city and country for the Alton airport.", "answer": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\"", "difficulty": "medium" @@ -1594,7 +2134,9 @@ { "query_id": 199, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRPORTS" + ], "query": "What is the airport name for airport 'AKO'?", "answer": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", "difficulty": "easy" @@ -1602,7 +2144,9 @@ { "query_id": 200, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRPORTS" + ], "query": "Return the name of the airport with code 'AKO'.", "answer": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", "difficulty": "easy" @@ -1610,7 +2154,9 @@ { "query_id": 201, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRPORTS" + ], "query": "What are airport names at City 'Aberdeen'?", "answer": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", "difficulty": "easy" @@ -1618,7 +2164,9 @@ { "query_id": 202, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "AIRPORTS" + ], "query": "What are the names of airports in Aberdeen?", "answer": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", "difficulty": "easy" @@ -1626,7 +2174,9 @@ { "query_id": 203, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS" + ], "query": "How many flights depart from 'APG'?", "answer": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", "difficulty": "easy" @@ -1634,7 +2184,9 @@ { "query_id": 204, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS" + ], "query": "Count the number of flights departing from 'APG'.", "answer": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", "difficulty": "easy" @@ -1642,7 +2194,9 @@ { "query_id": 205, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS" + ], "query": "How many flights have destination ATO?", "answer": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", "difficulty": "easy" @@ -1650,7 +2204,9 @@ { "query_id": 206, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS" + ], "query": "Count the number of flights into ATO.", "answer": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", "difficulty": "easy" @@ -1658,7 +2214,10 @@ { "query_id": 207, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "How many flights depart from City Aberdeen?", "answer": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "difficulty": "medium" @@ -1666,7 +2225,10 @@ { "query_id": 208, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "Return the number of flights departing from Aberdeen.", "answer": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "difficulty": "medium" @@ -1674,7 +2236,10 @@ { "query_id": 209, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "How many flights arriving in Aberdeen city?", "answer": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "difficulty": "medium" @@ -1682,7 +2247,10 @@ { "query_id": 210, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "Return the number of flights arriving in Aberdeen.", "answer": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "difficulty": "medium" @@ -1690,7 +2258,10 @@ { "query_id": 211, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", "answer": "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\"", "difficulty": "hard" @@ -1698,7 +2269,10 @@ { "query_id": 212, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "How many flights fly from Aberdeen to Ashley?", "answer": "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\"", "difficulty": "hard" @@ -1706,7 +2280,10 @@ { "query_id": 213, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "How many flights does airline 'JetBlue Airways' have?", "answer": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", "difficulty": "medium" @@ -1714,7 +2291,10 @@ { "query_id": 214, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Give the number of Jetblue Airways flights.", "answer": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", "difficulty": "medium" @@ -1722,7 +2302,10 @@ { "query_id": 215, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "How many 'United Airlines' flights go to Airport 'ASY'?", "answer": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", "difficulty": "medium" @@ -1730,7 +2313,10 @@ { "query_id": 216, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Count the number of United Airlines flights arriving in ASY Airport.", "answer": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", "difficulty": "medium" @@ -1738,7 +2324,10 @@ { "query_id": 217, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "How many 'United Airlines' flights depart from Airport 'AHD'?", "answer": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", "difficulty": "medium" @@ -1746,7 +2335,10 @@ { "query_id": 218, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Return the number of United Airlines flights leaving from AHD Airport.", "answer": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", "difficulty": "medium" @@ -1754,7 +2346,11 @@ { "query_id": 219, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS", + "AIRLINES" + ], "query": "How many United Airlines flights go to City 'Aberdeen'?", "answer": "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\"", "difficulty": "hard" @@ -1762,7 +2358,11 @@ { "query_id": 220, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS", + "AIRLINES" + ], "query": "Count the number of United Airlines flights that arrive in Aberdeen.", "answer": "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\"", "difficulty": "hard" @@ -1770,7 +2370,10 @@ { "query_id": 221, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "Which city has most number of arriving flights?", "answer": "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", "difficulty": "extra" @@ -1778,7 +2381,10 @@ { "query_id": 222, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "Which city has the most frequent destination airport?", "answer": "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", "difficulty": "extra" @@ -1786,7 +2392,10 @@ { "query_id": 223, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "Which city has most number of departing flights?", "answer": "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", "difficulty": "extra" @@ -1794,7 +2403,10 @@ { "query_id": 224, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "Which city is the most frequent source airport?", "answer": "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", "difficulty": "extra" @@ -1802,7 +2414,10 @@ { "query_id": 225, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "What is the code of airport that has the highest number of flights?", "answer": "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", "difficulty": "extra" @@ -1810,7 +2425,10 @@ { "query_id": 226, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "What is the airport code of the airport with the most flights?", "answer": "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", "difficulty": "extra" @@ -1818,7 +2436,10 @@ { "query_id": 227, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "What is the code of airport that has fewest number of flights?", "answer": "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", "difficulty": "extra" @@ -1826,7 +2447,10 @@ { "query_id": 228, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "Give the code of the airport with the least flights.", "answer": "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", "difficulty": "extra" @@ -1834,7 +2458,10 @@ { "query_id": 229, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Which airline has most number of flights?", "answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -1842,7 +2469,10 @@ { "query_id": 230, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "What airline serves the most flights?", "answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -1850,7 +2480,10 @@ { "query_id": 231, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Find the abbreviation and country of the airline that has fewest number of flights?", "answer": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1", "difficulty": "extra" @@ -1858,7 +2491,10 @@ { "query_id": 232, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "What is the abbreviation of the airilne has the fewest flights and what country is it in?", "answer": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1", "difficulty": "extra" @@ -1866,7 +2502,10 @@ { "query_id": 233, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "What are airlines that have some flight departing from airport 'AHD'?", "answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", "difficulty": "medium" @@ -1874,7 +2513,10 @@ { "query_id": 234, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Which airlines have a flight with source airport AHD?", "answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", "difficulty": "medium" @@ -1882,7 +2524,10 @@ { "query_id": 235, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "What are airlines that have flights arriving at airport 'AHD'?", "answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", "difficulty": "medium" @@ -1890,7 +2535,10 @@ { "query_id": 236, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Which airlines have a flight with destination airport AHD?", "answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", "difficulty": "medium" @@ -1898,7 +2546,10 @@ { "query_id": 237, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Find all airlines that have flights from both airports 'APG' and 'CVO'.", "answer": "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\"", "difficulty": "extra" @@ -1906,7 +2557,10 @@ { "query_id": 238, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Which airlines have departing flights from both APG and CVO airports?", "answer": "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\"", "difficulty": "extra" @@ -1914,7 +2568,10 @@ { "query_id": 239, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", "answer": "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\"", "difficulty": "extra" @@ -1922,7 +2579,10 @@ { "query_id": 240, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Which airlines have departures from CVO but not from APG airports?", "answer": "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\"", "difficulty": "extra" @@ -1930,7 +2590,10 @@ { "query_id": 241, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Find all airlines that have at least 10 flights.", "answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", "difficulty": "medium" @@ -1938,7 +2601,10 @@ { "query_id": 242, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Which airlines have at least 10 flights?", "answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", "difficulty": "medium" @@ -1946,7 +2612,10 @@ { "query_id": 243, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Find all airlines that have fewer than 200 flights.", "answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", "difficulty": "medium" @@ -1954,7 +2623,10 @@ { "query_id": 244, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Which airlines have less than 200 flights?", "answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", "difficulty": "medium" @@ -1962,7 +2634,10 @@ { "query_id": 245, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "What are flight numbers of Airline \"United Airlines\"?", "answer": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", "difficulty": "medium" @@ -1970,7 +2645,10 @@ { "query_id": 246, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRLINES" + ], "query": "Which flight numbers correspond to United Airlines flights?", "answer": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", "difficulty": "medium" @@ -1978,7 +2656,9 @@ { "query_id": 247, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS" + ], "query": "What are flight numbers of flights departing from Airport \"APG\"?", "answer": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", "difficulty": "easy" @@ -1986,7 +2666,9 @@ { "query_id": 248, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS" + ], "query": "Give the flight numbers of flights leaving from APG.", "answer": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", "difficulty": "easy" @@ -1994,7 +2676,9 @@ { "query_id": 249, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS" + ], "query": "What are flight numbers of flights arriving at Airport \"APG\"?", "answer": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", "difficulty": "easy" @@ -2002,7 +2686,9 @@ { "query_id": 250, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS" + ], "query": "Give the flight numbers of flights landing at APG.", "answer": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", "difficulty": "easy" @@ -2010,7 +2696,10 @@ { "query_id": 251, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "What are flight numbers of flights departing from City \"Aberdeen \"?", "answer": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "difficulty": "medium" @@ -2018,7 +2707,10 @@ { "query_id": 252, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "Give the flight numbers of flights leaving from Aberdeen.", "answer": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "difficulty": "medium" @@ -2026,7 +2718,10 @@ { "query_id": 253, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "What are flight numbers of flights arriving at City \"Aberdeen\"?", "answer": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "difficulty": "medium" @@ -2034,7 +2729,10 @@ { "query_id": 254, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "FLIGHTS", + "AIRPORTS" + ], "query": "Give the flight numbers of flights arriving in Aberdeen.", "answer": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "difficulty": "medium" @@ -2042,7 +2740,10 @@ { "query_id": 255, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "Airports", + "Flights" + ], "query": "Find the number of flights landing in the city of Aberdeen or Abilene.", "answer": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", "difficulty": "hard" @@ -2050,7 +2751,10 @@ { "query_id": 256, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "Airports", + "Flights" + ], "query": "How many flights land in Aberdeen or Abilene?", "answer": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", "difficulty": "hard" @@ -2058,7 +2762,10 @@ { "query_id": 257, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "Airports", + "Flights" + ], "query": "Find the name of airports which do not have any flight in and out.", "answer": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", "difficulty": "hard" @@ -2066,7 +2773,10 @@ { "query_id": 258, "database_id": "flight_2", - "table_id": "N/A", + "table_id": [ + "Airports", + "Flights" + ], "query": "Which airports do not have departing or arriving flights?", "answer": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", "difficulty": "hard" @@ -2074,7 +2784,9 @@ { "query_id": 259, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee" + ], "query": "How many employees are there?", "answer": "SELECT count(*) FROM employee", "difficulty": "easy" @@ -2082,7 +2794,9 @@ { "query_id": 260, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee" + ], "query": "Count the number of employees", "answer": "SELECT count(*) FROM employee", "difficulty": "easy" @@ -2090,7 +2804,9 @@ { "query_id": 261, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee" + ], "query": "Sort employee names by their age in ascending order.", "answer": "SELECT name FROM employee ORDER BY age", "difficulty": "easy" @@ -2098,7 +2814,9 @@ { "query_id": 262, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee" + ], "query": "List the names of employees and sort in ascending order of age.", "answer": "SELECT name FROM employee ORDER BY age", "difficulty": "easy" @@ -2106,7 +2824,9 @@ { "query_id": 263, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee" + ], "query": "What is the number of employees from each city?", "answer": "SELECT count(*) , city FROM employee GROUP BY city", "difficulty": "medium" @@ -2114,7 +2834,9 @@ { "query_id": 264, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee" + ], "query": "Count the number of employees for each city.", "answer": "SELECT count(*) , city FROM employee GROUP BY city", "difficulty": "medium" @@ -2122,7 +2844,9 @@ { "query_id": 265, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee" + ], "query": "Which cities do more than one employee under age 30 come from?", "answer": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", "difficulty": "medium" @@ -2130,7 +2854,9 @@ { "query_id": 266, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee" + ], "query": "Find the cities that have more than one employee under age 30.", "answer": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", "difficulty": "medium" @@ -2138,7 +2864,9 @@ { "query_id": 267, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "Find the number of shops in each location.", "answer": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", "difficulty": "medium" @@ -2146,7 +2874,9 @@ { "query_id": 268, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "How many shops are there in each location?", "answer": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", "difficulty": "medium" @@ -2154,7 +2884,9 @@ { "query_id": 269, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "Find the manager name and district of the shop whose number of products is the largest.", "answer": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", "difficulty": "medium" @@ -2162,7 +2894,9 @@ { "query_id": 270, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "What are the manager name and district of the shop that sells the largest number of products?", "answer": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", "difficulty": "medium" @@ -2170,7 +2904,9 @@ { "query_id": 271, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "find the minimum and maximum number of products of all stores.", "answer": "SELECT min(Number_products) , max(Number_products) FROM shop", "difficulty": "medium" @@ -2178,7 +2914,9 @@ { "query_id": 272, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "What are the minimum and maximum number of products across all the shops?", "answer": "SELECT min(Number_products) , max(Number_products) FROM shop", "difficulty": "medium" @@ -2186,7 +2924,9 @@ { "query_id": 273, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "Return the name, location and district of all shops in descending order of number of products.", "answer": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", "difficulty": "medium" @@ -2194,7 +2934,9 @@ { "query_id": 274, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "Sort all the shops by number products in descending order, and return the name, location and district of each shop.", "answer": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", "difficulty": "medium" @@ -2202,7 +2944,9 @@ { "query_id": 275, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "Find the names of stores whose number products is more than the average number of products.", "answer": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", "difficulty": "hard" @@ -2210,7 +2954,9 @@ { "query_id": 276, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "Which shops' number products is above the average? Give me the shop names.", "answer": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", "difficulty": "hard" @@ -2218,7 +2964,10 @@ { "query_id": 277, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee", + "evaluation" + ], "query": "find the name of employee who was awarded the most times in the evaluation.", "answer": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -2226,7 +2975,10 @@ { "query_id": 278, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee", + "evaluation" + ], "query": "Which employee received the most awards in evaluations? Give me the employee name.", "answer": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -2234,7 +2986,10 @@ { "query_id": 279, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee", + "evaluation" + ], "query": "Find the name of the employee who got the highest one time bonus.", "answer": "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", "difficulty": "hard" @@ -2242,7 +2997,10 @@ { "query_id": 280, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee", + "evaluation" + ], "query": "Which employee received the biggest bonus? Give me the employee name.", "answer": "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", "difficulty": "hard" @@ -2250,7 +3008,10 @@ { "query_id": 281, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee", + "evaluation" + ], "query": "Find the names of employees who never won any award in the evaluation.", "answer": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", "difficulty": "hard" @@ -2258,7 +3019,10 @@ { "query_id": 282, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "employee", + "evaluation" + ], "query": "What are the names of the employees who never received any evaluation?", "answer": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", "difficulty": "hard" @@ -2266,7 +3030,10 @@ { "query_id": 283, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop", + "hiring" + ], "query": "What is the name of the shop that is hiring the largest number of employees?", "answer": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -2274,7 +3041,10 @@ { "query_id": 284, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop", + "hiring" + ], "query": "Which shop has the most employees? Give me the shop name.", "answer": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -2282,7 +3052,10 @@ { "query_id": 285, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop", + "hiring" + ], "query": "Find the name of the shops that do not hire any employee.", "answer": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", "difficulty": "hard" @@ -2290,7 +3063,10 @@ { "query_id": 286, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop", + "hiring" + ], "query": "Which shops run with no employees? Find the shop names", "answer": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", "difficulty": "hard" @@ -2298,7 +3074,10 @@ { "query_id": 287, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop", + "hiring" + ], "query": "Find the number of employees hired in each shop; show the shop name as well.", "answer": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", "difficulty": "medium" @@ -2306,7 +3085,10 @@ { "query_id": 288, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop", + "hiring" + ], "query": "For each shop, return the number of employees working there and the name of the shop.", "answer": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", "difficulty": "medium" @@ -2314,7 +3096,9 @@ { "query_id": 289, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "evaluation" + ], "query": "What is total bonus given in all evaluations?", "answer": "SELECT sum(bonus) FROM evaluation", "difficulty": "easy" @@ -2322,7 +3106,9 @@ { "query_id": 290, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "evaluation" + ], "query": "Find the total amount of bonus given in all the evaluations.", "answer": "SELECT sum(bonus) FROM evaluation", "difficulty": "easy" @@ -2330,7 +3116,9 @@ { "query_id": 291, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "hiring" + ], "query": "Give me all the information about hiring.", "answer": "SELECT * FROM hiring", "difficulty": "easy" @@ -2338,7 +3126,9 @@ { "query_id": 292, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "hiring" + ], "query": "What is all the information about hiring?", "answer": "SELECT * FROM hiring", "difficulty": "easy" @@ -2346,7 +3136,9 @@ { "query_id": 293, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "Which district has both stores with less than 3000 products and stores with more than 10000 products?", "answer": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", "difficulty": "hard" @@ -2354,7 +3146,9 @@ { "query_id": 294, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.", "answer": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", "difficulty": "hard" @@ -2362,7 +3156,9 @@ { "query_id": 295, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "How many different store locations are there?", "answer": "SELECT count(DISTINCT LOCATION) FROM shop", "difficulty": "easy" @@ -2370,7 +3166,9 @@ { "query_id": 296, "database_id": "employee_hire_evaluation", - "table_id": "N/A", + "table_id": [ + "shop" + ], "query": "Count the number of distinct store locations.", "answer": "SELECT count(DISTINCT LOCATION) FROM shop", "difficulty": "easy" @@ -2378,7 +3176,9 @@ { "query_id": 297, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "How many documents do we have?", "answer": "SELECT count(*) FROM Documents", "difficulty": "easy" @@ -2386,7 +3186,9 @@ { "query_id": 298, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "Count the number of documents.", "answer": "SELECT count(*) FROM Documents", "difficulty": "easy" @@ -2394,7 +3196,9 @@ { "query_id": 299, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "List document IDs, document names, and document descriptions for all documents.", "answer": "SELECT document_id , document_name , document_description FROM Documents", "difficulty": "medium" @@ -2402,7 +3206,9 @@ { "query_id": 300, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "What are the ids, names, and descriptions for all documents?", "answer": "SELECT document_id , document_name , document_description FROM Documents", "difficulty": "medium" @@ -2410,7 +3216,9 @@ { "query_id": 301, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "What is the document name and template id for document with description with the letter 'w' in it?", "answer": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", "difficulty": "medium" @@ -2418,7 +3226,9 @@ { "query_id": 302, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "Return the names and template ids for documents that contain the letter w in their description.", "answer": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", "difficulty": "medium" @@ -2426,7 +3236,9 @@ { "query_id": 303, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "What is the document id, template id and description for document named \"Robbin CV\"?", "answer": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", "difficulty": "medium" @@ -2434,7 +3246,9 @@ { "query_id": 304, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "Return the document id, template id, and description for the document with the name Robbin CV.", "answer": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", "difficulty": "medium" @@ -2442,7 +3256,9 @@ { "query_id": 305, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "How many different templates do all document use?", "answer": "SELECT count(DISTINCT template_id) FROM Documents", "difficulty": "easy" @@ -2450,7 +3266,9 @@ { "query_id": 306, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "Count the number of different templates used for documents.", "answer": "SELECT count(DISTINCT template_id) FROM Documents", "difficulty": "easy" @@ -2458,7 +3276,10 @@ { "query_id": 307, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "How many documents are using the template with type code 'PPT'?", "answer": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", "difficulty": "medium" @@ -2466,7 +3287,10 @@ { "query_id": 308, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "Count the number of documents that use the PPT template type.", "answer": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", "difficulty": "medium" @@ -2474,7 +3298,9 @@ { "query_id": 309, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "Show all template ids and number of documents using each template.", "answer": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", "difficulty": "medium" @@ -2482,7 +3308,9 @@ { "query_id": 310, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "What are all different template ids used for documents, and how many times were each of them used?", "answer": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", "difficulty": "medium" @@ -2490,7 +3318,10 @@ { "query_id": 311, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "What is the id and type code for the template used by the most documents?", "answer": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -2498,7 +3329,10 @@ { "query_id": 312, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "Return the id and type code of the template that is used for the greatest number of documents.", "answer": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -2506,7 +3340,9 @@ { "query_id": 313, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "Show ids for all templates that are used by more than one document.", "answer": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", "difficulty": "easy" @@ -2514,7 +3350,9 @@ { "query_id": 314, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents" + ], "query": "What are the template ids of any templates used in more than a single document?", "answer": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", "difficulty": "easy" @@ -2522,7 +3360,10 @@ { "query_id": 315, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "Show ids for all templates not used by any document.", "answer": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", "difficulty": "hard" @@ -2530,7 +3371,10 @@ { "query_id": 316, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "What are the ids for templates that are not used in any documents?", "answer": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", "difficulty": "hard" @@ -2538,7 +3382,9 @@ { "query_id": 317, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "How many templates do we have?", "answer": "SELECT count(*) FROM Templates", "difficulty": "easy" @@ -2546,7 +3392,9 @@ { "query_id": 318, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Count the number of templates.", "answer": "SELECT count(*) FROM Templates", "difficulty": "easy" @@ -2554,7 +3402,9 @@ { "query_id": 319, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Show template ids, version numbers, and template type codes for all templates.", "answer": "SELECT template_id , version_number , template_type_code FROM Templates", "difficulty": "medium" @@ -2562,7 +3412,9 @@ { "query_id": 320, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "What are the ids, version numbers, and type codes for each template?", "answer": "SELECT template_id , version_number , template_type_code FROM Templates", "difficulty": "medium" @@ -2570,7 +3422,9 @@ { "query_id": 321, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Show all distinct template type codes for all templates.", "answer": "SELECT DISTINCT template_type_code FROM Templates", "difficulty": "easy" @@ -2578,7 +3432,9 @@ { "query_id": 322, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "What are the different template type codes?", "answer": "SELECT DISTINCT template_type_code FROM Templates", "difficulty": "easy" @@ -2586,7 +3442,9 @@ { "query_id": 323, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "What are the ids of templates with template type code PP or PPT?", "answer": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", "difficulty": "medium" @@ -2594,7 +3452,9 @@ { "query_id": 324, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Return the ids of templates that have the code PP or PPT.", "answer": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", "difficulty": "medium" @@ -2602,7 +3462,9 @@ { "query_id": 325, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "How many templates have template type code CV?", "answer": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", "difficulty": "easy" @@ -2610,7 +3472,9 @@ { "query_id": 326, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Count the number of templates of the type CV.", "answer": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", "difficulty": "easy" @@ -2618,7 +3482,9 @@ { "query_id": 327, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "What is the version number and template type code for the template with version number later than 5?", "answer": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", "difficulty": "medium" @@ -2626,7 +3492,9 @@ { "query_id": 328, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Return the version numbers and template type codes of templates with a version number greater than 5.", "answer": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", "difficulty": "medium" @@ -2634,7 +3502,9 @@ { "query_id": 329, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Show all template type codes and number of templates for each.", "answer": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", "difficulty": "medium" @@ -2642,7 +3512,9 @@ { "query_id": 330, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "What are the different template type codes, and how many templates correspond to each?", "answer": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", "difficulty": "medium" @@ -2650,7 +3522,9 @@ { "query_id": 331, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Which template type code has most number of templates?", "answer": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -2658,7 +3532,9 @@ { "query_id": 332, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Return the type code of the template type that the most templates belong to.", "answer": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -2666,7 +3542,9 @@ { "query_id": 333, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Show all template type codes with less than three templates.", "answer": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", "difficulty": "easy" @@ -2674,7 +3552,9 @@ { "query_id": 334, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "What are the codes of template types that have fewer than 3 templates?", "answer": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", "difficulty": "easy" @@ -2682,7 +3562,9 @@ { "query_id": 335, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "What the smallest version number and its template type code?", "answer": "SELECT min(Version_Number) , template_type_code FROM Templates", "difficulty": "medium" @@ -2690,7 +3572,9 @@ { "query_id": 336, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates" + ], "query": "Return the lowest version number, along with its corresponding template type code.", "answer": "SELECT min(Version_Number) , template_type_code FROM Templates", "difficulty": "medium" @@ -2698,7 +3582,10 @@ { "query_id": 337, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "What is the template type code of the template used by document with the name \"Data base\"?", "answer": "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\"", "difficulty": "medium" @@ -2706,7 +3593,10 @@ { "query_id": 338, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "Return the template type code of the template that is used by a document named Data base.", "answer": "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\"", "difficulty": "medium" @@ -2714,7 +3604,10 @@ { "query_id": 339, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "Show all document names using templates with template type code BK.", "answer": "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\"", "difficulty": "medium" @@ -2722,7 +3615,10 @@ { "query_id": 340, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "What are the names of documents that use templates with the code BK?", "answer": "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\"", "difficulty": "medium" @@ -2730,7 +3626,10 @@ { "query_id": 341, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "Show all template type codes and the number of documents using each type.", "answer": "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", "difficulty": "medium" @@ -2738,7 +3637,10 @@ { "query_id": 342, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "What are the different template type codes, and how many documents use each type?", "answer": "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", "difficulty": "medium" @@ -2746,7 +3648,10 @@ { "query_id": 343, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "Which template type code is used by most number of documents?", "answer": "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", "difficulty": "extra" @@ -2754,7 +3659,10 @@ { "query_id": 344, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "Return the code of the template type that is most commonly used in documents.", "answer": "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", "difficulty": "extra" @@ -2762,7 +3670,10 @@ { "query_id": 345, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "Show all template type codes that are not used by any document.", "answer": "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", "difficulty": "hard" @@ -2770,7 +3681,10 @@ { "query_id": 346, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates" + ], "query": "What are the codes of template types that are not used for any document?", "answer": "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", "difficulty": "hard" @@ -2778,7 +3692,9 @@ { "query_id": 347, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Ref_template_types" + ], "query": "Show all template type codes and descriptions.", "answer": "SELECT template_type_code , template_type_description FROM Ref_template_types", "difficulty": "medium" @@ -2786,7 +3702,9 @@ { "query_id": 348, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Ref_template_types" + ], "query": "What are the type codes and descriptions for all template types?", "answer": "SELECT template_type_code , template_type_description FROM Ref_template_types", "difficulty": "medium" @@ -2794,7 +3712,9 @@ { "query_id": 349, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Ref_template_types" + ], "query": "What is the template type descriptions for template type code \"AD\".", "answer": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", "difficulty": "easy" @@ -2802,7 +3722,9 @@ { "query_id": 350, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Ref_template_types" + ], "query": "Return the template type description of the template type with the code AD.", "answer": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", "difficulty": "easy" @@ -2810,7 +3732,9 @@ { "query_id": 351, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Ref_template_types" + ], "query": "What is the template type code for template type description \"Book\".", "answer": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", "difficulty": "easy" @@ -2818,7 +3742,9 @@ { "query_id": 352, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Ref_template_types" + ], "query": "Return the type code of the template type with the description \"Book\".", "answer": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", "difficulty": "easy" @@ -2826,7 +3752,11 @@ { "query_id": 353, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates", + "Ref_template_types" + ], "query": "What are the distinct template type descriptions for the templates ever used by any document?", "answer": "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", "difficulty": "medium" @@ -2834,7 +3764,11 @@ { "query_id": 354, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Documents", + "Templates", + "Ref_template_types" + ], "query": "Return the different descriptions for templates that have been used in a document.", "answer": "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", "difficulty": "medium" @@ -2842,7 +3776,10 @@ { "query_id": 355, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates", + "Ref_template_types" + ], "query": "What are the template ids with template type description \"Presentation\".", "answer": "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\"", "difficulty": "medium" @@ -2850,7 +3787,10 @@ { "query_id": 356, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Templates", + "Ref_template_types" + ], "query": "Return the ids corresponding to templates with the description 'Presentation'.", "answer": "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\"", "difficulty": "medium" @@ -2858,7 +3798,9 @@ { "query_id": 357, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "How many paragraphs in total?", "answer": "SELECT count(*) FROM Paragraphs", "difficulty": "easy" @@ -2866,7 +3808,9 @@ { "query_id": 358, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "Count the number of paragraphs.", "answer": "SELECT count(*) FROM Paragraphs", "difficulty": "easy" @@ -2874,7 +3818,10 @@ { "query_id": 359, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs", + "Documents" + ], "query": "How many paragraphs for the document with name 'Summer Show'?", "answer": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", "difficulty": "medium" @@ -2882,7 +3829,10 @@ { "query_id": 360, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs", + "Documents" + ], "query": "Count the number of paragraphs in the document named 'Summer Show'.", "answer": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", "difficulty": "medium" @@ -2890,7 +3840,9 @@ { "query_id": 361, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "paragraphs" + ], "query": "Show paragraph details for paragraph with text 'Korea ' .", "answer": "select other_details from paragraphs where paragraph_text like 'korea'", "difficulty": "medium" @@ -2898,7 +3850,9 @@ { "query_id": 362, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "paragraphs" + ], "query": "What are the details for the paragraph that includes the text 'Korea ' ?", "answer": "select other_details from paragraphs where paragraph_text like 'korea'", "difficulty": "medium" @@ -2906,7 +3860,10 @@ { "query_id": 363, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs", + "Documents" + ], "query": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.", "answer": "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'", "difficulty": "medium" @@ -2914,7 +3871,10 @@ { "query_id": 364, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs", + "Documents" + ], "query": "What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?", "answer": "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'", "difficulty": "medium" @@ -2922,7 +3882,10 @@ { "query_id": 365, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs", + "Documents" + ], "query": "Show all paragraph texts for the document \"Customer reviews\".", "answer": "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\"", "difficulty": "medium" @@ -2930,7 +3893,10 @@ { "query_id": 366, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs", + "Documents" + ], "query": "What are the paragraph texts for the document with the name 'Customer reviews'?", "answer": "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\"", "difficulty": "medium" @@ -2938,7 +3904,9 @@ { "query_id": 367, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "Show all document ids and the number of paragraphs in each document. Order by document id.", "answer": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", "difficulty": "medium" @@ -2946,7 +3914,9 @@ { "query_id": 368, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.", "answer": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", "difficulty": "medium" @@ -2954,7 +3924,10 @@ { "query_id": 369, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs", + "Documents" + ], "query": "Show all document ids, names and the number of paragraphs in each document.", "answer": "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", "difficulty": "medium" @@ -2962,7 +3935,10 @@ { "query_id": 370, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs", + "Documents" + ], "query": "What are the ids and names of each document, as well as the number of paragraphs in each?", "answer": "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", "difficulty": "medium" @@ -2970,7 +3946,9 @@ { "query_id": 371, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "List all document ids with at least two paragraphs.", "answer": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", "difficulty": "easy" @@ -2978,7 +3956,9 @@ { "query_id": 372, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "What are the ids of documents that have 2 or more paragraphs?", "answer": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", "difficulty": "easy" @@ -2986,7 +3966,10 @@ { "query_id": 373, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs", + "Documents" + ], "query": "What is the document id and name with greatest number of paragraphs?", "answer": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -2994,7 +3977,10 @@ { "query_id": 374, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs", + "Documents" + ], "query": "Return the id and name of the document with the most paragraphs.", "answer": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -3002,7 +3988,9 @@ { "query_id": 375, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "What is the document id with least number of paragraphs?", "answer": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", "difficulty": "hard" @@ -3010,7 +3998,9 @@ { "query_id": 376, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "Return the id of the document with the fewest paragraphs.", "answer": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", "difficulty": "hard" @@ -3018,7 +4008,9 @@ { "query_id": 377, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "What is the document id with 1 to 2 paragraphs?", "answer": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", "difficulty": "easy" @@ -3026,7 +4018,9 @@ { "query_id": 378, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "Give the ids of documents that have between one and two paragraphs.", "answer": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", "difficulty": "easy" @@ -3034,7 +4028,9 @@ { "query_id": 379, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "Show the document id with paragraph text 'Brazil' and 'Ireland'.", "answer": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", "difficulty": "hard" @@ -3042,7 +4038,9 @@ { "query_id": 380, "database_id": "cre_Doc_Template_Mgt", - "table_id": "N/A", + "table_id": [ + "Paragraphs" + ], "query": "What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?", "answer": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", "difficulty": "hard" @@ -3050,7 +4048,9 @@ { "query_id": 381, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "How many teachers are there?", "answer": "SELECT count(*) FROM teacher", "difficulty": "easy" @@ -3058,7 +4058,9 @@ { "query_id": 382, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "What is the total count of teachers?", "answer": "SELECT count(*) FROM teacher", "difficulty": "easy" @@ -3066,7 +4068,9 @@ { "query_id": 383, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "List the names of teachers in ascending order of age.", "answer": "SELECT Name FROM teacher ORDER BY Age ASC", "difficulty": "easy" @@ -3074,7 +4078,9 @@ { "query_id": 384, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "What are the names of the teachers ordered by ascending age?", "answer": "SELECT Name FROM teacher ORDER BY Age ASC", "difficulty": "easy" @@ -3082,7 +4088,9 @@ { "query_id": 385, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "What are the age and hometown of teachers?", "answer": "SELECT Age , Hometown FROM teacher", "difficulty": "medium" @@ -3090,7 +4098,9 @@ { "query_id": 386, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "What is the age and hometown of every teacher?", "answer": "SELECT Age , Hometown FROM teacher", "difficulty": "medium" @@ -3098,7 +4108,9 @@ { "query_id": 387, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "List the name of teachers whose hometown is not `` Little Lever Urban District '' .", "answer": "select name from teacher where hometown != \"little lever urban district\"", "difficulty": "easy" @@ -3106,7 +4118,9 @@ { "query_id": 388, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?", "answer": "select name from teacher where hometown != \"little lever urban district\"", "difficulty": "easy" @@ -3114,7 +4128,9 @@ { "query_id": 389, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "Show the name of teachers aged either 32 or 33?", "answer": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", "difficulty": "medium" @@ -3122,7 +4138,9 @@ { "query_id": 390, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "What are the names of the teachers who are aged either 32 or 33?", "answer": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", "difficulty": "medium" @@ -3130,7 +4148,9 @@ { "query_id": 391, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "What is the hometown of the youngest teacher?", "answer": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", "difficulty": "medium" @@ -3138,7 +4158,9 @@ { "query_id": 392, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "Where is the youngest teacher from?", "answer": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", "difficulty": "medium" @@ -3146,7 +4168,9 @@ { "query_id": 393, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "Show different hometown of teachers and the number of teachers from each hometown.", "answer": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown", "difficulty": "medium" @@ -3154,7 +4178,9 @@ { "query_id": 394, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "For each hometown, how many teachers are there?", "answer": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown", "difficulty": "medium" @@ -3162,7 +4188,9 @@ { "query_id": 395, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "List the most common hometown of teachers.", "answer": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "hard" @@ -3170,7 +4198,9 @@ { "query_id": 396, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "What is the most commmon hometowns for teachers?", "answer": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "hard" @@ -3178,7 +4208,9 @@ { "query_id": 397, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "Show the hometowns shared by at least two teachers.", "answer": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", "difficulty": "easy" @@ -3186,7 +4218,9 @@ { "query_id": 398, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher" + ], "query": "What are the towns from which at least two teachers come from?", "answer": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", "difficulty": "easy" @@ -3194,7 +4228,11 @@ { "query_id": 399, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course", + "course_arrange" + ], "query": "Show names of teachers and the courses they are arranged to teach.", "answer": "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", "difficulty": "medium" @@ -3202,7 +4240,11 @@ { "query_id": 400, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course", + "course_arrange" + ], "query": "What is the name of each teacher and what course they teach?", "answer": "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", "difficulty": "medium" @@ -3210,7 +4252,11 @@ { "query_id": 401, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course", + "course_arrange" + ], "query": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.", "answer": "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 ORDER BY T3.Name", "difficulty": "hard" @@ -3218,7 +4264,11 @@ { "query_id": 402, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course", + "course_arrange" + ], "query": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?", "answer": "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 ORDER BY T3.Name", "difficulty": "hard" @@ -3226,7 +4276,11 @@ { "query_id": 403, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course", + "course_arrange" + ], "query": "Show the name of the teacher for the math course.", "answer": "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\"", "difficulty": "hard" @@ -3234,7 +4288,11 @@ { "query_id": 404, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course", + "course_arrange" + ], "query": "What are the names of the people who teach math courses?", "answer": "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\"", "difficulty": "hard" @@ -3242,7 +4300,10 @@ { "query_id": 405, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course_arrange" + ], "query": "Show names of teachers and the number of courses they teach.", "answer": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", "difficulty": "medium" @@ -3250,7 +4311,10 @@ { "query_id": 406, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course_arrange" + ], "query": "What are the names of the teachers and how many courses do they teach?", "answer": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", "difficulty": "medium" @@ -3258,7 +4322,10 @@ { "query_id": 407, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course_arrange" + ], "query": "Show names of teachers that teach at least two courses.", "answer": "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", "difficulty": "medium" @@ -3266,7 +4333,10 @@ { "query_id": 408, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course_arrange" + ], "query": "What are the names of the teachers who teach at least two courses?", "answer": "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", "difficulty": "medium" @@ -3274,7 +4344,10 @@ { "query_id": 409, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course_arrange" + ], "query": "List the names of teachers who have not been arranged to teach courses.", "answer": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", "difficulty": "hard" @@ -3282,7 +4355,10 @@ { "query_id": 410, "database_id": "course_teach", - "table_id": "N/A", + "table_id": [ + "teacher", + "course_arrange" + ], "query": "What are the names of the teachers whose courses have not been arranged?", "answer": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", "difficulty": "hard" @@ -3290,7 +4366,9 @@ { "query_id": 411, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visitor" + ], "query": "How many visitors below age 30 are there?", "answer": "SELECT count(*) FROM visitor WHERE age < 30", "difficulty": "easy" @@ -3298,7 +4376,9 @@ { "query_id": 412, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visitor" + ], "query": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.", "answer": "SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC", "difficulty": "medium" @@ -3306,7 +4386,9 @@ { "query_id": 413, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visitor" + ], "query": "What is the average age of the visitors whose membership level is not higher than 4?", "answer": "SELECT avg(age) FROM visitor WHERE Level_of_membership <= 4", "difficulty": "easy" @@ -3314,7 +4396,9 @@ { "query_id": 414, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visitor" + ], "query": "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.", "answer": "SELECT name , Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC", "difficulty": "medium" @@ -3322,7 +4406,9 @@ { "query_id": 415, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "museum" + ], "query": "Find the id and name of the museum that has the most staff members?", "answer": "SELECT museum_id , name FROM museum ORDER BY num_of_staff DESC LIMIT 1", "difficulty": "medium" @@ -3330,7 +4416,9 @@ { "query_id": 416, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "museum" + ], "query": "Find the average number of staff working for the museums that were open before 2009.", "answer": "SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009", "difficulty": "easy" @@ -3338,7 +4426,9 @@ { "query_id": 417, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "museum" + ], "query": "What are the opening year and staff number of the museum named Plaza Museum?", "answer": "SELECT Num_of_Staff , Open_Year FROM museum WHERE name = 'Plaza Museum'", "difficulty": "medium" @@ -3346,7 +4436,9 @@ { "query_id": 418, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "museum" + ], "query": "find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.", "answer": "SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010)", "difficulty": "hard" @@ -3354,7 +4446,10 @@ { "query_id": 419, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visit", + "visitor" + ], "query": "find the id, name and age for visitors who visited some museums more than once.", "answer": "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 HAVING count(*) > 1", "difficulty": "medium" @@ -3362,7 +4457,10 @@ { "query_id": 420, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visit", + "visitor" + ], "query": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?", "answer": "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 ORDER BY sum(t2.Total_spent) DESC LIMIT 1", "difficulty": "extra" @@ -3370,7 +4468,10 @@ { "query_id": 421, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visit", + "museum" + ], "query": "What are the id and name of the museum visited most times?", "answer": "SELECT t2.Museum_ID , t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -3378,7 +4479,10 @@ { "query_id": 422, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visit", + "museum" + ], "query": "What is the name of the museum that had no visitor yet?", "answer": "SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)", "difficulty": "hard" @@ -3386,7 +4490,10 @@ { "query_id": 423, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visit", + "visitor" + ], "query": "Find the name and age of the visitor who bought the most tickets at once.", "answer": "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", "difficulty": "hard" @@ -3394,7 +4501,9 @@ { "query_id": 424, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visit" + ], "query": "What are the average and maximum number of tickets bought in all visits?", "answer": "SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit", "difficulty": "medium" @@ -3402,7 +4511,10 @@ { "query_id": 425, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visit", + "visitor" + ], "query": "What is the total ticket expense of the visitors whose membership level is 1?", "answer": "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", "difficulty": "medium" @@ -3410,7 +4522,11 @@ { "query_id": 426, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visit", + "visitor", + "museum" + ], "query": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", "answer": "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", "difficulty": "extra" @@ -3418,7 +4534,11 @@ { "query_id": 427, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "visit", + "visitor", + "museum" + ], "query": "Find the number of visitors who did not visit any museum opened after 2010.", "answer": "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)", "difficulty": "extra" @@ -3426,7 +4546,9 @@ { "query_id": 428, "database_id": "museum_visit", - "table_id": "N/A", + "table_id": [ + "museum" + ], "query": "How many museums were opened after 2013 or before 2008?", "answer": "SELECT count(*) FROM museum WHERE open_year > 2013 OR open_year < 2008", "difficulty": "medium" @@ -3434,7 +4556,9 @@ { "query_id": 429, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "Find the total number of players.", "answer": "SELECT count(*) FROM players", "difficulty": "easy" @@ -3442,7 +4566,9 @@ { "query_id": 430, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "How many players are there?", "answer": "SELECT count(*) FROM players", "difficulty": "easy" @@ -3450,7 +4576,9 @@ { "query_id": 431, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the total number of matches.", "answer": "SELECT count(*) FROM matches", "difficulty": "easy" @@ -3458,7 +4586,9 @@ { "query_id": 432, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Count the number of matches.", "answer": "SELECT count(*) FROM matches", "difficulty": "easy" @@ -3466,7 +4596,9 @@ { "query_id": 433, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "List the first name and birth date of all players from the country with code USA.", "answer": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'", "difficulty": "medium" @@ -3474,7 +4606,9 @@ { "query_id": 434, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "What are the first names and birth dates of players from the USA?", "answer": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'", "difficulty": "medium" @@ -3482,7 +4616,9 @@ { "query_id": 435, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the average age of losers and winners of all matches.", "answer": "SELECT avg(loser_age) , avg(winner_age) FROM matches", "difficulty": "medium" @@ -3490,7 +4626,9 @@ { "query_id": 436, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "What are the average ages of losers and winners across matches?", "answer": "SELECT avg(loser_age) , avg(winner_age) FROM matches", "difficulty": "medium" @@ -3498,7 +4636,9 @@ { "query_id": 437, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the average rank of winners in all matches.", "answer": "SELECT avg(winner_rank) FROM matches", "difficulty": "easy" @@ -3506,7 +4646,9 @@ { "query_id": 438, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "What is the average rank for winners in all matches?", "answer": "SELECT avg(winner_rank) FROM matches", "difficulty": "easy" @@ -3514,7 +4656,9 @@ { "query_id": 439, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the highest rank of losers in all matches.", "answer": "SELECT min(loser_rank) FROM matches", "difficulty": "easy" @@ -3522,7 +4666,9 @@ { "query_id": 440, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "What is the best rank of losers across all matches?", "answer": "SELECT min(loser_rank) FROM matches", "difficulty": "easy" @@ -3530,7 +4676,9 @@ { "query_id": 441, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "find the number of distinct country codes of all players.", "answer": "SELECT count(DISTINCT country_code) FROM players", "difficulty": "easy" @@ -3538,7 +4686,9 @@ { "query_id": 442, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "How many distinct countries do players come from?", "answer": "SELECT count(DISTINCT country_code) FROM players", "difficulty": "easy" @@ -3546,7 +4696,9 @@ { "query_id": 443, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the number of distinct name of losers.", "answer": "SELECT count(DISTINCT loser_name) FROM matches", "difficulty": "easy" @@ -3554,7 +4706,9 @@ { "query_id": 444, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "How many different loser names are there?", "answer": "SELECT count(DISTINCT loser_name) FROM matches", "difficulty": "easy" @@ -3562,7 +4716,9 @@ { "query_id": 445, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the name of tourney that has more than 10 matches.", "answer": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", "difficulty": "easy" @@ -3570,7 +4726,9 @@ { "query_id": 446, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "What are the names of tournaments that have more than 10 matches?", "answer": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", "difficulty": "easy" @@ -3578,7 +4736,9 @@ { "query_id": 447, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "List the names of all winners who played in both 2013 and 2016.", "answer": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", "difficulty": "hard" @@ -3586,7 +4746,9 @@ { "query_id": 448, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "What are the names of players who won in both 2013 and 2016?", "answer": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", "difficulty": "hard" @@ -3594,7 +4756,9 @@ { "query_id": 449, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "List the number of all matches who played in years of 2013 or 2016.", "answer": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", "difficulty": "medium" @@ -3602,7 +4766,9 @@ { "query_id": 450, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "How many matches were played in 2013 or 2016?", "answer": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", "difficulty": "medium" @@ -3610,7 +4776,10 @@ { "query_id": 451, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players", + "matches" + ], "query": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?", "answer": "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'", "difficulty": "extra" @@ -3618,7 +4787,10 @@ { "query_id": 452, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players", + "matches" + ], "query": "What are the first names and country codes for players who won both the WTA Championships and the Australian Open?", "answer": "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'", "difficulty": "extra" @@ -3626,7 +4798,9 @@ { "query_id": 453, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "Find the first name and country code of the oldest player.", "answer": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1", "difficulty": "medium" @@ -3634,7 +4808,9 @@ { "query_id": 454, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "What is the first name and country code of the oldest player?", "answer": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1", "difficulty": "medium" @@ -3642,7 +4818,9 @@ { "query_id": 455, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "List the first and last name of all players in the order of birth date.", "answer": "SELECT first_name , last_name FROM players ORDER BY birth_date", "difficulty": "medium" @@ -3650,7 +4828,9 @@ { "query_id": 456, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "What are the full names of all players, sorted by birth date?", "answer": "SELECT first_name , last_name FROM players ORDER BY birth_date", "difficulty": "medium" @@ -3658,7 +4838,9 @@ { "query_id": 457, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "List the first and last name of all players who are left / L hand in the order of birth date.", "answer": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date", "difficulty": "medium" @@ -3666,7 +4848,9 @@ { "query_id": 458, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "What are the full names of all left handed players, in order of birth date?", "answer": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date", "difficulty": "medium" @@ -3674,7 +4858,10 @@ { "query_id": 459, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "rankings", + "players" + ], "query": "Find the first name and country code of the player who did the most number of tours.", "answer": "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", "difficulty": "hard" @@ -3682,7 +4869,10 @@ { "query_id": 460, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "rankings", + "players" + ], "query": "What is the first name and country code of the player with the most tours?", "answer": "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", "difficulty": "hard" @@ -3690,7 +4880,9 @@ { "query_id": 461, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the year that has the most number of matches.", "answer": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -3698,7 +4890,9 @@ { "query_id": 462, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Which year had the most matches?", "answer": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -3706,7 +4900,9 @@ { "query_id": 463, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the name and rank points of the winner who won the most times.", "answer": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -3714,7 +4910,9 @@ { "query_id": 464, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "What is the name of the winner who has won the most matches, and how many rank points does this player have?", "answer": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -3722,7 +4920,9 @@ { "query_id": 465, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.", "answer": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", "difficulty": "hard" @@ -3730,7 +4930,9 @@ { "query_id": 466, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "What is the name of the winner with the most rank points who participated in the Australian Open tournament?", "answer": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", "difficulty": "hard" @@ -3738,7 +4940,9 @@ { "query_id": 467, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "find the names of loser and winner who played in the match with greatest number of minutes.", "answer": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1", "difficulty": "medium" @@ -3746,7 +4950,9 @@ { "query_id": 468, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "What are the names of the winner and loser who played in the longest match?", "answer": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1", "difficulty": "medium" @@ -3754,7 +4960,10 @@ { "query_id": 469, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "rankings", + "players" + ], "query": "Find the average ranking for each player and their first name.", "answer": "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", "difficulty": "medium" @@ -3762,7 +4971,10 @@ { "query_id": 470, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "rankings", + "players" + ], "query": "What are the first names of all players, and their average rankings?", "answer": "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", "difficulty": "medium" @@ -3770,7 +4982,10 @@ { "query_id": 471, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "rankings", + "players" + ], "query": "Find the total ranking points for each player and their first name.", "answer": "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", "difficulty": "medium" @@ -3778,7 +4993,10 @@ { "query_id": 472, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "rankings", + "players" + ], "query": "What are the first names of all players, and their total ranking points?", "answer": "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", "difficulty": "medium" @@ -3786,7 +5004,9 @@ { "query_id": 473, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "find the number of players for each country.", "answer": "SELECT count(*) , country_code FROM players GROUP BY country_code", "difficulty": "medium" @@ -3794,7 +5014,9 @@ { "query_id": 474, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "How many players are from each country?", "answer": "SELECT count(*) , country_code FROM players GROUP BY country_code", "difficulty": "medium" @@ -3802,7 +5024,9 @@ { "query_id": 475, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "find the code of the country where has the greatest number of players.", "answer": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -3810,7 +5034,9 @@ { "query_id": 476, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "What is the code of the country with the most players?", "answer": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -3818,7 +5044,9 @@ { "query_id": 477, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "Find the codes of countries that have more than 50 players.", "answer": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", "difficulty": "easy" @@ -3826,7 +5054,9 @@ { "query_id": 478, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "What are the codes of countries with more than 50 players?", "answer": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", "difficulty": "easy" @@ -3834,7 +5064,9 @@ { "query_id": 479, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "rankings" + ], "query": "Find the total number of tours for each ranking date.", "answer": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date", "difficulty": "medium" @@ -3842,7 +5074,9 @@ { "query_id": 480, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "rankings" + ], "query": "How many total tours were there for each ranking date?", "answer": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date", "difficulty": "medium" @@ -3850,7 +5084,9 @@ { "query_id": 481, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the number of matches happened in each year.", "answer": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR", "difficulty": "medium" @@ -3858,7 +5094,9 @@ { "query_id": 482, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "How many matches were played in each year?", "answer": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR", "difficulty": "medium" @@ -3866,7 +5104,9 @@ { "query_id": 483, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the name and rank of the 3 youngest winners across all matches.", "answer": "SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3", "difficulty": "medium" @@ -3874,7 +5114,9 @@ { "query_id": 484, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "What are the names and ranks of the three youngest winners across all matches?", "answer": "SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3", "difficulty": "medium" @@ -3882,7 +5124,9 @@ { "query_id": 485, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "How many different winners both participated in the WTA Championships and were left handed?", "answer": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", "difficulty": "medium" @@ -3890,7 +5134,9 @@ { "query_id": 486, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "matches" + ], "query": "Find the number of left handed winners who participated in the WTA Championships.", "answer": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", "difficulty": "medium" @@ -3898,7 +5144,10 @@ { "query_id": 487, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players", + "matches" + ], "query": "Find the first name, country code and birth date of the winner who has the highest rank points in all matches.", "answer": "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", "difficulty": "hard" @@ -3906,7 +5155,10 @@ { "query_id": 488, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players", + "matches" + ], "query": "What is the first name, country code, and birth date of the player with the most winner rank points across all matches?", "answer": "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", "difficulty": "hard" @@ -3914,7 +5166,9 @@ { "query_id": 489, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "Find the number of players for each hand type.", "answer": "SELECT count(*) , hand FROM players GROUP BY hand", "difficulty": "medium" @@ -3922,7 +5176,9 @@ { "query_id": 490, "database_id": "wta_1", - "table_id": "N/A", + "table_id": [ + "players" + ], "query": "How many players are there for each hand type?", "answer": "SELECT count(*) , hand FROM players GROUP BY hand", "difficulty": "medium" @@ -3930,7 +5186,9 @@ { "query_id": 491, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "ship" + ], "query": "How many ships ended up being 'Captured'?", "answer": "SELECT count(*) FROM ship WHERE disposition_of_ship = 'Captured'", "difficulty": "easy" @@ -3938,7 +5196,9 @@ { "query_id": 492, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "ship" + ], "query": "List the name and tonnage ordered by in descending alphaetical order for the names.", "answer": "SELECT name , tonnage FROM ship ORDER BY name DESC", "difficulty": "medium" @@ -3946,7 +5206,9 @@ { "query_id": 493, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "battle" + ], "query": "List the name, date and result of each battle.", "answer": "SELECT name , date FROM battle", "difficulty": "medium" @@ -3954,7 +5216,9 @@ { "query_id": 494, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "death" + ], "query": "What is maximum and minimum death toll caused each time?", "answer": "SELECT max(killed) , min(killed) FROM death", "difficulty": "medium" @@ -3962,7 +5226,9 @@ { "query_id": 495, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "death" + ], "query": "What is the average number of injuries caused each time?", "answer": "SELECT avg(injured) FROM death", "difficulty": "easy" @@ -3970,7 +5236,10 @@ { "query_id": 496, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "ship", + "death" + ], "query": "What are the death and injury situations caused by the ship with tonnage 't'?", "answer": "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'", "difficulty": "medium" @@ -3978,7 +5247,9 @@ { "query_id": 497, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "battle" + ], "query": "What are the name and results of the battles when the bulgarian commander is not 'Boril'", "answer": "SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'", "difficulty": "medium" @@ -3986,7 +5257,10 @@ { "query_id": 498, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "battle", + "ship" + ], "query": "What are the different ids and names of the battles that lost any 'Brig' type shipes?", "answer": "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'", "difficulty": "medium" @@ -3994,7 +5268,11 @@ { "query_id": 499, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "death", + "battle", + "ship" + ], "query": "What are the ids and names of the battles that led to more than 10 people killed in total.", "answer": "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 HAVING sum(T3.killed) > 10", "difficulty": "hard" @@ -4002,7 +5280,10 @@ { "query_id": 500, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "ship", + "death" + ], "query": "What is the ship id and name that caused most total injuries?", "answer": "SELECT T2.id , T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4010,7 +5291,9 @@ { "query_id": 501, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "battle" + ], "query": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?", "answer": "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'", "difficulty": "medium" @@ -4018,7 +5301,9 @@ { "query_id": 502, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "battle" + ], "query": "How many different results are there for the battles?", "answer": "SELECT count(DISTINCT RESULT) FROM battle", "difficulty": "easy" @@ -4026,7 +5311,10 @@ { "query_id": 503, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "battle", + "ship" + ], "query": "How many battles did not lose any ship with tonnage '225'?", "answer": "SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage = '225' );", "difficulty": "extra" @@ -4034,7 +5322,10 @@ { "query_id": 504, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "battle", + "ship" + ], "query": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'", "answer": "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'", "difficulty": "extra" @@ -4042,7 +5333,10 @@ { "query_id": 505, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "battle", + "ship" + ], "query": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.", "answer": "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'", "difficulty": "extra" @@ -4050,7 +5344,9 @@ { "query_id": 506, "database_id": "battle_death", - "table_id": "N/A", + "table_id": [ + "death" + ], "query": "What are the notes of the death events which has substring 'East'?", "answer": "SELECT note FROM death WHERE note LIKE '%East%'", "difficulty": "medium" @@ -4058,7 +5354,9 @@ { "query_id": 507, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "addresses" + ], "query": "what are all the addresses including line 1 and line 2?", "answer": "SELECT line_1 , line_2 FROM addresses", "difficulty": "medium" @@ -4066,7 +5364,9 @@ { "query_id": 508, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "addresses" + ], "query": "What is the first and second line for all addresses?", "answer": "SELECT line_1 , line_2 FROM addresses", "difficulty": "medium" @@ -4074,7 +5374,9 @@ { "query_id": 509, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Courses" + ], "query": "How many courses in total are listed?", "answer": "SELECT count(*) FROM Courses", "difficulty": "easy" @@ -4082,7 +5384,9 @@ { "query_id": 510, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Courses" + ], "query": "How many courses are there?", "answer": "SELECT count(*) FROM Courses", "difficulty": "easy" @@ -4090,7 +5394,9 @@ { "query_id": 511, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Courses" + ], "query": "How is the math course described?", "answer": "SELECT course_description FROM Courses WHERE course_name = 'math'", "difficulty": "easy" @@ -4098,7 +5404,9 @@ { "query_id": 512, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Courses" + ], "query": "What are the descriptions for all the math courses?", "answer": "SELECT course_description FROM Courses WHERE course_name = 'math'", "difficulty": "easy" @@ -4106,7 +5414,9 @@ { "query_id": 513, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Addresses" + ], "query": "What is the zip code of the address in the city Port Chelsea?", "answer": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", "difficulty": "easy" @@ -4114,7 +5424,9 @@ { "query_id": 514, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Addresses" + ], "query": "What is the zip code for Port Chelsea?", "answer": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", "difficulty": "easy" @@ -4122,7 +5434,10 @@ { "query_id": 515, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Departments" + ], "query": "Which department offers the most number of degrees? List department name and id.", "answer": "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 ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4130,7 +5445,10 @@ { "query_id": 516, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "departments", + "degree_programs" + ], "query": "What is the name and id of the department with the most number of degrees ?", "answer": "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 order by count(*) desc limit 1", "difficulty": "extra" @@ -4138,7 +5456,9 @@ { "query_id": 517, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs" + ], "query": "How many departments offer any degree?", "answer": "SELECT count(DISTINCT department_id) FROM Degree_Programs", "difficulty": "easy" @@ -4146,7 +5466,9 @@ { "query_id": 518, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs" + ], "query": "How many different departments offer degrees?", "answer": "SELECT count(DISTINCT department_id) FROM Degree_Programs", "difficulty": "easy" @@ -4154,7 +5476,9 @@ { "query_id": 519, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs" + ], "query": "How many different degree names are offered?", "answer": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", "difficulty": "easy" @@ -4162,7 +5486,9 @@ { "query_id": 520, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs" + ], "query": "How many different degrees are offered?", "answer": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", "difficulty": "easy" @@ -4170,7 +5496,10 @@ { "query_id": 521, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Departments" + ], "query": "How many degrees does the engineering department offer?", "answer": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", "difficulty": "medium" @@ -4178,7 +5507,10 @@ { "query_id": 522, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Departments" + ], "query": "How many degrees does the engineering department have?", "answer": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", "difficulty": "medium" @@ -4186,7 +5518,9 @@ { "query_id": 523, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Sections" + ], "query": "What are the names and descriptions of all the sections?", "answer": "SELECT section_name , section_description FROM Sections", "difficulty": "medium" @@ -4194,7 +5528,9 @@ { "query_id": 524, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Sections" + ], "query": "What are the names and descriptions for all the sections?", "answer": "SELECT section_name , section_description FROM Sections", "difficulty": "medium" @@ -4202,7 +5538,10 @@ { "query_id": 525, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Courses", + "Sections" + ], "query": "What are the names and id of courses having at most 2 sections?", "answer": "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 HAVING count(*) <= 2", "difficulty": "medium" @@ -4210,7 +5549,10 @@ { "query_id": 526, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Courses", + "Sections" + ], "query": "What are the names and ids of every course with less than 2 sections?", "answer": "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 HAVING count(*) <= 2", "difficulty": "medium" @@ -4218,7 +5560,9 @@ { "query_id": 527, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Sections" + ], "query": "List the section_name in reversed lexicographical order.", "answer": "SELECT section_name FROM Sections ORDER BY section_name DESC", "difficulty": "easy" @@ -4226,7 +5570,9 @@ { "query_id": 528, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Sections" + ], "query": "What are the names of the sections in reverse alphabetical order?", "answer": "SELECT section_name FROM Sections ORDER BY section_name DESC", "difficulty": "easy" @@ -4234,7 +5580,10 @@ { "query_id": 529, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Semesters", + "Student_Enrolment" + ], "query": "What is the semester which most student registered in? Show both the name and the id.", "answer": "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 ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4242,7 +5591,10 @@ { "query_id": 530, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Semesters", + "Student_Enrolment" + ], "query": "For each semester, what is the name and id of the one with the most students registered?", "answer": "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 ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4250,7 +5602,9 @@ { "query_id": 531, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Departments" + ], "query": "What is the description of the department whose name has the substring the computer?", "answer": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", "difficulty": "medium" @@ -4258,7 +5612,9 @@ { "query_id": 532, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Departments" + ], "query": "What is the department description for the one whose name has the word computer?", "answer": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", "difficulty": "medium" @@ -4266,7 +5622,10 @@ { "query_id": 533, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Student_Enrolment", + "Students" + ], "query": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", "answer": "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 HAVING count(*) = 2", "difficulty": "medium" @@ -4274,7 +5633,10 @@ { "query_id": 534, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Student_Enrolment", + "Students" + ], "query": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?", "answer": "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 HAVING count(*) = 2", "difficulty": "medium" @@ -4282,7 +5644,11 @@ { "query_id": 535, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Student_Enrolment", + "Students" + ], "query": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.", "answer": "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'", "difficulty": "hard" @@ -4290,7 +5656,11 @@ { "query_id": 536, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Student_Enrolment", + "Students" + ], "query": "What are the first, middle, and last names for everybody enrolled in a Bachelors program?", "answer": "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'", "difficulty": "hard" @@ -4298,7 +5668,10 @@ { "query_id": 537, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Student_Enrolment" + ], "query": "Find the kind of program which most number of students are enrolled in?", "answer": "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", "difficulty": "extra" @@ -4306,7 +5679,10 @@ { "query_id": 538, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Student_Enrolment" + ], "query": "What is the degree summary name that has the most number of students enrolled?", "answer": "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", "difficulty": "extra" @@ -4314,7 +5690,10 @@ { "query_id": 539, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Student_Enrolment" + ], "query": "Find the program which most number of students are enrolled in. List both the id and the summary.", "answer": "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 ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4322,7 +5701,10 @@ { "query_id": 540, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Student_Enrolment" + ], "query": "What is the program id and the summary of the degree that has the most students enrolled?", "answer": "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 ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4330,7 +5712,10 @@ { "query_id": 541, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Student_Enrolment", + "Students" + ], "query": "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.", "answer": "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 ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4338,7 +5723,10 @@ { "query_id": 542, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Student_Enrolment", + "Students" + ], "query": "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?", "answer": "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 ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4346,7 +5734,10 @@ { "query_id": 543, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Semesters", + "Student_Enrolment" + ], "query": "Which semesters do not have any student enrolled? List the semester name.", "answer": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )", "difficulty": "hard" @@ -4354,7 +5745,10 @@ { "query_id": 544, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Semesters", + "Student_Enrolment" + ], "query": "What is the name of the semester with no students enrolled?", "answer": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )", "difficulty": "hard" @@ -4362,7 +5756,10 @@ { "query_id": 545, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Courses", + "Student_Enrolment_Courses" + ], "query": "What are all the course names of the courses which ever have students enrolled in?", "answer": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", "difficulty": "easy" @@ -4370,7 +5767,10 @@ { "query_id": 546, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Courses", + "Student_Enrolment_Courses" + ], "query": "What are the names of all courses that have some students enrolled?", "answer": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", "difficulty": "easy" @@ -4378,7 +5778,10 @@ { "query_id": 547, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Courses", + "Student_Enrolment_Courses" + ], "query": "What's the name of the course with most number of enrollments?", "answer": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4386,7 +5789,10 @@ { "query_id": 548, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Courses", + "Student_Enrolment_Courses" + ], "query": "What is the name of the course with the most students enrolled?", "answer": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4394,7 +5800,11 @@ { "query_id": 549, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Addresses", + "Student_Enrolment", + "Students" + ], "query": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.", "answer": "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", "difficulty": "extra" @@ -4402,7 +5812,11 @@ { "query_id": 550, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Addresses", + "Student_Enrolment", + "Students" + ], "query": "What are the last name of the students who live in North Carolina but have not registered in any degree programs?", "answer": "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", "difficulty": "extra" @@ -4410,7 +5824,10 @@ { "query_id": 551, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcript_Contents", + "Transcripts" + ], "query": "Show the date and id of the transcript with at least 2 course results.", "answer": "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 HAVING count(*) >= 2", "difficulty": "medium" @@ -4418,7 +5835,10 @@ { "query_id": 552, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcript_Contents", + "Transcripts" + ], "query": "What is the date and id of the transcript with at least 2 courses listed?", "answer": "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 HAVING count(*) >= 2", "difficulty": "medium" @@ -4426,7 +5846,9 @@ { "query_id": 553, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "What is the phone number of the man with the first name Timmothy and the last name Ward?", "answer": "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'", "difficulty": "medium" @@ -4434,7 +5856,9 @@ { "query_id": 554, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "students" + ], "query": "What is the mobile phone number of the student named Timmothy Ward ?", "answer": "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'", "difficulty": "medium" @@ -4442,7 +5866,9 @@ { "query_id": 555, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "Who is the first student to register? List the first name, middle name and last name.", "answer": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", "difficulty": "medium" @@ -4450,7 +5876,9 @@ { "query_id": 556, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "What is the first, middle, and last name of the first student to register?", "answer": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", "difficulty": "medium" @@ -4458,7 +5886,9 @@ { "query_id": 557, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "Who is the earliest graduate of the school? List the first name, middle name and last name.", "answer": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1", "difficulty": "medium" @@ -4466,7 +5896,9 @@ { "query_id": 558, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "What is the first, middle, and last name of the earliest school graduate?", "answer": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1", "difficulty": "medium" @@ -4474,7 +5906,9 @@ { "query_id": 559, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "Whose permanent address is different from his or her current address? List his or her first name.", "answer": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", "difficulty": "easy" @@ -4482,7 +5916,9 @@ { "query_id": 560, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "What is the first name of the student whose permanent address is different from his or her current one?", "answer": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", "difficulty": "easy" @@ -4490,7 +5926,10 @@ { "query_id": 561, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Addresses", + "Students" + ], "query": "Which address holds the most number of students currently? List the address id and all lines.", "answer": "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 ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4498,7 +5937,10 @@ { "query_id": 562, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Addresses", + "Students" + ], "query": "What is the id, line 1, and line 2 of the address with the most students?", "answer": "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 ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -4506,7 +5948,9 @@ { "query_id": 563, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcripts" + ], "query": "On average, when were the transcripts printed?", "answer": "SELECT avg(transcript_date) FROM Transcripts", "difficulty": "easy" @@ -4514,7 +5958,9 @@ { "query_id": 564, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcripts" + ], "query": "What is the average transcript date?", "answer": "SELECT avg(transcript_date) FROM Transcripts", "difficulty": "easy" @@ -4522,7 +5968,9 @@ { "query_id": 565, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcripts" + ], "query": "When is the first transcript released? List the date and details.", "answer": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", "difficulty": "medium" @@ -4530,7 +5978,9 @@ { "query_id": 566, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcripts" + ], "query": "What is the earliest date of a transcript release, and what details can you tell me?", "answer": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", "difficulty": "medium" @@ -4538,7 +5988,9 @@ { "query_id": 567, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcripts" + ], "query": "How many transcripts are released?", "answer": "SELECT count(*) FROM Transcripts", "difficulty": "easy" @@ -4546,7 +5998,9 @@ { "query_id": 568, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcripts" + ], "query": "How many transcripts are listed?", "answer": "SELECT count(*) FROM Transcripts", "difficulty": "easy" @@ -4554,7 +6008,9 @@ { "query_id": 569, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcripts" + ], "query": "What is the last transcript release date?", "answer": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", "difficulty": "medium" @@ -4562,7 +6018,9 @@ { "query_id": 570, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcripts" + ], "query": "When was the last transcript released?", "answer": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", "difficulty": "medium" @@ -4570,7 +6028,9 @@ { "query_id": 571, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcript_Contents" + ], "query": "How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.", "answer": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -4578,7 +6038,9 @@ { "query_id": 572, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcript_Contents" + ], "query": "What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?", "answer": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -4586,7 +6048,10 @@ { "query_id": 573, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcript_Contents", + "Transcripts" + ], "query": "Show the date of the transcript which shows the least number of results, also list the id.", "answer": "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 ORDER BY count(*) ASC LIMIT 1", "difficulty": "extra" @@ -4594,7 +6059,10 @@ { "query_id": 574, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Transcript_Contents", + "Transcripts" + ], "query": "What is the date and id of the transcript with the least number of results?", "answer": "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 ORDER BY count(*) ASC LIMIT 1", "difficulty": "extra" @@ -4602,7 +6070,10 @@ { "query_id": 575, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Student_Enrolment" + ], "query": "Find the semester when both Master students and Bachelor students got enrolled in.", "answer": "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'", "difficulty": "extra" @@ -4610,7 +6081,10 @@ { "query_id": 576, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Degree_Programs", + "Student_Enrolment" + ], "query": "What is the id of the semester that had both Masters and Bachelors students enrolled?", "answer": "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'", "difficulty": "extra" @@ -4618,7 +6092,9 @@ { "query_id": 577, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "How many different addresses do the students currently live?", "answer": "SELECT count(DISTINCT current_address_id) FROM Students", "difficulty": "easy" @@ -4626,7 +6102,9 @@ { "query_id": 578, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "What are the different addresses that have students living there?", "answer": "SELECT count(DISTINCT current_address_id) FROM Students", "difficulty": "easy" @@ -4634,7 +6112,9 @@ { "query_id": 579, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "List all the student details in reversed lexicographical order.", "answer": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", "difficulty": "easy" @@ -4642,7 +6122,9 @@ { "query_id": 580, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Students" + ], "query": "What other details can you tell me about students in reverse alphabetical order?", "answer": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", "difficulty": "easy" @@ -4650,7 +6132,9 @@ { "query_id": 581, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Sections" + ], "query": "Describe the section h.", "answer": "SELECT section_description FROM Sections WHERE section_name = 'h'", "difficulty": "easy" @@ -4658,7 +6142,9 @@ { "query_id": 582, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "Sections" + ], "query": "What is the description for the section named h?", "answer": "SELECT section_description FROM Sections WHERE section_name = 'h'", "difficulty": "easy" @@ -4666,7 +6152,10 @@ { "query_id": 583, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "addresses", + "students" + ], "query": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .", "answer": "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'", "difficulty": "hard" @@ -4674,7 +6163,10 @@ { "query_id": 584, "database_id": "student_transcripts_tracking", - "table_id": "N/A", + "table_id": [ + "addresses", + "students" + ], "query": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?", "answer": "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'", "difficulty": "hard" @@ -4682,7 +6174,9 @@ { "query_id": 585, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon" + ], "query": "List the title of all cartoons in alphabetical order.", "answer": "SELECT Title FROM Cartoon ORDER BY title", "difficulty": "easy" @@ -4690,7 +6184,9 @@ { "query_id": 586, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon" + ], "query": "What are the titles of the cartoons sorted alphabetically?", "answer": "SELECT Title FROM Cartoon ORDER BY title", "difficulty": "easy" @@ -4698,7 +6194,9 @@ { "query_id": 587, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon" + ], "query": "List all cartoon directed by \"Ben Jones\".", "answer": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";", "difficulty": "easy" @@ -4706,7 +6204,9 @@ { "query_id": 588, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon" + ], "query": "What are the names of all cartoons directed by Ben Jones?", "answer": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";", "difficulty": "easy" @@ -4714,7 +6214,9 @@ { "query_id": 589, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon" + ], "query": "How many cartoons were written by \"Joseph Kuhr\"?", "answer": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";", "difficulty": "easy" @@ -4722,7 +6224,9 @@ { "query_id": 590, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon" + ], "query": "What is the number of cartoones written by Joseph Kuhr?", "answer": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";", "difficulty": "easy" @@ -4730,7 +6234,9 @@ { "query_id": 591, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon" + ], "query": "list all cartoon titles and their directors ordered by their air date", "answer": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date", "difficulty": "medium" @@ -4738,7 +6244,9 @@ { "query_id": 592, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon" + ], "query": "What is the name and directors of all the cartoons that are ordered by air date?", "answer": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date", "difficulty": "medium" @@ -4746,7 +6254,9 @@ { "query_id": 593, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon" + ], "query": "List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\".", "answer": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";", "difficulty": "medium" @@ -4754,7 +6264,9 @@ { "query_id": 594, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon" + ], "query": "What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?", "answer": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";", "difficulty": "medium" @@ -4762,7 +6274,9 @@ { "query_id": 595, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "Which country has the most of TV Channels? List the country and number of TV Channels it has.", "answer": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", "difficulty": "hard" @@ -4770,7 +6284,9 @@ { "query_id": 596, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "What is the country with the most number of TV Channels and how many does it have?", "answer": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", "difficulty": "hard" @@ -4778,7 +6294,9 @@ { "query_id": 597, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "List the number of different series names and contents in the TV Channel table.", "answer": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;", "difficulty": "medium" @@ -4786,7 +6304,9 @@ { "query_id": 598, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "How many different series and contents are listed in the TV Channel table?", "answer": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;", "difficulty": "medium" @@ -4794,7 +6314,9 @@ { "query_id": 599, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "What is the content of TV Channel with serial name \"Sky Radio\"?", "answer": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";", "difficulty": "easy" @@ -4802,7 +6324,9 @@ { "query_id": 600, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "What is the content of the series Sky Radio?", "answer": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";", "difficulty": "easy" @@ -4810,7 +6334,9 @@ { "query_id": 601, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "What is the Package Option of TV Channel with serial name \"Sky Radio\"?", "answer": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";", "difficulty": "easy" @@ -4818,7 +6344,9 @@ { "query_id": 602, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "What are the Package Options of the TV Channels whose series names are Sky Radio?", "answer": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";", "difficulty": "easy" @@ -4826,7 +6354,9 @@ { "query_id": 603, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "How many TV Channel using language English?", "answer": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", "difficulty": "easy" @@ -4834,7 +6364,9 @@ { "query_id": 604, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "How many TV Channels use the English language?", "answer": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", "difficulty": "easy" @@ -4842,7 +6374,9 @@ { "query_id": 605, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "List the language used least number of TV Channel. List language and number of TV Channel.", "answer": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", "difficulty": "hard" @@ -4850,7 +6384,9 @@ { "query_id": 606, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "What are the languages used by the least number of TV Channels and how many channels use it?", "answer": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", "difficulty": "hard" @@ -4858,7 +6394,9 @@ { "query_id": 607, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "List each language and the number of TV Channels using it.", "answer": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE", "difficulty": "medium" @@ -4866,7 +6404,9 @@ { "query_id": 608, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "For each language, list the number of TV Channels that use it.", "answer": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE", "difficulty": "medium" @@ -4874,7 +6414,10 @@ { "query_id": 609, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon", + "TV_Channel" + ], "query": "What is the TV Channel that shows the cartoon \"The Rise of the Blue Beetle!\"? List the TV Channel's series name.", "answer": "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!\";", "difficulty": "medium" @@ -4882,7 +6425,10 @@ { "query_id": 610, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon", + "TV_Channel" + ], "query": "What is the series name of the TV Channel that shows the cartoon \"The Rise of the Blue Beetle\"?", "answer": "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!\";", "difficulty": "medium" @@ -4890,7 +6436,10 @@ { "query_id": 611, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon", + "TV_Channel" + ], "query": "List the title of all Cartoons showed on TV Channel with series name \"Sky Radio\".", "answer": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", "difficulty": "medium" @@ -4898,7 +6447,10 @@ { "query_id": 612, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "Cartoon", + "TV_Channel" + ], "query": "What is the title of all the cartools that are on the TV Channel with the series name \"Sky Radio\"?", "answer": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", "difficulty": "medium" @@ -4906,7 +6458,9 @@ { "query_id": 613, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series" + ], "query": "List the Episode of all TV series sorted by rating.", "answer": "SELECT Episode FROM TV_series ORDER BY rating", "difficulty": "easy" @@ -4914,7 +6468,9 @@ { "query_id": 614, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series" + ], "query": "What are all of the episodes ordered by ratings?", "answer": "SELECT Episode FROM TV_series ORDER BY rating", "difficulty": "easy" @@ -4922,7 +6478,9 @@ { "query_id": 615, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series" + ], "query": "List top 3 highest Rating TV series. List the TV series's Episode and Rating.", "answer": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", "difficulty": "medium" @@ -4930,7 +6488,9 @@ { "query_id": 616, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series" + ], "query": "What are 3 most highly rated episodes in the TV series table and what were those ratings?", "answer": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", "difficulty": "medium" @@ -4938,7 +6498,9 @@ { "query_id": 617, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series" + ], "query": "What is minimum and maximum share of TV series?", "answer": "SELECT max(SHARE) , min(SHARE) FROM TV_series;", "difficulty": "medium" @@ -4946,7 +6508,9 @@ { "query_id": 618, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series" + ], "query": "What is the maximum and minimum share for the TV series?", "answer": "SELECT max(SHARE) , min(SHARE) FROM TV_series;", "difficulty": "medium" @@ -4954,7 +6518,9 @@ { "query_id": 619, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series" + ], "query": "What is the air date of TV series with Episode \"A Love of a Lifetime\"?", "answer": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", "difficulty": "easy" @@ -4962,7 +6528,9 @@ { "query_id": 620, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series" + ], "query": "When did the episode \"A Love of a Lifetime\" air?", "answer": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", "difficulty": "easy" @@ -4970,7 +6538,9 @@ { "query_id": 621, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series" + ], "query": "What is Weekly Rank of TV series with Episode \"A Love of a Lifetime\"?", "answer": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", "difficulty": "easy" @@ -4978,7 +6548,9 @@ { "query_id": 622, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series" + ], "query": "What is the weekly rank for the episode \"A Love of a Lifetime\"?", "answer": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", "difficulty": "easy" @@ -4986,7 +6558,10 @@ { "query_id": 623, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series", + "TV_Channel" + ], "query": "What is the TV Channel of TV series with Episode \"A Love of a Lifetime\"? List the TV Channel's series name.", "answer": "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\";", "difficulty": "medium" @@ -4994,7 +6569,10 @@ { "query_id": 624, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series", + "TV_Channel" + ], "query": "What is the name of the series that has the episode \"A Love of a Lifetime\"?", "answer": "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\";", "difficulty": "medium" @@ -5002,7 +6580,10 @@ { "query_id": 625, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series", + "TV_Channel" + ], "query": "List the Episode of all TV series showed on TV Channel with series name \"Sky Radio\".", "answer": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", "difficulty": "medium" @@ -5010,7 +6591,10 @@ { "query_id": 626, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_series", + "TV_Channel" + ], "query": "What is the episode for the TV series named \"Sky Radio\"?", "answer": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", "difficulty": "medium" @@ -5018,7 +6602,9 @@ { "query_id": 627, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon" + ], "query": "Find the number of cartoons directed by each of the listed directors.", "answer": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by", "difficulty": "medium" @@ -5026,7 +6612,9 @@ { "query_id": 628, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon" + ], "query": "How many cartoons did each director create?", "answer": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by", "difficulty": "medium" @@ -5034,7 +6622,9 @@ { "query_id": 629, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon" + ], "query": "Find the production code and channel of the most recently aired cartoon .", "answer": "select production_code , channel from cartoon order by original_air_date desc limit 1", "difficulty": "medium" @@ -5042,7 +6632,9 @@ { "query_id": 630, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon" + ], "query": "What is the produdction code and channel of the most recent cartoon ?", "answer": "select production_code , channel from cartoon order by original_air_date desc limit 1", "difficulty": "medium" @@ -5050,7 +6642,9 @@ { "query_id": 631, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "Find the package choice and series name of the TV channel that has high definition TV.", "answer": "SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"", "difficulty": "medium" @@ -5058,7 +6652,9 @@ { "query_id": 632, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "TV_Channel" + ], "query": "What are the package options and the name of the series for the TV Channel that supports high definition TV?", "answer": "SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"", "difficulty": "medium" @@ -5066,7 +6662,10 @@ { "query_id": 633, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon", + "TV_Channel" + ], "query": "which countries' tv channels are playing some cartoon written by Todd Casey?", "answer": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "difficulty": "medium" @@ -5074,7 +6673,10 @@ { "query_id": 634, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon", + "TV_Channel" + ], "query": "What are the countries that have cartoons on TV that were written by Todd Casey?", "answer": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "difficulty": "medium" @@ -5082,7 +6684,10 @@ { "query_id": 635, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon", + "TV_Channel" + ], "query": "which countries' tv channels are not playing any cartoon written by Todd Casey?", "answer": "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'", "difficulty": "hard" @@ -5090,7 +6695,10 @@ { "query_id": 636, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon", + "TV_Channel" + ], "query": "What are the countries that are not playing cartoons written by Todd Casey?", "answer": "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'", "difficulty": "hard" @@ -5098,7 +6706,10 @@ { "query_id": 637, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon", + "TV_Channel" + ], "query": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?", "answer": "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'", "difficulty": "extra" @@ -5106,7 +6717,10 @@ { "query_id": 638, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon", + "TV_Channel" + ], "query": "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?", "answer": "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'", "difficulty": "extra" @@ -5114,7 +6728,9 @@ { "query_id": 639, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "tv_channel" + ], "query": "find the pixel aspect ratio and nation of the tv channels that do not use English.", "answer": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", "difficulty": "medium" @@ -5122,7 +6738,9 @@ { "query_id": 640, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "tv_channel" + ], "query": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English?", "answer": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", "difficulty": "medium" @@ -5130,7 +6748,9 @@ { "query_id": 641, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "tv_channel" + ], "query": "find id of the tv channels that from the countries where have more than two tv channels.", "answer": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2", "difficulty": "easy" @@ -5138,7 +6758,9 @@ { "query_id": 642, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "tv_channel" + ], "query": "What are the ids of all tv channels that have more than 2 TV channels?", "answer": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2", "difficulty": "easy" @@ -5146,7 +6768,10 @@ { "query_id": 643, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon", + "TV_Channel" + ], "query": "find the id of tv channels that do not play any cartoon directed by Ben Jones.", "answer": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", "difficulty": "hard" @@ -5154,7 +6779,10 @@ { "query_id": 644, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon", + "TV_Channel" + ], "query": "What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?", "answer": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", "difficulty": "hard" @@ -5162,7 +6790,10 @@ { "query_id": 645, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon", + "TV_Channel" + ], "query": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones.", "answer": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", "difficulty": "hard" @@ -5170,7 +6801,10 @@ { "query_id": 646, "database_id": "tvshow", - "table_id": "N/A", + "table_id": [ + "cartoon", + "TV_Channel" + ], "query": "What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?", "answer": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", "difficulty": "hard" @@ -5178,7 +6812,9 @@ { "query_id": 647, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "How many poker players are there?", "answer": "SELECT count(*) FROM poker_player", "difficulty": "easy" @@ -5186,7 +6822,9 @@ { "query_id": 648, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "Count the number of poker players.", "answer": "SELECT count(*) FROM poker_player", "difficulty": "easy" @@ -5194,7 +6832,9 @@ { "query_id": 649, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "List the earnings of poker players in descending order.", "answer": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", "difficulty": "easy" @@ -5202,7 +6842,9 @@ { "query_id": 650, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "What are the earnings of poker players, ordered descending by value?", "answer": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", "difficulty": "easy" @@ -5210,7 +6852,9 @@ { "query_id": 651, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "List the final tables made and the best finishes of poker players.", "answer": "SELECT Final_Table_Made , Best_Finish FROM poker_player", "difficulty": "medium" @@ -5218,7 +6862,9 @@ { "query_id": 652, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "What are the final tables made and best finishes for all poker players?", "answer": "SELECT Final_Table_Made , Best_Finish FROM poker_player", "difficulty": "medium" @@ -5226,7 +6872,9 @@ { "query_id": 653, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "What is the average earnings of poker players?", "answer": "SELECT avg(Earnings) FROM poker_player", "difficulty": "easy" @@ -5234,7 +6882,9 @@ { "query_id": 654, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "Return the average earnings across all poker players.", "answer": "SELECT avg(Earnings) FROM poker_player", "difficulty": "easy" @@ -5242,7 +6892,9 @@ { "query_id": 655, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "What is the money rank of the poker player with the highest earnings?", "answer": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", "difficulty": "medium" @@ -5250,7 +6902,9 @@ { "query_id": 656, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "Return the money rank of the player with the greatest earnings.", "answer": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", "difficulty": "medium" @@ -5258,7 +6912,9 @@ { "query_id": 657, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "What is the maximum number of final tables made among poker players with earnings less than 200000?", "answer": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", "difficulty": "easy" @@ -5266,7 +6922,9 @@ { "query_id": 658, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player" + ], "query": "Return the maximum final tables made across all poker players who have earnings below 200000.", "answer": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", "difficulty": "easy" @@ -5274,7 +6932,10 @@ { "query_id": 659, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "What are the names of poker players?", "answer": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", "difficulty": "easy" @@ -5282,7 +6943,10 @@ { "query_id": 660, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "Return the names of all the poker players.", "answer": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", "difficulty": "easy" @@ -5290,7 +6954,10 @@ { "query_id": 661, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "What are the names of poker players whose earnings is higher than 300000?", "answer": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", "difficulty": "medium" @@ -5298,7 +6965,10 @@ { "query_id": 662, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "Give the names of poker players who have earnings above 300000.", "answer": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", "difficulty": "medium" @@ -5306,7 +6976,10 @@ { "query_id": 663, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "List the names of poker players ordered by the final tables made in ascending order.", "answer": "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", "difficulty": "medium" @@ -5314,7 +6987,10 @@ { "query_id": 664, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "What are the names of poker players, ordered ascending by the number of final tables they have made?", "answer": "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", "difficulty": "medium" @@ -5322,7 +6998,10 @@ { "query_id": 665, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "What is the birth date of the poker player with the lowest earnings?", "answer": "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", "difficulty": "hard" @@ -5330,7 +7009,10 @@ { "query_id": 666, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "Return the birth date of the poker player with the lowest earnings.", "answer": "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", "difficulty": "hard" @@ -5338,7 +7020,10 @@ { "query_id": 667, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "What is the money rank of the tallest poker player?", "answer": "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", "difficulty": "hard" @@ -5346,7 +7031,10 @@ { "query_id": 668, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "Return the money rank of the poker player with the greatest height.", "answer": "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", "difficulty": "hard" @@ -5354,7 +7042,10 @@ { "query_id": 669, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "What is the average earnings of poker players with height higher than 200?", "answer": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", "difficulty": "medium" @@ -5362,7 +7053,10 @@ { "query_id": 670, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "Give average earnings of poker players who are taller than 200.", "answer": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", "difficulty": "medium" @@ -5370,7 +7064,10 @@ { "query_id": 671, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "What are the names of poker players in descending order of earnings?", "answer": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", "difficulty": "medium" @@ -5378,7 +7075,10 @@ { "query_id": 672, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "Return the names of poker players sorted by their earnings descending.", "answer": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", "difficulty": "medium" @@ -5386,7 +7086,9 @@ { "query_id": 673, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "What are different nationalities of people and the corresponding number of people from each nation?", "answer": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality", "difficulty": "medium" @@ -5394,7 +7096,9 @@ { "query_id": 674, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "How many people are there of each nationality?", "answer": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality", "difficulty": "medium" @@ -5402,7 +7106,9 @@ { "query_id": 675, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "What is the most common nationality of people?", "answer": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "hard" @@ -5410,7 +7116,9 @@ { "query_id": 676, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "Give the nationality that is most common across all people.", "answer": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "hard" @@ -5418,7 +7126,9 @@ { "query_id": 677, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "What are the nationalities that are shared by at least two people?", "answer": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", "difficulty": "easy" @@ -5426,7 +7136,9 @@ { "query_id": 678, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "Return the nationalities for which there are two or more people.", "answer": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", "difficulty": "easy" @@ -5434,7 +7146,9 @@ { "query_id": 679, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "List the names and birth dates of people in ascending alphabetical order of name.", "answer": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC", "difficulty": "medium" @@ -5442,7 +7156,9 @@ { "query_id": 680, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "What are the names and birth dates of people, ordered by their names in alphabetical order?", "answer": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC", "difficulty": "medium" @@ -5450,7 +7166,9 @@ { "query_id": 681, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "Show names of people whose nationality is not \"Russia\".", "answer": "SELECT Name FROM people WHERE Nationality != \"Russia\"", "difficulty": "easy" @@ -5458,7 +7176,9 @@ { "query_id": 682, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "What are the names of people who are not from Russia?", "answer": "SELECT Name FROM people WHERE Nationality != \"Russia\"", "difficulty": "easy" @@ -5466,7 +7186,10 @@ { "query_id": 683, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "List the names of people that are not poker players.", "answer": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", "difficulty": "hard" @@ -5474,7 +7197,10 @@ { "query_id": 684, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "poker_player", + "people" + ], "query": "What are the names of people who do not play poker?", "answer": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", "difficulty": "hard" @@ -5482,7 +7208,9 @@ { "query_id": 685, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "How many distinct nationalities are there?", "answer": "SELECT count(DISTINCT Nationality) FROM people", "difficulty": "easy" @@ -5490,7 +7218,9 @@ { "query_id": 686, "database_id": "poker_player", - "table_id": "N/A", + "table_id": [ + "people" + ], "query": "Count the number of different nationalities.", "answer": "SELECT count(DISTINCT Nationality) FROM people", "difficulty": "easy" @@ -5498,7 +7228,9 @@ { "query_id": 687, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "area_code_state" + ], "query": "How many states are there?", "answer": "SELECT count(*) FROM area_code_state", "difficulty": "easy" @@ -5506,7 +7238,9 @@ { "query_id": 688, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "contestants" + ], "query": "List the contestant numbers and names, ordered by contestant name descending.", "answer": "SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC", "difficulty": "medium" @@ -5514,7 +7248,9 @@ { "query_id": 689, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "votes" + ], "query": "List the vote ids, phone numbers and states of all votes.", "answer": "SELECT vote_id , phone_number , state FROM votes", "difficulty": "medium" @@ -5522,7 +7258,9 @@ { "query_id": 690, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "area_code_state" + ], "query": "What are the maximum and minimum values of area codes?", "answer": "SELECT max(area_code) , min(area_code) FROM area_code_state", "difficulty": "medium" @@ -5530,7 +7268,9 @@ { "query_id": 691, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "votes" + ], "query": "What is last date created of votes from the state 'CA'?", "answer": "SELECT max(created) FROM votes WHERE state = 'CA'", "difficulty": "easy" @@ -5538,7 +7278,9 @@ { "query_id": 692, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "contestants" + ], "query": "What are the names of the contestants whose names are not 'Jessie Alloway'", "answer": "SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway'", "difficulty": "easy" @@ -5546,7 +7288,9 @@ { "query_id": 693, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "votes" + ], "query": "What are the distinct states and create time of all votes?", "answer": "SELECT DISTINCT state , created FROM votes", "difficulty": "medium" @@ -5554,7 +7298,10 @@ { "query_id": 694, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "contestants", + "votes" + ], "query": "What are the contestant numbers and names of the contestants who had at least two votes?", "answer": "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 HAVING count(*) >= 2", "difficulty": "medium" @@ -5562,7 +7309,10 @@ { "query_id": 695, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "contestants", + "votes" + ], "query": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?", "answer": "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 ORDER BY count(*) ASC LIMIT 1", "difficulty": "extra" @@ -5570,7 +7320,9 @@ { "query_id": 696, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "votes" + ], "query": "What are the number of votes from state 'NY' or 'CA'?", "answer": "SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA'", "difficulty": "medium" @@ -5578,7 +7330,10 @@ { "query_id": 697, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "contestants", + "votes" + ], "query": "How many contestants did not get voted?", "answer": "SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes )", "difficulty": "extra" @@ -5586,7 +7341,10 @@ { "query_id": 698, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "votes", + "area_code_state" + ], "query": "What is the area code in which the most voters voted?", "answer": "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", "difficulty": "extra" @@ -5594,7 +7352,10 @@ { "query_id": 699, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "contestants", + "votes" + ], "query": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?", "answer": "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'", "difficulty": "medium" @@ -5602,7 +7363,11 @@ { "query_id": 700, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "contestants", + "votes", + "area_code_state" + ], "query": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.", "answer": "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'", "difficulty": "extra" @@ -5610,7 +7375,9 @@ { "query_id": 701, "database_id": "voter_1", - "table_id": "N/A", + "table_id": [ + "contestants" + ], "query": "Return the names of the contestants whose names contain the substring 'Al' .", "answer": "select contestant_name from contestants where contestant_name like \"%al%\"", "difficulty": "medium" @@ -5618,7 +7385,9 @@ { "query_id": 702, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the names of all the countries that became independent after 1950?", "answer": "SELECT Name FROM country WHERE IndepYear > 1950", "difficulty": "easy" @@ -5626,7 +7395,9 @@ { "query_id": 703, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Give the names of the nations that were founded after 1950.", "answer": "SELECT Name FROM country WHERE IndepYear > 1950", "difficulty": "easy" @@ -5634,7 +7405,9 @@ { "query_id": 704, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "How many countries have a republic as their form of government?", "answer": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", "difficulty": "easy" @@ -5642,7 +7415,9 @@ { "query_id": 705, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "How many countries have governments that are republics?", "answer": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", "difficulty": "easy" @@ -5650,7 +7425,9 @@ { "query_id": 706, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What is the total surface area of the countries in the Caribbean region?", "answer": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", "difficulty": "easy" @@ -5658,7 +7435,9 @@ { "query_id": 707, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "How much surface area do the countires in the Carribean cover together?", "answer": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", "difficulty": "easy" @@ -5666,7 +7445,9 @@ { "query_id": 708, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Which continent is Anguilla in?", "answer": "SELECT Continent FROM country WHERE Name = \"Anguilla\"", "difficulty": "easy" @@ -5674,7 +7455,9 @@ { "query_id": 709, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What is the continent name which Anguilla belongs to?", "answer": "SELECT Continent FROM country WHERE Name = \"Anguilla\"", "difficulty": "easy" @@ -5682,7 +7465,10 @@ { "query_id": 710, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city", + "country" + ], "query": "Which region is the city Kabul located in?", "answer": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"", "difficulty": "medium" @@ -5690,7 +7476,10 @@ { "query_id": 711, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city", + "country" + ], "query": "What region is Kabul in?", "answer": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"", "difficulty": "medium" @@ -5698,7 +7487,10 @@ { "query_id": 712, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Which language is the most popular in Aruba?", "answer": "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", "difficulty": "extra" @@ -5706,7 +7498,10 @@ { "query_id": 713, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What language is predominantly spoken in Aruba?", "answer": "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", "difficulty": "extra" @@ -5714,7 +7509,9 @@ { "query_id": 714, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the population and life expectancies in Brazil?", "answer": "SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\"", "difficulty": "medium" @@ -5722,7 +7519,9 @@ { "query_id": 715, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Give me Brazil\u2019s population and life expectancies.", "answer": "SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\"", "difficulty": "medium" @@ -5730,7 +7529,9 @@ { "query_id": 716, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the region and population of Angola?", "answer": "SELECT Population , Region FROM country WHERE Name = \"Angola\"", "difficulty": "medium" @@ -5738,7 +7539,9 @@ { "query_id": 717, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What region does Angola belong to and what is its population?", "answer": "SELECT Population , Region FROM country WHERE Name = \"Angola\"", "difficulty": "medium" @@ -5746,7 +7549,9 @@ { "query_id": 718, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What is the average expected life expectancy for countries in the region of Central Africa?", "answer": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", "difficulty": "easy" @@ -5754,7 +7559,9 @@ { "query_id": 719, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "How long is the people\u2019s average life expectancy in Central Africa?", "answer": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", "difficulty": "easy" @@ -5762,7 +7569,9 @@ { "query_id": 720, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What is the name of country that has the shortest life expectancy in Asia?", "answer": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", "difficulty": "hard" @@ -5770,7 +7579,9 @@ { "query_id": 721, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Give the name of the country in Asia with the lowest life expectancy.", "answer": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", "difficulty": "hard" @@ -5778,7 +7589,9 @@ { "query_id": 722, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What is the total population and maximum GNP in Asia?", "answer": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\"", "difficulty": "medium" @@ -5786,7 +7599,9 @@ { "query_id": 723, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "How many people live in Asia, and what is the largest GNP among them?", "answer": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\"", "difficulty": "medium" @@ -5794,7 +7609,9 @@ { "query_id": 724, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What is the average life expectancy in African countries that are republics?", "answer": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", "difficulty": "medium" @@ -5802,7 +7619,9 @@ { "query_id": 725, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Give the average life expectancy for countries in Africa which are republics?", "answer": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", "difficulty": "medium" @@ -5810,7 +7629,9 @@ { "query_id": 726, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What is the total surface area of the continents Asia and Europe?", "answer": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", "difficulty": "medium" @@ -5818,7 +7639,9 @@ { "query_id": 727, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Give the total surface area covered by countries in Asia or Europe.", "answer": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", "difficulty": "medium" @@ -5826,7 +7649,9 @@ { "query_id": 728, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city" + ], "query": "How many people live in Gelderland district?", "answer": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", "difficulty": "easy" @@ -5834,7 +7659,9 @@ { "query_id": 729, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city" + ], "query": "What is the total population of Gelderland district?", "answer": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", "difficulty": "easy" @@ -5842,7 +7669,9 @@ { "query_id": 730, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What is the average GNP and total population in all nations whose government is US territory?", "answer": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", "difficulty": "medium" @@ -5850,7 +7679,9 @@ { "query_id": 731, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Give the mean GNP and total population of nations which are considered US territory.", "answer": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", "difficulty": "medium" @@ -5858,7 +7689,9 @@ { "query_id": 732, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "How many unique languages are spoken in the world?", "answer": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", "difficulty": "easy" @@ -5866,7 +7699,9 @@ { "query_id": 733, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "What is the number of distinct languages used around the world?", "answer": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", "difficulty": "easy" @@ -5874,7 +7709,9 @@ { "query_id": 734, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "How many type of governments are in Africa?", "answer": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", "difficulty": "easy" @@ -5882,7 +7719,9 @@ { "query_id": 735, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "How many different forms of governments are there in Africa?", "answer": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", "difficulty": "easy" @@ -5890,7 +7729,10 @@ { "query_id": 736, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What is the total number of languages used in Aruba?", "answer": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", "difficulty": "medium" @@ -5898,7 +7740,10 @@ { "query_id": 737, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "How many languages are spoken in Aruba?", "answer": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", "difficulty": "medium" @@ -5906,7 +7751,10 @@ { "query_id": 738, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "How many official languages does Afghanistan have?", "answer": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", "difficulty": "medium" @@ -5914,7 +7762,10 @@ { "query_id": 739, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "How many official languages are spoken in Afghanistan?", "answer": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", "difficulty": "medium" @@ -5922,7 +7773,10 @@ { "query_id": 740, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What is name of the country that speaks the largest number of languages?", "answer": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "extra" @@ -5930,7 +7784,10 @@ { "query_id": 741, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Give the name of the nation that uses the greatest amount of languages.", "answer": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "extra" @@ -5938,7 +7795,10 @@ { "query_id": 742, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Which continent has the most diverse languages?", "answer": "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", "difficulty": "extra" @@ -5946,7 +7806,10 @@ { "query_id": 743, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Which continent speaks the most languages?", "answer": "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", "difficulty": "extra" @@ -5954,7 +7817,10 @@ { "query_id": 744, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "How many countries speak both English and Dutch?", "answer": "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\")", "difficulty": "easy" @@ -5962,7 +7828,10 @@ { "query_id": 745, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What is the number of nations that use English and Dutch?", "answer": "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\")", "difficulty": "easy" @@ -5970,7 +7839,10 @@ { "query_id": 746, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What are the names of nations speak both English and French?", "answer": "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\"", "difficulty": "extra" @@ -5978,7 +7850,10 @@ { "query_id": 747, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Give the names of nations that speak both English and French.", "answer": "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\"", "difficulty": "extra" @@ -5986,7 +7861,10 @@ { "query_id": 748, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What are the names of nations where both English and French are official languages?", "answer": "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\"", "difficulty": "extra" @@ -5994,7 +7872,10 @@ { "query_id": 749, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Give the names of countries with English and French as official languages.", "answer": "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\"", "difficulty": "extra" @@ -6002,7 +7883,10 @@ { "query_id": 750, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What is the number of distinct continents where Chinese is spoken?", "answer": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", "difficulty": "medium" @@ -6010,7 +7894,10 @@ { "query_id": 751, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "How many continents speak Chinese?", "answer": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", "difficulty": "medium" @@ -6018,7 +7905,10 @@ { "query_id": 752, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What are the regions that use English or Dutch?", "answer": "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\"", "difficulty": "hard" @@ -6026,7 +7916,10 @@ { "query_id": 753, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Which regions speak Dutch or English?", "answer": "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\"", "difficulty": "hard" @@ -6034,7 +7927,10 @@ { "query_id": 754, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What are the countries where either English or Dutch is the official language ?", "answer": "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\"", "difficulty": "extra" @@ -6042,7 +7938,10 @@ { "query_id": 755, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Which countries have either English or Dutch as an official language?", "answer": "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\"", "difficulty": "extra" @@ -6050,7 +7949,10 @@ { "query_id": 756, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Which language is the most popular on the Asian continent?", "answer": "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", "difficulty": "extra" @@ -6058,7 +7960,10 @@ { "query_id": 757, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What is the language that is used by the largest number of Asian nations?", "answer": "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", "difficulty": "extra" @@ -6066,7 +7971,10 @@ { "query_id": 758, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Which languages are spoken by only one country in republic governments?", "answer": "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", "difficulty": "hard" @@ -6074,7 +7982,10 @@ { "query_id": 759, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What languages are only used by a single country with a republic government?", "answer": "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", "difficulty": "hard" @@ -6082,7 +7993,10 @@ { "query_id": 760, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city", + "countrylanguage" + ], "query": "Find the city with the largest population that uses English.", "answer": "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", "difficulty": "extra" @@ -6090,7 +8004,10 @@ { "query_id": 761, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city", + "countrylanguage" + ], "query": "What is the most populace city that speaks English?", "answer": "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", "difficulty": "extra" @@ -6098,7 +8015,9 @@ { "query_id": 762, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Find the name, population and expected life length of asian country with the largest area?", "answer": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", "difficulty": "hard" @@ -6106,7 +8025,9 @@ { "query_id": 763, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the name, population, and life expectancy of the largest Asian country by land?", "answer": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", "difficulty": "hard" @@ -6114,7 +8035,10 @@ { "query_id": 764, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What is average life expectancy in the countries where English is not the official language?", "answer": "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\")", "difficulty": "extra" @@ -6122,7 +8046,10 @@ { "query_id": 765, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Give the mean life expectancy of countries in which English is not the official language.", "answer": "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\")", "difficulty": "extra" @@ -6130,7 +8057,10 @@ { "query_id": 766, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What is the total number of people living in the nations that do not use English?", "answer": "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\")", "difficulty": "extra" @@ -6138,7 +8068,10 @@ { "query_id": 767, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "How many people live in countries that do not speak English?", "answer": "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\")", "difficulty": "extra" @@ -6146,7 +8079,10 @@ { "query_id": 768, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What is the official language spoken in the country whose head of state is Beatrix?", "answer": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", "difficulty": "medium" @@ -6154,7 +8090,10 @@ { "query_id": 769, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What is the official language used in the country the name of whose head of state is Beatrix.", "answer": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", "difficulty": "medium" @@ -6162,7 +8101,10 @@ { "query_id": 770, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", "answer": "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\"", "difficulty": "medium" @@ -6170,7 +8112,10 @@ { "query_id": 771, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "For the countries founded before 1930, what is the total number of distinct official languages?", "answer": "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\"", "difficulty": "medium" @@ -6178,7 +8123,9 @@ { "query_id": 772, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the countries that have greater surface area than any country in Europe?", "answer": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", "difficulty": "hard" @@ -6186,7 +8133,9 @@ { "query_id": 773, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Which countries have greater area than that of any country in Europe?", "answer": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", "difficulty": "hard" @@ -6194,7 +8143,9 @@ { "query_id": 774, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the African countries that have a population less than any country in Asia?", "answer": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT max(population) FROM country WHERE Continent = \"Asia\")", "difficulty": "extra" @@ -6202,7 +8153,9 @@ { "query_id": 775, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Which African countries have a smaller population than that of any country in Asia?", "answer": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT min(population) FROM country WHERE Continent = \"Asia\")", "difficulty": "extra" @@ -6210,7 +8163,9 @@ { "query_id": 776, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Which Asian countries have a population that is larger than any country in Africa?", "answer": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT max(population) FROM country WHERE Continent = \"Africa\")", "difficulty": "extra" @@ -6218,7 +8173,9 @@ { "query_id": 777, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the Asian countries which have a population larger than that of any country in Africa?", "answer": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT min(population) FROM country WHERE Continent = \"Africa\")", "difficulty": "extra" @@ -6226,7 +8183,9 @@ { "query_id": 778, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "What are the country codes for countries that do not speak English?", "answer": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "difficulty": "hard" @@ -6234,7 +8193,9 @@ { "query_id": 779, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "Return the country codes for countries that do not speak English.", "answer": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "difficulty": "hard" @@ -6242,7 +8203,9 @@ { "query_id": 780, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "What are the country codes of countries where people use languages other than English?", "answer": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", "difficulty": "easy" @@ -6250,7 +8213,9 @@ { "query_id": 781, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "Give the country codes for countries in which people speak langauges that are not English.", "answer": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", "difficulty": "easy" @@ -6258,7 +8223,10 @@ { "query_id": 782, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What are the codes of the countries that do not speak English and whose government forms are not Republic?", "answer": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "difficulty": "hard" @@ -6266,7 +8234,10 @@ { "query_id": 783, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Return the codes of countries that do not speak English and do not have Republics for governments.", "answer": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "difficulty": "hard" @@ -6274,7 +8245,11 @@ { "query_id": 784, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city", + "country", + "countrylanguage" + ], "query": "Which cities are in European countries where English is not the official language?", "answer": "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')", "difficulty": "extra" @@ -6282,7 +8257,11 @@ { "query_id": 785, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city", + "country", + "countrylanguage" + ], "query": "What are the names of cities in Europe for which English is not the official language?", "answer": "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')", "difficulty": "extra" @@ -6290,7 +8269,11 @@ { "query_id": 786, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city", + "country", + "countrylanguage" + ], "query": "Which unique cities are in Asian countries where Chinese is the official language ?", "answer": "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\"", "difficulty": "hard" @@ -6298,7 +8281,11 @@ { "query_id": 787, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city", + "country", + "countrylanguage" + ], "query": "Return the different names of cities that are in Asia and for which Chinese is the official language.", "answer": "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\"", "difficulty": "hard" @@ -6306,7 +8293,9 @@ { "query_id": 788, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the name, independence year, and surface area of the country with the smallest population?", "answer": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1", "difficulty": "medium" @@ -6314,7 +8303,9 @@ { "query_id": 789, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Give the name, year of independence, and surface area of the country that has the lowest population.", "answer": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1", "difficulty": "medium" @@ -6322,7 +8313,9 @@ { "query_id": 790, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the population, name and leader of the country with the largest area?", "answer": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", "difficulty": "medium" @@ -6330,7 +8323,9 @@ { "query_id": 791, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Give the name, population, and head of state for the country that has the largest area.", "answer": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", "difficulty": "medium" @@ -6338,7 +8333,10 @@ { "query_id": 792, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.", "answer": "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", "difficulty": "medium" @@ -6346,7 +8344,10 @@ { "query_id": 793, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country", + "countrylanguage" + ], "query": "What are the names of countries that speak more than 2 languages, as well as how many languages they speak?", "answer": "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", "difficulty": "medium" @@ -6354,7 +8355,9 @@ { "query_id": 794, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city" + ], "query": "Find the number of cities in each district whose population is greater than the average population of cities?", "answer": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", "difficulty": "extra" @@ -6362,7 +8365,9 @@ { "query_id": 795, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city" + ], "query": "How many cities in each district have a population that is above the average population across all cities?", "answer": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", "difficulty": "extra" @@ -6370,7 +8375,9 @@ { "query_id": 796, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Find the government form name and total population for each government form whose average life expectancy is longer than 72.", "answer": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", "difficulty": "medium" @@ -6378,7 +8385,9 @@ { "query_id": 797, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "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?", "answer": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", "difficulty": "medium" @@ -6386,7 +8395,9 @@ { "query_id": 798, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?", "answer": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", "difficulty": "medium" @@ -6394,7 +8405,9 @@ { "query_id": 799, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "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?", "answer": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", "difficulty": "medium" @@ -6402,7 +8415,9 @@ { "query_id": 800, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the names and areas of countries with the top 5 largest area?", "answer": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", "difficulty": "medium" @@ -6410,7 +8425,9 @@ { "query_id": 801, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Return the names and surface areas of the 5 largest countries.", "answer": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", "difficulty": "medium" @@ -6418,7 +8435,9 @@ { "query_id": 802, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are names of countries with the top 3 largest population?", "answer": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", "difficulty": "medium" @@ -6426,7 +8445,9 @@ { "query_id": 803, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Return the names of the 3 most populated countries.", "answer": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", "difficulty": "medium" @@ -6434,7 +8455,9 @@ { "query_id": 804, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the names of the nations with the 3 lowest populations?", "answer": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", "difficulty": "medium" @@ -6442,7 +8465,9 @@ { "query_id": 805, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Return the names of the 3 countries with the fewest people.", "answer": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", "difficulty": "medium" @@ -6450,7 +8475,9 @@ { "query_id": 806, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "how many countries are in Asia?", "answer": "SELECT count(*) FROM country WHERE continent = \"Asia\"", "difficulty": "easy" @@ -6458,7 +8485,9 @@ { "query_id": 807, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Count the number of countries in Asia.", "answer": "SELECT count(*) FROM country WHERE continent = \"Asia\"", "difficulty": "easy" @@ -6466,7 +8495,9 @@ { "query_id": 808, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What are the names of the countries that are in the continent of Europe and have a population of 80000?", "answer": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", "difficulty": "medium" @@ -6474,7 +8505,9 @@ { "query_id": 809, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Give the names of countries that are in Europe and have a population equal to 80000.", "answer": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", "difficulty": "medium" @@ -6482,7 +8515,9 @@ { "query_id": 810, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?", "answer": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", "difficulty": "hard" @@ -6490,7 +8525,9 @@ { "query_id": 811, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "country" + ], "query": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .", "answer": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", "difficulty": "hard" @@ -6498,7 +8535,9 @@ { "query_id": 812, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city" + ], "query": "What are the cities whose population is between 160000 and 900000?", "answer": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000", "difficulty": "easy" @@ -6506,7 +8545,9 @@ { "query_id": 813, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "city" + ], "query": "Return the names of cities that have a population between 160000 and 900000 .", "answer": "select name from city where population between 160000 and 900000", "difficulty": "easy" @@ -6514,7 +8555,9 @@ { "query_id": 814, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "Which language is spoken by the largest number of countries?", "answer": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -6522,7 +8565,9 @@ { "query_id": 815, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "Give the language that is spoken in the most countries.", "answer": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -6530,7 +8575,9 @@ { "query_id": 816, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "What is the language spoken by the largest percentage of people in each country?", "answer": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode", "difficulty": "medium" @@ -6538,7 +8585,9 @@ { "query_id": 817, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?", "answer": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode", "difficulty": "medium" @@ -6546,7 +8595,9 @@ { "query_id": 818, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", "answer": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", "difficulty": "extra" @@ -6554,7 +8605,9 @@ { "query_id": 819, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "Count the number of countries for which Spanish is the predominantly spoken language.", "answer": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", "difficulty": "extra" @@ -6562,7 +8615,9 @@ { "query_id": 820, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", "answer": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", "difficulty": "medium" @@ -6570,7 +8625,9 @@ { "query_id": 821, "database_id": "world_1", - "table_id": "N/A", + "table_id": [ + "countrylanguage" + ], "query": "Return the codes of countries for which Spanish is the predominantly spoken language.", "answer": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", "difficulty": "medium" @@ -6578,7 +8635,9 @@ { "query_id": 822, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "How many conductors are there?", "answer": "SELECT count(*) FROM conductor", "difficulty": "easy" @@ -6586,7 +8645,9 @@ { "query_id": 823, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "Count the number of conductors.", "answer": "SELECT count(*) FROM conductor", "difficulty": "easy" @@ -6594,7 +8655,9 @@ { "query_id": 824, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "List the names of conductors in ascending order of age.", "answer": "SELECT Name FROM conductor ORDER BY Age ASC", "difficulty": "easy" @@ -6602,7 +8665,9 @@ { "query_id": 825, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "What are the names of conductors, ordered by age?", "answer": "SELECT Name FROM conductor ORDER BY Age ASC", "difficulty": "easy" @@ -6610,7 +8675,9 @@ { "query_id": 826, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "What are the names of conductors whose nationalities are not \"USA\"?", "answer": "SELECT Name FROM conductor WHERE Nationality != 'USA'", "difficulty": "easy" @@ -6618,7 +8685,9 @@ { "query_id": 827, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "Return the names of conductors that do not have the nationality \"USA\".", "answer": "SELECT Name FROM conductor WHERE Nationality != 'USA'", "difficulty": "easy" @@ -6626,7 +8695,9 @@ { "query_id": 828, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "What are the record companies of orchestras in descending order of years in which they were founded?", "answer": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", "difficulty": "easy" @@ -6634,7 +8705,9 @@ { "query_id": 829, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "Return the record companies of orchestras, sorted descending by the years in which they were founded.", "answer": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", "difficulty": "easy" @@ -6642,7 +8715,9 @@ { "query_id": 830, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "SHOW" + ], "query": "What is the average attendance of shows?", "answer": "SELECT avg(Attendance) FROM SHOW", "difficulty": "easy" @@ -6650,7 +8725,9 @@ { "query_id": 831, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "SHOW" + ], "query": "Return the average attendance across all shows.", "answer": "SELECT avg(Attendance) FROM SHOW", "difficulty": "easy" @@ -6658,7 +8735,9 @@ { "query_id": 832, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "performance" + ], "query": "What are the maximum and minimum share of performances whose type is not \"Live final\".", "answer": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"", "difficulty": "medium" @@ -6666,7 +8745,9 @@ { "query_id": 833, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "performance" + ], "query": "Return the maximum and minimum shares for performances that do not have the type \"Live final\".", "answer": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"", "difficulty": "medium" @@ -6674,7 +8755,9 @@ { "query_id": 834, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "How many different nationalities do conductors have?", "answer": "SELECT count(DISTINCT Nationality) FROM conductor", "difficulty": "easy" @@ -6682,7 +8765,9 @@ { "query_id": 835, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "Count the number of different nationalities of conductors.", "answer": "SELECT count(DISTINCT Nationality) FROM conductor", "difficulty": "easy" @@ -6690,7 +8775,9 @@ { "query_id": 836, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "List names of conductors in descending order of years of work.", "answer": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", "difficulty": "easy" @@ -6698,7 +8785,9 @@ { "query_id": 837, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "What are the names of conductors, sorted descending by the number of years they have worked?", "answer": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", "difficulty": "easy" @@ -6706,7 +8795,9 @@ { "query_id": 838, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "List the name of the conductor with the most years of work.", "answer": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", "difficulty": "medium" @@ -6714,7 +8805,9 @@ { "query_id": 839, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor" + ], "query": "What is the name of the conductor who has worked the greatest number of years?", "answer": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", "difficulty": "medium" @@ -6722,7 +8815,10 @@ { "query_id": 840, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor", + "orchestra" + ], "query": "Show the names of conductors and the orchestras they have conducted.", "answer": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", "difficulty": "medium" @@ -6730,7 +8826,10 @@ { "query_id": 841, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor", + "orchestra" + ], "query": "What are the names of conductors as well as the corresonding orchestras that they have conducted?", "answer": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", "difficulty": "medium" @@ -6738,7 +8837,10 @@ { "query_id": 842, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor", + "orchestra" + ], "query": "Show the names of conductors that have conducted more than one orchestras.", "answer": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", "difficulty": "medium" @@ -6746,7 +8848,10 @@ { "query_id": 843, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor", + "orchestra" + ], "query": "What are the names of conductors who have conducted at more than one orchestra?", "answer": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", "difficulty": "medium" @@ -6754,7 +8859,10 @@ { "query_id": 844, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor", + "orchestra" + ], "query": "Show the name of the conductor that has conducted the most number of orchestras.", "answer": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "extra" @@ -6762,7 +8870,10 @@ { "query_id": 845, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor", + "orchestra" + ], "query": "What is the name of the conductor who has conducted the most orchestras?", "answer": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "extra" @@ -6770,7 +8881,10 @@ { "query_id": 846, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor", + "orchestra" + ], "query": "Please show the name of the conductor that has conducted orchestras founded after 2008.", "answer": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", "difficulty": "medium" @@ -6778,7 +8892,10 @@ { "query_id": 847, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "conductor", + "orchestra" + ], "query": "What are the names of conductors who have conducted orchestras founded after the year 2008?", "answer": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", "difficulty": "medium" @@ -6786,7 +8903,9 @@ { "query_id": 848, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "Please show the different record companies and the corresponding number of orchestras.", "answer": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company", "difficulty": "medium" @@ -6794,7 +8913,9 @@ { "query_id": 849, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "How many orchestras does each record company manage?", "answer": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company", "difficulty": "medium" @@ -6802,7 +8923,9 @@ { "query_id": 850, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "Please show the record formats of orchestras in ascending order of count.", "answer": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", "difficulty": "medium" @@ -6810,7 +8933,9 @@ { "query_id": 851, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "What are the major record formats of orchestras, sorted by their frequency?", "answer": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", "difficulty": "medium" @@ -6818,7 +8943,9 @@ { "query_id": 852, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "List the record company shared by the most number of orchestras.", "answer": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "hard" @@ -6826,7 +8953,9 @@ { "query_id": 853, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "What is the record company used by the greatest number of orchestras?", "answer": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "hard" @@ -6834,7 +8963,10 @@ { "query_id": 854, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra", + "performance" + ], "query": "List the names of orchestras that have no performance.", "answer": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", "difficulty": "hard" @@ -6842,7 +8974,10 @@ { "query_id": 855, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra", + "performance" + ], "query": "What are the orchestras that do not have any performances?", "answer": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", "difficulty": "hard" @@ -6850,7 +8985,9 @@ { "query_id": 856, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "Show the record companies shared by orchestras founded before 2003 and after 2003.", "answer": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", "difficulty": "hard" @@ -6858,7 +8995,9 @@ { "query_id": 857, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?", "answer": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", "difficulty": "hard" @@ -6866,7 +9005,9 @@ { "query_id": 858, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "Find the number of orchestras whose record format is \"CD\" or \"DVD\".", "answer": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", "difficulty": "medium" @@ -6874,7 +9015,9 @@ { "query_id": 859, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra" + ], "query": "Count the number of orchestras that have CD or DVD as their record format.", "answer": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", "difficulty": "medium" @@ -6882,7 +9025,10 @@ { "query_id": 860, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra", + "performance" + ], "query": "Show the years in which orchestras that have given more than one performance are founded.", "answer": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1", "difficulty": "medium" @@ -6890,7 +9036,10 @@ { "query_id": 861, "database_id": "orchestra", - "table_id": "N/A", + "table_id": [ + "orchestra", + "performance" + ], "query": "What are years of founding for orchestras that have had more than a single performance?", "answer": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1", "difficulty": "medium" @@ -6898,7 +9047,9 @@ { "query_id": 862, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "How many high schoolers are there?", "answer": "SELECT count(*) FROM Highschooler", "difficulty": "easy" @@ -6906,7 +9057,9 @@ { "query_id": 863, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Count the number of high schoolers.", "answer": "SELECT count(*) FROM Highschooler", "difficulty": "easy" @@ -6914,7 +9067,9 @@ { "query_id": 864, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Show the names and grades of each high schooler.", "answer": "SELECT name , grade FROM Highschooler", "difficulty": "medium" @@ -6922,7 +9077,9 @@ { "query_id": 865, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "What are the names and grades for each high schooler?", "answer": "SELECT name , grade FROM Highschooler", "difficulty": "medium" @@ -6930,7 +9087,9 @@ { "query_id": 866, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Show all the grades of the high schoolers.", "answer": "SELECT grade FROM Highschooler", "difficulty": "easy" @@ -6938,7 +9097,9 @@ { "query_id": 867, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "What is the grade of each high schooler?", "answer": "SELECT grade FROM Highschooler", "difficulty": "easy" @@ -6946,7 +9107,9 @@ { "query_id": 868, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "What grade is Kyle in?", "answer": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", "difficulty": "easy" @@ -6954,7 +9117,9 @@ { "query_id": 869, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Return the grade for the high schooler named Kyle.", "answer": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", "difficulty": "easy" @@ -6962,7 +9127,9 @@ { "query_id": 870, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Show the names of all high schoolers in grade 10.", "answer": "SELECT name FROM Highschooler WHERE grade = 10", "difficulty": "easy" @@ -6970,7 +9137,9 @@ { "query_id": 871, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "What are the names of all high schoolers in grade 10?", "answer": "SELECT name FROM Highschooler WHERE grade = 10", "difficulty": "easy" @@ -6978,7 +9147,9 @@ { "query_id": 872, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Show the ID of the high schooler named Kyle.", "answer": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"", "difficulty": "easy" @@ -6986,7 +9157,9 @@ { "query_id": 873, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "What is Kyle's id?", "answer": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"", "difficulty": "easy" @@ -6994,7 +9167,9 @@ { "query_id": 874, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "How many high schoolers are there in grade 9 or 10?", "answer": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", "difficulty": "medium" @@ -7002,7 +9177,9 @@ { "query_id": 875, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Count the number of high schoolers in grades 9 or 10.", "answer": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", "difficulty": "medium" @@ -7010,7 +9187,9 @@ { "query_id": 876, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Show the number of high schoolers for each grade.", "answer": "SELECT grade , count(*) FROM Highschooler GROUP BY grade", "difficulty": "medium" @@ -7018,7 +9197,9 @@ { "query_id": 877, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "How many high schoolers are in each grade?", "answer": "SELECT grade , count(*) FROM Highschooler GROUP BY grade", "difficulty": "medium" @@ -7026,7 +9207,9 @@ { "query_id": 878, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Which grade has the most high schoolers?", "answer": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -7034,7 +9217,9 @@ { "query_id": 879, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Return the grade that has the greatest number of high schoolers.", "answer": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", "difficulty": "hard" @@ -7042,7 +9227,9 @@ { "query_id": 880, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Show me all grades that have at least 4 students.", "answer": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", "difficulty": "easy" @@ -7050,7 +9237,9 @@ { "query_id": 881, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Highschooler" + ], "query": "Which grades have 4 or more high schoolers?", "answer": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", "difficulty": "easy" @@ -7058,7 +9247,9 @@ { "query_id": 882, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend" + ], "query": "Show the student IDs and numbers of friends corresponding to each.", "answer": "SELECT student_id , count(*) FROM Friend GROUP BY student_id", "difficulty": "medium" @@ -7066,7 +9257,9 @@ { "query_id": 883, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend" + ], "query": "How many friends does each student have?", "answer": "SELECT student_id , count(*) FROM Friend GROUP BY student_id", "difficulty": "medium" @@ -7074,7 +9267,10 @@ { "query_id": 884, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Show the names of high school students and their corresponding number of friends.", "answer": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "difficulty": "medium" @@ -7082,7 +9278,10 @@ { "query_id": 885, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "What are the names of the high schoolers and how many friends does each have?", "answer": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "difficulty": "medium" @@ -7090,7 +9289,10 @@ { "query_id": 886, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "What is the name of the high schooler who has the greatest number of friends?", "answer": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -7098,7 +9300,10 @@ { "query_id": 887, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Return the name of the high school student with the most friends.", "answer": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -7106,7 +9311,10 @@ { "query_id": 888, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Show the names of high schoolers who have at least 3 friends.", "answer": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3", "difficulty": "medium" @@ -7114,7 +9322,10 @@ { "query_id": 889, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "What are the names of high schoolers who have 3 or more friends?", "answer": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3", "difficulty": "medium" @@ -7122,7 +9333,10 @@ { "query_id": 890, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Show the names of all of the high schooler Kyle's friends.", "answer": "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\"", "difficulty": "hard" @@ -7130,7 +9344,10 @@ { "query_id": 891, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Return the names of friends of the high school student Kyle.", "answer": "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\"", "difficulty": "hard" @@ -7138,7 +9355,10 @@ { "query_id": 892, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "How many friends does the high school student Kyle have?", "answer": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", "difficulty": "medium" @@ -7146,7 +9366,10 @@ { "query_id": 893, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Count the number of friends Kyle has.", "answer": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", "difficulty": "medium" @@ -7154,7 +9377,10 @@ { "query_id": 894, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Show ids of all students who do not have any friends.", "answer": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", "difficulty": "hard" @@ -7162,7 +9388,10 @@ { "query_id": 895, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "What are the ids of high school students who do not have friends?", "answer": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", "difficulty": "hard" @@ -7170,7 +9399,10 @@ { "query_id": 896, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Show names of all high school students who do not have any friends.", "answer": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", "difficulty": "hard" @@ -7178,7 +9410,10 @@ { "query_id": 897, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "What are the names of students who have no friends?", "answer": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", "difficulty": "hard" @@ -7186,7 +9421,10 @@ { "query_id": 898, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Friend" + ], "query": "Show the ids of high schoolers who have friends and are also liked by someone else.", "answer": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", "difficulty": "hard" @@ -7194,7 +9432,10 @@ { "query_id": 899, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Friend" + ], "query": "What are the ids of students who both have friends and are liked?", "answer": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", "difficulty": "hard" @@ -7202,7 +9443,11 @@ { "query_id": 900, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Friend", + "Highschooler" + ], "query": "Show name of all students who have some friends and also are liked by someone else.", "answer": "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", "difficulty": "hard" @@ -7210,7 +9455,11 @@ { "query_id": 901, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Friend", + "Highschooler" + ], "query": "What are the names of high schoolers who both have friends and are liked?", "answer": "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", "difficulty": "hard" @@ -7218,7 +9467,9 @@ { "query_id": 902, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes" + ], "query": "Count the number of likes for each student id.", "answer": "SELECT student_id , count(*) FROM Likes GROUP BY student_id", "difficulty": "medium" @@ -7226,7 +9477,9 @@ { "query_id": 903, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes" + ], "query": "How many likes correspond to each student id?", "answer": "SELECT student_id , count(*) FROM Likes GROUP BY student_id", "difficulty": "medium" @@ -7234,7 +9487,10 @@ { "query_id": 904, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Highschooler" + ], "query": "Show the names of high schoolers who have likes, and numbers of likes for each.", "answer": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "difficulty": "medium" @@ -7242,7 +9498,10 @@ { "query_id": 905, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Highschooler" + ], "query": "What are the names of high schoolers who have likes, and how many likes does each have?", "answer": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "difficulty": "medium" @@ -7250,7 +9509,10 @@ { "query_id": 906, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Highschooler" + ], "query": "What is the name of the high schooler who has the greatest number of likes?", "answer": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -7258,7 +9520,10 @@ { "query_id": 907, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Highschooler" + ], "query": "Give the name of the student with the most likes.", "answer": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -7266,7 +9531,10 @@ { "query_id": 908, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Highschooler" + ], "query": "Show the names of students who have at least 2 likes.", "answer": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2", "difficulty": "medium" @@ -7274,7 +9542,10 @@ { "query_id": 909, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Highschooler" + ], "query": "What are the names of students who have 2 or more likes?", "answer": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2", "difficulty": "medium" @@ -7282,7 +9553,10 @@ { "query_id": 910, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", "answer": "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 HAVING count(*) >= 2", "difficulty": "hard" @@ -7290,7 +9564,10 @@ { "query_id": 911, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?", "answer": "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 HAVING count(*) >= 2", "difficulty": "hard" @@ -7298,7 +9575,10 @@ { "query_id": 912, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Highschooler" + ], "query": "How many likes does Kyle have?", "answer": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", "difficulty": "medium" @@ -7306,7 +9586,10 @@ { "query_id": 913, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Likes", + "Highschooler" + ], "query": "Return the number of likes that the high schooler named Kyle has.", "answer": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", "difficulty": "medium" @@ -7314,7 +9597,10 @@ { "query_id": 914, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Find the average grade of all students who have some friends.", "answer": "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)", "difficulty": "hard" @@ -7322,7 +9608,10 @@ { "query_id": 915, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "What is the average grade of students who have friends?", "answer": "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)", "difficulty": "hard" @@ -7330,7 +9619,10 @@ { "query_id": 916, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "Find the minimum grade of students who have no friends.", "answer": "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)", "difficulty": "extra" @@ -7338,7 +9630,10 @@ { "query_id": 917, "database_id": "network_1", - "table_id": "N/A", + "table_id": [ + "Friend", + "Highschooler" + ], "query": "What is the lowest grade of students who do not have any friends?", "answer": "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)", "difficulty": "extra" @@ -7346,7 +9641,10 @@ { "query_id": 918, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Professionals" + ], "query": "Which states have both owners and professionals living there?", "answer": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", "difficulty": "hard" @@ -7354,7 +9652,10 @@ { "query_id": 919, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Professionals" + ], "query": "Find the states where both owners and professionals live.", "answer": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", "difficulty": "hard" @@ -7362,7 +9663,10 @@ { "query_id": 920, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs", + "Treatments" + ], "query": "What is the average age of the dogs who have gone through any treatments?", "answer": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", "difficulty": "hard" @@ -7370,7 +9674,10 @@ { "query_id": 921, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs", + "Treatments" + ], "query": "Find the average age of the dogs who went through treatments.", "answer": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", "difficulty": "hard" @@ -7378,7 +9685,10 @@ { "query_id": 922, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "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.", "answer": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", "difficulty": "extra" @@ -7386,7 +9696,10 @@ { "query_id": 923, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "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.", "answer": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", "difficulty": "extra" @@ -7394,7 +9707,10 @@ { "query_id": 924, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "treatments", + "dogs" + ], "query": "Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .", "answer": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )", "difficulty": "hard" @@ -7402,7 +9718,10 @@ { "query_id": 925, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "treatments", + "dogs" + ], "query": "What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?", "answer": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )", "difficulty": "hard" @@ -7410,7 +9729,11 @@ { "query_id": 926, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs", + "Professionals" + ], "query": "Which first names are used for professionals or owners but are not used as dog names?", "answer": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", "difficulty": "hard" @@ -7418,7 +9741,11 @@ { "query_id": 927, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs", + "Professionals" + ], "query": "Find the first names that are used for professionals or owners but are not used as dog names.", "answer": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", "difficulty": "hard" @@ -7426,7 +9753,10 @@ { "query_id": 928, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.", "answer": "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", "difficulty": "extra" @@ -7434,7 +9764,10 @@ { "query_id": 929, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "Give me the id, role and email of the professionals who did not perform any treatment on dogs.", "answer": "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", "difficulty": "extra" @@ -7442,7 +9775,10 @@ { "query_id": 930, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "Which owner owns the most dogs? List the owner id, first name and last name.", "answer": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -7450,7 +9786,10 @@ { "query_id": 931, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "Return the owner id, first name and last name of the owner who has the most dogs.", "answer": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -7458,7 +9797,10 @@ { "query_id": 932, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", "answer": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "difficulty": "medium" @@ -7466,7 +9808,10 @@ { "query_id": 933, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "What are the id, role, and first name of the professionals who have performed two or more treatments?", "answer": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "difficulty": "medium" @@ -7474,7 +9819,10 @@ { "query_id": 934, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs", + "Breeds" + ], "query": "What is the name of the breed with the most dogs?", "answer": "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", "difficulty": "extra" @@ -7482,7 +9830,10 @@ { "query_id": 935, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs", + "Breeds" + ], "query": "Which breed do the most dogs have? Give me the breed name.", "answer": "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", "difficulty": "extra" @@ -7490,7 +9841,11 @@ { "query_id": 936, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs", + "Treatments" + ], "query": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "answer": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -7498,7 +9853,11 @@ { "query_id": 937, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs", + "Treatments" + ], "query": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", "answer": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "difficulty": "extra" @@ -7506,7 +9865,10 @@ { "query_id": 938, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatment_types", + "Treatments" + ], "query": "What is the description of the treatment type that costs the least money in total?", "answer": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", "difficulty": "extra" @@ -7514,7 +9876,10 @@ { "query_id": 939, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatment_types", + "Treatments" + ], "query": "Give me the description of the treatment type whose total cost is the lowest.", "answer": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", "difficulty": "extra" @@ -7522,7 +9887,11 @@ { "query_id": 940, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs", + "Treatments" + ], "query": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "answer": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", "difficulty": "extra" @@ -7530,7 +9899,11 @@ { "query_id": 941, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs", + "Treatments" + ], "query": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", "answer": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", "difficulty": "extra" @@ -7538,7 +9911,10 @@ { "query_id": 942, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", "answer": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "difficulty": "medium" @@ -7546,7 +9922,10 @@ { "query_id": 943, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "Find the id and cell phone of the professionals who operate two or more types of treatments.", "answer": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "difficulty": "medium" @@ -7554,7 +9933,10 @@ { "query_id": 944, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "What are the first name and last name of the professionals who have done treatment with cost below average?", "answer": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )", "difficulty": "extra" @@ -7562,7 +9944,10 @@ { "query_id": 945, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.", "answer": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )", "difficulty": "extra" @@ -7570,7 +9955,10 @@ { "query_id": 946, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "List the date of each treatment, together with the first name of the professional who operated it.", "answer": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", "difficulty": "medium" @@ -7578,7 +9966,10 @@ { "query_id": 947, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "What are the date and the operating professional's first name of each treatment?", "answer": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", "difficulty": "medium" @@ -7586,7 +9977,10 @@ { "query_id": 948, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatments", + "treatment_types" + ], "query": "List the cost of each treatment and the corresponding treatment type description.", "answer": "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", "difficulty": "medium" @@ -7594,7 +9988,10 @@ { "query_id": 949, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatments", + "treatment_types" + ], "query": "What are the cost and treatment type description of each treatment?", "answer": "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", "difficulty": "medium" @@ -7602,7 +9999,10 @@ { "query_id": 950, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "List each owner's first name, last name, and the size of his for her dog.", "answer": "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", "difficulty": "medium" @@ -7610,7 +10010,10 @@ { "query_id": 951, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "What are each owner's first name, last name, and the size of their dog?", "answer": "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", "difficulty": "medium" @@ -7618,7 +10021,10 @@ { "query_id": 952, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "List pairs of the owner's first name and the dogs's name.", "answer": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "difficulty": "medium" @@ -7626,7 +10032,10 @@ { "query_id": 953, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "What are each owner's first name and their dogs's name?", "answer": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "difficulty": "medium" @@ -7634,7 +10043,10 @@ { "query_id": 954, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs", + "Treatments" + ], "query": "List the names of the dogs of the rarest breed and the treatment dates of them.", "answer": "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 )", "difficulty": "extra" @@ -7642,7 +10054,10 @@ { "query_id": 955, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs", + "Treatments" + ], "query": "Which dogs are of the rarest breed? Show their names and treatment dates.", "answer": "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 )", "difficulty": "extra" @@ -7650,7 +10065,10 @@ { "query_id": 956, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.", "answer": "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'", "difficulty": "medium" @@ -7658,7 +10076,10 @@ { "query_id": 957, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "Find the first names of owners living in Virginia and the names of dogs they own.", "answer": "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'", "difficulty": "medium" @@ -7666,7 +10087,10 @@ { "query_id": 958, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs", + "Treatments" + ], "query": "What are the arriving date and the departing date of the dogs who have gone through a treatment?", "answer": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", "difficulty": "medium" @@ -7674,7 +10098,10 @@ { "query_id": 959, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs", + "Treatments" + ], "query": "Find the arriving date and the departing date of the dogs that received a treatment.", "answer": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", "difficulty": "medium" @@ -7682,7 +10109,10 @@ { "query_id": 960, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "List the last name of the owner owning the youngest dog.", "answer": "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 )", "difficulty": "extra" @@ -7690,7 +10120,10 @@ { "query_id": 961, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "Who owns the youngest dog? Give me his or her last name.", "answer": "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 )", "difficulty": "extra" @@ -7698,7 +10131,9 @@ { "query_id": 962, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals" + ], "query": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.", "answer": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", "difficulty": "medium" @@ -7706,7 +10141,9 @@ { "query_id": 963, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals" + ], "query": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?", "answer": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", "difficulty": "medium" @@ -7714,7 +10151,9 @@ { "query_id": 964, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs" + ], "query": "What are the arriving date and the departing date of all the dogs?", "answer": "SELECT date_arrived , date_departed FROM Dogs", "difficulty": "medium" @@ -7722,7 +10161,9 @@ { "query_id": 965, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs" + ], "query": "List the arrival date and the departure date for all the dogs.", "answer": "SELECT date_arrived , date_departed FROM Dogs", "difficulty": "medium" @@ -7730,7 +10171,9 @@ { "query_id": 966, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatments" + ], "query": "How many dogs went through any treatments?", "answer": "SELECT count(DISTINCT dog_id) FROM Treatments", "difficulty": "easy" @@ -7738,7 +10181,9 @@ { "query_id": 967, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatments" + ], "query": "Count the number of dogs that went through a treatment.", "answer": "SELECT count(DISTINCT dog_id) FROM Treatments", "difficulty": "easy" @@ -7746,7 +10191,9 @@ { "query_id": 968, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatments" + ], "query": "How many professionals have performed any treatment to dogs?", "answer": "SELECT count(DISTINCT professional_id) FROM Treatments", "difficulty": "easy" @@ -7754,7 +10201,9 @@ { "query_id": 969, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatments" + ], "query": "Find the number of professionals who have ever treated dogs.", "answer": "SELECT count(DISTINCT professional_id) FROM Treatments", "difficulty": "easy" @@ -7762,7 +10211,9 @@ { "query_id": 970, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "professionals" + ], "query": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.", "answer": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", "difficulty": "medium" @@ -7770,7 +10221,9 @@ { "query_id": 971, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "professionals" + ], "query": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.", "answer": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", "difficulty": "medium" @@ -7778,7 +10231,9 @@ { "query_id": 972, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners" + ], "query": "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.", "answer": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", "difficulty": "medium" @@ -7786,7 +10241,9 @@ { "query_id": 973, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners" + ], "query": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.", "answer": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", "difficulty": "medium" @@ -7794,7 +10251,9 @@ { "query_id": 974, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs" + ], "query": "How many dogs have an age below the average?", "answer": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", "difficulty": "hard" @@ -7802,7 +10261,9 @@ { "query_id": 975, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs" + ], "query": "Count the number of dogs of an age below the average.", "answer": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", "difficulty": "hard" @@ -7810,7 +10271,9 @@ { "query_id": 976, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatments" + ], "query": "How much does the most recent treatment cost?", "answer": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", "difficulty": "medium" @@ -7818,7 +10281,9 @@ { "query_id": 977, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatments" + ], "query": "Show me the cost of the most recently performed treatment.", "answer": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", "difficulty": "medium" @@ -7826,7 +10291,10 @@ { "query_id": 978, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs", + "Treatments" + ], "query": "How many dogs have not gone through any treatment?", "answer": "SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )", "difficulty": "extra" @@ -7834,7 +10302,10 @@ { "query_id": 979, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "treatments", + "dogs" + ], "query": "Tell me the number of dogs that have not received any treatment .", "answer": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "difficulty": "extra" @@ -7842,7 +10313,10 @@ { "query_id": 980, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "How many owners temporarily do not have any dogs?", "answer": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", "difficulty": "extra" @@ -7850,7 +10324,10 @@ { "query_id": 981, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Owners", + "Dogs" + ], "query": "Find the number of owners who do not own any dogs at this moment.", "answer": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", "difficulty": "extra" @@ -7858,7 +10335,10 @@ { "query_id": 982, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "How many professionals did not operate any treatment on dogs?", "answer": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", "difficulty": "extra" @@ -7866,7 +10346,10 @@ { "query_id": 983, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Professionals", + "Treatments" + ], "query": "Find the number of professionals who have not treated any dogs.", "answer": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", "difficulty": "extra" @@ -7874,7 +10357,9 @@ { "query_id": 984, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs" + ], "query": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", "answer": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1", "difficulty": "medium" @@ -7882,7 +10367,9 @@ { "query_id": 985, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs" + ], "query": "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.", "answer": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1", "difficulty": "medium" @@ -7890,7 +10377,9 @@ { "query_id": 986, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs" + ], "query": "What is the average age of all the dogs?", "answer": "SELECT avg(age) FROM Dogs", "difficulty": "easy" @@ -7898,7 +10387,9 @@ { "query_id": 987, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs" + ], "query": "Compute the average age of all the dogs.", "answer": "SELECT avg(age) FROM Dogs", "difficulty": "easy" @@ -7906,7 +10397,9 @@ { "query_id": 988, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs" + ], "query": "What is the age of the oldest dog?", "answer": "SELECT max(age) FROM Dogs", "difficulty": "easy" @@ -7914,7 +10407,9 @@ { "query_id": 989, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Dogs" + ], "query": "Tell me the age of the oldest dog.", "answer": "SELECT max(age) FROM Dogs", "difficulty": "easy" @@ -7922,7 +10417,9 @@ { "query_id": 990, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Charges" + ], "query": "How much does each charge type costs? List both charge type and amount.", "answer": "SELECT charge_type , charge_amount FROM Charges", "difficulty": "medium" @@ -7930,7 +10427,9 @@ { "query_id": 991, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Charges" + ], "query": "List each charge type and its amount.", "answer": "SELECT charge_type , charge_amount FROM Charges", "difficulty": "medium" @@ -7938,7 +10437,9 @@ { "query_id": 992, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Charges" + ], "query": "How much does the most expensive charge type costs?", "answer": "SELECT max(charge_amount) FROM Charges", "difficulty": "easy" @@ -7946,7 +10447,9 @@ { "query_id": 993, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Charges" + ], "query": "What is the charge amount of the most expensive charge type?", "answer": "SELECT max(charge_amount) FROM Charges", "difficulty": "easy" @@ -7954,7 +10457,9 @@ { "query_id": 994, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "professionals" + ], "query": "List the email, cell phone and home phone of all the professionals.", "answer": "SELECT email_address , cell_number , home_phone FROM professionals", "difficulty": "medium" @@ -7962,7 +10467,9 @@ { "query_id": 995, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "professionals" + ], "query": "What are the email, cell phone and home phone of each professional?", "answer": "SELECT email_address , cell_number , home_phone FROM professionals", "difficulty": "medium" @@ -7970,7 +10477,9 @@ { "query_id": 996, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "dogs" + ], "query": "What are all the possible breed type and size type combinations?", "answer": "SELECT DISTINCT breed_code , size_code FROM dogs", "difficulty": "medium" @@ -7978,7 +10487,9 @@ { "query_id": 997, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "dogs" + ], "query": "Find the distinct breed type and size type combinations for dogs.", "answer": "SELECT DISTINCT breed_code , size_code FROM dogs", "difficulty": "medium" @@ -7986,7 +10497,11 @@ { "query_id": 998, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatment_types", + "Treatments", + "professionals" + ], "query": "List the first name of all the professionals along with the description of the treatment they have done.", "answer": "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", "difficulty": "medium" @@ -7994,7 +10509,11 @@ { "query_id": 999, "database_id": "dog_kennels", - "table_id": "N/A", + "table_id": [ + "Treatment_types", + "Treatments", + "professionals" + ], "query": "What are each professional's first name and description of the treatment they have performed?", "answer": "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", "difficulty": "medium" @@ -8002,7 +10521,9 @@ { "query_id": 1000, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "How many singers are there?", "answer": "SELECT count(*) FROM singer", "difficulty": "easy" @@ -8010,7 +10531,9 @@ { "query_id": 1001, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What is the count of singers?", "answer": "SELECT count(*) FROM singer", "difficulty": "easy" @@ -8018,7 +10541,9 @@ { "query_id": 1002, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "List the name of singers in ascending order of net worth.", "answer": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", "difficulty": "easy" @@ -8026,7 +10551,9 @@ { "query_id": 1003, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are the names of singers ordered by ascending net worth?", "answer": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", "difficulty": "easy" @@ -8034,7 +10561,9 @@ { "query_id": 1004, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are the birth year and citizenship of singers?", "answer": "SELECT Birth_Year , Citizenship FROM singer", "difficulty": "medium" @@ -8042,7 +10571,9 @@ { "query_id": 1005, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are the birth years and citizenships of the singers?", "answer": "SELECT Birth_Year , Citizenship FROM singer", "difficulty": "medium" @@ -8050,7 +10581,9 @@ { "query_id": 1006, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "List the name of singers whose citizenship is not \"France\".", "answer": "SELECT Name FROM singer WHERE Citizenship != \"France\"", "difficulty": "easy" @@ -8058,7 +10591,9 @@ { "query_id": 1007, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are the names of the singers who are not French citizens?", "answer": "SELECT Name FROM singer WHERE Citizenship != \"France\"", "difficulty": "easy" @@ -8066,7 +10601,9 @@ { "query_id": 1008, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "Show the name of singers whose birth year is either 1948 or 1949?", "answer": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", "difficulty": "medium" @@ -8074,7 +10611,9 @@ { "query_id": 1009, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are the names of the singers whose birth years are either 1948 or 1949?", "answer": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", "difficulty": "medium" @@ -8082,7 +10621,9 @@ { "query_id": 1010, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What is the name of the singer with the largest net worth?", "answer": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", "difficulty": "medium" @@ -8090,7 +10631,9 @@ { "query_id": 1011, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What is the name of the singer who is worth the most?", "answer": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", "difficulty": "medium" @@ -8098,7 +10641,9 @@ { "query_id": 1012, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "Show different citizenship of singers and the number of singers of each citizenship.", "answer": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship", "difficulty": "medium" @@ -8106,7 +10651,9 @@ { "query_id": 1013, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "For each citizenship, how many singers are from that country?", "answer": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship", "difficulty": "medium" @@ -8114,7 +10661,9 @@ { "query_id": 1014, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "Please show the most common citizenship of singers.", "answer": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1", "difficulty": "hard" @@ -8122,7 +10671,9 @@ { "query_id": 1015, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What is the most common singer citizenship ?", "answer": "select citizenship from singer group by citizenship order by count(*) desc limit 1", "difficulty": "hard" @@ -8130,7 +10681,9 @@ { "query_id": 1016, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "Show different citizenships and the maximum net worth of singers of each citizenship.", "answer": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", "difficulty": "medium" @@ -8138,7 +10691,9 @@ { "query_id": 1017, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "For each citizenship, what is the maximum net worth?", "answer": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", "difficulty": "medium" @@ -8146,7 +10701,10 @@ { "query_id": 1018, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer", + "song" + ], "query": "Show titles of songs and names of singers.", "answer": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", "difficulty": "medium" @@ -8154,7 +10712,10 @@ { "query_id": 1019, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer", + "song" + ], "query": "What are the song titles and singer names?", "answer": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", "difficulty": "medium" @@ -8162,7 +10723,10 @@ { "query_id": 1020, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer", + "song" + ], "query": "Show distinct names of singers that have songs with sales more than 300000.", "answer": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", "difficulty": "medium" @@ -8170,7 +10734,10 @@ { "query_id": 1021, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer", + "song" + ], "query": "what are the different names of the singers that have sales more than 300000?", "answer": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", "difficulty": "medium" @@ -8178,7 +10745,10 @@ { "query_id": 1022, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer", + "song" + ], "query": "Show the names of singers that have more than one song.", "answer": "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", "difficulty": "medium" @@ -8186,7 +10756,10 @@ { "query_id": 1023, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer", + "song" + ], "query": "What are the names of the singers that have more than one songs?", "answer": "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", "difficulty": "medium" @@ -8194,7 +10767,10 @@ { "query_id": 1024, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer", + "song" + ], "query": "Show the names of singers and the total sales of their songs.", "answer": "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", "difficulty": "medium" @@ -8202,7 +10778,10 @@ { "query_id": 1025, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer", + "song" + ], "query": "For each singer name, what is the total sales for their songs?", "answer": "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", "difficulty": "medium" @@ -8210,7 +10789,10 @@ { "query_id": 1026, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer", + "song" + ], "query": "List the name of singers that do not have any song.", "answer": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", "difficulty": "hard" @@ -8218,7 +10800,10 @@ { "query_id": 1027, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer", + "song" + ], "query": "What is the sname of every sing that does not have any song?", "answer": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", "difficulty": "hard" @@ -8226,7 +10811,9 @@ { "query_id": 1028, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "Show the citizenship shared by singers with birth year before 1945 and after 1955.", "answer": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", "difficulty": "hard" @@ -8234,7 +10821,9 @@ { "query_id": 1029, "database_id": "singer", - "table_id": "N/A", + "table_id": [ + "singer" + ], "query": "What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?", "answer": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", "difficulty": "hard" @@ -8242,7 +10831,9 @@ { "query_id": 1030, "database_id": "real_estate_properties", - "table_id": "N/A", + "table_id": [ + "Other_Available_Features" + ], "query": "How many available features are there in total?", "answer": "SELECT count(*) FROM Other_Available_Features", "difficulty": "easy" @@ -8250,7 +10841,10 @@ { "query_id": 1031, "database_id": "real_estate_properties", - "table_id": "N/A", + "table_id": [ + "Other_Available_Features", + "Ref_Feature_Types" + ], "query": "What is the feature type name of feature AirCon?", "answer": "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\"", "difficulty": "medium" @@ -8258,7 +10852,10 @@ { "query_id": 1032, "database_id": "real_estate_properties", - "table_id": "N/A", + "table_id": [ + "Ref_Property_Types", + "Properties" + ], "query": "Show the property type descriptions of properties belonging to that code.", "answer": "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", "difficulty": "medium" @@ -8266,7 +10863,9 @@ { "query_id": 1033, "database_id": "real_estate_properties", - "table_id": "N/A", + "table_id": [ + "Properties" + ], "query": "What are the names of properties that are either houses or apartments with more than 1 room?", "answer": "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", "difficulty": "hard"