diff --git "a/output/dev_predict.txt.compare.json" "b/output/dev_predict.txt.compare.json" new file mode 100644--- /dev/null +++ "b/output/dev_predict.txt.compare.json" @@ -0,0 +1,7240 @@ +[ + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "How many singers do we have?", + "gold": "SELECT count(*) FROM singer", + "pred": "SELECT count(*) FROM singer", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What is the total number of singers?", + "gold": "SELECT count(*) FROM singer", + "pred": "SELECT count(*) FROM singer", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Show name, country, age for all singers ordered by age from the oldest to the youngest.", + "gold": "SELECT name, country, age FROM singer ORDER BY age DESC", + "pred": "SELECT Name, Country, Age FROM Singer ORDER BY Age DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the names, countries, and ages for every singer in descending order of age?", + "gold": "SELECT name, country, age FROM singer ORDER BY age DESC", + "pred": "SELECT name, country, age FROM singer ORDER BY age DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What is the average, minimum, and maximum age of all singers from France?", + "gold": "SELECT avg(age), min(age), max(age) FROM singer WHERE country = 'France'", + "pred": "SELECT avg(age), min(age), max(age) FROM singer WHERE country = \"France\"", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What is the average, minimum, and maximum age for all French singers?", + "gold": "SELECT avg(age), min(age), max(age) FROM singer WHERE country = 'France'", + "pred": "SELECT avg(age), min(age), max(age) FROM singer WHERE country = \"France\"", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Show the name and the release year of the song by the youngest singer.", + "gold": "SELECT song_name, song_release_year FROM singer ORDER BY age LIMIT 1", + "pred": "SELECT T1.Name, T1.Song_release_year FROM Singer AS T1 JOIN singer_in_concert AS T2 ON T1.Singer_ID = T2.Singer_ID ORDER BY T1.Age ASC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the names and release years for all the songs of the youngest singer?", + "gold": "SELECT song_name, song_release_year FROM singer ORDER BY age LIMIT 1", + "pred": "SELECT T1.Name, T1.Song_release_year FROM Singer AS T1 JOIN singer_in_concert AS T2 ON T1.Singer_ID = T2.Singer_ID ORDER BY T1.Age ASC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are all distinct countries where singers above age 20 are from?", + "gold": "SELECT DISTINCT country FROM singer WHERE age > 20", + "pred": "SELECT DISTINCT T1.Country FROM singer AS T1 JOIN concert AS T2 ON T2.concert_ID = T1.Singer_ID WHERE T1.Age > 20", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the different countries with singers above age 20?", + "gold": "SELECT DISTINCT country FROM singer WHERE age > 20", + "pred": "SELECT DISTINCT country FROM singer WHERE age > 20", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Show all countries and the number of singers in each country.", + "gold": "SELECT country, count(*) FROM singer GROUP BY country", + "pred": "SELECT T1.Country, COUNT(*) FROM singer AS T1 JOIN concert AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Country", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "How many singers are from each country?", + "gold": "SELECT country, count(*) FROM singer GROUP BY country", + "pred": "SELECT COUNT(*), Country FROM singer GROUP BY Country", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "List all song names by singers above the average age.", + "gold": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", + "pred": "SELECT T1.Song_Name FROM singer AS T1 JOIN concert AS T2 ON T2.concert_ID = T1.Singer_ID GROUP BY T1.Song_Name HAVING AVG(T1.Age) > (SELECT avg(T2.Age) FROM singer AS T2 JOIN concert AS T3 ON T3.concert_ID = T2.Singer_ID GROUP BY T2.Song_Name", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are all the song names by singers who are older than average?", + "gold": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", + "pred": "SELECT T1.Song_Name FROM singer AS T1 JOIN singer AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T1.Age > T2.Average", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Show location and name for all stadiums with a capacity between 5000 and 10000.", + "gold": "SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", + "pred": "SELECT LOCATION, Name FROM stadium WHERE Capacity BETWEEN 5000 AND 10000", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the locations and names of all stations with capacity between 5000 and 10000?", + "gold": "SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", + "pred": "SELECT LOCATION, Name FROM stadium WHERE Capacity BETWEEN 5000 AND 10000", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What is the maximum capacity and the average of all stadiums ?", + "gold": "select max(capacity), average from stadium", + "pred": "SELECT MAX (Capacity), AVG (Average) FROM stadium", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What is the average and maximum capacities for all stadiums ?", + "gold": "select avg(capacity), max(capacity) from stadium", + "pred": "SELECT avg(Capacity), max(Highest) FROM stadium", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What is the name and capacity for the stadium with highest average attendance?", + "gold": "SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1", + "pred": "SELECT T1.name, T1.average FROM stadium AS T1 JOIN concert AS T2 ON T1.Stadium_ID = T2.Stadium_ID GROUP BY T1.Stadium_ID ORDER BY T1.average DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What is the name and capacity for the stadium with the highest average attendance?", + "gold": "SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1", + "pred": "SELECT T1.name, T1.average FROM stadium AS T1 JOIN concert AS T2 ON T1.Stadium_ID = T2.Stadium_ID GROUP BY T1.Stadium_ID ORDER BY T1.average DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "How many concerts are there in year 2014 or 2015?", + "gold": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", + "pred": "SELECT count(*) FROM concert WHERE YEAR = \"2014\" OR YEAR = \"2015\"", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "How many concerts occurred in 2014 or 2015?", + "gold": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", + "pred": "SELECT count(*) FROM concert WHERE YEAR = \"2014\" OR YEAR = \"2015\"", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Show the stadium name and the number of concerts in each stadium.", + "gold": "SELECT T2.name, count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", + "pred": "SELECT T1.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.Stadium_ID = T2.Stadium_ID GROUP BY T1.Stadium_ID", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "For each stadium, how many concerts play there?", + "gold": "SELECT T2.name, count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", + "pred": "SELECT T1.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.Stadium_ID = T2.Stadium_ID GROUP BY T1.Stadium_ID", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", + "gold": "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", + "pred": "SELECT T1.name, T1.capacity FROM stadium AS T1 JOIN concert AS T2 ON T1.Stadium_ID = T2.Stadium_ID WHERE T2.Year >= 2014 GROUP BY T1.Stadium_ID ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What is the name and capacity of the stadium with the most concerts after 2013 ?", + "gold": "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", + "pred": "SELECT T1.name, T1.capacity FROM stadium AS T1 JOIN concert AS T2 ON T1.stadium_id = T2.stadium_id WHERE T2.year > 2013 GROUP BY T1.stadium_id ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Which year has most number of concerts?", + "gold": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What is the year that had the most concerts?", + "gold": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Show the stadium names without any concert.", + "gold": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", + "pred": "SELECT name FROM stadium WHERE Stadium_ID NOT IN (SELECT Stadium_ID FROM concert)", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the names of the stadiums without any concerts?", + "gold": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", + "pred": "SELECT name FROM stadium WHERE Stadium_ID NOT IN (SELECT Stadium_ID FROM concert)", + "is_identical": true + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Show countries where a singer above age 40 and a singer below 30 are from.", + "gold": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30", + "pred": "SELECT T1.Country FROM singer AS T1 JOIN concert AS T2 ON T2.Singer_ID = T1.Singer_ID WHERE T1.Age > 40 INTERSECT SELECT T1.Country FROM singer AS T1 JOIN concert AS T2 ON T2.Singer_ID = T1.Singer_ID WHERE T1.Age < 30", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Show names for all stadiums except for stadiums having a concert in year 2014.", + "gold": "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", + "pred": "SELECT name FROM stadium WHERE Stadium_ID NOT IN (SELECT Stadium_ID FROM concert WHERE YEAR = 2014)", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the names of all stadiums that did not have a concert in 2014?", + "gold": "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", + "pred": "SELECT name FROM stadium WHERE Stadium_ID NOT IN (SELECT Stadium_ID FROM concert WHERE YEAR = 2014)", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Show the name and theme for all concerts and the number of singers in each concert.", + "gold": "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", + "pred": "SELECT T1.concert_name, T1.theme, COUNT(*) FROM concert AS T1 JOIN singer_in_concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T1.concert_id", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the names , themes , and number of singers for every concert ?", + "gold": "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", + "pred": "SELECT T1.Name, T2.Theme, COUNT(*) FROM singer AS T1 JOIN singer_in_concert AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T2.concert_ID", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "List singer names and number of concerts for each singer.", + "gold": "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", + "pred": "SELECT T1.name, COUNT(*) FROM singer AS T1 JOIN singer_in_concert AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Singer_ID", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the names of the singers and number of concerts for each person?", + "gold": "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", + "pred": "SELECT T1.name, COUNT(*) FROM singer AS T1 JOIN singer_in_concert AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.name", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "List all singer names in concerts in year 2014.", + "gold": "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", + "pred": "SELECT T1.name FROM singer AS T1 JOIN singer_in_concert AS T2 ON T1.Singer_ID = T2.Singer_ID JOIN concert AS T3 ON T2.concert_ID = T3.concert_ID WHERE T3.Year = \"2014\"", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the names of the singers who performed in a concert in 2014?", + "gold": "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", + "pred": "SELECT T1.name FROM singer AS T1 JOIN singer_in_concert AS T2 ON T1.Singer_ID = T2.Singer_ID JOIN concert AS T3 ON T2.concert_ID = T3.concert_ID WHERE T3.Year = \"2014\"", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "what is the name and nation of the singer who have a song having 'Hey' in its name?", + "gold": "SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'", + "pred": "SELECT T1.name, T1.country FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.song_name LIKE '%Hey%'", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?", + "gold": "SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'", + "pred": "SELECT T1.name, T1.country FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Song_name LIKE '%Hey%'", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", + "gold": "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", + "pred": "SELECT T1.name, T1.location FROM concert AS T1 JOIN stadium AS T2 ON T1.Stadium_ID = T2.Stadium_ID WHERE T1.Year = \"2014\" INTERSECT SELECT T1.name, T1.location FROM concert AS T1 JOIN stadium AS T2 ON T1.Stadium_ID = T2.Stadium_ID WHERE T1.Year =", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", + "gold": "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", + "pred": "SELECT T1.name, T1.location FROM stadium AS T1 JOIN concert AS T2 ON T1.stadium_id = T2.stadium_id WHERE T2.year = \"2014\" INTERSECT SELECT T1.name, T1.location FROM stadium AS T1 JOIN concert AS T2 ON T1.stadium_id = T2.stadium_id WHERE T2.year = \"201", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "Find the number of concerts happened in the stadium with the highest capacity .", + "gold": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", + "pred": "SELECT COUNT (DISTINCT T1.concert_ID) FROM concert AS T1 JOIN stadium AS T2 ON T1.Stadium_ID = T2.Stadium_ID WHERE T2.Highest = 1", + "is_identical": false + }, + { + "context": "CREATE TABLE concert (concert_ID INTEGER, concert_Name VARCHAR, Theme VARCHAR, Stadium_ID VARCHAR, Year VARCHAR); CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Country VARCHAR, Song_Name VARCHAR, Song_release_year VARCHAR, Age INTEGER, Is_male BOOLEAN); CREATE TABLE singer_in_concert (concert_ID INTEGER, Singer_ID VARCHAR); CREATE TABLE stadium (Stadium_ID INTEGER, Location VARCHAR, Name VARCHAR, Capacity INTEGER, Highest INTEGER, Lowest INTEGER, Average INTEGER)", + "question": "What are the number of concerts that occurred in the stadium with the largest capacity ?", + "gold": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", + "pred": "SELECT COUNT (DISTINCT T1.concert_ID) FROM concert AS T1 JOIN stadium AS T2 ON T1.Stadium_ID = T2.Stadium_ID WHERE T2.Capacity = (SELECT MAX (Capacity) FROM stadium)", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the number of pets whose weight is heavier than 10.", + "gold": "SELECT count(*) FROM pets WHERE weight > 10", + "pred": "SELECT count(*) FROM Pets WHERE weight > 10", + "is_identical": true + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "How many pets have a greater weight than 10?", + "gold": "SELECT count(*) FROM pets WHERE weight > 10", + "pred": "SELECT count(*) FROM Pets WHERE weight > 10", + "is_identical": true + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the weight of the youngest dog.", + "gold": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", + "pred": "SELECT T1.weight FROM HAS_PET AS T1 JOIN PETS AS T2 ON T1.petid = T2.petid WHERE T2.pet_age = (SELECT MIN(T3.pet_age) FROM HAS_PET AS T3 JOIN PETS AS T4 ON T3.petid = T4.petid)", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "How much does the youngest dog weigh?", + "gold": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", + "pred": "SELECT weight FROM Pets WHERE pet_age = (SELECT MIN(pet_age) FROM Pets)", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the maximum weight for each type of pet. List the maximum weight and pet type.", + "gold": "SELECT max(weight), petType FROM pets GROUP BY petType", + "pred": "SELECT T1.weight, T2.PetType FROM Pets AS T1 JOIN HAS_PET AS T2 ON T1.PetID = T2.PetID GROUP BY T2.PetType ORDER BY T1.weight DESC", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "List the maximum weight and type for each type of pet.", + "gold": "SELECT max(weight), petType FROM pets GROUP BY petType", + "pred": "SELECT PetType, MAX(weight) FROM Pets GROUP BY PetType", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find number of pets owned by students who are older than 20.", + "gold": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", + "pred": "SELECT count(*) FROM HAS_PET AS T1 JOIN PETS AS T2 ON T1.PetID = T2.PetID JOIN Student AS T3 ON T3.StuID = T1.StuID WHERE T3.age > 20", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "How many pets are owned by students that have an age greater than 20?", + "gold": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", + "pred": "SELECT count(*) FROM HAS_PET AS T1 JOIN PETS AS T2 ON T1.PetID = T2.PetID JOIN Student AS T3 ON T3.StuID = T1.StuID WHERE T3.age > 20", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the number of dog pets that are raised by female students (with sex F).", + "gold": "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'", + "pred": "SELECT count(*) FROM HAS_PET AS T1 JOIN PETS AS T2 ON T1.PetID = T2.PetID JOIN Student AS T3 ON T3.StuID = T1.StuID WHERE T2.PetType = \"dog\" AND T3.Sex = \"F\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "How many dog pets are raised by female students?", + "gold": "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'", + "pred": "SELECT count(*) FROM HAS_PET AS T1 JOIN PETS AS T2 ON T1.PetID = T2.PetID WHERE T2.PetType = \"dog\" AND T1.StuID IN (SELECT StuID FROM Student WHERE Sex = \"Female\")", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the number of distinct type of pets.", + "gold": "SELECT count(DISTINCT pettype) FROM pets", + "pred": "SELECT count(DISTINCT PetType) FROM Pets", + "is_identical": true + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "How many different types of pet are there?", + "gold": "SELECT count(DISTINCT pettype) FROM pets", + "pred": "SELECT count(DISTINCT PetType) FROM Pets", + "is_identical": true + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the first name of students who have cat or dog pet.", + "gold": "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'", + "pred": "SELECT T1.Fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID JOIN Pets AS T3 ON T2.PetID = T3.PetID WHERE T3.PetType = \"cat\" OR T3.PetType = \"dog\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What are the first names of every student who has a cat or dog as a pet?", + "gold": "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'", + "pred": "SELECT T1.Fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID JOIN Pets AS T3 ON T2.PetID = T3.PetID WHERE T3.PetType = \"cat\" OR T3.PetType = \"dog\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the first name of students who have both cat and dog pets .", + "gold": "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'", + "pred": "SELECT T1.fname FROM Student AS T1 JOIN Has_pet AS T2 ON T1.stuid = T2.stuid JOIN Pets AS T3 ON T2.petid = T3.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", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What are the students' first names who have both cats and dogs as pets?", + "gold": "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'", + "pred": "SELECT T1.Fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID JOIN Pets AS T3 ON T2.PetID = T3.PetID WHERE T3.PetType = \"cat\" INTERSECT SELECT T1.Fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.Stu", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the major and age of students who do not have a cat pet.", + "gold": "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')", + "pred": "SELECT major, age FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_Pet WHERE PetType = \"cat\")", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What major is every student who does not own a cat as a pet, and also how old are they?", + "gold": "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')", + "pred": "SELECT T1.major, T1.age FROM Student AS T1 WHERE T1.StuID NOT IN (SELECT StuID FROM Has_Pet)", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the id of students who do not have a cat pet.", + "gold": "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'", + "pred": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_Pet", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What are the ids of the students who do not own cats as pets?", + "gold": "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'", + "pred": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_Pet", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", + "gold": "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')", + "pred": "SELECT T1.fname, T2.age FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID JOIN Pets AS T3 ON T2.PetID = T3.PetID WHERE T3.PetType = \"dog\" EXCEPT SELECT T1.fname, T2.age FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What is the first name of every student who has a dog but does not have a cat?", + "gold": "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')", + "pred": "SELECT T1.Fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID JOIN Pets AS T3 ON T2.PetID = T3.PetID WHERE T3.PetType = \"dog\" EXCEPT SELECT T1.Fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the type and weight of the youngest pet.", + "gold": "SELECT pettype, weight FROM pets ORDER BY pet_age LIMIT 1", + "pred": "SELECT pet_type, weight FROM Pets WHERE pet_age = (SELECT MIN(pet_age) FROM Pets)", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What type of pet is the youngest animal, and how much does it weigh?", + "gold": "SELECT pettype, weight FROM pets ORDER BY pet_age LIMIT 1", + "pred": "SELECT T1.PetType, T1.weight FROM Pets AS T1 JOIN Has_Pet AS T2 ON T1.PetID = T2.PetID ORDER BY T1.pet_age LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the id and weight of all pets whose age is older than 1.", + "gold": "SELECT petid, weight FROM pets WHERE pet_age > 1", + "pred": "SELECT petid, weight FROM Pets WHERE pet_age > 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What is the id and weight of every pet who is older than 1?", + "gold": "SELECT petid, weight FROM pets WHERE pet_age > 1", + "pred": "SELECT petid, weight FROM Pets WHERE pet_age > 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the average and maximum age for each type of pet.", + "gold": "SELECT avg(pet_age), max(pet_age), pettype FROM pets GROUP BY pettype", + "pred": "SELECT pet_type, avg(pet_age), max(pet_age) FROM Pets GROUP BY pet_type", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What is the average and maximum age for each pet type?", + "gold": "SELECT avg(pet_age), max(pet_age), pettype FROM pets GROUP BY pettype", + "pred": "SELECT pet_type, avg(pet_age), max(pet_age) FROM Pets GROUP BY pet_type", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the average weight for each pet type.", + "gold": "SELECT avg(weight), pettype FROM pets GROUP BY pettype", + "pred": "SELECT avg(weight), pet_type FROM Pets GROUP BY pet_type", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What is the average weight for each type of pet?", + "gold": "SELECT avg(weight), pettype FROM pets GROUP BY pettype", + "pred": "SELECT avg(weight), pet_type FROM Pets GROUP BY pet_type", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the first name and age of students who have a pet.", + "gold": "SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", + "pred": "SELECT T1.fname, T2.age FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What are the different first names and ages of the students who do have pets?", + "gold": "SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", + "pred": "SELECT T1.fname, T2.pet_age FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the id of the pet owned by student whose last name is ‘Smith’.", + "gold": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", + "pred": "SELECT T1.PetID FROM HAS_PET AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T2.LName = 'Smith'", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What is the id of the pet owned by the student whose last name is 'Smith'?", + "gold": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", + "pred": "SELECT T1.PetID FROM HAS_PET AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T2.LName = 'Smith'", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the number of pets for each student who has any pet and student id.", + "gold": "SELECT count(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid", + "pred": "SELECT count(*), StuID FROM Has_Pet GROUP BY StuID", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "For students who have pets , how many pets does each student have ? list their ids instead of names .", + "gold": "select count(*), t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid", + "pred": "SELECT T1.StuID FROM HAS_PET AS T1 JOIN PETS AS T2 ON T1.PetID = T2.PetID", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the first name and gender of student who have more than one pet.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What is the first name and gender of the all the students who have more than one pet?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the last name of the student who has a cat that is age 3.", + "gold": "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'", + "pred": "SELECT T1.LName FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID JOIN Pets AS T3 ON T2.PetID = T3.PetID WHERE T3.pet_age = 3", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What is the last name of the student who has a cat that is 3 years old?", + "gold": "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'", + "pred": "SELECT T1.LName FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID JOIN Pets AS T3 ON T2.PetID = T3.PetID WHERE T3.pet_age = 3", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "Find the average age of students who do not have any pet .", + "gold": "select avg(age) from student where stuid not in (select stuid from has_pet)", + "pred": "SELECT avg(T1.age) FROM Student AS T1 WHERE T1.StuID NOT IN (SELECT StuID FROM Has_Pet)", + "is_identical": false + }, + { + "context": "CREATE TABLE Has_Pet (StuID INTEGER, PetID INTEGER); CREATE TABLE Pets (PetID INTEGER, PetType VARCHAR, pet_age INTEGER, weight INTEGER); CREATE TABLE Student (StuID INTEGER, LName VARCHAR, Fname VARCHAR, Age INTEGER, Sex VARCHAR, Major INTEGER, Advisor INTEGER, city_code VARCHAR)", + "question": "What is the average age for all students who do not own any pets ?", + "gold": "select avg(age) from student where stuid not in (select stuid from has_pet)", + "pred": "SELECT avg(T1.age) FROM Student AS T1 WHERE T1.StuID NOT IN (SELECT StuID FROM Has_Pet)", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many continents are there?", + "gold": "SELECT count(*) FROM CONTINENTS;", + "pred": "SELECT count(*) FROM continents", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the number of continents?", + "gold": "SELECT count(*) FROM CONTINENTS;", + "pred": "SELECT count(*) FROM continents", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many countries does each continent have? List the continent id, continent name and the number of countries.", + "gold": "SELECT T1.ContId, T1.Continent, count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", + "pred": "SELECT T1.ContId, T1.Continent, COUNT(*) FROM continents AS T1 JOIN countries AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "For each continent, list its id, name, and how many countries it has?", + "gold": "SELECT T1.ContId, T1.Continent, count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", + "pred": "SELECT T1.ContId, T1.Continent, COUNT(*) FROM continents AS T1 JOIN countries AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many countries are listed?", + "gold": "SELECT count(*) FROM COUNTRIES;", + "pred": "SELECT COUNT (DISTINCT country) FROM countries", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many countries exist?", + "gold": "SELECT count(*) FROM COUNTRIES;", + "pred": "SELECT COUNT (DISTINCT countryid) FROM countries", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many models does each car maker produce? List maker full name, id and the number.", + "gold": "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;", + "pred": "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", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the full name of each car maker, along with its id and how many models it produces?", + "gold": "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;", + "pred": "SELECT FullName, id, count(*) FROM car_makers GROUP BY FullName", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Which model of the car has the minimum horsepower?", + "gold": "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;", + "pred": "SELECT T1.Model FROM model_list AS T1 JOIN cars_data AS T2 ON T1.ModelId = T2.Id ORDER BY T2.Horsepower LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the model of the car with the smallest amount of horsepower?", + "gold": "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;", + "pred": "SELECT T1.Model FROM model_list AS T1 JOIN cars_data AS T2 ON T1.ModelId = T2.Id ORDER BY T2.Horsepower LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Find the model of the car whose weight is below the average weight.", + "gold": "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)", + "pred": "SELECT T1.Model FROM cars_data AS T1 JOIN model_list AS T2 ON T1.Id = T2.ModelId WHERE T1.Weight < (SELECT avg(T1.Weight) FROM cars_data AS T1 JOIN model_list AS T2 ON T1.Id = T2.ModelId)", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the model for the car with a weight smaller than the average?", + "gold": "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)", + "pred": "SELECT T1.Model FROM cars_data AS T1 JOIN model_list AS T2 ON T1.Id = T2.ModelId WHERE T1.Weight < (SELECT avg(T1.Weight) FROM cars_data AS T1)", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Find the name of the makers that produced some cars in the year of 1970?", + "gold": "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';", + "pred": "SELECT T1.Maker FROM car_makers AS T1 JOIN car_names AS T2 ON T1.Id = T2.MakeId WHERE T2.Year = 1970", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the name of the different car makers who produced a car in 1970?", + "gold": "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';", + "pred": "SELECT DISTINCT T1.FullName FROM car_makers AS T1 JOIN model_list AS T2 ON T1.Id = T2.Maker JOIN cars_data AS T3 ON T2.ModelId = T3.Id WHERE T3.Year = 1970", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Find the make and production time of the cars that were produced in the earliest year?", + "gold": "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);", + "pred": "SELECT T1.Make, T2.Year FROM car_names AS T1 JOIN cars_data AS T2 ON T1.ModelId = T2.Id ORDER BY T2.Year LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the maker of the carr produced in the earliest year and what year was it?", + "gold": "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);", + "pred": "SELECT T1.Maker, T2.Year FROM car_makers AS T1 JOIN car_names AS T2 ON T1.Id = T2.MakeId ORDER BY T2.Year LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Which distinct car models are the produced after 1980?", + "gold": "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;", + "pred": "SELECT DISTINCT T1.Model FROM car_names AS T1 JOIN cars_data AS T2 ON T1.MakeId = T2.Id WHERE T2.Year > 1980", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the different models for the cards produced after 1980?", + "gold": "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;", + "pred": "SELECT DISTINCT Model FROM model_list WHERE YEAR > 1980", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many car makers are there in each continents? List the continent name and the count.", + "gold": "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;", + "pred": "SELECT T1.Continent, COUNT(*) FROM car_makers AS T1 JOIN countries AS T2 ON T1.Country = T2.CountryName JOIN continents AS T3 ON T2.Continent = T3.ContId GROUP BY T3.Continent", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the name of each continent and how many car makers are there in each one?", + "gold": "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;", + "pred": "SELECT T1.Continent, COUNT(*) FROM car_makers AS T1 JOIN countries AS T2 ON T1.Country = T2.CountryId JOIN continents AS T3 ON T2.Continent = T3.ContId GROUP BY T1.Continent", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Which of the countries has the most car makers? List the country name.", + "gold": "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;", + "pred": "SELECT T1.CountryName FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryId = T2.Country WHERE T2.Country = (SELECT T3.Country FROM car_makers AS T3 GROUP BY T3.Country ORDER BY count(*) DESC LIMIT 1)", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the name of the country with the most car makers?", + "gold": "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;", + "pred": "SELECT T1.CountryName FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryId = T2.Country WHERE T2.FullName = (SELECT MAX (T3.FullName) FROM car_makers AS T3 GROUP BY T3.Country)", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many car models are produced by each maker ? Only list the count and the maker full name .", + "gold": "select count(*), t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;", + "pred": "SELECT T1.FullName, COUNT(*) FROM car_makers AS T1 JOIN model_list AS T2 ON T1.Id = T2.Maker GROUP BY T1.FullName", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the number of car models that are produced by each maker and what is the id and full name of each maker?", + "gold": "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;", + "pred": "SELECT T1.id, T1.fullname, COUNT(*) FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.maker GROUP BY T1.id", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the accelerate of the car make amc hornet sportabout (sw)?", + "gold": "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)';", + "pred": "SELECT T1.Accelerate FROM car_names AS T1 JOIN car_makers AS T2 ON T1.MakeId = T2.Id JOIN cars_data AS T3 ON T3.ModelId = T1.ModelId WHERE T2.Maker = \"AMC\" AND T1.Model = \"Hornet Sportabout\"", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How much does the car accelerate that makes amc hornet sportabout (sw)?", + "gold": "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)';", + "pred": "SELECT T1.Accelerate FROM car_names AS T1 JOIN cars_data AS T2 ON T1.ModelId = T2.Id JOIN car_makers AS T3 ON T3.Maker = T1.Make JOIN model_list AS T4 ON T4.ModelId = T1.ModelId WHERE T3.FullName = \"AMC Hornet Sportabout\" AND T4.Model = \"SW\";", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many car makers are there in france?", + "gold": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", + "pred": "SELECT COUNT (DISTINCT FullName) FROM car_makers WHERE Country = \"France\";", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the number of makers of care in France?", + "gold": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", + "pred": "SELECT COUNT (DISTINCT FullName) FROM car_makers AS T1 JOIN countries AS T2 ON T1.Country = T2.CountryName WHERE T2.Continent = \"Europe\" AND T1.Country = \"France\";", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many car models are produced in the usa?", + "gold": "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';", + "pred": "SELECT COUNT (DISTINCT t1.model) FROM car_names AS t1 JOIN car_makers AS t2 ON t1.makeid = t2.id JOIN countries AS t3 ON t2.country = t3.country WHERE t3.country = \"USA\";", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the count of the car models produced in the United States?", + "gold": "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';", + "pred": "SELECT count(*) FROM car_names AS T1 JOIN car_makers AS T2 ON T1.MakeId = T2.Id WHERE T2.Country = \"United States\";", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the average miles per gallon(mpg) of the cars with 4 cylinders?", + "gold": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", + "pred": "SELECT avg(MPG) FROM cars_data WHERE Cylinders = 4", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the average miles per gallon of all the cards with 4 cylinders?", + "gold": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", + "pred": "SELECT avg(MPG) FROM cars_data WHERE Cylinders = 4", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?", + "gold": "select min(weight) from cars_data where cylinders = 8 and year = 1974", + "pred": "SELECT T1.Weight FROM cars_data AS T1 JOIN car_names AS T2 ON T1.Id = T2.Id JOIN car_makers AS T3 ON T2.MakeId = T3.Id WHERE T3.Maker = \"Ford\" AND T1.Cylinders = 8 AND T1.Year = 1974 ORDER BY T1.Weight LIMIT 1;", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the minimum weight of the car with 8 cylinders produced in 1974 ?", + "gold": "select min(weight) from cars_data where cylinders = 8 and year = 1974", + "pred": "SELECT min(Weight) FROM cars_data WHERE Cylinders = 8 AND YEAR = 1974", + "is_identical": true + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are all the makers and models?", + "gold": "SELECT Maker, Model FROM MODEL_LIST;", + "pred": "SELECT T1.Maker, T2.Model FROM car_makers AS T1 JOIN model_list AS T2 ON T1.Id = T2.Maker;", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the makers and models?", + "gold": "SELECT Maker, Model FROM MODEL_LIST;", + "pred": "SELECT T1.Maker, T2.Model FROM car_makers AS T1 JOIN model_list AS T2 ON T1.Id = T2.Maker", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the countries having at least one car maker? List name and id.", + "gold": "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;", + "pred": "SELECT T1.CountryName, T1.CountryId FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryId = T2.Country", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the names and ids of all countries with at least one car maker?", + "gold": "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;", + "pred": "SELECT T1.CountryName, T1.CountryId FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryName = T2.Country", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the number of the cars with horsepower more than 150?", + "gold": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", + "pred": "SELECT count(*) FROM cars_data WHERE Horsepower > 150", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the number of cars with a horsepower greater than 150?", + "gold": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", + "pred": "SELECT count(*) FROM cars_data WHERE Horsepower > 150", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the average weight of cars each year?", + "gold": "SELECT avg(Weight), YEAR FROM CARS_DATA GROUP BY YEAR;", + "pred": "SELECT avg(Weight), YEAR FROM cars_data GROUP BY YEAR", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the average weight and year for each year?", + "gold": "SELECT avg(Weight), YEAR FROM CARS_DATA GROUP BY YEAR;", + "pred": "SELECT avg(Weight), YEAR FROM cars_data GROUP BY YEAR", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Which countries in europe have at least 3 car manufacturers?", + "gold": "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;", + "pred": "SELECT T1.CountryName FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryId = T2.Country JOIN model_list AS T3 ON T2.Maker = T3.Maker GROUP BY T1.CountryName HAVING COUNT(*) >= 3;", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the names of all European countries with at least 3 manufacturers?", + "gold": "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;", + "pred": "SELECT T1.CountryName FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryId = T2.Country JOIN model_list AS T3 ON T2.Maker = T3.Maker GROUP BY T1.CountryName HAVING COUNT(*) >= 3 INTERSECT SELECT T1.CountryName FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryId = T2.Country JOIN model", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the maximum horsepower and the make of the car models with 3 cylinders?", + "gold": "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;", + "pred": "SELECT T1.Model, T1.Horsepower FROM cars_data AS T1 JOIN model_list AS T2 ON T1.Id = T2.ModelId WHERE T2.Cylinders = 3 ORDER BY T1.Horsepower DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", + "gold": "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;", + "pred": "SELECT T1.Model, T1.Horsepower FROM cars_data AS T1 JOIN model_list AS T2 ON T1.Model = T2.Model WHERE T2.Cylinders = 3 ORDER BY T1.Horsepower DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", + "gold": "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;", + "pred": "SELECT T1.Model FROM model_list AS T1 JOIN cars_data AS T2 ON T1.ModelId = T2.Id GROUP BY T1.Model ORDER BY SUM(T2.MPG) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the car model with the highest mpg ?", + "gold": "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;", + "pred": "SELECT T1.Model FROM cars_data AS T1 JOIN model_list AS T2 ON T1.Model = T2.Model ORDER BY T1.MPG DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the average horsepower of the cars before 1980?", + "gold": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980;", + "pred": "SELECT avg(Horsepower) FROM cars_data WHERE YEAR < 1980", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the average horsepower for all cars produced before 1980 ?", + "gold": "select avg(horsepower) from cars_data where year < 1980;", + "pred": "SELECT avg(Horsepower) FROM cars_data WHERE YEAR < 1980", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the average edispl of the cars of model volvo?", + "gold": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", + "pred": "SELECT avg(Edispl) FROM cars_data AS T1 JOIN model_list AS T2 ON T1.Model = T2.Model WHERE T2.Model = \"volvo\"", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the average edispl for all volvos?", + "gold": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", + "pred": "SELECT avg(Edispl) FROM cars_data WHERE Model = \"Volvo\";", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the maximum accelerate for different number of cylinders?", + "gold": "SELECT max(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders;", + "pred": "SELECT Cylinders, MAX(Accelerate) FROM cars_data GROUP BY Cylinders", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the maximum accelerate for all the different cylinders?", + "gold": "SELECT max(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders;", + "pred": "SELECT max(Accelerate) FROM cars_data", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Which model has the most version(make) of cars?", + "gold": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", + "pred": "SELECT T1.Model FROM model_list AS T1 JOIN car_names AS T2 ON T1.ModelId = T2.ModelId GROUP BY T1.ModelId ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What model has the most different versions?", + "gold": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", + "pred": "SELECT T1.Model FROM model_list AS T1 JOIN car_names AS T2 ON T1.ModelId = T2.ModelId GROUP BY T1.ModelId ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many cars have more than 4 cylinders?", + "gold": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", + "pred": "SELECT count(*) FROM cars_data WHERE Cylinders > 4", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the number of cars with more than 4 cylinders?", + "gold": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", + "pred": "SELECT count(*) FROM cars_data WHERE Cylinders > 4", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "how many cars were produced in 1980?", + "gold": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", + "pred": "SELECT count(*) FROM cars_data WHERE YEAR = 1980", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "In 1980, how many cars were made?", + "gold": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", + "pred": "SELECT COUNT (DISTINCT T1.model) FROM cars_data AS T1 JOIN car_names AS T2 ON T1.model = T2.model JOIN car_makers AS T3 ON T2.maker = T3.maker WHERE T1.year = 1980;", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many car models were produced by the maker with full name American Motor Company?", + "gold": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", + "pred": "SELECT COUNT (DISTINCT t1.model) FROM car_names AS t1 JOIN car_makers AS t2 ON t1.makeid = t2.id WHERE t2.fullname = \"American Motor Company\";", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the number of car models created by the car maker American Motor Company?", + "gold": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", + "pred": "SELECT count(*) FROM model_list AS T1 JOIN car_makers AS T2 ON T1.maker = T2.id WHERE T2.fullname = \"American Motor Company\";", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Which makers designed more than 3 car models? List full name and the id.", + "gold": "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;", + "pred": "SELECT FullName, id FROM car_makers GROUP BY FullName HAVING count(*) > 3", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the names and ids of all makers with more than 3 models?", + "gold": "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;", + "pred": "SELECT T1.Maker, T1.Id FROM car_makers AS T1 JOIN model_list AS T2 ON T1.Id = T2.Maker GROUP BY T1.Maker HAVING count(*) > 3", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", + "gold": "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;", + "pred": "SELECT DISTINCT T1.Model FROM model_list AS T1 JOIN car_names AS T2 ON T1.ModelId = T2.MakeId JOIN car_makers AS T3 ON T1.Maker = T3.Id WHERE T3.FullName = \"General Motors\" OR T2.Weight > 3500", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the different models created by either the car maker General Motors or weighed more than 3500?", + "gold": "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;", + "pred": "SELECT DISTINCT T1.Model FROM model_list AS T1 JOIN car_names AS T2 ON T1.ModelId = T2.ModelId JOIN cars_data AS T3 ON T2.MakeId = T3.Id WHERE T3.Weight > 3500 OR T1.Maker = \"General Motors\"", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "In which years cars were produced weighing no less than 3000 and no more than 4000 ?", + "gold": "select distinct year from cars_data where weight between 3000 and 4000;", + "pred": "SELECT DISTINCT YEAR FROM cars_data WHERE WEIGHT >= 3000 AND WEIGHT <= 4000", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?", + "gold": "select distinct year from cars_data where weight between 3000 and 4000;", + "pred": "SELECT DISTINCT YEAR FROM cars_data WHERE WEIGHT < 4000 INTERSECT SELECT DISTINCT YEAR FROM cars_data WHERE WEIGHT > 3000", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the horsepower of the car with the largest accelerate?", + "gold": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", + "pred": "SELECT T1.Horsepower FROM cars_data AS T1 JOIN car_names AS T2 ON T1.Id = T2.Id JOIN car_makers AS T3 ON T2.MakeId = T3.Id WHERE T3.Maker = \"Toyota\" ORDER BY T1.Accelerate DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the horsepower of the car with the greatest accelerate?", + "gold": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", + "pred": "SELECT T1.Horsepower FROM cars_data AS T1 JOIN car_names AS T2 ON T1.Id = T2.Id JOIN car_makers AS T3 ON T2.MakeId = T3.Id WHERE T3.Maker = \"Toyota\" ORDER BY T1.Accelerate DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "For model volvo, how many cylinders does the car with the least accelerate have?", + "gold": "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;", + "pred": "SELECT T1.Cylinders FROM cars_data AS T1 JOIN model_list AS T2 ON T1.Id = T2.ModelId WHERE T2.Model = \"volvo\" ORDER BY T1.Accelerate LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "For a volvo model, how many cylinders does the version with least accelerate have?", + "gold": "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;", + "pred": "SELECT T1.Cylinders FROM cars_data AS T1 JOIN model_list AS T2 ON T1.ModelId = T2.ModelId WHERE T2.Model = \"Volvo\" ORDER BY T1.Accelerate LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many cars have a larger accelerate than the car with the largest horsepower?", + "gold": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1);", + "pred": "SELECT count(*) FROM cars_data WHERE accelerate > (SELECT max(horsepower) FROM cars_data)", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the number of cars with a greater accelerate than the one with the most horsepower?", + "gold": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1);", + "pred": "SELECT count(*) FROM cars_data WHERE accelerate > (SELECT max(horsepower) FROM cars_data);", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many countries has more than 2 car makers ?", + "gold": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", + "pred": "SELECT COUNT(*) FROM car_makers GROUP BY country HAVING COUNT(*) > 2", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the number of countries with more than 2 car makers ?", + "gold": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", + "pred": "SELECT COUNT (DISTINCT country) FROM car_makers GROUP BY country HAVING COUNT (DISTINCT maker) > 2", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "How many cars has over 6 cylinders?", + "gold": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", + "pred": "SELECT count(*) FROM cars_data WHERE Cylinders > 6", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the number of carsw ith over 6 cylinders?", + "gold": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", + "pred": "SELECT count(*) FROM cars_data WHERE Cylinders > 6", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "For the cars with 4 cylinders, which model has the largest horsepower?", + "gold": "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;", + "pred": "SELECT T1.Model FROM cars_data AS T1 JOIN model_list AS T2 ON T1.Model = T2.Model WHERE T1.Cylinders = 4 ORDER BY T1.Horsepower DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "For all of the 4 cylinder cars, which model has the most horsepower?", + "gold": "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;", + "pred": "SELECT T1.Model FROM cars_data AS T1 JOIN model_list AS T2 ON T1.Model = T2.Model WHERE T1.Cylinders = 4 ORDER BY T1.Horsepower DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", + "gold": "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;", + "pred": "SELECT T1.MakeId, T1.Model FROM car_names AS T1 JOIN cars_data AS T2 ON T1.MakeId = T2.MakeId WHERE T2.Horsepower > (SELECT MIN (T2.Horsepower) FROM cars_data AS T2) AND T2.Cylinders < 3", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?", + "gold": "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;", + "pred": "SELECT T1.id, T1.model FROM car_names AS T1 JOIN cars_data AS T2 ON T1.makeid = T2.id WHERE T2.horsepower < (SELECT MIN (T2.horsepower) FROM cars_data AS T2) AND T2.cylinders < 4", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?", + "gold": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", + "pred": "SELECT MAX(MPG) FROM cars_data WHERE Cylinders = 8 OR YEAR < 1980", + "is_identical": true + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?", + "gold": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", + "pred": "SELECT max(MPG) FROM cars_data WHERE Cylinders = 8 OR YEAR < 1980", + "is_identical": true + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?", + "gold": "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';", + "pred": "SELECT T1.Model FROM model_list AS T1 JOIN car_names AS T2 ON T1.ModelId = T2.ModelId JOIN cars_data AS T3 ON T2.MakeId = T3.Id WHERE T3.Weight < 3500 AND T1.Maker != (SELECT T1.Maker FROM model_list AS T1 JOIN car_names AS T2 ON T1.ModelId = T2.ModelId", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?", + "gold": "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';", + "pred": "SELECT DISTINCT T1.Model FROM model_list AS T1 JOIN cars_data AS T2 ON T1.ModelId = T2.Id WHERE T2.Weight < 3500 AND T1.Maker != (SELECT T1.Maker FROM model_list AS T1 JOIN car_makers AS T2 ON T1.Maker = T2.Id WHERE T2.Country = \"USA\")", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the name of the countries where there is not a single car maker?", + "gold": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", + "pred": "SELECT T1.CountryName FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryName = T2.Country WHERE T2.Country = \"\" GROUP BY T1.CountryName;", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the names of the countries with no car makers?", + "gold": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", + "pred": "SELECT T1.CountryName FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryId = T2.Country WHERE T2.Maker = \"\"", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", + "gold": "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;", + "pred": "SELECT T1.id, T1.maker FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.maker GROUP BY T1.maker HAVING count(*) >= 2 AND count(*) > 3;", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", + "gold": "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;", + "pred": "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 AND sum(T2.modelid) > 3", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", + "gold": "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';", + "pred": "SELECT T1.CountryName, T2.Model FROM countries AS T1 JOIN car_makers AS T2 ON T1.CountryId = T2.Country JOIN model_list AS T3 ON T2.Maker = T3.Maker WHERE T3.Model = 'fiat' GROUP BY T1.CountryName HAVING COUNT(*) > 3 UNION SELECT T1.CountryName, T2.Model FROM countries AS T1 JOIN car_m", + "is_identical": false + }, + { + "context": "CREATE TABLE car_makers (Id INTEGER, Maker VARCHAR, FullName VARCHAR, Country VARCHAR); CREATE TABLE car_names (MakeId INTEGER, Model VARCHAR, Make VARCHAR); CREATE TABLE cars_data (Id INTEGER, MPG VARCHAR, Cylinders INTEGER, Edispl INTEGER, Horsepower VARCHAR, Weight INTEGER, Accelerate INTEGER, Year INTEGER); CREATE TABLE continents (ContId INTEGER, Continent VARCHAR); CREATE TABLE countries (CountryId INTEGER, CountryName VARCHAR, Continent INTEGER); CREATE TABLE model_list (ModelId INTEGER, Maker INTEGER, Model VARCHAR)", + "question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", + "gold": "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';", + "pred": "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.Maker = T3.Maker WHERE T3.Model = \"fiat\" GROUP BY T1.CountryId HAVING COUNT(*) > 3 UNION SELECT T1.CountryId, T1.CountryName FROM countries AS T1 JOIN car", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which country does Airline \"JetBlue Airways\" belong to?", + "gold": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "pred": "SELECT Country FROM airlines WHERE Airline = \"JetBlue Airways\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What country is Jetblue Airways affiliated with?", + "gold": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "pred": "SELECT T1.Country FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline WHERE T2.FlightNo = \"Jetblue Airways\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What is the abbreviation of Airline \"JetBlue Airways\"?", + "gold": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "pred": "SELECT Abbreviation FROM airlines WHERE Airline = \"JetBlue Airways\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which abbreviation corresponds to Jetblue Airways?", + "gold": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "pred": "SELECT Abbreviation FROM airlines WHERE Airline = \"Jetblue Airways\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "List all airline names and their abbreviations in \"USA\".", + "gold": "SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = \"USA\"", + "pred": "SELECT Airline, Abbreviation FROM airlines WHERE Country = \"USA\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What are the airline names and abbreviations for airlines in the USA?", + "gold": "SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = \"USA\"", + "pred": "SELECT Airline, Abbreviation FROM airlines WHERE Country = \"USA\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "List the airport code and name in the city of Anthony.", + "gold": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = \"Anthony\"", + "pred": "SELECT AirportCode, AirportName FROM airports WHERE City = \"Anthony\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Give the airport code and airport name corresonding to the city Anthony.", + "gold": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = \"Anthony\"", + "pred": "SELECT AirportCode, AirportName FROM airports WHERE City = \"Anthony\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many airlines do we have?", + "gold": "SELECT count(*) FROM AIRLINES", + "pred": "SELECT count(*) FROM airlines", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What is the total number of airlines?", + "gold": "SELECT count(*) FROM AIRLINES", + "pred": "SELECT count(*) FROM airlines", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many airports do we have?", + "gold": "SELECT count(*) FROM AIRPORTS", + "pred": "SELECT count(*) FROM airports", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Return the number of airports.", + "gold": "SELECT count(*) FROM AIRPORTS", + "pred": "SELECT count(*) FROM airports", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many flights do we have?", + "gold": "SELECT count(*) FROM FLIGHTS", + "pred": "SELECT count(*) FROM flights", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Return the number of flights.", + "gold": "SELECT count(*) FROM FLIGHTS", + "pred": "SELECT count(*) FROM flights", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which airline has abbreviation 'UAL'?", + "gold": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", + "pred": "SELECT airline FROM airlines WHERE abbreviation = 'UAL'", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Give the airline with abbreviation 'UAL'.", + "gold": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", + "pred": "SELECT airline FROM airlines WHERE abbreviation = 'UAL'", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many airlines are from USA?", + "gold": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", + "pred": "SELECT count(*) FROM airlines WHERE Country = \"USA\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Return the number of airlines in the USA.", + "gold": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", + "pred": "SELECT count(*) FROM airlines WHERE country = \"USA\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which city and country is the Alton airport at?", + "gold": "SELECT City, Country FROM AIRPORTS WHERE AirportName = \"Alton\"", + "pred": "SELECT T1.City, T1.Country FROM airports AS T1 JOIN airlines AS T2 ON T1.AirportCode = T2.Airline WHERE T2.Airline = \"Alton\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Give the city and country for the Alton airport.", + "gold": "SELECT City, Country FROM AIRPORTS WHERE AirportName = \"Alton\"", + "pred": "SELECT City, Country FROM airports WHERE AirportName = \"Alton\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What is the airport name for airport 'AKO'?", + "gold": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", + "pred": "SELECT AirportName FROM airports WHERE AirportCode = \"AKO\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Return the name of the airport with code 'AKO'.", + "gold": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", + "pred": "SELECT AirportName FROM airports WHERE AirportCode = 'AKO'", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What are airport names at City 'Aberdeen'?", + "gold": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", + "pred": "SELECT AirportName FROM airports WHERE City = \"Aberdeen\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What are the names of airports in Aberdeen?", + "gold": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", + "pred": "SELECT AirportName FROM airports WHERE City = \"Aberdeen\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many flights depart from 'APG'?", + "gold": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "pred": "SELECT count(*) FROM flights WHERE SourceAirport = \"APG\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Count the number of flights departing from 'APG'.", + "gold": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "pred": "SELECT count(*) FROM flights WHERE SourceAirport = \"APG\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many flights have destination ATO?", + "gold": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", + "pred": "SELECT count(*) FROM flights WHERE DestAirport = \"ATO\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Count the number of flights into ATO.", + "gold": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", + "pred": "SELECT count(*) FROM flights WHERE DestAirport = \"ATO\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many flights depart from City Aberdeen?", + "gold": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "pred": "SELECT count(*) FROM flights WHERE SourceAirport = \"Aberdeen\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Return the number of flights departing from Aberdeen.", + "gold": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "pred": "SELECT count(*) FROM flights WHERE SourceAirport = \"ABR\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many flights arriving in Aberdeen city?", + "gold": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "pred": "SELECT count(*) FROM airports AS T1 JOIN flights AS T2 ON T1.airportcode = T2.sourceairport WHERE T1.city = \"Aberdeen\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Return the number of flights arriving in Aberdeen.", + "gold": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "pred": "SELECT count(*) FROM flights WHERE DestAirport = \"Aberdeen\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", + "gold": "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\"", + "pred": "SELECT count(*) FROM flights WHERE SourceAirport = \"Aberdeen\" AND DestAirport = \"Ashley\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many flights fly from Aberdeen to Ashley?", + "gold": "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\"", + "pred": "SELECT count(*) FROM flights WHERE SourceAirport = \"Aberdeen\" AND DestAirport = \"Ashley\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many flights does airline 'JetBlue Airways' have?", + "gold": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", + "pred": "SELECT count(*) FROM flights AS T1 JOIN airlines AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Give the number of Jetblue Airways flights.", + "gold": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", + "pred": "SELECT count(*) FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline WHERE T1.Airline = \"Jetblue Airways\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many 'United Airlines' flights go to Airport 'ASY'?", + "gold": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", + "pred": "SELECT count(*) FROM flights AS T1 JOIN airlines AS T2 ON T1.Airline = T2.Airline WHERE T2.Abbreviation = \"UA\" AND T1.DestAirport = \"ASY\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Count the number of United Airlines flights arriving in ASY Airport.", + "gold": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", + "pred": "SELECT count(*) FROM flights AS T1 JOIN airlines AS T2 ON T1.Airline = T2.Airline WHERE T2.Abbreviation = \"UA\" AND T1.DestAirport = \"ASY\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many 'United Airlines' flights depart from Airport 'AHD'?", + "gold": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", + "pred": "SELECT count(*) FROM flights AS T1 JOIN airports AS T2 ON T1.SourceAirport = T2.AirportName WHERE T2.AirportName = \"AHD\" AND T1.Airline = (SELECT uid FROM airlines WHERE Abbreviation = \"UA\");", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Return the number of United Airlines flights leaving from AHD Airport.", + "gold": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", + "pred": "SELECT count(*) FROM flights AS T1 JOIN airlines AS T2 ON T1.Airline = T2.uid WHERE T2.Abbreviation = \"UA\" AND T1.SourceAirport = \"AHD\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many United Airlines flights go to City 'Aberdeen'?", + "gold": "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\"", + "pred": "SELECT count(*) FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"Aberdeen\" AND T1.AirlineAbbreviation = \"UA\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Count the number of United Airlines flights that arrive in Aberdeen.", + "gold": "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\"", + "pred": "SELECT count(*) FROM flights AS T1 JOIN airlines AS T2 ON T1.Airline = T2.uid WHERE T2.Abbreviation = \"UA\" AND T1.DestAirport = \"ABERDEEN\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which city has most number of arriving flights?", + "gold": "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", + "pred": "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", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which city has the most frequent destination airport?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which city has most number of departing flights?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which city is the most frequent source airport?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What is the code of airport that has the highest number of flights?", + "gold": "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", + "pred": "SELECT T1.AirportCode FROM airports AS T1 JOIN flights AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What is the airport code of the airport with the most flights?", + "gold": "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", + "pred": "SELECT T1.AirportCode FROM airports AS T1 JOIN flights AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What is the code of airport that has fewest number of flights?", + "gold": "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", + "pred": "SELECT T1.AirportCode FROM airports AS T1 JOIN flights AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Give the code of the airport with the least flights.", + "gold": "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", + "pred": "SELECT T1.AirportCode FROM airports AS T1 JOIN flights AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which airline has most number of flights?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What airline serves the most flights?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Find the abbreviation and country of the airline that has fewest number of flights?", + "gold": "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", + "pred": "SELECT T1.Abbreviation, T1.Country FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline GROUP BY T1.uid ORDER BY count(*) LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What is the abbreviation of the airilne has the fewest flights and what country is it in?", + "gold": "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", + "pred": "SELECT T1.Abbreviation, T1.Country FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline GROUP BY T1.Abbreviation ORDER BY count(*) LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What are airlines that have some flight departing from airport 'AHD'?", + "gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", + "pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which airlines have a flight with source airport AHD?", + "gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", + "pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What are airlines that have flights arriving at airport 'AHD'?", + "gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", + "pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which airlines have a flight with destination airport AHD?", + "gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", + "pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Find all airlines that have flights from both airports 'APG' and 'CVO'.", + "gold": "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\"", + "pred": "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'", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which airlines have departing flights from both APG and CVO airports?", + "gold": "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\"", + "pred": "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\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", + "gold": "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\"", + "pred": "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\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which airlines have departures from CVO but not from APG airports?", + "gold": "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\"", + "pred": "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\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Find all airlines that have at least 10 flights.", + "gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", + "pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) >= 10", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which airlines have at least 10 flights?", + "gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", + "pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) >= 10", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Find all airlines that have fewer than 200 flights.", + "gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", + "pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which airlines have less than 200 flights?", + "gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", + "pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", + "is_identical": true + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What are flight numbers of Airline \"United Airlines\"?", + "gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", + "pred": "SELECT FlightNo FROM flights WHERE Airline = (SELECT uid FROM airlines WHERE Airline = \"United Airlines\")", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which flight numbers correspond to United Airlines flights?", + "gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", + "pred": "SELECT FlightNo FROM flights WHERE Airline = (SELECT uid FROM airlines WHERE Abbreviation = \"UA\")", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What are flight numbers of flights departing from Airport \"APG\"?", + "gold": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "pred": "SELECT FlightNo FROM flights WHERE SourceAirport = \"APG\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Give the flight numbers of flights leaving from APG.", + "gold": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "pred": "SELECT FlightNo FROM flights WHERE SourceAirport = \"APG\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What are flight numbers of flights arriving at Airport \"APG\"?", + "gold": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", + "pred": "SELECT FlightNo FROM flights WHERE DestAirport = \"APG\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Give the flight numbers of flights landing at APG.", + "gold": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", + "pred": "SELECT FlightNo FROM flights WHERE DestAirport = \"APG\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What are flight numbers of flights departing from City \"Aberdeen \"?", + "gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "pred": "SELECT FlightNo FROM flights WHERE SourceAirport = \"Aberdeen\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Give the flight numbers of flights leaving from Aberdeen.", + "gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "pred": "SELECT FlightNo FROM flights WHERE SourceAirport = \"ABERDEEN\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "What are flight numbers of flights arriving at City \"Aberdeen\"?", + "gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "pred": "SELECT FlightNo FROM flights WHERE DestAirport = \"Aberdeen\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Give the flight numbers of flights arriving in Aberdeen.", + "gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "pred": "SELECT FlightNo FROM flights WHERE DestAirport = \"Aberdeen\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Find the number of flights landing in the city of Aberdeen or Abilene.", + "gold": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", + "pred": "SELECT count(*) FROM flights AS T1 JOIN airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\" OR T2.City = \"Abilene\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "How many flights land in Aberdeen or Abilene?", + "gold": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", + "pred": "SELECT COUNT (DISTINCT FlightNo) FROM flights WHERE DestAirport = \"Aberdeen\" OR DestAirport = \"Abilene\"", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Find the name of airports which do not have any flight in and out.", + "gold": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", + "pred": "SELECT T1.AirportName FROM airports AS T1 WHERE T1.AirportName NOT IN (SELECT T2.AirportName FROM flights AS T2 JOIN airports AS T3 ON T2.SourceAirport = T3.AirportName WHERE T3.AirportName = T1.AirportName)", + "is_identical": false + }, + { + "context": "CREATE TABLE airlines (uid INTEGER, Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR); CREATE TABLE airports (City VARCHAR, AirportCode VARCHAR, AirportName VARCHAR, Country VARCHAR, CountryAbbrev VARCHAR); CREATE TABLE flights (Airline INTEGER, FlightNo INTEGER, SourceAirport VARCHAR, DestAirport VARCHAR)", + "question": "Which airports do not have departing or arriving flights?", + "gold": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", + "pred": "SELECT T1.AirportName FROM airports AS T1 WHERE T1.AirportName NOT IN (SELECT T2.AirportName FROM flights AS T2 JOIN airports AS T3 ON T2.SourceAirport = T3.AirportName WHERE T3.AirportName = T1.AirportName)", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "How many employees are there?", + "gold": "SELECT count(*) FROM employee", + "pred": "SELECT count(*) FROM employee", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Count the number of employees", + "gold": "SELECT count(*) FROM employee", + "pred": "SELECT count(*) FROM employee", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Sort employee names by their age in ascending order.", + "gold": "SELECT name FROM employee ORDER BY age", + "pred": "SELECT Name FROM employee ORDER BY Age ASC", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "List the names of employees and sort in ascending order of age.", + "gold": "SELECT name FROM employee ORDER BY age", + "pred": "SELECT Name FROM employee ORDER BY Age ASC", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "What is the number of employees from each city?", + "gold": "SELECT count(*), city FROM employee GROUP BY city", + "pred": "SELECT count(*), city FROM employee GROUP BY city", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Count the number of employees for each city.", + "gold": "SELECT count(*), city FROM employee GROUP BY city", + "pred": "SELECT city, count(*) FROM employee GROUP BY city", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Which cities do more than one employee under age 30 come from?", + "gold": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", + "pred": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Find the cities that have more than one employee under age 30.", + "gold": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", + "pred": "SELECT City FROM employee WHERE Age < 30 GROUP BY City HAVING COUNT(*) > 1", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Find the number of shops in each location.", + "gold": "SELECT count(*), LOCATION FROM shop GROUP BY LOCATION", + "pred": "SELECT count(*), LOCATION FROM shop GROUP BY LOCATION", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "How many shops are there in each location?", + "gold": "SELECT count(*), LOCATION FROM shop GROUP BY LOCATION", + "pred": "SELECT count(*), LOCATION FROM shop GROUP BY LOCATION", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Find the manager name and district of the shop whose number of products is the largest.", + "gold": "SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1", + "pred": "SELECT T1.Manager_name, T1.District FROM shop AS T1 JOIN employee AS T2 ON T1.Manager_name = T2.Name ORDER BY T1.Number_products DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "What are the manager name and district of the shop that sells the largest number of products?", + "gold": "SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1", + "pred": "SELECT T1.Manager_name, T1.District FROM shop AS T1 JOIN employee AS T2 ON T1.Manager_name = T2.Name ORDER BY T1.Number_products DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "find the minimum and maximum number of products of all stores.", + "gold": "SELECT min(Number_products), max(Number_products) FROM shop", + "pred": "SELECT min(Number_products), max(Number_products) FROM shop", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "What are the minimum and maximum number of products across all the shops?", + "gold": "SELECT min(Number_products), max(Number_products) FROM shop", + "pred": "SELECT min(Number_products), max(Number_products) FROM shop", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Return the name, location and district of all shops in descending order of number of products.", + "gold": "SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC", + "pred": "SELECT name, location, district FROM shop ORDER BY number_products DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Sort all the shops by number products in descending order, and return the name, location and district of each shop.", + "gold": "SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC", + "pred": "SELECT Name, Location, District FROM shop ORDER BY Number_products DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Find the names of stores whose number products is more than the average number of products.", + "gold": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", + "pred": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Which shops' number products is above the average? Give me the shop names.", + "gold": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", + "pred": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "find the name of employee who was awarded the most times in the evaluation.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Which employee received the most awards in evaluations? Give me the employee name.", + "gold": "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", + "pred": "SELECT T1.Name FROM employee AS T1 JOIN evaluation AS T2 ON T1.Employee_ID = T2.Employee_ID GROUP BY T1.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Find the name of the employee who got the highest one time bonus.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Which employee received the biggest bonus? Give me the employee name.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Find the names of employees who never won any award in the evaluation.", + "gold": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", + "pred": "SELECT T1.Name FROM employee AS T1 WHERE T1.Employee_ID NOT IN (SELECT T2.Employee_ID FROM evaluation AS T2)", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "What are the names of the employees who never received any evaluation?", + "gold": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", + "pred": "SELECT T1.name FROM employee AS T1 WHERE T1.employee_id NOT IN (SELECT employee_id FROM evaluation)", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "What is the name of the shop that is hiring the largest number of employees?", + "gold": "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", + "pred": "SELECT T1.name FROM shop AS T1 JOIN hiring AS T2 ON T1.shop_id = T2.shop_id GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Which shop has the most employees? Give me the shop name.", + "gold": "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", + "pred": "SELECT T1.name FROM shop AS T1 JOIN hiring AS T2 ON T1.shop_id = T2.shop_id GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Find the name of the shops that do not hire any employee.", + "gold": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", + "pred": "SELECT T1.name FROM shop AS T1 WHERE T1.shop_id NOT IN (SELECT T2.shop_id FROM hiring AS T2)", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Which shops run with no employees? Find the shop names", + "gold": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", + "pred": "SELECT T1.name FROM shop AS T1 WHERE T1.shop_id NOT IN (SELECT T2.shop_id FROM hiring AS T2)", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Find the number of employees hired in each shop; show the shop name as well.", + "gold": "SELECT count(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", + "pred": "SELECT T1.name, count(*) FROM shop AS T1 JOIN hiring AS T2 ON T1.shop_id = T2.shop_id GROUP BY T1.shop_id", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "For each shop, return the number of employees working there and the name of the shop.", + "gold": "SELECT count(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", + "pred": "SELECT T1.name, count(*) FROM shop AS T1 JOIN hiring AS T2 ON T1.shop_id = T2.shop_id GROUP BY T1.shop_id", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "What is total bonus given in all evaluations?", + "gold": "SELECT sum(bonus) FROM evaluation", + "pred": "SELECT sum(Bonus) FROM evaluation", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Find the total amount of bonus given in all the evaluations.", + "gold": "SELECT sum(bonus) FROM evaluation", + "pred": "SELECT sum(Bonus) FROM evaluation", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Give me all the information about hiring.", + "gold": "SELECT * FROM hiring", + "pred": "SELECT * FROM hiring", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "What is all the information about hiring?", + "gold": "SELECT * FROM hiring", + "pred": "SELECT * FROM hiring", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Which district has both stores with less than 3000 products and stores with more than 10000 products?", + "gold": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", + "pred": "SELECT District FROM shop WHERE Number_products > 10000 INTERSECT SELECT District FROM shop WHERE Number_products < 3000", + "is_identical": false + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.", + "gold": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", + "pred": "SELECT District FROM shop WHERE Number_products < 3000 INTERSECT SELECT District FROM shop WHERE Number_products > 10000", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "How many different store locations are there?", + "gold": "SELECT count(DISTINCT LOCATION) FROM shop", + "pred": "SELECT count(DISTINCT LOCATION) FROM shop", + "is_identical": true + }, + { + "context": "CREATE TABLE employee (Employee_ID INTEGER, Name VARCHAR, Age INTEGER, City VARCHAR); CREATE TABLE evaluation (Employee_ID VARCHAR, Year_awarded VARCHAR, Bonus INTEGER); CREATE TABLE hiring (Shop_ID INTEGER, Employee_ID INTEGER, Start_from VARCHAR, Is_full_time BOOLEAN); CREATE TABLE shop (Shop_ID INTEGER, Name VARCHAR, Location VARCHAR, District VARCHAR, Number_products INTEGER, Manager_name VARCHAR)", + "question": "Count the number of distinct store locations.", + "gold": "SELECT count(DISTINCT LOCATION) FROM shop", + "pred": "SELECT count(DISTINCT LOCATION) FROM shop", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "How many documents do we have?", + "gold": "SELECT count(*) FROM Documents", + "pred": "SELECT count(*) FROM Documents", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Count the number of documents.", + "gold": "SELECT count(*) FROM Documents", + "pred": "SELECT count(*) FROM Documents", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "List document IDs, document names, and document descriptions for all documents.", + "gold": "SELECT document_id, document_name, document_description FROM Documents", + "pred": "SELECT Document_ID, Document_Name, Document_Description FROM Documents", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the ids, names, and descriptions for all documents?", + "gold": "SELECT document_id, document_name, document_description FROM Documents", + "pred": "SELECT Document_ID, Document_Name, Document_Description FROM Documents", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What is the document name and template id for document with description with the letter 'w' in it?", + "gold": "SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", + "pred": "SELECT T1.document_name, T1.template_id FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id WHERE T2.paragraph_text LIKE '%w%'", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the names and template ids for documents that contain the letter w in their description.", + "gold": "SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", + "pred": "SELECT T1.Document_Name, T1.Template_ID FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.Document_ID = T2.Document_ID WHERE T2.Paragraph_Text LIKE \"%w%\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What is the document id, template id and description for document named \"Robbin CV\"?", + "gold": "SELECT document_id, template_id, Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", + "pred": "SELECT Document_ID, Template_ID, Document_Description FROM Documents WHERE Document_Name = \"Robbin CV\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the document id, template id, and description for the document with the name Robbin CV.", + "gold": "SELECT document_id, template_id, Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", + "pred": "SELECT Document_ID, Template_ID, Document_Description FROM Documents WHERE Document_Name = \"Robbin CV\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "How many different templates do all document use?", + "gold": "SELECT count(DISTINCT template_id) FROM Documents", + "pred": "SELECT count(DISTINCT t1.template_id) FROM Documents AS t1 JOIN Templates AS t2 ON t1.template_id = t2.template_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Count the number of different templates used for documents.", + "gold": "SELECT count(DISTINCT template_id) FROM Documents", + "pred": "SELECT count(DISTINCT t1.template_id) FROM documents AS t1 JOIN templates AS t2 ON t1.template_id = t2.template_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "How many documents are using the template with type code 'PPT'?", + "gold": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", + "pred": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Count the number of documents that use the PPT template type.", + "gold": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", + "pred": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = \"PPT\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all template ids and number of documents using each template.", + "gold": "SELECT template_id, count(*) FROM Documents GROUP BY template_id", + "pred": "SELECT Template_ID, count(*) FROM Documents GROUP BY Template_ID", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are all different template ids used for documents, and how many times were each of them used?", + "gold": "SELECT template_id, count(*) FROM Documents GROUP BY template_id", + "pred": "SELECT Template_ID, count(*) FROM Documents GROUP BY Template_ID", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What is the id and type code for the template used by the most documents?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the id and type code of the template that is used for the greatest number of documents.", + "gold": "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", + "pred": "SELECT T1.template_id, T1.template_type_code FROM templates AS T1 JOIN documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show ids for all templates that are used by more than one document.", + "gold": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", + "pred": "SELECT Template_ID FROM Documents GROUP BY Template_ID HAVING count(*) > 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the template ids of any templates used in more than a single document?", + "gold": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", + "pred": "SELECT Template_ID FROM Documents GROUP BY Template_ID HAVING count(*) > 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show ids for all templates not used by any document.", + "gold": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", + "pred": "SELECT Template_ID FROM Templates WHERE Template_ID NOT IN (SELECT Template_ID FROM Documents)", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the ids for templates that are not used in any documents?", + "gold": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", + "pred": "SELECT Template_ID FROM Templates WHERE Template_ID NOT IN (SELECT Template_ID FROM Documents)", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "How many templates do we have?", + "gold": "SELECT count(*) FROM Templates", + "pred": "SELECT count(*) FROM Templates", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Count the number of templates.", + "gold": "SELECT count(*) FROM Templates", + "pred": "SELECT count(*) FROM Templates", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show template ids, version numbers, and template type codes for all templates.", + "gold": "SELECT template_id, version_number, template_type_code FROM Templates", + "pred": "SELECT Template_ID, Version_Number, Template_Type_Code FROM Templates", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the ids, version numbers, and type codes for each template?", + "gold": "SELECT template_id, version_number, template_type_code FROM Templates", + "pred": "SELECT Template_ID, Version_Number, Template_Type_Code FROM Templates", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all distinct template type codes for all templates.", + "gold": "SELECT DISTINCT template_type_code FROM Templates", + "pred": "SELECT DISTINCT Template_Type_Code FROM Templates", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the different template type codes?", + "gold": "SELECT DISTINCT template_type_code FROM Templates", + "pred": "SELECT Template_Type_Code FROM Templates GROUP BY Template_Type_Code", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the ids of templates with template type code PP or PPT?", + "gold": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", + "pred": "SELECT Template_ID FROM Templates WHERE Template_Type_Code = 'PP' OR Template_Type_Code = 'PPT'", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the ids of templates that have the code PP or PPT.", + "gold": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", + "pred": "SELECT Template_ID FROM Templates WHERE Template_Type_Code = \"PP\" OR Template_Type_Code = \"PPT\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "How many templates have template type code CV?", + "gold": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", + "pred": "SELECT count(*) FROM Templates WHERE Template_Type_Code = \"CV\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Count the number of templates of the type CV.", + "gold": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", + "pred": "SELECT count(*) FROM Templates AS T1 JOIN Ref_Template_Types AS T2 ON T1.Template_Type_Code = T2.Template_Type_Code WHERE T2.Template_Type_Description = \"CV\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What is the version number and template type code for the template with version number later than 5?", + "gold": "SELECT version_number, template_type_code FROM Templates WHERE version_number > 5", + "pred": "SELECT Version_Number, Template_Type_Code FROM Templates WHERE Version_Number > 5", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the version numbers and template type codes of templates with a version number greater than 5.", + "gold": "SELECT version_number, template_type_code FROM Templates WHERE version_number > 5", + "pred": "SELECT Version_Number, Template_Type_Code FROM Templates WHERE Version_Number > 5", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all template type codes and number of templates for each.", + "gold": "SELECT template_type_code, count(*) FROM Templates GROUP BY template_type_code", + "pred": "SELECT Template_Type_Code, count(*) FROM Templates GROUP BY Template_Type_Code", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the different template type codes, and how many templates correspond to each?", + "gold": "SELECT template_type_code, count(*) FROM Templates GROUP BY template_type_code", + "pred": "SELECT Template_Type_Code, count(*) FROM Templates GROUP BY Template_Type_Code", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Which template type code has most number of templates?", + "gold": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT Template_Type_Code FROM Templates GROUP BY Template_Type_Code ORDER BY count(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the type code of the template type that the most templates belong to.", + "gold": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT Template_Type_Code FROM Templates GROUP BY Template_Type_Code ORDER BY count(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all template type codes with less than three templates.", + "gold": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", + "pred": "SELECT Template_Type_Code FROM Templates GROUP BY Template_Type_Code HAVING count(*) < 3", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the codes of template types that have fewer than 3 templates?", + "gold": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", + "pred": "SELECT Template_Type_Code FROM Templates GROUP BY Template_Type_Code HAVING count(*) < 3", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What the smallest version number and its template type code?", + "gold": "SELECT min(Version_Number), template_type_code FROM Templates", + "pred": "SELECT T1.Version_Number, T2.Template_Type_Code FROM Templates AS T1 JOIN Ref_Template_Types AS T2 ON T1.Template_Type_Code = T2.Template_Type_Code ORDER BY T1.Version_Number LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the lowest version number, along with its corresponding template type code.", + "gold": "SELECT min(Version_Number), template_type_code FROM Templates", + "pred": "SELECT T1.Version_Number, T2.Template_Type_Code FROM Templates AS T1 JOIN Ref_Template_Types AS T2 ON T1.Template_Type_Code = T2.Template_Type_Code ORDER BY T1.Version_Number LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What is the template type code of the template used by document with the name \"Data base\"?", + "gold": "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\"", + "pred": "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\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the template type code of the template that is used by a document named Data base.", + "gold": "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\"", + "pred": "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\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all document names using templates with template type code BK.", + "gold": "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\"", + "pred": "SELECT T1.Document_Name FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = \"BK\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the names of documents that use templates with the code BK?", + "gold": "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\"", + "pred": "SELECT T1.Document_Name FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = \"BK\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all template type codes and the number of documents using each type.", + "gold": "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", + "pred": "SELECT Template_Type_Code, count(*) FROM Templates GROUP BY Template_Type_Code", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the different template type codes, and how many documents use each type?", + "gold": "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", + "pred": "SELECT Template_Type_Code, count(*) FROM Templates GROUP BY Template_Type_Code", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Which template type code is used by most number of documents?", + "gold": "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", + "pred": "SELECT Template_Type_Code FROM Templates GROUP BY Template_Type_Code ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the code of the template type that is most commonly used in documents.", + "gold": "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", + "pred": "SELECT Template_Type_Code FROM Templates GROUP BY Template_Type_Code ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all template type codes that are not used by any document.", + "gold": "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", + "pred": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code NOT IN (SELECT Template_Type_Code FROM Templates)", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the codes of template types that are not used for any document?", + "gold": "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", + "pred": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code NOT IN (SELECT Template_Type_Code FROM Templates)", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all template type codes and descriptions.", + "gold": "SELECT template_type_code, template_type_description FROM Ref_template_types", + "pred": "SELECT Template_Type_Code, Template_Type_Description FROM Ref_Template_Types", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the type codes and descriptions for all template types?", + "gold": "SELECT template_type_code, template_type_description FROM Ref_template_types", + "pred": "SELECT Template_Type_Code, Template_Type_Description FROM Ref_Template_Types", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What is the template type descriptions for template type code \"AD\".", + "gold": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", + "pred": "SELECT Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Code = \"AD\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the template type description of the template type with the code AD.", + "gold": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", + "pred": "SELECT Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Code = \"AD\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What is the template type code for template type description \"Book\".", + "gold": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", + "pred": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description = \"Book\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the type code of the template type with the description \"Book\".", + "gold": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", + "pred": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description = \"Book\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the distinct template type descriptions for the templates ever used by any document?", + "gold": "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", + "pred": "SELECT DISTINCT T1.template_type_description FROM templates AS T1 JOIN documents AS T2 ON T1.template_id = T2.template_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the different descriptions for templates that have been used in a document.", + "gold": "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", + "pred": "SELECT DISTINCT Template_Details FROM Templates", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the template ids with template type description \"Presentation\".", + "gold": "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\"", + "pred": "SELECT Template_ID FROM Templates AS T1 JOIN Ref_Template_Types AS T2 ON T1.Template_Type_Code = T2.Template_Type_Code WHERE T2.Template_Type_Description = \"Presentation\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the ids corresponding to templates with the description 'Presentation'.", + "gold": "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\"", + "pred": "SELECT Template_ID FROM Templates WHERE Template_Details = 'Presentation'", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "How many paragraphs in total?", + "gold": "SELECT count(*) FROM Paragraphs", + "pred": "SELECT count(*) FROM Paragraphs", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Count the number of paragraphs.", + "gold": "SELECT count(*) FROM Paragraphs", + "pred": "SELECT count(*) FROM Paragraphs", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "How many paragraphs for the document with name 'Summer Show'?", + "gold": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", + "pred": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.Document_ID = T2.Document_ID WHERE T2.Document_Name = \"Summer Show\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Count the number of paragraphs in the document named 'Summer Show'.", + "gold": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", + "pred": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.Document_ID = T2.Document_ID WHERE T2.Document_Name = \"Summer Show\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show paragraph details for paragraph with text 'Korea ' .", + "gold": "select other_details from paragraphs where paragraph_text like 'korea'", + "pred": "SELECT T2.paragraph_text FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id WHERE T2.paragraph_text = \"Korea\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the details for the paragraph that includes the text 'Korea ' ?", + "gold": "select other_details from paragraphs where paragraph_text like 'korea'", + "pred": "SELECT T1.Other_Details FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.Document_ID = T2.Document_ID WHERE T2.Paragraph_Text LIKE \"%Korea%\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.", + "gold": "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'", + "pred": "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\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?", + "gold": "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'", + "pred": "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'", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all paragraph texts for the document \"Customer reviews\".", + "gold": "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\"", + "pred": "SELECT Paragraph_Text FROM Paragraphs WHERE Document_ID = (SELECT Document_ID FROM Documents WHERE Document_Name = \"Customer reviews\")", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the paragraph texts for the document with the name 'Customer reviews'?", + "gold": "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\"", + "pred": "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\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all document ids and the number of paragraphs in each document. Order by document id.", + "gold": "SELECT document_id, count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", + "pred": "SELECT T1.document_id, count(*) FROM documents AS T1 JOIN paragraphs AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY T1.document_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.", + "gold": "SELECT document_id, count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", + "pred": "SELECT Document_ID, count(*) FROM Paragraphs GROUP BY Document_ID ORDER BY Document_ID", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show all document ids, names and the number of paragraphs in each document.", + "gold": "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", + "pred": "SELECT T1.Document_ID, T1.Document_Name, count(*) FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.Document_ID = T2.Document_ID GROUP BY T1.Document_ID", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the ids and names of each document, as well as the number of paragraphs in each?", + "gold": "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", + "pred": "SELECT T1.document_id, T1.document_name, count(*) FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "List all document ids with at least two paragraphs.", + "gold": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", + "pred": "SELECT Document_ID FROM Paragraphs GROUP BY Document_ID HAVING count(*) >= 2", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the ids of documents that have 2 or more paragraphs?", + "gold": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", + "pred": "SELECT Document_ID FROM Paragraphs GROUP BY Document_ID HAVING count(*) >= 2", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What is the document id and name with greatest number of paragraphs?", + "gold": "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", + "pred": "SELECT T1.document_id, T1.document_name FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the id and name of the document with the most paragraphs.", + "gold": "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", + "pred": "SELECT T1.Document_ID, T1.Document_Name FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.Document_ID = T2.Document_ID GROUP BY T1.Document_ID ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What is the document id with least number of paragraphs?", + "gold": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", + "pred": "SELECT T1.document_id FROM documents AS T1 JOIN paragraphs AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) ASC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Return the id of the document with the fewest paragraphs.", + "gold": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", + "pred": "SELECT T1.Document_ID FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.Document_ID = T2.Document_ID GROUP BY T1.Document_ID ORDER BY COUNT(*) ASC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What is the document id with 1 to 2 paragraphs?", + "gold": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", + "pred": "SELECT T1.document_id FROM documents AS T1 JOIN paragraphs AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id HAVING count(*) >= 1 AND count(*) <= 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Give the ids of documents that have between one and two paragraphs.", + "gold": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", + "pred": "SELECT Document_ID FROM Paragraphs GROUP BY Document_ID HAVING count(*) BETWEEN 1 AND 2", + "is_identical": true + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "Show the document id with paragraph text 'Brazil' and 'Ireland'.", + "gold": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", + "pred": "SELECT T1.document_id FROM documents AS T1 JOIN paragraphs AS T2 ON T1.document_id = T2.document_id WHERE T2.paragraph_text = \"Brazil\" INTERSECT SELECT T1.document_id FROM documents AS T1 JOIN paragraphs AS T2 ON T1.document_id = T2.document_id WHERE T2.paragraph_text = \"Ireland\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Documents (Document_ID INTEGER, Template_ID INTEGER, Document_Name VARCHAR, Document_Description VARCHAR, Other_Details VARCHAR); CREATE TABLE Paragraphs (Paragraph_ID INTEGER, Document_ID INTEGER, Paragraph_Text VARCHAR, Other_Details VARCHAR); CREATE TABLE Ref_Template_Types (Template_Type_Code VARCHAR, Template_Type_Description VARCHAR); CREATE TABLE Templates (Template_ID INTEGER, Version_Number INTEGER, Template_Type_Code VARCHAR, Date_Effective_From DATETIME, Date_Effective_To DATETIME, Template_Details VARCHAR)", + "question": "What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?", + "gold": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", + "pred": "SELECT Document_ID FROM Paragraphs WHERE Paragraph_Text = \"Brazil\" INTERSECT SELECT Document_ID FROM Paragraphs WHERE Paragraph_Text = \"Ireland\"", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "How many teachers are there?", + "gold": "SELECT count(*) FROM teacher", + "pred": "SELECT count(*) FROM teacher", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What is the total count of teachers?", + "gold": "SELECT count(*) FROM teacher", + "pred": "SELECT count(*) FROM teacher", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "List the names of teachers in ascending order of age.", + "gold": "SELECT Name FROM teacher ORDER BY Age ASC", + "pred": "SELECT Name FROM teacher ORDER BY Age ASC", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What are the names of the teachers ordered by ascending age?", + "gold": "SELECT Name FROM teacher ORDER BY Age ASC", + "pred": "SELECT name FROM teacher ORDER BY age ASC", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What are the age and hometown of teachers?", + "gold": "SELECT Age, Hometown FROM teacher", + "pred": "SELECT age, hometown FROM teacher", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What is the age and hometown of every teacher?", + "gold": "SELECT Age, Hometown FROM teacher", + "pred": "SELECT age, hometown FROM teacher", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "List the name of teachers whose hometown is not `` Little Lever Urban District '' .", + "gold": "select name from teacher where hometown != \"little lever urban district\"", + "pred": "SELECT name FROM teacher WHERE hometown != 'Little Lever Urban District'", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?", + "gold": "select name from teacher where hometown != \"little lever urban district\"", + "pred": "SELECT name FROM teacher WHERE hometown != 'Little Lever Urban District'", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "Show the name of teachers aged either 32 or 33?", + "gold": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", + "pred": "SELECT name FROM teacher WHERE age = 32 OR age = 33", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What are the names of the teachers who are aged either 32 or 33?", + "gold": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", + "pred": "SELECT name FROM teacher WHERE age = 32 OR age = 33", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What is the hometown of the youngest teacher?", + "gold": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", + "pred": "SELECT hometown FROM teacher ORDER BY age LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "Where is the youngest teacher from?", + "gold": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", + "pred": "SELECT Hometown FROM teacher ORDER BY Age LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "Show different hometown of teachers and the number of teachers from each hometown.", + "gold": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown", + "pred": "SELECT Hometown, count(*) FROM teacher GROUP BY Hometown", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "For each hometown, how many teachers are there?", + "gold": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown", + "pred": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "List the most common hometown of teachers.", + "gold": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", + "pred": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What is the most commmon hometowns for teachers?", + "gold": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", + "pred": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "Show the hometowns shared by at least two teachers.", + "gold": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", + "pred": "SELECT hometown FROM teacher GROUP BY hometown HAVING count(*) >= 2", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What are the towns from which at least two teachers come from?", + "gold": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", + "pred": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "Show names of teachers and the courses they are arranged to teach.", + "gold": "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", + "pred": "SELECT T1.name, T2.course FROM teacher AS T1 JOIN course_arrange AS T2 ON T1.teacher_id = T2.teacher_id", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What is the name of each teacher and what course they teach?", + "gold": "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", + "pred": "SELECT T1.name, T2.course FROM teacher AS T1 JOIN course_arrange AS T2 ON T1.teacher_id = T2.teacher_id", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.", + "gold": "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", + "pred": "SELECT T1.name, T2.course FROM teacher AS T1 JOIN course_arrange AS T2 ON T1.teacher_id = T2.teacher_id ORDER BY T1.name", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?", + "gold": "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", + "pred": "SELECT T1.name, T2.course FROM teacher AS T1 JOIN course_arrange AS T2 ON T1.teacher_id = T2.teacher_id ORDER BY T1.name", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "Show the name of the teacher for the math course.", + "gold": "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\"", + "pred": "SELECT T1.name FROM course AS T1 JOIN course_arrange AS T2 ON T1.course_id = T2.course_id WHERE T1.course = \"math\"", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What are the names of the people who teach math courses?", + "gold": "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\"", + "pred": "SELECT T1.name FROM teacher AS T1 JOIN course_arrange AS T2 ON T1.teacher_id = T2.teacher_id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.course = \"math\"", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "Show names of teachers and the number of courses they teach.", + "gold": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", + "pred": "SELECT T1.name, count(*) FROM teacher AS T1 JOIN course_arrange AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What are the names of the teachers and how many courses do they teach?", + "gold": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", + "pred": "SELECT T1.name, count(*) FROM teacher AS T1 JOIN course_arrange AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "Show names of teachers that teach at least two courses.", + "gold": "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", + "pred": "SELECT T1.name FROM teacher AS T1 JOIN course_arrange AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id HAVING count(*) >= 2", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What are the names of the teachers who teach at least two courses?", + "gold": "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", + "pred": "SELECT T1.name FROM teacher AS T1 JOIN course_arrange AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id HAVING count(*) >= 2", + "is_identical": false + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "List the names of teachers who have not been arranged to teach courses.", + "gold": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", + "pred": "SELECT name FROM teacher WHERE teacher_id NOT IN (SELECT teacher_id FROM course_arrange)", + "is_identical": true + }, + { + "context": "CREATE TABLE course (Course_ID INTEGER, Staring_Date VARCHAR, Course VARCHAR); CREATE TABLE course_arrange (Course_ID INTEGER, Teacher_ID INTEGER, Grade INTEGER); CREATE TABLE teacher (Teacher_ID INTEGER, Name VARCHAR, Age VARCHAR, Hometown VARCHAR)", + "question": "What are the names of the teachers whose courses have not been arranged?", + "gold": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", + "pred": "SELECT name FROM teacher WHERE teacher_id NOT IN (SELECT teacher_id FROM course_arrange)", + "is_identical": true + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "How many visitors below age 30 are there?", + "gold": "SELECT count(*) FROM visitor WHERE age < 30", + "pred": "SELECT count(*) FROM visitor WHERE age < 30", + "is_identical": true + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.", + "gold": "SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC", + "pred": "SELECT name FROM visitor WHERE level_of_membership > 4 ORDER BY level_of_membership DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "What is the average age of the visitors whose membership level is not higher than 4?", + "gold": "SELECT avg(age) FROM visitor WHERE Level_of_membership <= 4", + "pred": "SELECT avg(age) FROM visitor WHERE level_of_membership <= 4", + "is_identical": true + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.", + "gold": "SELECT name, Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC", + "pred": "SELECT name, level_of_membership FROM visitor WHERE level_of_membership > 4 ORDER BY age DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "Find the id and name of the museum that has the most staff members?", + "gold": "SELECT museum_id, name FROM museum ORDER BY num_of_staff DESC LIMIT 1", + "pred": "SELECT Museum_ID, Name FROM museum ORDER BY Num_of_Staff DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "Find the average number of staff working for the museums that were open before 2009.", + "gold": "SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009", + "pred": "SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009", + "is_identical": true + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "What are the opening year and staff number of the museum named Plaza Museum?", + "gold": "SELECT Num_of_Staff, Open_Year FROM museum WHERE name = 'Plaza Museum'", + "pred": "SELECT open_year, num_of_staff FROM museum WHERE name = \"Plaza Museum\"", + "is_identical": false + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.", + "gold": "SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010)", + "pred": "SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010)", + "is_identical": true + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "find the id, name and age for visitors who visited some museums more than once.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?", + "gold": "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", + "pred": "SELECT T1.id, T1.name, T2.level_of_membership FROM museum AS T1 JOIN visit AS T2 ON T1.museum_id = T2.museum_id ORDER BY T2.total_spent DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "What are the id and name of the museum visited most times?", + "gold": "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", + "pred": "SELECT T1.Museum_ID, T1.Name FROM museum AS T1 JOIN visit AS T2 ON T1.Museum_ID = T2.Museum_ID GROUP BY T1.Museum_ID ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "What is the name of the museum that had no visitor yet?", + "gold": "SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)", + "pred": "SELECT T1.Name FROM museum AS T1 JOIN visit AS T2 ON T1.Museum_ID = T2.Museum_ID WHERE T2.visitor_ID NOT IN (SELECT visitor_ID FROM visitor)", + "is_identical": false + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "Find the name and age of the visitor who bought the most tickets at once.", + "gold": "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", + "pred": "SELECT T1.name, T2.age FROM visitor AS T1 JOIN visit AS T2 ON T1.id = T2.visitor_id GROUP BY T2.visitor_id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "What are the average and maximum number of tickets bought in all visits?", + "gold": "SELECT avg(num_of_ticket), max(num_of_ticket) FROM visit", + "pred": "SELECT avg(Num_of_Ticket), max(Num_of_Ticket) FROM visit", + "is_identical": true + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "What is the total ticket expense of the visitors whose membership level is 1?", + "gold": "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", + "pred": "SELECT sum(T1.Total_spent) FROM visit AS T1 JOIN visitor AS T2 ON T1.visitor_ID = T2.ID WHERE T2.Level_of_membership = 1", + "is_identical": false + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", + "gold": "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", + "pred": "SELECT T1.name FROM museum AS T1 JOIN visit AS T2 ON T1.museum_id = T2.museum_id JOIN visitor AS T3 ON T2.visitor_id = T3.id WHERE T1.open_year < 2009 INTERSECT SELECT T1.name FROM museum AS T1 JOIN visit AS T2 ON T1.museum_id = T2.museum_id JOIN visitor AS T3 ON T", + "is_identical": false + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "Find the number of visitors who did not visit any museum opened after 2010.", + "gold": "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)", + "pred": "SELECT count(*) FROM visitor AS T1 JOIN visit AS T2 ON T1.ID = T2.visitor_ID WHERE T2.Museum_ID NOT IN (SELECT Museum_ID FROM museum WHERE Open_Year > 2010)", + "is_identical": false + }, + { + "context": "CREATE TABLE museum (Museum_ID INTEGER, Name VARCHAR, Num_of_Staff INTEGER, Open_Year VARCHAR); CREATE TABLE visit (Museum_ID INTEGER, visitor_ID VARCHAR, Num_of_Ticket INTEGER, Total_spent INTEGER); CREATE TABLE visitor (ID INTEGER, Name VARCHAR, Level_of_membership INTEGER, Age INTEGER)", + "question": "How many museums were opened after 2013 or before 2008?", + "gold": "SELECT count(*) FROM museum WHERE open_year > 2013 OR open_year < 2008", + "pred": "SELECT count(*) FROM museum WHERE open_year > 2013 OR open_year < 2008", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the total number of players.", + "gold": "SELECT count(*) FROM players", + "pred": "SELECT count(*) FROM players", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "How many players are there?", + "gold": "SELECT count(*) FROM players", + "pred": "SELECT count(*) FROM players", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the total number of matches.", + "gold": "SELECT count(*) FROM matches", + "pred": "SELECT sum(match_num) FROM matches", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Count the number of matches.", + "gold": "SELECT count(*) FROM matches", + "pred": "SELECT count(*) FROM matches", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "List the first name and birth date of all players from the country with code USA.", + "gold": "SELECT first_name, birth_date FROM players WHERE country_code = 'USA'", + "pred": "SELECT T1.first_name, T1.birth_date FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id WHERE T2.ranking_points > 1000 AND T1.country_code = \"USA\"", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the first names and birth dates of players from the USA?", + "gold": "SELECT first_name, birth_date FROM players WHERE country_code = 'USA'", + "pred": "SELECT T1.first_name, T1.birth_date FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id WHERE T2.ranking_points > 1000 AND T1.country_code = \"USA\"", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the average age of losers and winners of all matches.", + "gold": "SELECT avg(loser_age), avg(winner_age) FROM matches", + "pred": "SELECT avg(loser_age), avg(winner_age) FROM matches", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the average ages of losers and winners across matches?", + "gold": "SELECT avg(loser_age), avg(winner_age) FROM matches", + "pred": "SELECT avg(loser_age), avg(winner_age) FROM matches", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the average rank of winners in all matches.", + "gold": "SELECT avg(winner_rank) FROM matches", + "pred": "SELECT avg(winner_rank) FROM matches", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What is the average rank for winners in all matches?", + "gold": "SELECT avg(winner_rank) FROM matches", + "pred": "SELECT avg(winner_rank) FROM matches", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the highest rank of losers in all matches.", + "gold": "SELECT min(loser_rank) FROM matches", + "pred": "SELECT max(loser_rank) FROM matches", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What is the best rank of losers across all matches?", + "gold": "SELECT min(loser_rank) FROM matches", + "pred": "SELECT max(loser_rank) FROM matches", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "find the number of distinct country codes of all players.", + "gold": "SELECT count(DISTINCT country_code) FROM players", + "pred": "SELECT count(DISTINCT country_code) FROM players", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "How many distinct countries do players come from?", + "gold": "SELECT count(DISTINCT country_code) FROM players", + "pred": "SELECT COUNT(DISTINCT country_code) FROM players", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the number of distinct name of losers.", + "gold": "SELECT count(DISTINCT loser_name) FROM matches", + "pred": "SELECT count(DISTINCT loser_name) FROM matches", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "How many different loser names are there?", + "gold": "SELECT count(DISTINCT loser_name) FROM matches", + "pred": "SELECT COUNT(DISTINCT loser_name) FROM matches", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the name of tourney that has more than 10 matches.", + "gold": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", + "pred": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the names of tournaments that have more than 10 matches?", + "gold": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", + "pred": "SELECT DISTINCT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "List the names of all winners who played in both 2013 and 2016.", + "gold": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", + "pred": "SELECT T1.winner_name FROM matches AS T1 JOIN players AS T2 ON T1.winner_id = T2.player_id WHERE T1.year = 2013 INTERSECT SELECT T1.winner_name FROM matches AS T1 JOIN players AS T2 ON T1.winner_id = T2.player_id WHERE T1.year = 2016", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the names of players who won in both 2013 and 2016?", + "gold": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", + "pred": "SELECT T1.first_name, T1.last_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id WHERE T2.ranking_date = \"2013\" INTERSECT SELECT T1.first_name, T1.last_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id WHERE T2", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "List the number of all matches who played in years of 2013 or 2016.", + "gold": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", + "pred": "SELECT count(*) FROM matches WHERE YEAR IN (2013, 2016)", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "How many matches were played in 2013 or 2016?", + "gold": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", + "pred": "SELECT COUNT(*) FROM MATCHES WHERE YEAR = 2013 OR YEAR = 2016", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?", + "gold": "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'", + "pred": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id WHERE T2.tours = \"WTA Championships\" INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id WHERE T2.tours", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the first names and country codes for players who won both the WTA Championships and the Australian Open?", + "gold": "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'", + "pred": "SELECT T1.first_name, T2.country_code FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id WHERE T2.tours = 2 AND T2.ranking_date = (SELECT MAX(ranking_date) FROM rankings AS T3 WHERE T3.player_id = T1.player_id)", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the first name and country code of the oldest player.", + "gold": "SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1", + "pred": "SELECT T1.first_name, T1.country_code FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.ranking_date LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What is the first name and country code of the oldest player?", + "gold": "SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1", + "pred": "SELECT T1.first_name, T1.country_code FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.ranking_date LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "List the first and last name of all players in the order of birth date.", + "gold": "SELECT first_name, last_name FROM players ORDER BY birth_date", + "pred": "SELECT first_name, last_name FROM players ORDER BY birth_date", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the full names of all players, sorted by birth date?", + "gold": "SELECT first_name, last_name FROM players ORDER BY birth_date", + "pred": "SELECT first_name, last_name FROM players ORDER BY birth_date", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "List the first and last name of all players who are left / L hand in the order of birth date.", + "gold": "SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date", + "pred": "SELECT T1.first_name, T1.last_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id WHERE T1.hand = \"L\" ORDER BY T2.ranking_date", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the full names of all left handed players, in order of birth date?", + "gold": "SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date", + "pred": "SELECT T1.first_name, T1.last_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id WHERE T1.hand = \"L\" ORDER BY T2.ranking_date", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the first name and country code of the player who did the most number of tours.", + "gold": "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", + "pred": "SELECT T1.first_name, T2.country_code FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What is the first name and country code of the player with the most tours?", + "gold": "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", + "pred": "SELECT T1.first_name, T2.country_code FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY tours DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the year that has the most number of matches.", + "gold": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT YEAR(tourney_date) FROM matches GROUP BY YEAR(tourney_date) ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Which year had the most matches?", + "gold": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT YEAR FROM MATCHES GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the name and rank points of the winner who won the most times.", + "gold": "SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT T1.winner_name, T1.winner_rank_points FROM rankings AS T1 JOIN players AS T2 ON T1.player_id = T2.player_id WHERE T1.ranking_points = (SELECT MAX (T1.ranking_points) FROM rankings AS T1 JOIN players AS T2 ON T1.player_id = T2.player_id)", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What is the name of the winner who has won the most matches, and how many rank points does this player have?", + "gold": "SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT T1.winner_name, T1.winner_rank_points FROM rankings AS T1 JOIN players AS T2 ON T1.player_id = T2.player_id WHERE T1.ranking_points = (SELECT MAX (T1.ranking_points) FROM rankings AS T1 JOIN players AS T2 ON T1.player_id = T2.player_id)", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.", + "gold": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", + "pred": "SELECT T1.winner_name FROM rankings AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_level = \"Australian Open\" ORDER BY T1.ranking_points DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What is the name of the winner with the most rank points who participated in the Australian Open tournament?", + "gold": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", + "pred": "SELECT T1.winner_name FROM rankings AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_level = \"Australian Open\" GROUP BY T1.player_id ORDER BY sum(T1.ranking_points) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "find the names of loser and winner who played in the match with greatest number of minutes.", + "gold": "SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1", + "pred": "SELECT T1.loser_name, T1.winner_name FROM matches AS T1 JOIN players AS T2 ON T1.loser_id = T2.player_id JOIN players AS T3 ON T1.winner_id = T3.player_id ORDER BY T1.minutes DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the names of the winner and loser who played in the longest match?", + "gold": "SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1", + "pred": "SELECT T1.winner_name, T1.loser_name FROM matches AS T1 JOIN players AS T2 ON T1.winner_id = T2.player_id JOIN players AS T3 ON T1.loser_id = T3.player_id ORDER BY T1.minutes DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the average ranking for each player and their first name.", + "gold": "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", + "pred": "SELECT T1.first_name, AVG(T2.ranking) FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the first names of all players, and their average rankings?", + "gold": "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", + "pred": "SELECT T1.first_name, avg(T2.ranking) FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the total ranking points for each player and their first name.", + "gold": "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", + "pred": "SELECT T1.first_name, sum(T2.ranking_points) FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the first names of all players, and their total ranking points?", + "gold": "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", + "pred": "SELECT T1.first_name, sum(T2.ranking_points) FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "find the number of players for each country.", + "gold": "SELECT count(*), country_code FROM players GROUP BY country_code", + "pred": "SELECT country_code, COUNT(*) FROM players GROUP BY country_code", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "How many players are from each country?", + "gold": "SELECT count(*), country_code FROM players GROUP BY country_code", + "pred": "SELECT country_code, COUNT(*) FROM players GROUP BY country_code", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "find the code of the country where has the greatest number of players.", + "gold": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT T1.country_code FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.country_code ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What is the code of the country with the most players?", + "gold": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT T1.country_code FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.country_code ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the codes of countries that have more than 50 players.", + "gold": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", + "pred": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the codes of countries with more than 50 players?", + "gold": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", + "pred": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50", + "is_identical": true + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the total number of tours for each ranking date.", + "gold": "SELECT sum(tours), ranking_date FROM rankings GROUP BY ranking_date", + "pred": "SELECT ranking_date, sum(tours) FROM rankings GROUP BY ranking_date", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "How many total tours were there for each ranking date?", + "gold": "SELECT sum(tours), ranking_date FROM rankings GROUP BY ranking_date", + "pred": "SELECT ranking_date, COUNT(*) FROM rankings GROUP BY ranking_date", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the number of matches happened in each year.", + "gold": "SELECT count(*), YEAR FROM matches GROUP BY YEAR", + "pred": "SELECT YEAR, COUNT(*) FROM MATCHES GROUP BY YEAR", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "How many matches were played in each year?", + "gold": "SELECT count(*), YEAR FROM matches GROUP BY YEAR", + "pred": "SELECT YEAR, COUNT(*) FROM MATCHES GROUP BY YEAR", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the name and rank of the 3 youngest winners across all matches.", + "gold": "SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3", + "pred": "SELECT T1.winner_name, T1.winner_rank FROM rankings AS T1 JOIN players AS T2 ON T1.player_id = T2.player_id WHERE T1.ranking_points = (SELECT MIN (ranking_points) FROM rankings)", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What are the names and ranks of the three youngest winners across all matches?", + "gold": "SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3", + "pred": "SELECT T1.winner_name, T1.winner_rank FROM rankings AS T1 JOIN players AS T2 ON T1.player_id = T2.player_id WHERE T1.ranking_points = (SELECT MIN (ranking_points) FROM rankings)", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "How many different winners both participated in the WTA Championships and were left handed?", + "gold": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", + "pred": "SELECT COUNT (DISTINCT winner_name) FROM matches WHERE winner_hand = \"L\" AND winner_name IN (SELECT winner_name FROM rankings WHERE ranking_points > 1000)", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the number of left handed winners who participated in the WTA Championships.", + "gold": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", + "pred": "SELECT COUNT(*) FROM rankings AS T1 JOIN players AS T2 ON T1.player_id = T2.player_id WHERE T2.hand = \"L\" AND T1.tourney_level = \"WTA\"", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the first name, country code and birth date of the winner who has the highest rank points in all matches.", + "gold": "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", + "pred": "SELECT T1.first_name, T2.country_code, T1.birth_date FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.ranking_points DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "What is the first name, country code, and birth date of the player with the most winner rank points across all matches?", + "gold": "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", + "pred": "SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.ranking_points DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "Find the number of players for each hand type.", + "gold": "SELECT count(*), hand FROM players GROUP BY hand", + "pred": "SELECT hand, COUNT(*) FROM players GROUP BY hand", + "is_identical": false + }, + { + "context": "CREATE TABLE matches (best_of INTEGER, draw_size INTEGER, loser_age INTEGER, loser_entry VARCHAR, loser_hand VARCHAR, loser_ht INTEGER, loser_id INTEGER, loser_ioc VARCHAR, loser_name VARCHAR, loser_rank INTEGER, loser_rank_points INTEGER, loser_seed INTEGER, match_num INTEGER, minutes INTEGER, round VARCHAR, score VARCHAR, surface VARCHAR, tourney_date DATETIME, tourney_id VARCHAR, tourney_level VARCHAR, tourney_name VARCHAR, winner_age INTEGER, winner_entry VARCHAR, winner_hand VARCHAR, winner_ht INTEGER, winner_id INTEGER, winner_ioc VARCHAR, winner_name VARCHAR, winner_rank INTEGER, winner_rank_points INTEGER, winner_seed INTEGER, year INTEGER); CREATE TABLE players (player_id INTEGER, first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date DATETIME, country_code VARCHAR); CREATE TABLE rankings (ranking_date DATETIME, ranking INTEGER, player_id INTEGER, ranking_points INTEGER, tours INTEGER)", + "question": "How many players are there for each hand type?", + "gold": "SELECT count(*), hand FROM players GROUP BY hand", + "pred": "SELECT hand, COUNT(*) FROM players GROUP BY hand", + "is_identical": false + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "How many ships ended up being 'Captured'?", + "gold": "SELECT count(*) FROM ship WHERE disposition_of_ship = 'Captured'", + "pred": "SELECT count(*) FROM ship WHERE disposition_of_ship = \"Captured\"", + "is_identical": true + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "List the name and tonnage ordered by in descending alphaetical order for the names.", + "gold": "SELECT name, tonnage FROM ship ORDER BY name DESC", + "pred": "SELECT name, tonnage FROM ship ORDER BY name DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "List the name, date and result of each battle.", + "gold": "SELECT name, date FROM battle", + "pred": "SELECT name, date, result FROM battle", + "is_identical": false + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "What is maximum and minimum death toll caused each time?", + "gold": "SELECT max(killed), min(killed) FROM death", + "pred": "SELECT max(killed), min(killed) FROM death", + "is_identical": true + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "What is the average number of injuries caused each time?", + "gold": "SELECT avg(injured) FROM death", + "pred": "SELECT avg(injured) FROM death", + "is_identical": true + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "What are the death and injury situations caused by the ship with tonnage 't'?", + "gold": "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'", + "pred": "SELECT T2.note, T2.killed, T2.injured FROM ship AS T1 JOIN death AS T2 ON T1.id = T2.caused_by_ship_id WHERE T1.tonnage = 't'", + "is_identical": false + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "What are the name and results of the battles when the bulgarian commander is not 'Boril'", + "gold": "SELECT name, RESULT FROM battle WHERE bulgarian_commander != 'Boril'", + "pred": "SELECT name, result FROM battle WHERE bulgarian_commander != 'Boril'", + "is_identical": true + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "What are the different ids and names of the battles that lost any 'Brig' type shipes?", + "gold": "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'", + "pred": "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\"", + "is_identical": true + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "What are the ids and names of the battles that led to more than 10 people killed in total.", + "gold": "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", + "pred": "SELECT T1.id, T1.name FROM battle AS T1 JOIN death AS T2 ON T1.id = T2.caused_by_ship_id GROUP BY T1.id HAVING SUM(T2.killed) > 10", + "is_identical": false + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "What is the ship id and name that caused most total injuries?", + "gold": "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", + "pred": "SELECT T1.id, T1.name FROM ship AS T1 JOIN death AS T2 ON T1.id = T2.caused_by_ship_id GROUP BY T1.id ORDER BY sum(T2.injured) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?", + "gold": "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'", + "pred": "SELECT DISTINCT T1.name FROM battle AS T1 JOIN battle AS T2 ON T1.id = T2.id WHERE T1.bulgarian_commander = 'Kaloyan' AND T2.latin_commander = 'Baldwin I'", + "is_identical": false + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "How many different results are there for the battles?", + "gold": "SELECT count(DISTINCT RESULT) FROM battle", + "pred": "SELECT count(DISTINCT result) FROM battle", + "is_identical": true + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "How many battles did not lose any ship with tonnage '225'?", + "gold": "SELECT count(*) FROM battle WHERE id NOT IN (SELECT lost_in_battle FROM ship WHERE tonnage = '225');", + "pred": "SELECT COUNT (DISTINCT t1.name) FROM battle AS t1 JOIN ship AS t2 ON t1.id = t2.lost_in_battle WHERE t2.tonnage = \"225\" AND t1.result = \"Won\"", + "is_identical": false + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'", + "gold": "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'", + "pred": "SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = \"Lettice\" OR T2.name = \"HMS Atalanta\"", + "is_identical": false + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.", + "gold": "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'", + "pred": "SELECT T1.name, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = \"English Channel\" AND T2.lost_in_battle = 0", + "is_identical": false + }, + { + "context": "CREATE TABLE battle (id INTEGER, name VARCHAR, date VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR, result VARCHAR); CREATE TABLE death (caused_by_ship_id INTEGER, id INTEGER, note VARCHAR, killed INTEGER, injured INTEGER); CREATE TABLE ship (lost_in_battle INTEGER, id INTEGER, name VARCHAR, tonnage VARCHAR, ship_type VARCHAR, location VARCHAR, disposition_of_ship VARCHAR)", + "question": "What are the notes of the death events which has substring 'East'?", + "gold": "SELECT note FROM death WHERE note LIKE '%East%'", + "pred": "SELECT note FROM death WHERE note LIKE '%East%'", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "what are all the addresses including line 1 and line 2?", + "gold": "SELECT line_1, line_2 FROM addresses", + "pred": "SELECT line_1, line_2 FROM Addresses", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the first and second line for all addresses?", + "gold": "SELECT line_1, line_2 FROM addresses", + "pred": "SELECT line_1, line_2 FROM Addresses", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many courses in total are listed?", + "gold": "SELECT count(*) FROM Courses", + "pred": "SELECT count(*) FROM COURSES", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many courses are there?", + "gold": "SELECT count(*) FROM Courses", + "pred": "SELECT count(*) FROM COURSES", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How is the math course described?", + "gold": "SELECT course_description FROM Courses WHERE course_name = 'math'", + "pred": "SELECT course_description FROM COURSES WHERE course_name = \"math\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the descriptions for all the math courses?", + "gold": "SELECT course_description FROM Courses WHERE course_name = 'math'", + "pred": "SELECT course_description FROM COURSES WHERE course_name LIKE '%math%'", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the zip code of the address in the city Port Chelsea?", + "gold": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", + "pred": "SELECT zip_postcode FROM Addresses WHERE city = \"Port Chelsea\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the zip code for Port Chelsea?", + "gold": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", + "pred": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id WHERE T2.first_name = \"Port\" AND T2.last_name = \"Chelsea\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Which department offers the most number of degrees? List department name and id.", + "gold": "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", + "pred": "SELECT T1.department_name, T1.department_id FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the name and id of the department with the most number of degrees ?", + "gold": "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", + "pred": "SELECT T1.department_name, T1.department_id FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many departments offer any degree?", + "gold": "SELECT count(DISTINCT department_id) FROM Degree_Programs", + "pred": "SELECT count(*) FROM Departments", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many different departments offer degrees?", + "gold": "SELECT count(DISTINCT department_id) FROM Degree_Programs", + "pred": "SELECT count(DISTINCT T1.department_name) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many different degree names are offered?", + "gold": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", + "pred": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many different degrees are offered?", + "gold": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", + "pred": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many degrees does the engineering department offer?", + "gold": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", + "pred": "SELECT count(*) FROM Departments WHERE department_name = \"Engineering\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many degrees does the engineering department have?", + "gold": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", + "pred": "SELECT count(*) FROM Departments WHERE department_name = \"Engineering\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the names and descriptions of all the sections?", + "gold": "SELECT section_name, section_description FROM Sections", + "pred": "SELECT section_name, section_description FROM Sections", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the names and descriptions for all the sections?", + "gold": "SELECT section_name, section_description FROM Sections", + "pred": "SELECT section_name, section_description FROM Sections", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the names and id of courses having at most 2 sections?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the names and ids of every course with less than 2 sections?", + "gold": "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", + "pred": "SELECT course_name, course_id FROM courses WHERE (SELECT count(*) FROM sections WHERE course_id = T1.course_id) < 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "List the section_name in reversed lexicographical order.", + "gold": "SELECT section_name FROM Sections ORDER BY section_name DESC", + "pred": "SELECT section_name FROM SECTIONS ORDER BY section_name DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the names of the sections in reverse alphabetical order?", + "gold": "SELECT section_name FROM Sections ORDER BY section_name DESC", + "pred": "SELECT section_name FROM Sections ORDER BY section_name DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the semester which most student registered in? Show both the name and the id.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "For each semester, what is the name and id of the one with the most students registered?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the description of the department whose name has the substring the computer?", + "gold": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", + "pred": "SELECT department_description FROM Departments WHERE department_name LIKE \"%the computer%\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the department description for the one whose name has the word computer?", + "gold": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", + "pred": "SELECT department_description FROM Departments WHERE department_name LIKE \"%computer%\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", + "gold": "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", + "pred": "SELECT T1.first_name, T1.middle_name, T1.last_name, T2.student_id 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 JOIN Semesters AS T4 ON T2.semester_", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?", + "gold": "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", + "pred": "SELECT T1.first_name, T1.middle_name, T1.last_name, T2.student_id 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 JOIN Semesters AS T4 ON T2.semester_", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.", + "gold": "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'", + "pred": "SELECT 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\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the first, middle, and last names for everybody enrolled in a Bachelors program?", + "gold": "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'", + "pred": "SELECT 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 = \"Bachelors\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Find the kind of program which most number of students are enrolled in?", + "gold": "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", + "pred": "SELECT T1.degree_summary_name FROM DEGREE_PROGRAMS AS T1 JOIN SECTIONS AS T2 ON T1.degree_program_id = T2.degree_program_id JOIN STUDENT_ENROLMENT_COURSES AS T3 ON T2.section_id = T3.section_id JOIN STUDENT_ENROLMENT AS T4 ON T3.student_enrol", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the degree summary name that has the most number of students enrolled?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Find the program which most number of students are enrolled in. List both the id and the summary.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the program id and the summary of the degree that has the most students enrolled?", + "gold": "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", + "pred": "SELECT T1.degree_program_id, T1.degree_summary_name, T1.degree_summary_description FROM DEGREE_PROGRAMS AS T1 JOIN SECTIONS AS T2 ON T1.degree_program_id = T2.degree_program_id JOIN STUDENT_ENROLMENT AS T3 ON T2.section_id = T3.section_id GROUP BY T1.", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.", + "gold": "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", + "pred": "SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, count(*) 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", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?", + "gold": "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", + "pred": "SELECT T1.first_name, T1.middle_name, T1.last_name, T2.student_id, count(*) FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T2.student_id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Which semesters do not have any student enrolled? List the semester name.", + "gold": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN(SELECT semester_id FROM Student_Enrolment)", + "pred": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN (SELECT semester_id FROM Student_Enrolment)", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the name of the semester with no students enrolled?", + "gold": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN(SELECT semester_id FROM Student_Enrolment)", + "pred": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN (SELECT semester_id FROM Student_Enrolment)", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are all the course names of the courses which ever have students enrolled in?", + "gold": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", + "pred": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the names of all courses that have some students enrolled?", + "gold": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", + "pred": "SELECT T1.course_name FROM COURSES AS T1 JOIN SECTIONS AS T2 ON T1.course_id = T2.course_id JOIN Student_Enrolment_Courses AS T3 ON T2.section_id = T3.section_id JOIN Students AS T4 ON T3.student_id = T4.student_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What's the name of the course with most number of enrollments?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the name of the course with the most students enrolled?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.", + "gold": "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", + "pred": "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 = \"North Carolina\" EXCEPT SELECT T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Courses AS T3 ON T2", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the last name of the students who live in North Carolina but have not registered in any degree programs?", + "gold": "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", + "pred": "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 = \"North Carolina\" EXCEPT SELECT T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Show the date and id of the transcript with at least 2 course results.", + "gold": "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", + "pred": "SELECT T1.transcript_date, T2.transcript_id FROM Transcripts AS T1 JOIN Transcript_Contents AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T2.transcript_id HAVING count(*) >= 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the date and id of the transcript with at least 2 courses listed?", + "gold": "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", + "pred": "SELECT T1.transcript_date, T1.transcript_id FROM TRANSCRIPTS AS T1 JOIN TRANSCRIPT_CONTENTS AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the phone number of the man with the first name Timmothy and the last name Ward?", + "gold": "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'", + "pred": "SELECT T1.cell_mobile_number FROM Students AS T1 JOIN Semesters AS T2 ON T1.student_id = T2.student_id WHERE T1.first_name = \"Timmothy\" AND T1.last_name = \"Ward\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the mobile phone number of the student named Timmothy Ward ?", + "gold": "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'", + "pred": "SELECT T1.cell_mobile_number FROM Students AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = \"Timmothy\" AND T2.last_name = \"Ward\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Who is the first student to register? List the first name, middle name and last name.", + "gold": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", + "pred": "SELECT first_name, middle_name, last_name FROM STUDENTS ORDER BY date_first_registered LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the first, middle, and last name of the first student to register?", + "gold": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", + "pred": "SELECT 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 ORDER BY T2.date_first_registered LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Who is the earliest graduate of the school? List the first name, middle name and last name.", + "gold": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left ASC LIMIT 1", + "pred": "SELECT 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 Semesters AS T3 ON T2.semester_id = T3.semester_id WHERE T3.semester_name = \"Graduation\" ORDER BY T1.date_first_registered ASC LIMIT", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the first, middle, and last name of the earliest school graduate?", + "gold": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left ASC LIMIT 1", + "pred": "SELECT 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 Semesters AS T3 ON T2.semester_id = T3.semester_id ORDER BY T3.semester_date LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Whose permanent address is different from his or her current address? List his or her first name.", + "gold": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", + "pred": "SELECT T1.first_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.permanent_address_id != T1.current_address_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the first name of the student whose permanent address is different from his or her current one?", + "gold": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", + "pred": "SELECT T1.first_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.permanent_address_id = T2.address_id EXCEPT SELECT T1.first_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Which address holds the most number of students currently? List the address id and all lines.", + "gold": "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", + "pred": "SELECT T1.address_id, T1.line_1, T1.line_2, T1.line_3, T1.city, T1.zip_postcode, T1.state_province_county, T1.country 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", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the id, line 1, and line 2 of the address with the most students?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "On average, when were the transcripts printed?", + "gold": "SELECT avg(transcript_date) FROM Transcripts", + "pred": "SELECT avg(transcript_date) FROM TRANSCRIPTS", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the average transcript date?", + "gold": "SELECT avg(transcript_date) FROM Transcripts", + "pred": "SELECT avg(transcript_date) FROM TRANSCRIPTS", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "When is the first transcript released? List the date and details.", + "gold": "SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", + "pred": "SELECT transcript_date FROM TRANSCRIPTS ORDER BY transcript_date LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the earliest date of a transcript release, and what details can you tell me?", + "gold": "SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", + "pred": "SELECT transcript_date, other_details FROM TRANSCRIPTS ORDER BY transcript_date LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many transcripts are released?", + "gold": "SELECT count(*) FROM Transcripts", + "pred": "SELECT count(*) FROM TRANSCRIPTS", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many transcripts are listed?", + "gold": "SELECT count(*) FROM Transcripts", + "pred": "SELECT count(*) FROM TRANSCRIPTS", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the last transcript release date?", + "gold": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", + "pred": "SELECT transcript_date FROM TRANSCRIPTS ORDER BY transcript_date DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "When was the last transcript released?", + "gold": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", + "pred": "SELECT transcript_date FROM TRANSCRIPTS ORDER BY transcript_date DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.", + "gold": "SELECT count(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT count(*), student_course_id FROM TRANSCRIPT_CONTENTS GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?", + "gold": "SELECT count(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT T1.course_id, count(*) FROM Student_Enrolment_Courses AS T1 JOIN Transcript_Contents AS T2 ON T1.student_course_id = T2.student_course_id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Show the date of the transcript which shows the least number of results, also list the id.", + "gold": "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", + "pred": "SELECT T1.transcript_date, T1.transcript_id FROM TRANSCRIPTS AS T1 JOIN TRANSCRIPT_CONTENTS AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the date and id of the transcript with the least number of results?", + "gold": "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", + "pred": "SELECT transcript_date, transcript_id FROM TRANSCRIPTS ORDER BY count(*) LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Find the semester when both Master students and Bachelor students got enrolled in.", + "gold": "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'", + "pred": "SELECT T1.semester_name FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id JOIN Students AS T3 ON T2.student_id = T3.student_id WHERE T3.degree_program_id IN (SELECT degree_program_id FROM Degree_Programs WHERE degree_summary_name = 'Master') INTERSECT SELECT T", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the id of the semester that had both Masters and Bachelors students enrolled?", + "gold": "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'", + "pred": "SELECT T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = \"Bachelors\" INTERSECT SELECT T1.semester_id FROM Sem", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "How many different addresses do the students currently live?", + "gold": "SELECT count(DISTINCT current_address_id) FROM Students", + "pred": "SELECT count(DISTINCT T1.address_id) FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the different addresses that have students living there?", + "gold": "SELECT count(DISTINCT current_address_id) FROM Students", + "pred": "SELECT DISTINCT T1.line_1, T1.line_2, T1.line_3 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "List all the student details in reversed lexicographical order.", + "gold": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", + "pred": "SELECT * FROM Students ORDER BY last_name DESC", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What other details can you tell me about students in reverse alphabetical order?", + "gold": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", + "pred": "SELECT other_student_details FROM STUDENTS ORDER BY last_name DESC", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Describe the section h.", + "gold": "SELECT section_description FROM Sections WHERE section_name = 'h'", + "pred": "SELECT section_description FROM SECTIONS", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What is the description for the section named h?", + "gold": "SELECT section_description FROM Sections WHERE section_name = 'h'", + "pred": "SELECT section_description FROM SECTIONS WHERE section_name = \"h\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .", + "gold": "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'", + "pred": "SELECT T1.first_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.country = \"Haiti\" OR T1.cell_mobile_number = \"09700166582\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Addresses (address_id INTEGER, line_1 VARCHAR, line_2 VARCHAR, line_3 VARCHAR, city VARCHAR, zip_postcode VARCHAR, state_province_county VARCHAR, country VARCHAR, other_address_details VARCHAR); CREATE TABLE Courses (course_id INTEGER, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR); CREATE TABLE Degree_Programs (degree_program_id INTEGER, department_id INTEGER, degree_summary_name VARCHAR, degree_summary_description VARCHAR, other_details VARCHAR); CREATE TABLE Departments (department_id INTEGER, department_name VARCHAR, department_description VARCHAR, other_details VARCHAR); CREATE TABLE Sections (section_id INTEGER, course_id INTEGER, section_name VARCHAR, section_description VARCHAR, other_details VARCHAR); CREATE TABLE Semesters (semester_id INTEGER, semester_name VARCHAR, semester_description VARCHAR, other_details VARCHAR); CREATE TABLE Student_Enrolment (student_enrolment_id INTEGER, degree_program_id INTEGER, semester_id INTEGER, student_id INTEGER, other_details VARCHAR); CREATE TABLE Student_Enrolment_Courses (student_course_id INTEGER, course_id INTEGER, student_enrolment_id INTEGER); CREATE TABLE Students (student_id INTEGER, current_address_id INTEGER, permanent_address_id INTEGER, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, ssn VARCHAR, date_first_registered DATETIME, date_left DATETIME, other_student_details VARCHAR); CREATE TABLE Transcript_Contents (student_course_id INTEGER, transcript_id INTEGER); CREATE TABLE Transcripts (transcript_id INTEGER, transcript_date DATETIME, other_details VARCHAR)", + "question": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?", + "gold": "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'", + "pred": "SELECT T1.first_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.country = \"Haiti\" OR T1.cell_mobile_number = \"09700166582\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "List the title of all cartoons in alphabetical order.", + "gold": "SELECT Title FROM Cartoon ORDER BY title", + "pred": "SELECT Title FROM CARTOON ORDER BY Title ASC", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the titles of the cartoons sorted alphabetically?", + "gold": "SELECT Title FROM Cartoon ORDER BY title", + "pred": "SELECT Title FROM CARTOON ORDER BY Title ASC", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "List all cartoon directed by \"Ben Jones\".", + "gold": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";", + "pred": "SELECT title FROM CARTOON WHERE directed_by = \"Ben Jones\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the names of all cartoons directed by Ben Jones?", + "gold": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";", + "pred": "SELECT T1.Title FROM CARTOON AS T1 JOIN TV_series AS T2 ON T1.id = T2.id WHERE T1.Directed_by = \"Ben Jones\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "How many cartoons were written by \"Joseph Kuhr\"?", + "gold": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";", + "pred": "SELECT count(*) FROM CARTOON WHERE Written_by = \"Joseph Kuhr\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the number of cartoones written by Joseph Kuhr?", + "gold": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";", + "pred": "SELECT count(*) FROM CARTOON WHERE Written_by = \"Joseph Kuhr\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "list all cartoon titles and their directors ordered by their air date", + "gold": "SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date", + "pred": "SELECT Title, Directed_by FROM CARTOON ORDER BY Original_air_date", + "is_identical": true + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the name and directors of all the cartoons that are ordered by air date?", + "gold": "SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date", + "pred": "SELECT Title, Directed_by FROM CARTOON ORDER BY Original_air_date", + "is_identical": true + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\".", + "gold": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";", + "pred": "SELECT T1.Title FROM CARTOON AS T1 JOIN TV_series AS T2 ON T1.id = T2.id WHERE T2.Directed_by = \"Ben Jones\" OR T2.Directed_by = \"Brandon Vietti\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?", + "gold": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";", + "pred": "SELECT T1.Title FROM CARTOON AS T1 JOIN TV_series AS T2 ON T1.id = T2.id WHERE T2.Directed_by = \"Ben Jones\" OR T2.Directed_by = \"Brandon Vietti\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "Which country has the most of TV Channels? List the country and number of TV Channels it has.", + "gold": "SELECT Country, count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", + "pred": "SELECT country, count(*) FROM TV_channel GROUP BY country ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the country with the most number of TV Channels and how many does it have?", + "gold": "SELECT Country, count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", + "pred": "SELECT country, count(*) FROM TV_channel GROUP BY country ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "List the number of different series names and contents in the TV Channel table.", + "gold": "SELECT count(DISTINCT series_name), count(DISTINCT content) FROM TV_Channel;", + "pred": "SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "How many different series and contents are listed in the TV Channel table?", + "gold": "SELECT count(DISTINCT series_name), count(DISTINCT content) FROM TV_Channel;", + "pred": "SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the content of TV Channel with serial name \"Sky Radio\"?", + "gold": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "pred": "SELECT content FROM TV_channel WHERE series_name = \"Sky Radio\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the content of the series Sky Radio?", + "gold": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "pred": "SELECT content FROM TV_channel WHERE series_name = \"Sky Radio\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the Package Option of TV Channel with serial name \"Sky Radio\"?", + "gold": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "pred": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the Package Options of the TV Channels whose series names are Sky Radio?", + "gold": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "pred": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "How many TV Channel using language English?", + "gold": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", + "pred": "SELECT count(*) FROM TV_Channel WHERE Language = \"English\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "How many TV Channels use the English language?", + "gold": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", + "pred": "SELECT count(*) FROM TV_channel WHERE language = \"English\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "List the language used least number of TV Channel. List language and number of TV Channel.", + "gold": "SELECT LANGUAGE, count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", + "pred": "SELECT Language, COUNT(*) FROM TV_Channel GROUP BY Language ORDER BY COUNT(*) ASC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the languages used by the least number of TV Channels and how many channels use it?", + "gold": "SELECT LANGUAGE, count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", + "pred": "SELECT T1.Language, COUNT(*) FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel GROUP BY T1.Language ORDER BY COUNT(*) ASC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "List each language and the number of TV Channels using it.", + "gold": "SELECT LANGUAGE, count(*) FROM TV_Channel GROUP BY LANGUAGE", + "pred": "SELECT Language, COUNT(*) FROM TV_Channel GROUP BY Language", + "is_identical": true + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "For each language, list the number of TV Channels that use it.", + "gold": "SELECT LANGUAGE, count(*) FROM TV_Channel GROUP BY LANGUAGE", + "pred": "SELECT Language, COUNT(*) FROM TV_Channel GROUP BY Language", + "is_identical": true + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the TV Channel that shows the cartoon \"The Rise of the Blue Beetle!\"? List the TV Channel's series name.", + "gold": "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!\";", + "pred": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.channel WHERE T2.title = \"The Rise of the Blue Beetle!\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the series name of the TV Channel that shows the cartoon \"The Rise of the Blue Beetle\"?", + "gold": "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!\";", + "pred": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.channel WHERE T2.title = \"The Rise of the Blue Beetle\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "List the title of all Cartoons showed on TV Channel with series name \"Sky Radio\".", + "gold": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "pred": "SELECT T1.Title FROM CARTOON AS T1 JOIN TV_Channel AS T2 ON T1.Channel = T2.id WHERE T2.series_name = \"Sky Radio\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the title of all the cartools that are on the TV Channel with the series name \"Sky Radio\"?", + "gold": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "pred": "SELECT T1.Title FROM CARTOON AS T1 JOIN TV_Channel AS T2 ON T1.Channel = T2.id WHERE T2.series_name = \"Sky Radio\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "List the Episode of all TV series sorted by rating.", + "gold": "SELECT Episode FROM TV_series ORDER BY rating", + "pred": "SELECT Episode FROM TV_series ORDER BY Rating", + "is_identical": true + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are all of the episodes ordered by ratings?", + "gold": "SELECT Episode FROM TV_series ORDER BY rating", + "pred": "SELECT Episode FROM TV_series ORDER BY Rating", + "is_identical": true + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "List top 3 highest Rating TV series. List the TV series's Episode and Rating.", + "gold": "SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", + "pred": "SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are 3 most highly rated episodes in the TV series table and what were those ratings?", + "gold": "SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", + "pred": "SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is minimum and maximum share of TV series?", + "gold": "SELECT max(SHARE), min(SHARE) FROM TV_series;", + "pred": "SELECT min(share), max(share) FROM TV_series", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the maximum and minimum share for the TV series?", + "gold": "SELECT max(SHARE), min(SHARE) FROM TV_series;", + "pred": "SELECT max(share), min(share) FROM TV_series", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the air date of TV series with Episode \"A Love of a Lifetime\"?", + "gold": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "pred": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "When did the episode \"A Love of a Lifetime\" air?", + "gold": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "pred": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is Weekly Rank of TV series with Episode \"A Love of a Lifetime\"?", + "gold": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "pred": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the weekly rank for the episode \"A Love of a Lifetime\"?", + "gold": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "pred": "SELECT WEEKLY_RANK FROM TV_series WHERE EPISODE = \"A Love of a Lifetime\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the TV Channel of TV series with Episode \"A Love of a Lifetime\"? List the TV Channel's series name.", + "gold": "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\";", + "pred": "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\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the name of the series that has the episode \"A Love of a Lifetime\"?", + "gold": "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\";", + "pred": "SELECT T1.series_name FROM TV_series AS T1 JOIN TV_channel AS T2 ON T1.id = T2.id WHERE T1.episode = \"A Love of a Lifetime\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "List the Episode of all TV series showed on TV Channel with series name \"Sky Radio\".", + "gold": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "pred": "SELECT Episode FROM TV_series AS T1 JOIN TV_Channel AS T2 ON T1.Channel = T2.id WHERE T2.series_name = \"Sky Radio\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the episode for the TV series named \"Sky Radio\"?", + "gold": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "pred": "SELECT Episode FROM TV_series WHERE Title = \"Sky Radio\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "Find the number of cartoons directed by each of the listed directors.", + "gold": "SELECT count(*), Directed_by FROM cartoon GROUP BY Directed_by", + "pred": "SELECT directed_by, COUNT(*) FROM CARTOON GROUP BY directed_by", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "How many cartoons did each director create?", + "gold": "SELECT count(*), Directed_by FROM cartoon GROUP BY Directed_by", + "pred": "SELECT directed_by, COUNT(*) FROM CARTOON GROUP BY directed_by", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "Find the production code and channel of the most recently aired cartoon .", + "gold": "select production_code, channel from cartoon order by original_air_date desc limit 1", + "pred": "SELECT production_code, channel FROM CARTOON ORDER BY original_air_date DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the produdction code and channel of the most recent cartoon ?", + "gold": "select production_code, channel from cartoon order by original_air_date desc limit 1", + "pred": "SELECT production_code, channel FROM CARTOON ORDER BY id DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "Find the package choice and series name of the TV channel that has high definition TV.", + "gold": "SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"", + "pred": "SELECT T1.package_option, T1.series_name FROM TV_channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.channel WHERE T1.hight_definition_TV = \"Yes\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the package options and the name of the series for the TV Channel that supports high definition TV?", + "gold": "SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"", + "pred": "SELECT Package_Option, series_name FROM TV_Channel WHERE Hight_definition_TV = \"Yes\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "which countries' tv channels are playing some cartoon written by Todd Casey?", + "gold": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", + "pred": "SELECT T1.Country FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Written_by = \"Todd Casey\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the countries that have cartoons on TV that were written by Todd Casey?", + "gold": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", + "pred": "SELECT country FROM TV_channel WHERE content = \"cartoons\" AND written_by = \"Todd Casey\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "which countries' tv channels are not playing any cartoon written by Todd Casey?", + "gold": "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'", + "pred": "SELECT country FROM TV_channel WHERE channel NOT IN (SELECT channel FROM CARTON WHERE written_by = \"Todd Casey\")", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the countries that are not playing cartoons written by Todd Casey?", + "gold": "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'", + "pred": "SELECT country FROM TV_channel WHERE content = \"cartoons\" EXCEPT SELECT country FROM TV_channel WHERE written_by = \"Todd Casey\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?", + "gold": "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'", + "pred": "SELECT T1.series_name, T1.country FROM TV_channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.channel WHERE T2.Directed_by = \"Ben Jones\" AND T2.Directed_by = \"Michael Chang\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang?", + "gold": "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'", + "pred": "SELECT T1.series_name, T1.country FROM TV_channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.channel WHERE T2.content = \"cartoons\" AND T2.directed_by = \"Ben Jones\" INTERSECT SELECT T1.series_name, T1.country FROM TV_channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.channel", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "find the pixel aspect ratio and nation of the tv channels that do not use English.", + "gold": "SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE != 'English'", + "pred": "SELECT Pixel_aspect_ratio_PAR, Country FROM TV_Channel WHERE Language != \"English\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English?", + "gold": "SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE != 'English'", + "pred": "SELECT Pixel_aspect_ratio_PAR, Country FROM TV_Channel WHERE Language != \"English\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "find id of the tv channels that from the countries where have more than two tv channels.", + "gold": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2", + "pred": "SELECT id FROM TV_channel WHERE country IN (SELECT country FROM TV_channel GROUP BY country HAVING COUNT(*) > 2)", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the ids of all tv channels that have more than 2 TV channels?", + "gold": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2", + "pred": "SELECT id FROM TV_channel GROUP BY id HAVING count(*) > 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "find the id of tv channels that do not play any cartoon directed by Ben Jones.", + "gold": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", + "pred": "SELECT id FROM TV_channel WHERE id NOT IN (SELECT channel FROM CARTOON WHERE directed_by = \"Ben Jones\")", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?", + "gold": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", + "pred": "SELECT id FROM TV_channel WHERE id NOT IN (SELECT channel FROM CARTOON WHERE directed_by = \"Ben Jones\")", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones.", + "gold": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", + "pred": "SELECT Package_Option FROM TV_Channel WHERE id NOT IN (SELECT T1.id FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.channel WHERE T2.Directed_by = \"Ben Jones\")", + "is_identical": false + }, + { + "context": "CREATE TABLE Cartoon (id INTEGER, Title VARCHAR, Directed_by VARCHAR, Written_by VARCHAR, Original_air_date VARCHAR, Production_code INTEGER, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR, Country VARCHAR, Language VARCHAR, Content VARCHAR, Pixel_aspect_ratio_PAR VARCHAR, Hight_definition_TV VARCHAR, Pay_per_view_PPV VARCHAR, Package_Option VARCHAR); CREATE TABLE TV_series (id INTEGER, Episode VARCHAR, Air_Date VARCHAR, Rating VARCHAR, Share INTEGER, 18_49_Rating_Share VARCHAR, Viewers_m VARCHAR, Weekly_Rank INTEGER, Channel VARCHAR)", + "question": "What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?", + "gold": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", + "pred": "SELECT DISTINCT T1.Package_Option FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Directed_by != \"Ben Jones\"", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "How many poker players are there?", + "gold": "SELECT count(*) FROM poker_player", + "pred": "SELECT count(*) FROM poker_player", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Count the number of poker players.", + "gold": "SELECT count(*) FROM poker_player", + "pred": "SELECT count(*) FROM poker_player", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "List the earnings of poker players in descending order.", + "gold": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", + "pred": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are the earnings of poker players, ordered descending by value?", + "gold": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", + "pred": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "List the final tables made and the best finishes of poker players.", + "gold": "SELECT Final_Table_Made, Best_Finish FROM poker_player", + "pred": "SELECT Final_Table_Made, Best_Finish FROM poker_player", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are the final tables made and best finishes for all poker players?", + "gold": "SELECT Final_Table_Made, Best_Finish FROM poker_player", + "pred": "SELECT Final_Table_Made, Best_Finish FROM poker_player", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What is the average earnings of poker players?", + "gold": "SELECT avg(Earnings) FROM poker_player", + "pred": "SELECT avg(Earnings) FROM poker_player", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Return the average earnings across all poker players.", + "gold": "SELECT avg(Earnings) FROM poker_player", + "pred": "SELECT avg(Earnings) FROM poker_player", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What is the money rank of the poker player with the highest earnings?", + "gold": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", + "pred": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Return the money rank of the player with the greatest earnings.", + "gold": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", + "pred": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What is the maximum number of final tables made among poker players with earnings less than 200000?", + "gold": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", + "pred": "SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Return the maximum final tables made across all poker players who have earnings below 200000.", + "gold": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", + "pred": "SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are the names of poker players?", + "gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", + "pred": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Return the names of all the poker players.", + "gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", + "pred": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are the names of poker players whose earnings is higher than 300000?", + "gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", + "pred": "SELECT T1.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Earnings > 300000", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Give the names of poker players who have earnings above 300000.", + "gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", + "pred": "SELECT T1.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Earnings > 300000", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "List the names of poker players ordered by the final tables made in ascending order.", + "gold": "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", + "pred": "SELECT T1.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Final_Table_Made ASC", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are the names of poker players, ordered ascending by the number of final tables they have made?", + "gold": "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", + "pred": "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 ASC", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What is the birth date of the poker player with the lowest earnings?", + "gold": "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", + "pred": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Return the birth date of the poker player with the lowest earnings.", + "gold": "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", + "pred": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What is the money rank of the tallest poker player?", + "gold": "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", + "pred": "SELECT T1.Money_Rank FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Return the money rank of the poker player with the greatest height.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What is the average earnings of poker players with height higher than 200?", + "gold": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", + "pred": "SELECT avg(T1.Earnings) FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Give average earnings of poker players who are taller than 200.", + "gold": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", + "pred": "SELECT avg(T1.Earnings) FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are the names of poker players in descending order of earnings?", + "gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", + "pred": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Return the names of poker players sorted by their earnings descending.", + "gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", + "pred": "SELECT T1.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Earnings DESC", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are different nationalities of people and the corresponding number of people from each nation?", + "gold": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality", + "pred": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "How many people are there of each nationality?", + "gold": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality", + "pred": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What is the most common nationality of people?", + "gold": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", + "pred": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Give the nationality that is most common across all people.", + "gold": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", + "pred": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY count(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are the nationalities that are shared by at least two people?", + "gold": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", + "pred": "SELECT Nationality FROM people GROUP BY Nationality HAVING count(*) >= 2", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Return the nationalities for which there are two or more people.", + "gold": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", + "pred": "SELECT Nationality FROM people GROUP BY Nationality HAVING count(*) >= 2", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "List the names and birth dates of people in ascending alphabetical order of name.", + "gold": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC", + "pred": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are the names and birth dates of people, ordered by their names in alphabetical order?", + "gold": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC", + "pred": "SELECT Name, Birth_Date FROM people ORDER BY Name", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Show names of people whose nationality is not \"Russia\".", + "gold": "SELECT Name FROM people WHERE Nationality != \"Russia\"", + "pred": "SELECT Name FROM people WHERE Nationality != \"Russia\"", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are the names of people who are not from Russia?", + "gold": "SELECT Name FROM people WHERE Nationality != \"Russia\"", + "pred": "SELECT name FROM people WHERE nationality != 'Russia'", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "List the names of people that are not poker players.", + "gold": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", + "pred": "SELECT T1.Name FROM people AS T1 WHERE T1.People_ID NOT IN (SELECT T2.People_ID FROM poker_player AS T2)", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "What are the names of people who do not play poker?", + "gold": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", + "pred": "SELECT T1.Name FROM people AS T1 WHERE T1.People_ID NOT IN (SELECT T2.People_ID FROM poker_player AS T2)", + "is_identical": false + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "How many distinct nationalities are there?", + "gold": "SELECT count(DISTINCT Nationality) FROM people", + "pred": "SELECT count(DISTINCT Nationality) FROM people", + "is_identical": true + }, + { + "context": "CREATE TABLE people (People_ID INTEGER, Nationality VARCHAR, Name VARCHAR, Birth_Date VARCHAR, Height INTEGER); CREATE TABLE poker_player (Poker_Player_ID INTEGER, People_ID INTEGER, Final_Table_Made INTEGER, Best_Finish INTEGER, Money_Rank INTEGER, Earnings INTEGER)", + "question": "Count the number of different nationalities.", + "gold": "SELECT count(DISTINCT Nationality) FROM people", + "pred": "SELECT count(DISTINCT Nationality) FROM people", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "How many states are there?", + "gold": "SELECT count(*) FROM area_code_state", + "pred": "SELECT count(*) FROM area_code_state", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "List the contestant numbers and names, ordered by contestant name descending.", + "gold": "SELECT contestant_number, contestant_name FROM contestants ORDER BY contestant_name DESC", + "pred": "SELECT contestant_number, contestant_name FROM CONTESTANTS ORDER BY contestant_name DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "List the vote ids, phone numbers and states of all votes.", + "gold": "SELECT vote_id, phone_number, state FROM votes", + "pred": "SELECT vote_id, phone_number, state FROM VOTES", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "What are the maximum and minimum values of area codes?", + "gold": "SELECT max(area_code), min(area_code) FROM area_code_state", + "pred": "SELECT max(area_code), min(area_code) FROM area_code_state", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "What is last date created of votes from the state 'CA'?", + "gold": "SELECT max(created) FROM votes WHERE state = 'CA'", + "pred": "SELECT created FROM VOTES WHERE state = 'CA' ORDER BY created DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "What are the names of the contestants whose names are not 'Jessie Alloway'", + "gold": "SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway'", + "pred": "SELECT contestant_name FROM CONTESTANTS WHERE contestant_name != 'Jessie Alloway'", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "What are the distinct states and create time of all votes?", + "gold": "SELECT DISTINCT state, created FROM votes", + "pred": "SELECT DISTINCT state, created FROM VOTES", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "What are the contestant numbers and names of the contestants who had at least two votes?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "What are the number of votes from state 'NY' or 'CA'?", + "gold": "SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA'", + "pred": "SELECT count(*) FROM VOTES WHERE state = 'NY' OR state = 'CA'", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "How many contestants did not get voted?", + "gold": "SELECT count(*) FROM contestants WHERE contestant_number NOT IN (SELECT contestant_number FROM votes)", + "pred": "SELECT count(*) FROM CONTESTANTS WHERE contestant_number NOT IN (SELECT contestant_number FROM VOTES)", + "is_identical": true + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "What is the area code in which the most voters voted?", + "gold": "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", + "pred": "SELECT T1.area_code FROM AREA_CODE_STATE AS T1 JOIN VOTES AS T2 ON T1.area_code = T2.phone_number GROUP BY T1.area_code ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?", + "gold": "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'", + "pred": "SELECT created, state, phone_number FROM VOTES WHERE contestant_number = (SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = 'Tabatha Gehling')", + "is_identical": false + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.", + "gold": "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'", + "pred": "SELECT T1.area_code FROM AREA_CODE_STATE AS T1 JOIN VOTES AS T2 ON T1.area_code = T2.phone_number JOIN CONTESTANTS AS T3 ON T2.contestant_number = T3.contestant_number WHERE T3.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T1.area_code FROM AREA_CODE", + "is_identical": false + }, + { + "context": "CREATE TABLE AREA_CODE_STATE (area_code INTEGER, state VARCHAR); CREATE TABLE CONTESTANTS (contestant_number INTEGER, contestant_name VARCHAR); CREATE TABLE VOTES (vote_id INTEGER, phone_number INTEGER, state VARCHAR, contestant_number INTEGER, created DATETIME)", + "question": "Return the names of the contestants whose names contain the substring 'Al' .", + "gold": "select contestant_name from contestants where contestant_name like \"%al%\"", + "pred": "SELECT contestant_name FROM CONTESTANTS WHERE contestant_name LIKE \"%Al%\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the names of all the countries that became independent after 1950?", + "gold": "SELECT Name FROM country WHERE IndepYear > 1950", + "pred": "SELECT name FROM country WHERE IndepYear > 1950", + "is_identical": true + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the names of the nations that were founded after 1950.", + "gold": "SELECT Name FROM country WHERE IndepYear > 1950", + "pred": "SELECT name FROM country WHERE IndepYear > 1950", + "is_identical": true + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many countries have a republic as their form of government?", + "gold": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", + "pred": "SELECT COUNT(*) FROM country WHERE GovernmentForm = \"Republic\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many countries have governments that are republics?", + "gold": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", + "pred": "SELECT COUNT(*) FROM country WHERE GovernmentForm = 'Republic'", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the total surface area of the countries in the Caribbean region?", + "gold": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", + "pred": "SELECT SUM(SurfaceArea) FROM country WHERE Region = 'Caribbean'", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How much surface area do the countires in the Carribean cover together?", + "gold": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", + "pred": "SELECT SUM(SurfaceArea) FROM country WHERE Region = \"Carribean\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which continent is Anguilla in?", + "gold": "SELECT Continent FROM country WHERE Name = \"Anguilla\"", + "pred": "SELECT T2.continent FROM city AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.name = \"Anguilla\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the continent name which Anguilla belongs to?", + "gold": "SELECT Continent FROM country WHERE Name = \"Anguilla\"", + "pred": "SELECT T2.name FROM city AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.name = \"Anguilla\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which region is the city Kabul located in?", + "gold": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"", + "pred": "SELECT T1.region FROM city AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.name = \"Kabul\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What region is Kabul in?", + "gold": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"", + "pred": "SELECT T1.region FROM city AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.name = \"Kabul\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which language is the most popular in Aruba?", + "gold": "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", + "pred": "SELECT T2.Language FROM countrylanguage AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Name = \"Aruba\" GROUP BY T2.Language ORDER BY SUM(T1.Percentage) DESC LIMIT 1;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What language is predominantly spoken in Aruba?", + "gold": "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", + "pred": "SELECT Language FROM countrylanguage WHERE Percentage = (SELECT MAX (Percentage) FROM countrylanguage);", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the population and life expectancies in Brazil?", + "gold": "SELECT Population, LifeExpectancy FROM country WHERE Name = \"Brazil\"", + "pred": "SELECT population, lifeexpectancy FROM country WHERE name = \"Brazil\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give me Brazil’s population and life expectancies.", + "gold": "SELECT Population, LifeExpectancy FROM country WHERE Name = \"Brazil\"", + "pred": "SELECT Population, LifeExpectancy FROM country WHERE Name = \"Brazil\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the region and population of Angola?", + "gold": "SELECT Population, Region FROM country WHERE Name = \"Angola\"", + "pred": "SELECT T1.region, T1.population FROM country AS T1 JOIN city AS T2 ON T1.code = T2.countrycode WHERE T1.name = \"Angola\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What region does Angola belong to and what is its population?", + "gold": "SELECT Population, Region FROM country WHERE Name = \"Angola\"", + "pred": "SELECT T2.region, T1.population FROM city AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T2.name = \"Angola\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the average expected life expectancy for countries in the region of Central Africa?", + "gold": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", + "pred": "SELECT avg(lifeexpectancy) FROM country WHERE region = \"Central Africa\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How long is the people’s average life expectancy in Central Africa?", + "gold": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", + "pred": "SELECT avg(LifeExpectancy) FROM country WHERE region = \"Central Africa\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the name of country that has the shortest life expectancy in Asia?", + "gold": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", + "pred": "SELECT name FROM country WHERE continent = \"Asia\" ORDER BY lifeexpectancy ASC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the name of the country in Asia with the lowest life expectancy.", + "gold": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", + "pred": "SELECT name FROM country WHERE continent = \"Asia\" ORDER BY lifeexpectancy ASC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the total population and maximum GNP in Asia?", + "gold": "SELECT sum(Population), max(GNP) FROM country WHERE Continent = \"Asia\"", + "pred": "SELECT SUM(population), MAX(gnp) FROM country WHERE continent = 'Asia'", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many people live in Asia, and what is the largest GNP among them?", + "gold": "SELECT sum(Population), max(GNP) FROM country WHERE Continent = \"Asia\"", + "pred": "SELECT SUM (T1.Population), MAX (T1.GNP) FROM city AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Continent = \"Asia\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the average life expectancy in African countries that are republics?", + "gold": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", + "pred": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the average life expectancy for countries in Africa which are republics?", + "gold": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", + "pred": "SELECT avg(lifeexpectancy) FROM country WHERE continent = 'Africa' AND governmentform = 'Republic';", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the total surface area of the continents Asia and Europe?", + "gold": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", + "pred": "SELECT SUM(SurfaceArea) FROM country WHERE Continent = 'Asia' AND Continent = 'Europe'", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the total surface area covered by countries in Asia or Europe.", + "gold": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", + "pred": "SELECT SUM(SurfaceArea) FROM country WHERE Continent = 'Asia' OR Continent = 'Europe'", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many people live in Gelderland district?", + "gold": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", + "pred": "SELECT population FROM city WHERE district = \"Gelderland\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the total population of Gelderland district?", + "gold": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", + "pred": "SELECT SUM(Population) FROM city WHERE District = \"Gelderland\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the average GNP and total population in all nations whose government is US territory?", + "gold": "SELECT avg(GNP), sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", + "pred": "SELECT avg(gnp), sum(population) FROM country WHERE governmentform = 'US territory'", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the mean GNP and total population of nations which are considered US territory.", + "gold": "SELECT avg(GNP), sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", + "pred": "SELECT avg(t1.gnp), sum(t1.population) FROM country AS t1 JOIN city AS t2 ON t1.code = t2.countrycode WHERE t1.continent = 'North America' AND t2.district = 'US Territory'", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many unique languages are spoken in the world?", + "gold": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", + "pred": "SELECT COUNT (DISTINCT Language) FROM countrylanguage;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the number of distinct languages used around the world?", + "gold": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", + "pred": "SELECT COUNT(DISTINCT Language) FROM countrylanguage;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many type of governments are in Africa?", + "gold": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", + "pred": "SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = 'Africa'", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many different forms of governments are there in Africa?", + "gold": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", + "pred": "SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the total number of languages used in Aruba?", + "gold": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", + "pred": "SELECT SUM (T2.Percentage) FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Name = \"Aruba\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many languages are spoken in Aruba?", + "gold": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", + "pred": "SELECT COUNT (DISTINCT language) FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T2.name = \"Aruba\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many official languages does Afghanistan have?", + "gold": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", + "pred": "SELECT COUNT(*) FROM countrylanguage WHERE isofficial = \"T\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many official languages are spoken in Afghanistan?", + "gold": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", + "pred": "SELECT COUNT(*) FROM countrylanguage WHERE isofficial = \"T\" AND countrycode = \"AFG\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is name of the country that speaks the largest number of languages?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the name of the nation that uses the greatest amount of languages.", + "gold": "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", + "pred": "SELECT T2.Name FROM countrylanguage AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code GROUP BY T1.Language ORDER BY sum(T1.Percentage) DESC LIMIT 1;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which continent has the most diverse languages?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which continent speaks the most languages?", + "gold": "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", + "pred": "SELECT T2.Continent FROM countrylanguage AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code GROUP BY T2.Continent ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many countries speak both English and Dutch?", + "gold": "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\")", + "pred": "SELECT COUNT(*) FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.language = \"English\" INTERSECT SELECT COUNT(*) FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.language = \"Dutch\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the number of nations that use English and Dutch?", + "gold": "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\")", + "pred": "SELECT COUNT (DISTINCT name) FROM countrylanguage WHERE language = \"English\" INTERSECT SELECT COUNT (DISTINCT name) FROM countrylanguage WHERE language = \"Dutch\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the names of nations speak both English and French?", + "gold": "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\"", + "pred": "SELECT name FROM country WHERE name IN (SELECT name FROM countrylanguage WHERE language = \"English\" INTERSECT SELECT name FROM countrylanguage WHERE language = \"French\")", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the names of nations that speak both English and French.", + "gold": "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\"", + "pred": "SELECT name FROM country WHERE name IN (SELECT T1.name FROM countrylanguage AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.countrycode WHERE T1.language = \"English\" AND T2.language = \"French\" AND T1.isOfficial = \"T\" AND T2.isOfficial = \"T\");", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the names of nations where both English and French are official languages?", + "gold": "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\"", + "pred": "SELECT name FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.language = \"English\" INTERSECT SELECT name FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.language = \"French\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the names of countries with English and French as official languages.", + "gold": "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\"", + "pred": "SELECT name FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.language = \"English\" INTERSECT SELECT name FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.language = \"French\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the number of distinct continents where Chinese is spoken?", + "gold": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", + "pred": "SELECT COUNT (DISTINCT T1.continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code = T2.countrycode WHERE T2.language = \"Chinese\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many continents speak Chinese?", + "gold": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", + "pred": "SELECT COUNT (DISTINCT t2.continent) FROM countrylanguage AS t1 JOIN country AS t2 ON t1.countrycode = t2.code WHERE t1.language = \"Chinese\" AND t1.isOfficial = \"T\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the regions that use English or Dutch?", + "gold": "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\"", + "pred": "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\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which regions speak Dutch or English?", + "gold": "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\"", + "pred": "SELECT T1.region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code = T2.countrycode WHERE T2.language = \"Dutch\" OR T2.language = \"English\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the countries where either English or Dutch is the official language ?", + "gold": "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\"", + "pred": "SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code = T2.countrycode WHERE T2.language = \"English\" OR T2.language = \"Dutch\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which countries have either English or Dutch as an official language?", + "gold": "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\"", + "pred": "SELECT name FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.language = \"English\" OR T1.language = \"Dutch\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which language is the most popular on the Asian continent?", + "gold": "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", + "pred": "SELECT T2.Language FROM countrylanguage AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Continent = \"Asia\" GROUP BY T2.Language ORDER BY SUM(T1.Percentage) DESC LIMIT 1;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the language that is used by the largest number of Asian nations?", + "gold": "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", + "pred": "SELECT Language FROM countrylanguage WHERE countrycode IN (SELECT countrycode FROM country WHERE region = \"Asia\") GROUP BY Language ORDER BY COUNT(*) DESC LIMIT 1;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which languages are spoken by only one country in republic governments?", + "gold": "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", + "pred": "SELECT T2.Language FROM countrylanguage AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T2.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What languages are only used by a single country with a republic government?", + "gold": "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", + "pred": "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", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Find the city with the largest population that uses English.", + "gold": "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", + "pred": "SELECT name FROM city WHERE population = (SELECT MAX (population) FROM city WHERE name IN (SELECT T1.name FROM countrylanguage AS T1 JOIN city AS T2 ON T1.countrycode = T2.countrycode WHERE T1.language = \"English\" AND T1.isOfficial = \"T\"))", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the most populace city that speaks English?", + "gold": "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", + "pred": "SELECT name FROM city WHERE population = (SELECT MAX (population) FROM city) AND name IN (SELECT T1.name FROM city AS T1 JOIN countrylanguage AS T2 ON T1.name = T2.name WHERE T2.language = \"English\" AND T2.isOfficial = \"T\");", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Find the name, population and expected life length of asian country with the largest area?", + "gold": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", + "pred": "SELECT T2.Name, T2.Population, T2.LifeExpectancy FROM city AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Continent = \"Asia\" ORDER BY T2.SurfaceArea DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the name, population, and life expectancy of the largest Asian country by land?", + "gold": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", + "pred": "SELECT name, population, lifeexpectancy FROM country WHERE surfacearea = (SELECT MAX (surfacearea) FROM country WHERE continent = \"Asia\")", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is average life expectancy in the countries where English is not the official language?", + "gold": "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\")", + "pred": "SELECT avg(LifeExpectancy) FROM country WHERE LifeExpectancy > 70 AND Language != \"English\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the mean life expectancy of countries in which English is not the official language.", + "gold": "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\")", + "pred": "SELECT avg(lifeexpectancy) FROM country WHERE lifeexpectancy > 70 AND name NOT IN (SELECT name FROM countrylanguage WHERE language = \"English\" AND isofficial = \"T\")", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the total number of people living in the nations that do not use English?", + "gold": "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\")", + "pred": "SELECT SUM (T2.population) FROM city AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T2.name NOT IN (SELECT name FROM countrylanguage WHERE language = \"English\" AND isofficial = \"T\")", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many people live in countries that do not speak English?", + "gold": "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\")", + "pred": "SELECT population FROM country WHERE name NOT IN (SELECT T1.name FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T1.language = \"English\" AND T1.isOfficial = \"T\")", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the official language spoken in the country whose head of state is Beatrix?", + "gold": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", + "pred": "SELECT T2.Language FROM countrylanguage AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T2.HeadOfState = \"Beatrix\" AND T1.IsOfficial = \"T\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the official language used in the country the name of whose head of state is Beatrix.", + "gold": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", + "pred": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code = T2.countrycode WHERE T1.headofstate = \"Beatrix\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", + "gold": "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\"", + "pred": "SELECT SUM (t3.population) FROM country AS t1 JOIN city AS t2 ON t1.code = t2.countrycode JOIN countrylanguage AS t3 ON t1.code = t3.countrycode WHERE t1.indepyear < 1930 AND t3.isOfficial = \"T\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "For the countries founded before 1930, what is the total number of distinct official languages?", + "gold": "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\"", + "pred": "SELECT SUM (DISTINCT t2.percentage) FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t1.indepyear < 1930;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the countries that have greater surface area than any country in Europe?", + "gold": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", + "pred": "SELECT name FROM country WHERE surfacearea > (SELECT MAX(surfacearea) FROM country WHERE continent = 'Europe')", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which countries have greater area than that of any country in Europe?", + "gold": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", + "pred": "SELECT name FROM country WHERE surfacearea > (SELECT MAX(surfacearea) FROM country WHERE continent = 'Europe')", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the African countries that have a population less than any country in Asia?", + "gold": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT max(population) FROM country WHERE Continent = \"Asia\")", + "pred": "SELECT name FROM country WHERE continent = \"Asia\" ORDER BY population DESC LIMIT 1; SELECT name FROM country WHERE continent = \"Africa\" AND population < (SELECT population FROM country WHERE continent = \"Asia\" ORDER BY population DESC LIMIT 1);", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which African countries have a smaller population than that of any country in Asia?", + "gold": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT min(population) FROM country WHERE Continent = \"Asia\")", + "pred": "SELECT name FROM country WHERE continent = 'Asia' ORDER BY population DESC LIMIT 1; SELECT name FROM country WHERE population < (SELECT population FROM country WHERE name = (SELECT name FROM country WHERE continent = 'Asia' ORDER BY population DESC LIMIT 1)) AND region = 'Africa';", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which Asian countries have a population that is larger than any country in Africa?", + "gold": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT max(population) FROM country WHERE Continent = \"Africa\")", + "pred": "SELECT name FROM country WHERE continent = 'Asia' AND population > (SELECT MAX (population) FROM country WHERE continent = 'Africa')", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the Asian countries which have a population larger than that of any country in Africa?", + "gold": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT min(population) FROM country WHERE Continent = \"Africa\")", + "pred": "SELECT name FROM country WHERE continent = \"Asia\" AND population > (SELECT MAX (population) FROM country WHERE continent = \"Africa\");", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the country codes for countries that do not speak English?", + "gold": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "pred": "SELECT Code FROM country WHERE Code NOT IN (SELECT T1.CountryCode FROM countrylanguage AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Language = \"English\")", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Return the country codes for countries that do not speak English.", + "gold": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "pred": "SELECT Code FROM country WHERE Code NOT IN (SELECT T1.CountryCode FROM countrylanguage AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Language = \"English\")", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the country codes of countries where people use languages other than English?", + "gold": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", + "pred": "SELECT T1.code2 FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code2 = T2.countrycode WHERE T2.language != \"English\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the country codes for countries in which people speak langauges that are not English.", + "gold": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", + "pred": "SELECT T1.code FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code = T2.countrycode WHERE T2.language != \"English\"", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the codes of the countries that do not speak English and whose government forms are not Republic?", + "gold": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "pred": "SELECT Code FROM country WHERE governmentform != 'Republic' AND code2 NOT IN (SELECT T2 FROM countrylanguage WHERE language = 'English')", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Return the codes of countries that do not speak English and do not have Republics for governments.", + "gold": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "pred": "SELECT Code FROM country WHERE GovernmentForm != 'Republic' AND Code NOT IN (SELECT T1.CountryCode FROM countrylanguage AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Language = 'English' AND T1.IsOfficial = 'T')", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which cities are in European countries where English is not the official language?", + "gold": "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')", + "pred": "SELECT T1.Name FROM city AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Continent = \"Europe\" AND T2.Name NOT IN (SELECT T3.Name FROM countrylanguage AS T3 JOIN country AS T4 ON T3.CountryCode = T4.Code WHERE T3.Language = \"English\" AND T3.IsOfficial = \"T\")", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the names of cities in Europe for which English is not the official language?", + "gold": "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')", + "pred": "SELECT name FROM city WHERE district IN (SELECT name FROM country WHERE continent = 'Europe' AND name NOT IN (SELECT T1.name FROM city AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.countrycode WHERE T2.language = 'English' AND T2.isOfficial = 'T'))", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which unique cities are in Asian countries where Chinese is the official language ?", + "gold": "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\"", + "pred": "SELECT T1.Name FROM city AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code JOIN countrylanguage AS T3 ON T2.Code = T3.CountryCode WHERE T3.Language = \"Chinese\" AND T2.Continent = \"Asia\" GROUP BY T1.Name;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Return the different names of cities that are in Asia and for which Chinese is the official language.", + "gold": "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\"", + "pred": "SELECT T1.Name FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Chinese\" AND T1.District = \"Asia\" GROUP BY T1.Name HAVING COUNT(*) = 1;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the name, independence year, and surface area of the country with the smallest population?", + "gold": "SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population LIMIT 1", + "pred": "SELECT name, indepyear, surfacearea FROM country ORDER BY population LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the name, year of independence, and surface area of the country that has the lowest population.", + "gold": "SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population LIMIT 1", + "pred": "SELECT name, IndepYear, SurfaceArea FROM country ORDER BY population LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the population, name and leader of the country with the largest area?", + "gold": "SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", + "pred": "SELECT population, name, leader FROM country ORDER BY surfacearea DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the name, population, and head of state for the country that has the largest area.", + "gold": "SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", + "pred": "SELECT name, population, headofstate FROM country ORDER BY surfacearea DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.", + "gold": "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", + "pred": "SELECT T1.name, COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code = T2.countrycode GROUP BY T1.name HAVING COUNT(*) >= 3", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the names of countries that speak more than 2 languages, as well as how many languages they speak?", + "gold": "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", + "pred": "SELECT T1.Name, COUNT(*) FROM countrylanguage AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code GROUP BY T1.CountryCode HAVING COUNT(*) > 2;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Find the number of cities in each district whose population is greater than the average population of cities?", + "gold": "SELECT count(*), District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", + "pred": "SELECT count(DISTINCT District), avg(Population) FROM city GROUP BY District HAVING avg(Population) > Population", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "How many cities in each district have a population that is above the average population across all cities?", + "gold": "SELECT count(*), District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", + "pred": "SELECT T1.District, COUNT(*) FROM city AS T1 JOIN country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Population > (SELECT avg(T2.Population) FROM city AS T3 JOIN country AS T4 ON T3.CountryCode = T4.Code WHERE T3.District = T1.District) GROUP BY T1.District;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Find the government form name and total population for each government form whose average life expectancy is longer than 72.", + "gold": "SELECT sum(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", + "pred": "SELECT governmentform, sum(population), avg(lifeexpectancy) FROM country WHERE avg(lifeexpectancy) > 72 GROUP BY governmentform", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?", + "gold": "SELECT sum(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", + "pred": "SELECT GovernmentForm, SUM(Population), AVG(LifeExpectancy) FROM country WHERE LifeExpectancy > 72 GROUP BY GovernmentForm;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?", + "gold": "SELECT sum(Population), avg(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", + "pred": "SELECT T2.Continent, AVG(T1.LifeExpectancy), SUM(T1.Population) FROM country AS T1 JOIN country AS T2 ON T1.Continent = T2.Continent WHERE T1.LifeExpectancy < 72 GROUP BY T2.Continent", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?", + "gold": "SELECT sum(Population), avg(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", + "pred": "SELECT T2.Continent, SUM(T1.Population), AVG(T1.LifeExpectancy) FROM country AS T1 JOIN country AS T2 ON T1.Code = T2.Code WHERE T2.LifeExpectancy < 72 GROUP BY T2.Continent", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the names and areas of countries with the top 5 largest area?", + "gold": "SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", + "pred": "SELECT name, surfacearea FROM country ORDER BY surfacearea DESC LIMIT 5", + "is_identical": true + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Return the names and surface areas of the 5 largest countries.", + "gold": "SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", + "pred": "SELECT name, surfacearea FROM country ORDER BY surfacearea DESC LIMIT 5", + "is_identical": true + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are names of countries with the top 3 largest population?", + "gold": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", + "pred": "SELECT name FROM country ORDER BY population DESC LIMIT 3", + "is_identical": true + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Return the names of the 3 most populated countries.", + "gold": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", + "pred": "SELECT name FROM country ORDER BY population DESC LIMIT 3", + "is_identical": true + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the names of the nations with the 3 lowest populations?", + "gold": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", + "pred": "SELECT name FROM country ORDER BY population LIMIT 3", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Return the names of the 3 countries with the fewest people.", + "gold": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", + "pred": "SELECT name FROM country ORDER BY population LIMIT 3", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "how many countries are in Asia?", + "gold": "SELECT count(*) FROM country WHERE continent = \"Asia\"", + "pred": "SELECT COUNT (DISTINCT name) FROM country WHERE continent = \"Asia\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Count the number of countries in Asia.", + "gold": "SELECT count(*) FROM country WHERE continent = \"Asia\"", + "pred": "SELECT COUNT(*) FROM country WHERE continent = \"Asia\";", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the names of the countries that are in the continent of Europe and have a population of 80000?", + "gold": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", + "pred": "SELECT name FROM country WHERE population = 80000 AND continent = 'Europe'", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the names of countries that are in Europe and have a population equal to 80000.", + "gold": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", + "pred": "SELECT name FROM country WHERE continent = 'Europe' AND population = 80000;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?", + "gold": "select sum(population), avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", + "pred": "SELECT SUM(population), avg(surfacearea) FROM country WHERE continent = \"North America\" AND surfacearea > 3000", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .", + "gold": "select sum(population), avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", + "pred": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE region = 'North America' AND surfacearea > 3000", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the cities whose population is between 160000 and 900000?", + "gold": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000", + "pred": "SELECT Name FROM city WHERE Population BETWEEN 160000 AND 900000;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Return the names of cities that have a population between 160000 and 900000 .", + "gold": "select name from city where population between 160000 and 900000", + "pred": "SELECT Name FROM city WHERE Population BETWEEN 160000 AND 900000;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Which language is spoken by the largest number of countries?", + "gold": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT Language FROM countrylanguage GROUP BY Language ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Give the language that is spoken in the most countries.", + "gold": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT Language FROM countrylanguage WHERE Percentage = (SELECT MAX (Percentage) FROM countrylanguage);", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the language spoken by the largest percentage of people in each country?", + "gold": "SELECT LANGUAGE, CountryCode, max(Percentage) FROM countrylanguage GROUP BY CountryCode", + "pred": "SELECT T1.name, T2.language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code = T2.countrycode GROUP BY T1.name ORDER BY max(T2.percentage) DESC;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?", + "gold": "SELECT LANGUAGE, CountryCode, max(Percentage) FROM countrylanguage GROUP BY CountryCode", + "pred": "SELECT T1.code2, T2.language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code2 = T2.countrycode GROUP BY T1.code2 ORDER BY max(T2.percentage) DESC;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", + "gold": "SELECT count(*), max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "pred": "SELECT SUM(T2.Population) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code = T2.countrycode WHERE T2.language = \"Spanish\" AND T2.percentage = (SELECT MAX(T3.percentage) FROM countrylanguage AS T3 WHERE T3.language = \"Spanish\")", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Count the number of countries for which Spanish is the predominantly spoken language.", + "gold": "SELECT count(*), max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "pred": "SELECT COUNT (DISTINCT t1.name) FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = \"Spanish\" AND t2.isOfficial = \"T\" AND t2.percentage > 50;", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", + "gold": "SELECT CountryCode, max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "pred": "SELECT T1.code FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code = T2.countrycode WHERE T2.language = \"Spanish\" AND T2.percentage = (SELECT MAX (T3.percentage) FROM countrylanguage AS T3 WHERE T3.language = \"Spanish\")", + "is_identical": false + }, + { + "context": "CREATE TABLE city (ID INTEGER, Name VARCHAR, CountryCode VARCHAR, District VARCHAR, Population INTEGER); CREATE TABLE country (Code VARCHAR, Name VARCHAR, Continent VARCHAR, Region VARCHAR, SurfaceArea INTEGER, IndepYear INTEGER, Population INTEGER, LifeExpectancy INTEGER, GNP INTEGER, GNPOld INTEGER, LocalName VARCHAR, GovernmentForm VARCHAR, HeadOfState VARCHAR, Capital INTEGER, Code2 VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR, Percentage INTEGER); CREATE TABLE sqlite_sequence (name VARCHAR, seq VARCHAR)", + "question": "Return the codes of countries for which Spanish is the predominantly spoken language.", + "gold": "SELECT CountryCode, max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "pred": "SELECT T1.code FROM country AS T1 JOIN countrylanguage AS T2 ON T1.code = T2.countrycode WHERE T2.language = \"Spanish\" GROUP BY T1.code ORDER BY COUNT(*) DESC LIMIT 1;", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "How many conductors are there?", + "gold": "SELECT count(*) FROM conductor", + "pred": "SELECT count(*) FROM conductor", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Count the number of conductors.", + "gold": "SELECT count(*) FROM conductor", + "pred": "SELECT count(*) FROM conductor", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "List the names of conductors in ascending order of age.", + "gold": "SELECT Name FROM conductor ORDER BY Age ASC", + "pred": "SELECT Name FROM conductor ORDER BY Age ASC", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the names of conductors, ordered by age?", + "gold": "SELECT Name FROM conductor ORDER BY Age ASC", + "pred": "SELECT Name FROM conductor ORDER BY Age", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the names of conductors whose nationalities are not \"USA\"?", + "gold": "SELECT Name FROM conductor WHERE Nationality != 'USA'", + "pred": "SELECT Name FROM conductor WHERE Nationality != \"USA\"", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Return the names of conductors that do not have the nationality \"USA\".", + "gold": "SELECT Name FROM conductor WHERE Nationality != 'USA'", + "pred": "SELECT Name FROM conductor WHERE Nationality != \"USA\"", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the record companies of orchestras in descending order of years in which they were founded?", + "gold": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", + "pred": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Return the record companies of orchestras, sorted descending by the years in which they were founded.", + "gold": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", + "pred": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What is the average attendance of shows?", + "gold": "SELECT avg(Attendance) FROM SHOW", + "pred": "SELECT avg(Attendance) FROM show", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Return the average attendance across all shows.", + "gold": "SELECT avg(Attendance) FROM SHOW", + "pred": "SELECT avg(Attendance) FROM show", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the maximum and minimum share of performances whose type is not \"Live final\".", + "gold": "SELECT max(SHARE), min(SHARE) FROM performance WHERE TYPE != \"Live final\"", + "pred": "SELECT max(share), min(share) FROM performance WHERE type != \"Live final\"", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Return the maximum and minimum shares for performances that do not have the type \"Live final\".", + "gold": "SELECT max(SHARE), min(SHARE) FROM performance WHERE TYPE != \"Live final\"", + "pred": "SELECT max(Share), min(Share) FROM performance WHERE Type != \"Live final\"", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "How many different nationalities do conductors have?", + "gold": "SELECT count(DISTINCT Nationality) FROM conductor", + "pred": "SELECT count(DISTINCT Nationality) FROM conductor", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Count the number of different nationalities of conductors.", + "gold": "SELECT count(DISTINCT Nationality) FROM conductor", + "pred": "SELECT count(DISTINCT Nationality) FROM conductor", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "List names of conductors in descending order of years of work.", + "gold": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", + "pred": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the names of conductors, sorted descending by the number of years they have worked?", + "gold": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", + "pred": "SELECT Name FROM conductor ORDER BY YEAR_OF_WORK DESC", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "List the name of the conductor with the most years of work.", + "gold": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", + "pred": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What is the name of the conductor who has worked the greatest number of years?", + "gold": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", + "pred": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Show the names of conductors and the orchestras they have conducted.", + "gold": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", + "pred": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the names of conductors as well as the corresonding orchestras that they have conducted?", + "gold": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", + "pred": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Show the names of conductors that have conducted more than one orchestras.", + "gold": "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", + "pred": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T1.Name HAVING COUNT(*) > 1", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the names of conductors who have conducted at more than one orchestra?", + "gold": "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", + "pred": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T1.Conductor_ID HAVING COUNT(*) > 1", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Show the name of the conductor that has conducted the most number of orchestras.", + "gold": "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", + "pred": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T1.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What is the name of the conductor who has conducted the most orchestras?", + "gold": "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", + "pred": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T1.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Please show the name of the conductor that has conducted orchestras founded after 2008.", + "gold": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", + "pred": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE T2.Year_of_Founded > 2008", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the names of conductors who have conducted orchestras founded after the year 2008?", + "gold": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", + "pred": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE T2.Year_of_Founded > 2008", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Please show the different record companies and the corresponding number of orchestras.", + "gold": "SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company", + "pred": "SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "How many orchestras does each record company manage?", + "gold": "SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company", + "pred": "SELECT COUNT(*), Record_Company FROM orchestra GROUP BY Record_Company", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Please show the record formats of orchestras in ascending order of count.", + "gold": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", + "pred": "SELECT Major_Record_Format FROM orchestra ORDER BY COUNT(*) ASC", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the major record formats of orchestras, sorted by their frequency?", + "gold": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", + "pred": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) DESC", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "List the record company shared by the most number of orchestras.", + "gold": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", + "pred": "SELECT T1.Record_Company FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T1.Record_Company ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What is the record company used by the greatest number of orchestras?", + "gold": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", + "pred": "SELECT T1.Record_Company FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T1.Record_Company ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "List the names of orchestras that have no performance.", + "gold": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", + "pred": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the orchestras that do not have any performances?", + "gold": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", + "pred": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", + "is_identical": true + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Show the record companies shared by orchestras founded before 2003 and after 2003.", + "gold": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", + "pred": "SELECT T1.Record_Company FROM orchestra AS T1 JOIN orchestra AS T2 ON T1.Record_Company = T2.Record_Company WHERE T1.Year_of_Founded < 2003 AND T2.Year_of_Founded > 2003", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?", + "gold": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", + "pred": "SELECT DISTINCT T1.Record_Company FROM orchestra AS T1 JOIN orchestra AS T2 ON T1.Record_Company = T2.Record_Company WHERE T1.Year_of_Founded < 2003 AND T2.Year_of_Founded > 2003", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Find the number of orchestras whose record format is \"CD\" or \"DVD\".", + "gold": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", + "pred": "SELECT count(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Count the number of orchestras that have CD or DVD as their record format.", + "gold": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", + "pred": "SELECT count(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "Show the years in which orchestras that have given more than one performance are founded.", + "gold": "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", + "pred": "SELECT YEAR_OF_FOUNDED FROM orchestra GROUP BY YEAR_OF_FOUNDED HAVING COUNT(*) > 1", + "is_identical": false + }, + { + "context": "CREATE TABLE conductor (Conductor_ID INTEGER, Name VARCHAR, Age INTEGER, Nationality VARCHAR, Year_of_Work INTEGER); CREATE TABLE orchestra (Orchestra_ID INTEGER, Orchestra VARCHAR, Conductor_ID INTEGER, Record_Company VARCHAR, Year_of_Founded INTEGER, Major_Record_Format VARCHAR); CREATE TABLE performance (Performance_ID INTEGER, Orchestra_ID INTEGER, Type VARCHAR, Date VARCHAR, Official_ratings_(millions) INTEGER, Weekly_rank VARCHAR, Share VARCHAR); CREATE TABLE show (Show_ID INTEGER, Performance_ID INTEGER, If_first_show BOOLEAN, Result VARCHAR, Attendance INTEGER)", + "question": "What are years of founding for orchestras that have had more than a single performance?", + "gold": "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", + "pred": "SELECT YEAR_OF_FOUNDED FROM orchestra WHERE ORCHESTRA_ID IN (SELECT Orchestra_ID FROM performance GROUP BY Orchestra_ID HAVING COUNT(*) > 1)", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "How many high schoolers are there?", + "gold": "SELECT count(*) FROM Highschooler", + "pred": "SELECT count(*) FROM Highschooler", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Count the number of high schoolers.", + "gold": "SELECT count(*) FROM Highschooler", + "pred": "SELECT count(*) FROM Highschooler", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the names and grades of each high schooler.", + "gold": "SELECT name, grade FROM Highschooler", + "pred": "SELECT name, grade FROM Highschooler", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the names and grades for each high schooler?", + "gold": "SELECT name, grade FROM Highschooler", + "pred": "SELECT name, grade FROM Highschooler", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show all the grades of the high schoolers.", + "gold": "SELECT grade FROM Highschooler", + "pred": "SELECT grade FROM Highschooler", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What is the grade of each high schooler?", + "gold": "SELECT grade FROM Highschooler", + "pred": "SELECT grade FROM Highschooler", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What grade is Kyle in?", + "gold": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", + "pred": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Return the grade for the high schooler named Kyle.", + "gold": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", + "pred": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the names of all high schoolers in grade 10.", + "gold": "SELECT name FROM Highschooler WHERE grade = 10", + "pred": "SELECT name FROM Highschooler WHERE grade = 10", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the names of all high schoolers in grade 10?", + "gold": "SELECT name FROM Highschooler WHERE grade = 10", + "pred": "SELECT name FROM Highschooler WHERE grade = 10", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the ID of the high schooler named Kyle.", + "gold": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"", + "pred": "SELECT id FROM Highschooler WHERE name = \"Kyle\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What is Kyle's id?", + "gold": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"", + "pred": "SELECT student_id FROM Friend WHERE friend_id = 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "How many high schoolers are there in grade 9 or 10?", + "gold": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", + "pred": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Count the number of high schoolers in grades 9 or 10.", + "gold": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", + "pred": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the number of high schoolers for each grade.", + "gold": "SELECT grade, count(*) FROM Highschooler GROUP BY grade", + "pred": "SELECT grade, count(*) FROM Highschooler GROUP BY grade", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "How many high schoolers are in each grade?", + "gold": "SELECT grade, count(*) FROM Highschooler GROUP BY grade", + "pred": "SELECT count(*), grade FROM Highschooler GROUP BY grade", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Which grade has the most high schoolers?", + "gold": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Return the grade that has the greatest number of high schoolers.", + "gold": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", + "pred": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show me all grades that have at least 4 students.", + "gold": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", + "pred": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Which grades have 4 or more high schoolers?", + "gold": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", + "pred": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the student IDs and numbers of friends corresponding to each.", + "gold": "SELECT student_id, count(*) FROM Friend GROUP BY student_id", + "pred": "SELECT student_id, friend_id FROM Friend", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "How many friends does each student have?", + "gold": "SELECT student_id, count(*) FROM Friend GROUP BY student_id", + "pred": "SELECT count(DISTINCT t1.student_id), t1.student_id FROM Friend AS t1 JOIN Highschooler AS t2 ON t1.student_id = t2.id GROUP BY t1.student_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the names of high school students and their corresponding number of friends.", + "gold": "SELECT T2.name, count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "pred": "SELECT T1.name, count(*) FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id GROUP BY T1.id", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the names of the high schoolers and how many friends does each have?", + "gold": "SELECT T2.name, count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "pred": "SELECT T1.name, count(*) FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id GROUP BY T1.id", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What is the name of the high schooler who has the greatest number of friends?", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Return the name of the high school student with the most friends.", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the names of high schoolers who have at least 3 friends.", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id GROUP BY T1.id HAVING count(*) >= 3", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the names of high schoolers who have 3 or more friends?", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id GROUP BY T1.id HAVING count(*) >= 3", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the names of all of the high schooler Kyle's friends.", + "gold": "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\"", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.friend_id WHERE T2.student_id = (SELECT id FROM Highschooler WHERE name = \"Kyle\")", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Return the names of friends of the high school student Kyle.", + "gold": "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\"", + "pred": "SELECT T1.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "How many friends does the high school student Kyle have?", + "gold": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "pred": "SELECT count(*) FROM Friend WHERE student_id = (SELECT id FROM Highschooler WHERE name = \"Kyle\")", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Count the number of friends Kyle has.", + "gold": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "pred": "SELECT count(*) FROM Friend WHERE student_id = 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show ids of all students who do not have any friends.", + "gold": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", + "pred": "SELECT student_id FROM Friend", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the ids of high school students who do not have friends?", + "gold": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", + "pred": "SELECT T1.id FROM Highschooler AS T1 WHERE T1.grade = 2 EXCEPT SELECT T2.student_id FROM Friend AS T2", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show names of all high school students who do not have any friends.", + "gold": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", + "pred": "SELECT name FROM Highschooler WHERE id NOT IN (SELECT student_id FROM Friend)", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the names of students who have no friends?", + "gold": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", + "pred": "SELECT T1.name FROM Highschooler AS T1 WHERE T1.id NOT IN (SELECT student_id FROM Friend)", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the ids of high schoolers who have friends and are also liked by someone else.", + "gold": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", + "pred": "SELECT T1.id FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id JOIN Likes AS T3 ON T1.id = T3.student_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the ids of students who both have friends and are liked?", + "gold": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", + "pred": "SELECT student_id FROM Friend INTERSECT SELECT student_id FROM Likes", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show name of all students who have some friends and also are liked by someone else.", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id JOIN Likes AS T3 ON T1.id = T3.student_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the names of high schoolers who both have friends and are liked?", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id JOIN Likes AS T3 ON T1.id = T3.student_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Count the number of likes for each student id.", + "gold": "SELECT student_id, count(*) FROM Likes GROUP BY student_id", + "pred": "SELECT student_id, count(*) FROM Likes GROUP BY student_id", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "How many likes correspond to each student id?", + "gold": "SELECT student_id, count(*) FROM Likes GROUP BY student_id", + "pred": "SELECT student_id, count(*) FROM Likes GROUP BY student_id", + "is_identical": true + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the names of high schoolers who have likes, and numbers of likes for each.", + "gold": "SELECT T2.name, count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "pred": "SELECT T1.name, count(*) FROM Highschooler AS T1 JOIN Likes AS T2 ON T1.id = T2.student_id GROUP BY T1.id", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the names of high schoolers who have likes, and how many likes does each have?", + "gold": "SELECT T2.name, count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "pred": "SELECT T1.name, count(*) FROM Highschooler AS T1 JOIN Likes AS T2 ON T1.id = T2.student_id GROUP BY T1.name", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What is the name of the high schooler who has the greatest number of likes?", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Likes AS T2 ON T1.id = T2.student_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Give the name of the student with the most likes.", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Likes AS T2 ON T1.id = T2.student_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the names of students who have at least 2 likes.", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Likes AS T2 ON T1.id = T2.student_id GROUP BY T1.name HAVING count(*) >= 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the names of students who have 2 or more likes?", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Likes AS T2 ON T1.id = T2.student_id GROUP BY T1.id HAVING count(*) >= 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id WHERE T1.grade > 5 GROUP BY T1.name HAVING COUNT(*) >= 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?", + "gold": "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", + "pred": "SELECT T1.name FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id GROUP BY T1.id HAVING sum(T2.grade) > 5 AND count(*) > 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "How many likes does Kyle have?", + "gold": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "pred": "SELECT count(*) FROM Likes WHERE student_id = 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Return the number of likes that the high schooler named Kyle has.", + "gold": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "pred": "SELECT count(*) FROM Likes WHERE student_id = (SELECT id FROM Highschooler WHERE name = \"Kyle\")", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Find the average grade of all students who have some friends.", + "gold": "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)", + "pred": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT student_id FROM Friend)", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What is the average grade of students who have friends?", + "gold": "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)", + "pred": "SELECT avg(grade) FROM Highschooler AS T1 JOIN Friend AS T2 ON T1.id = T2.student_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "Find the minimum grade of students who have no friends.", + "gold": "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)", + "pred": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT student_id FROM Friend)", + "is_identical": false + }, + { + "context": "CREATE TABLE Friend (student_id INTEGER, friend_id INTEGER); CREATE TABLE Highschooler (ID INTEGER, name VARCHAR, grade INTEGER); CREATE TABLE Likes (student_id INTEGER, liked_id INTEGER)", + "question": "What is the lowest grade of students who do not have any friends?", + "gold": "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)", + "pred": "SELECT T1.grade FROM Highschooler AS T1 WHERE T1.id NOT IN (SELECT T2.student_id FROM Friend AS T2)", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which states have both owners and professionals living there?", + "gold": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", + "pred": "SELECT T1.state FROM Owners AS T1 JOIN Professionals AS T2 ON T1.state = T2.state GROUP BY T1.state HAVING count(*) > 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the states where both owners and professionals live.", + "gold": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", + "pred": "SELECT T1.state FROM Owners AS T1 JOIN Professionals AS T2 ON T1.state = T2.state", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What is the average age of the dogs who have gone through any treatments?", + "gold": "SELECT avg(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments)", + "pred": "SELECT avg(age) FROM dogs WHERE dog_id IN (SELECT dog_id FROM treatments)", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the average age of the dogs who went through treatments.", + "gold": "SELECT avg(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments)", + "pred": "SELECT avg(age) FROM dogs AS T1 JOIN treatments AS T2 ON T1.dog_id = T2.dog_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.", + "gold": "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", + "pred": "SELECT T1.cell_number, T1.last_name FROM OWNERS AS T1 JOIN TREATMENTS AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id HAVING count(*) > 2 UNION SELECT T1.cell_number, T1.last_name FROM OWNERS AS T1 JOIN TREATMENTS AS T2 ON T1.owner_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.", + "gold": "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", + "pred": "SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' OR (SELECT COUNT(*) FROM Treatments WHERE professional_id = T1.professional_id) > 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .", + "gold": "select name from dogs where dog_id not in (select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000)", + "pred": "SELECT T1.name FROM dogs AS T1 JOIN treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T2.cost_of_treatment < 1000", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?", + "gold": "select name from dogs where dog_id not in (select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000)", + "pred": "SELECT T1.name FROM DOGS AS T1 JOIN TREATMENTS AS T2 ON T1.dog_id = T2.dog_id JOIN OWNERS AS T3 ON T1.owner_id = T3.owner_id WHERE T2.cost_of_treatment <= 1000", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which first names are used for professionals or owners but are not used as dog names?", + "gold": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", + "pred": "SELECT T1.first_name FROM Owners AS T1 JOIN Professionals AS T2 ON T1.owner_id = T2.owner_id EXCEPT SELECT T1.first_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the first names that are used for professionals or owners but are not used as dog names.", + "gold": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", + "pred": "SELECT T1.first_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.abandoned_yn = \"N\" EXCEPT SELECT T1.first_name FROM Professionals AS T1 JOIN Dogs AS T2 ON T1.professional_id = T2.professional_id WHERE T2.abandoned_yn = \"N\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.", + "gold": "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", + "pred": "SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 WHERE T1.professional_id NOT IN (SELECT professional_id FROM Treatments AS T2 JOIN Dogs AS T3 ON T2.dog_id = T3.dog_id)", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Give me the id, role and email of the professionals who did not perform any treatment on dogs.", + "gold": "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", + "pred": "SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 WHERE T1.role_code = 'Veterinarian' EXCEPT SELECT T2.professional_id, T2.role_code, T2.email_address FROM Treatments AS T2 JOIN Professionals AS T1 ON T2.professional_id = T1.professional_id WHERE T", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which owner owns the most dogs? List the owner id, first name and last name.", + "gold": "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", + "pred": "SELECT T1.owner_id, T1.first_name, T1.last_name FROM OWNERS AS T1 JOIN DOGS AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Return the owner id, first name and last name of the owner who has the most dogs.", + "gold": "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", + "pred": "SELECT T1.owner_id, T1.first_name, T1.last_name FROM OWNERS AS T1 JOIN DOGS AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are the id, role, and first name of the professionals who have performed two or more treatments?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What is the name of the breed with the most dogs?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which breed do the most dogs have? Give me the breed name.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", + "gold": "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", + "pred": "SELECT T1.owner_id, T1.last_name FROM OWNERS AS T1 JOIN TREATMENTS AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY sum(T2.cost_of_treatment) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", + "gold": "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", + "pred": "SELECT T1.owner_id, T2.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 SUM(T3.cost_of_treatment) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What is the description of the treatment type that costs the least money in total?", + "gold": "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", + "pred": "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_description ORDER BY SUM(T2.cost_of_treatment) LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Give me the description of the treatment type whose total cost is the lowest.", + "gold": "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", + "pred": "SELECT 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(T2.cost_of_treatment) LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", + "gold": "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", + "pred": "SELECT T1.owner_id, T1.zip_code, SUM(T2.charge_amount) FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY SUM(T2.charge_amount) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", + "gold": "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", + "pred": "SELECT T1.owner_id, T1.zip_code, sum(T2.charge_amount) FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY sum(T2.charge_amount) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", + "gold": "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", + "pred": "SELECT T1.cell_number, T1.professional_id FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the id and cell phone of the professionals who operate two or more types of treatments.", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are the first name and last name of the professionals who have done treatment with cost below average?", + "gold": "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)", + "pred": "SELECT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id WHERE T2.cost_of_treatment < (SELECT avg(cost_of_treatment) FROM Treatments)", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.", + "gold": "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)", + "pred": "SELECT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id WHERE T2.cost_of_treatment < (SELECT avg(cost_of_treatment) FROM Treatments)", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List the date of each treatment, together with the first name of the professional who operated it.", + "gold": "SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", + "pred": "SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are the date and the operating professional's first name of each treatment?", + "gold": "SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", + "pred": "SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List the cost of each treatment and the corresponding treatment type description.", + "gold": "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", + "pred": "SELECT T1.treatment_type_description, T2.cost_of_treatment FROM Treatment_Types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are the cost and treatment type description of each treatment?", + "gold": "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", + "pred": "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", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List each owner's first name, last name, and the size of his for her dog.", + "gold": "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", + "pred": "SELECT T1.first_name, T1.last_name, T2.size_description FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are each owner's first name, last name, and the size of their dog?", + "gold": "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", + "pred": "SELECT T1.first_name, T1.last_name, T2.size_description, T3.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Sizes AS T3 ON T2.size_code = T3.size_code", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List pairs of the owner's first name and the dogs's name.", + "gold": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "pred": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are each owner's first name and their dogs's name?", + "gold": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "pred": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List the names of the dogs of the rarest breed and the treatment dates of them.", + "gold": "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)", + "pred": "SELECT T1.name, T2.date_of_treatment FROM DOGS AS T1 JOIN TREATMENTS AS T2 ON T1.dog_id = T2.dog_id GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which dogs are of the rarest breed? Show their names and treatment dates.", + "gold": "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)", + "pred": "SELECT T1.name, T2.date_of_treatment FROM dogs AS T1 JOIN treatments AS T2 ON T1.dog_id = T2.dog_id GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.", + "gold": "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'", + "pred": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = \"VA\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the first names of owners living in Virginia and the names of dogs they own.", + "gold": "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'", + "pred": "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\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are the arriving date and the departing date of the dogs who have gone through a treatment?", + "gold": "SELECT DISTINCT T1.date_arrived, T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", + "pred": "SELECT T1.date_arrived, T1.date_departed FROM DOGS AS T1 JOIN TREATMENTS AS T2 ON T1.dog_id = T2.dog_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the arriving date and the departing date of the dogs that received a treatment.", + "gold": "SELECT DISTINCT T1.date_arrived, T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", + "pred": "SELECT T1.date_arrived, T1.date_departed FROM DOGS AS T1 JOIN TREATMENTS AS T2 ON T1.dog_id = T2.dog_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List the last name of the owner owning the youngest dog.", + "gold": "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)", + "pred": "SELECT T1.last_name FROM OWNERS AS T1 JOIN DOGS AS T2 ON T1.owner_id = T2.owner_id ORDER BY T2.age LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Who owns the youngest dog? Give me his or her last name.", + "gold": "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)", + "pred": "SELECT T1.last_name FROM OWNERS AS T1 JOIN DOGS AS T2 ON T1.owner_id = T2.owner_id ORDER BY T2.age ASC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.", + "gold": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", + "pred": "SELECT email_address FROM Owners WHERE state = \"Hawaii\" OR state = \"Wisconsin\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?", + "gold": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", + "pred": "SELECT email_address FROM Professionals WHERE state = \"Hawaii\" OR state = \"Wisconsin\"", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are the arriving date and the departing date of all the dogs?", + "gold": "SELECT date_arrived, date_departed FROM Dogs", + "pred": "SELECT date_arrived, date_departed FROM DOGS", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List the arrival date and the departure date for all the dogs.", + "gold": "SELECT date_arrived, date_departed FROM Dogs", + "pred": "SELECT date_arrived, date_departed FROM DOGS", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "How many dogs went through any treatments?", + "gold": "SELECT count(DISTINCT dog_id) FROM Treatments", + "pred": "SELECT count(*) FROM Treatments", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Count the number of dogs that went through a treatment.", + "gold": "SELECT count(DISTINCT dog_id) FROM Treatments", + "pred": "SELECT count(*) FROM Treatments AS T1 JOIN Dogs AS T2 ON T1.dog_id = T2.dog_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "How many professionals have performed any treatment to dogs?", + "gold": "SELECT count(DISTINCT professional_id) FROM Treatments", + "pred": "SELECT count(*) FROM TREATMENTS AS T1 JOIN PROFESSIONALS AS T2 ON T1.professional_id = T2.professional_id JOIN DOGS AS T3 ON T1.dog_id = T3.dog_id WHERE T3.breed_code = \"dog\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the number of professionals who have ever treated dogs.", + "gold": "SELECT count(DISTINCT professional_id) FROM Treatments", + "pred": "SELECT count(*) FROM professionals AS T1 JOIN treatments AS T2 ON T1.professional_id = T2.professional_id JOIN dogs AS T3 ON T2.dog_id = T3.dog_id WHERE T3.breed_code = \"dog\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.", + "gold": "SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'", + "pred": "SELECT T1.role_code, T1.first_name, T1.street, T1.city, T1.state FROM Professionals AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id WHERE T2.city LIKE '%West%'", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.", + "gold": "SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'", + "pred": "SELECT T1.role_code, T1.street, T1.city, T1.state FROM Professionals AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id WHERE T2.city LIKE '%West%'", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.", + "gold": "SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%'", + "pred": "SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%'", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.", + "gold": "SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%'", + "pred": "SELECT T1.first_name, T1.last_name, T1.email_address FROM Owners AS T1 JOIN Cities AS T2 ON T1.city = T2.city WHERE T2.state LIKE '%North%'", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "How many dogs have an age below the average?", + "gold": "SELECT count(*) FROM Dogs WHERE age < (SELECT avg(age) FROM Dogs)", + "pred": "SELECT count(*) FROM dogs WHERE age < (SELECT avg(age) FROM dogs)", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Count the number of dogs of an age below the average.", + "gold": "SELECT count(*) FROM Dogs WHERE age < (SELECT avg(age) FROM Dogs)", + "pred": "SELECT count(*) FROM DOGS WHERE age < (SELECT avg(age) FROM DOGS)", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "How much does the most recent treatment cost?", + "gold": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", + "pred": "SELECT MAX(cost_of_treatment) FROM Treatments", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Show me the cost of the most recently performed treatment.", + "gold": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", + "pred": "SELECT cost_of_treatment FROM treatments ORDER BY date_of_treatment DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "How many dogs have not gone through any treatment?", + "gold": "SELECT count(*) FROM Dogs WHERE dog_id NOT IN (SELECT dog_id FROM Treatments)", + "pred": "SELECT count(*) FROM dogs WHERE dog_id NOT IN (SELECT dog_id FROM treatments)", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Tell me the number of dogs that have not received any treatment .", + "gold": "select count(*) from dogs where dog_id not in (select dog_id from treatments)", + "pred": "SELECT count(*) FROM DOGS WHERE dog_id NOT IN (SELECT dog_id FROM treatments)", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "How many owners temporarily do not have any dogs?", + "gold": "SELECT count(*) FROM Owners WHERE owner_id NOT IN (SELECT owner_id FROM Dogs)", + "pred": "SELECT count(*) FROM Owners WHERE owner_id NOT IN (SELECT owner_id FROM dogs)", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the number of owners who do not own any dogs at this moment.", + "gold": "SELECT count(*) FROM Owners WHERE owner_id NOT IN (SELECT owner_id FROM Dogs)", + "pred": "SELECT count(*) FROM Owners WHERE owner_id NOT IN (SELECT owner_id FROM Dogs)", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "How many professionals did not operate any treatment on dogs?", + "gold": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN (SELECT professional_id FROM Treatments)", + "pred": "SELECT count(*) FROM Professionals AS T1 WHERE T1.role_code = \"Veterinarian\" EXCEPT SELECT count(*) FROM TREATMENTS AS T2 JOIN Professionals AS T1 ON T2.professional_id = T1.professional_id WHERE T2.treatment_type_code = \"Dog\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the number of professionals who have not treated any dogs.", + "gold": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN (SELECT professional_id FROM Treatments)", + "pred": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN (SELECT professional_id FROM Treatments)", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", + "gold": "SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1", + "pred": "SELECT T1.name, T1.age, T1.weight FROM DOGS AS T1 JOIN OWNERS AS T2 ON T1.owner_id = T2.owner_id WHERE T2.abandoned_yn = 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.", + "gold": "SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1", + "pred": "SELECT T1.name, T1.age, T1.weight FROM DOGS AS T1 JOIN OWNERS AS T2 ON T1.owner_id = T2.owner_id WHERE T2.abandoned_yn = 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What is the average age of all the dogs?", + "gold": "SELECT avg(age) FROM Dogs", + "pred": "SELECT avg(age) FROM DOGS", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Compute the average age of all the dogs.", + "gold": "SELECT avg(age) FROM Dogs", + "pred": "SELECT avg(age) FROM DOGS", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What is the age of the oldest dog?", + "gold": "SELECT max(age) FROM Dogs", + "pred": "SELECT max(age) FROM DOGS", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Tell me the age of the oldest dog.", + "gold": "SELECT max(age) FROM Dogs", + "pred": "SELECT max(age) FROM DOGS", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "How much does each charge type costs? List both charge type and amount.", + "gold": "SELECT charge_type, charge_amount FROM Charges", + "pred": "SELECT charge_type, charge_amount FROM Charges;", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List each charge type and its amount.", + "gold": "SELECT charge_type, charge_amount FROM Charges", + "pred": "SELECT charge_type, charge_amount FROM Charges", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "How much does the most expensive charge type costs?", + "gold": "SELECT max(charge_amount) FROM Charges", + "pred": "SELECT MAX(charge_amount) FROM Charges", + "is_identical": true + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What is the charge amount of the most expensive charge type?", + "gold": "SELECT max(charge_amount) FROM Charges", + "pred": "SELECT charge_amount FROM Charges ORDER BY charge_amount DESC LIMIT 1", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List the email, cell phone and home phone of all the professionals.", + "gold": "SELECT email_address, cell_number, home_phone FROM professionals", + "pred": "SELECT email_address, home_phone, cell_number FROM Professionals", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are the email, cell phone and home phone of each professional?", + "gold": "SELECT email_address, cell_number, home_phone FROM professionals", + "pred": "SELECT email_address, home_phone, cell_number FROM Professionals", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are all the possible breed type and size type combinations?", + "gold": "SELECT DISTINCT breed_code, size_code FROM dogs", + "pred": "SELECT T1.breed_code, T2.size_code FROM Breeds AS T1 JOIN Sizes AS T2 ON T1.breed_code = T2.size_code", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "Find the distinct breed type and size type combinations for dogs.", + "gold": "SELECT DISTINCT breed_code, size_code FROM dogs", + "pred": "SELECT DISTINCT T1.breed_name, T2.size_description FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code JOIN Sizes AS T3 ON T2.size_code = T3.size_code", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "List the first name of all the professionals along with the description of the treatment they have done.", + "gold": "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", + "pred": "SELECT T1.first_name, T2.treatment_type_description FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", + "is_identical": false + }, + { + "context": "CREATE TABLE Breeds (breed_code VARCHAR, breed_name VARCHAR); CREATE TABLE Charges (charge_id INTEGER, charge_type VARCHAR, charge_amount INTEGER); CREATE TABLE Dogs (dog_id INTEGER, owner_id INTEGER, abandoned_yn VARCHAR, breed_code VARCHAR, size_code VARCHAR, name VARCHAR, age VARCHAR, date_of_birth DATETIME, gender VARCHAR, weight VARCHAR, date_arrived DATETIME, date_adopted DATETIME, date_departed DATETIME); CREATE TABLE Owners (owner_id INTEGER, first_name VARCHAR, last_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id INTEGER, role_code VARCHAR, first_name VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR, zip_code VARCHAR, last_name VARCHAR, email_address VARCHAR, home_phone VARCHAR, cell_number VARCHAR); CREATE TABLE Sizes (size_code VARCHAR, size_description VARCHAR); CREATE TABLE Treatment_Types (treatment_type_code VARCHAR, treatment_type_description VARCHAR); CREATE TABLE Treatments (treatment_id INTEGER, dog_id INTEGER, professional_id INTEGER, treatment_type_code VARCHAR, date_of_treatment DATETIME, cost_of_treatment INTEGER)", + "question": "What are each professional's first name and description of the treatment they have performed?", + "gold": "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", + "pred": "SELECT T1.first_name, T2.treatment_type_description FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "How many singers are there?", + "gold": "SELECT count(*) FROM singer", + "pred": "SELECT count(*) FROM singer", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What is the count of singers?", + "gold": "SELECT count(*) FROM singer", + "pred": "SELECT count(*) FROM singer", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "List the name of singers in ascending order of net worth.", + "gold": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", + "pred": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What are the names of singers ordered by ascending net worth?", + "gold": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", + "pred": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What are the birth year and citizenship of singers?", + "gold": "SELECT Birth_Year, Citizenship FROM singer", + "pred": "SELECT Birth_Year, Citizenship FROM singer", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What are the birth years and citizenships of the singers?", + "gold": "SELECT Birth_Year, Citizenship FROM singer", + "pred": "SELECT Birth_Year, Citizenship FROM singer", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "List the name of singers whose citizenship is not \"France\".", + "gold": "SELECT Name FROM singer WHERE Citizenship != \"France\"", + "pred": "SELECT Name FROM singer WHERE citizenship != \"France\"", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What are the names of the singers who are not French citizens?", + "gold": "SELECT Name FROM singer WHERE Citizenship != \"France\"", + "pred": "SELECT name FROM singer WHERE citizenship != 'French'", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "Show the name of singers whose birth year is either 1948 or 1949?", + "gold": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", + "pred": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What are the names of the singers whose birth years are either 1948 or 1949?", + "gold": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", + "pred": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What is the name of the singer with the largest net worth?", + "gold": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", + "pred": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What is the name of the singer who is worth the most?", + "gold": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", + "pred": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "Show different citizenship of singers and the number of singers of each citizenship.", + "gold": "SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship", + "pred": "SELECT citizenship, count(*) FROM singer GROUP BY citizenship", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "For each citizenship, how many singers are from that country?", + "gold": "SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship", + "pred": "SELECT citizenship, COUNT(*) FROM singer GROUP BY citizenship", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "Please show the most common citizenship of singers.", + "gold": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1", + "pred": "SELECT citizenship FROM singer GROUP BY citizenship ORDER BY count(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What is the most common singer citizenship ?", + "gold": "select citizenship from singer group by citizenship order by count(*) desc limit 1", + "pred": "SELECT citizenship FROM singer GROUP BY citizenship ORDER BY COUNT(*) DESC LIMIT 1", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "Show different citizenships and the maximum net worth of singers of each citizenship.", + "gold": "SELECT Citizenship, max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", + "pred": "SELECT citizenship, max(net_worth_millions) FROM singer GROUP BY citizenship", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "For each citizenship, what is the maximum net worth?", + "gold": "SELECT Citizenship, max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", + "pred": "SELECT citizenship, max(net_worth_millions) FROM singer GROUP BY citizenship", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "Show titles of songs and names of singers.", + "gold": "SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", + "pred": "SELECT T1.Title, T2.Name FROM song AS T1 JOIN singer AS T2 ON T1.Singer_ID = T2.Singer_ID", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What are the song titles and singer names?", + "gold": "SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", + "pred": "SELECT T1.Title, T2.Name FROM song AS T1 JOIN singer AS T2 ON T1.Singer_ID = T2.Singer_ID", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "Show distinct names of singers that have songs with sales more than 300000.", + "gold": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", + "pred": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "what are the different names of the singers that have sales more than 300000?", + "gold": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", + "pred": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "Show the names of singers that have more than one song.", + "gold": "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", + "pred": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Singer_ID HAVING COUNT(*) > 1", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What are the names of the singers that have more than one songs?", + "gold": "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", + "pred": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Singer_ID HAVING COUNT(*) > 1", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "Show the names of singers and the total sales of their songs.", + "gold": "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", + "pred": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Singer_ID", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "For each singer name, what is the total sales for their songs?", + "gold": "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", + "pred": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Singer_ID", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "List the name of singers that do not have any song.", + "gold": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", + "pred": "SELECT T1.Name FROM singer AS T1 WHERE T1.Singer_ID NOT IN (SELECT T2.Singer_ID FROM song AS T2)", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What is the sname of every sing that does not have any song?", + "gold": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", + "pred": "SELECT T1.Name FROM singer AS T1 WHERE T1.Singer_ID NOT IN (SELECT T2.Singer_ID FROM song AS T2)", + "is_identical": false + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "Show the citizenship shared by singers with birth year before 1945 and after 1955.", + "gold": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", + "pred": "SELECT citizenship FROM singer WHERE birth_year < 1945 INTERSECT SELECT citizenship FROM singer WHERE birth_year > 1955", + "is_identical": true + }, + { + "context": "CREATE TABLE singer (Singer_ID INTEGER, Name VARCHAR, Birth_Year INTEGER, Net_Worth_Millions INTEGER, Citizenship VARCHAR); CREATE TABLE song (Song_ID INTEGER, Title VARCHAR, Singer_ID INTEGER, Sales INTEGER, Highest_Position INTEGER)", + "question": "What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?", + "gold": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", + "pred": "SELECT citizenship FROM singer WHERE birth_year < 1945 INTERSECT SELECT citizenship FROM singer WHERE birth_year > 1955", + "is_identical": true + }, + { + "context": "CREATE TABLE Other_Available_Features (feature_id INTEGER, feature_type_code VARCHAR, feature_name VARCHAR, feature_description VARCHAR); CREATE TABLE Other_Property_Features (property_id INTEGER, feature_id INTEGER, property_feature_description VARCHAR); CREATE TABLE Properties (property_id INTEGER, property_type_code VARCHAR, date_on_market DATETIME, date_sold DATETIME, property_name VARCHAR, property_address VARCHAR, room_count INTEGER, vendor_requested_price INTEGER, buyer_offered_price INTEGER, agreed_selling_price INTEGER, apt_feature_1 VARCHAR, apt_feature_2 VARCHAR, apt_feature_3 VARCHAR, fld_feature_1 VARCHAR, fld_feature_2 VARCHAR, fld_feature_3 VARCHAR, hse_feature_1 VARCHAR, hse_feature_2 VARCHAR, hse_feature_3 VARCHAR, oth_feature_1 VARCHAR, oth_feature_2 VARCHAR, oth_feature_3 VARCHAR, shp_feature_1 VARCHAR, shp_feature_2 VARCHAR, shp_feature_3 VARCHAR, other_property_details VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_code VARCHAR, feature_type_name VARCHAR); CREATE TABLE Ref_Property_Types (property_type_code VARCHAR, property_type_description VARCHAR)", + "question": "How many available features are there in total?", + "gold": "SELECT count(*) FROM Other_Available_Features", + "pred": "SELECT COUNT(*) FROM Other_Available_Features", + "is_identical": true + }, + { + "context": "CREATE TABLE Other_Available_Features (feature_id INTEGER, feature_type_code VARCHAR, feature_name VARCHAR, feature_description VARCHAR); CREATE TABLE Other_Property_Features (property_id INTEGER, feature_id INTEGER, property_feature_description VARCHAR); CREATE TABLE Properties (property_id INTEGER, property_type_code VARCHAR, date_on_market DATETIME, date_sold DATETIME, property_name VARCHAR, property_address VARCHAR, room_count INTEGER, vendor_requested_price INTEGER, buyer_offered_price INTEGER, agreed_selling_price INTEGER, apt_feature_1 VARCHAR, apt_feature_2 VARCHAR, apt_feature_3 VARCHAR, fld_feature_1 VARCHAR, fld_feature_2 VARCHAR, fld_feature_3 VARCHAR, hse_feature_1 VARCHAR, hse_feature_2 VARCHAR, hse_feature_3 VARCHAR, oth_feature_1 VARCHAR, oth_feature_2 VARCHAR, oth_feature_3 VARCHAR, shp_feature_1 VARCHAR, shp_feature_2 VARCHAR, shp_feature_3 VARCHAR, other_property_details VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_code VARCHAR, feature_type_name VARCHAR); CREATE TABLE Ref_Property_Types (property_type_code VARCHAR, property_type_description VARCHAR)", + "question": "What is the feature type name of feature AirCon?", + "gold": "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\"", + "pred": "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\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Other_Available_Features (feature_id INTEGER, feature_type_code VARCHAR, feature_name VARCHAR, feature_description VARCHAR); CREATE TABLE Other_Property_Features (property_id INTEGER, feature_id INTEGER, property_feature_description VARCHAR); CREATE TABLE Properties (property_id INTEGER, property_type_code VARCHAR, date_on_market DATETIME, date_sold DATETIME, property_name VARCHAR, property_address VARCHAR, room_count INTEGER, vendor_requested_price INTEGER, buyer_offered_price INTEGER, agreed_selling_price INTEGER, apt_feature_1 VARCHAR, apt_feature_2 VARCHAR, apt_feature_3 VARCHAR, fld_feature_1 VARCHAR, fld_feature_2 VARCHAR, fld_feature_3 VARCHAR, hse_feature_1 VARCHAR, hse_feature_2 VARCHAR, hse_feature_3 VARCHAR, oth_feature_1 VARCHAR, oth_feature_2 VARCHAR, oth_feature_3 VARCHAR, shp_feature_1 VARCHAR, shp_feature_2 VARCHAR, shp_feature_3 VARCHAR, other_property_details VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_code VARCHAR, feature_type_name VARCHAR); CREATE TABLE Ref_Property_Types (property_type_code VARCHAR, property_type_description VARCHAR)", + "question": "Show the property type descriptions of properties belonging to that code.", + "gold": "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", + "pred": "SELECT T2.property_type_description FROM properties AS T1 JOIN ref_property_types AS T2 ON T1.property_type_code = T2.property_type_code WHERE T1.property_type_code = \"Hse_feature_1\"", + "is_identical": false + }, + { + "context": "CREATE TABLE Other_Available_Features (feature_id INTEGER, feature_type_code VARCHAR, feature_name VARCHAR, feature_description VARCHAR); CREATE TABLE Other_Property_Features (property_id INTEGER, feature_id INTEGER, property_feature_description VARCHAR); CREATE TABLE Properties (property_id INTEGER, property_type_code VARCHAR, date_on_market DATETIME, date_sold DATETIME, property_name VARCHAR, property_address VARCHAR, room_count INTEGER, vendor_requested_price INTEGER, buyer_offered_price INTEGER, agreed_selling_price INTEGER, apt_feature_1 VARCHAR, apt_feature_2 VARCHAR, apt_feature_3 VARCHAR, fld_feature_1 VARCHAR, fld_feature_2 VARCHAR, fld_feature_3 VARCHAR, hse_feature_1 VARCHAR, hse_feature_2 VARCHAR, hse_feature_3 VARCHAR, oth_feature_1 VARCHAR, oth_feature_2 VARCHAR, oth_feature_3 VARCHAR, shp_feature_1 VARCHAR, shp_feature_2 VARCHAR, shp_feature_3 VARCHAR, other_property_details VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_code VARCHAR, feature_type_name VARCHAR); CREATE TABLE Ref_Property_Types (property_type_code VARCHAR, property_type_description VARCHAR)", + "question": "What are the names of properties that are either houses or apartments with more than 1 room?", + "gold": "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", + "pred": "SELECT T1.property_name FROM properties AS T1 JOIN ref_property_types AS T2 ON T1.property_type_code = T2.property_type_code WHERE T2.property_type_description = \"House\" OR T2.property_type_description = \"Apartment\" AND T1.room_count > 1", + "is_identical": false + } +] \ No newline at end of file